@bgord/tools 0.12.18 → 0.12.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/directory-path-absolute.vo.d.ts +1 -1
- package/dist/directory-path-absolute.vo.js +1 -1
- package/dist/directory-path-relative.vo.d.ts +1 -1
- package/dist/directory-path-relative.vo.js +1 -1
- package/dist/file-path-absolute-schema.vo.d.ts +1 -1
- package/dist/file-path-relative-schema.vo.d.ts +1 -1
- package/package.json +3 -3
- package/src/directory-path-absolute.vo.ts +1 -1
- package/src/directory-path-relative.vo.ts +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export declare const DirectoryPathAbsoluteSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string, string>>, "
|
|
2
|
+
export declare const DirectoryPathAbsoluteSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string, string>>, "directory_path_absolute_">;
|
|
3
3
|
export type DirectoryPathAbsoluteType = z.infer<typeof DirectoryPathAbsoluteSchema>;
|
|
@@ -14,4 +14,4 @@ export const DirectoryPathAbsoluteSchema = z
|
|
|
14
14
|
const segments = value.slice(1).split("/");
|
|
15
15
|
return segments.every((segment) => segment.length > 0 && /^[A-Za-z0-9._-]+$/.test(segment) && segment !== "." && segment !== "..");
|
|
16
16
|
}, "abs_dir_bad_segments")
|
|
17
|
-
.brand("
|
|
17
|
+
.brand("directory_path_absolute_");
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export declare const DirectoryPathRelativeSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string, string>>, "
|
|
2
|
+
export declare const DirectoryPathRelativeSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string, string>>, "directory_path_relative">;
|
|
3
3
|
export type DirectoryPathRelativeType = z.infer<typeof DirectoryPathRelativeSchema>;
|
|
@@ -12,4 +12,4 @@ export const DirectoryPathRelativeSchema = z
|
|
|
12
12
|
.refine((value) => value
|
|
13
13
|
.split("/")
|
|
14
14
|
.every((segment) => /^[A-Za-z0-9._-]+$/.test(segment) && segment !== "." && segment !== ".."), "rel_dir_bad_segments")
|
|
15
|
-
.brand("
|
|
15
|
+
.brand("directory_path_relative");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { Filename } from "./filename.vo";
|
|
3
3
|
export declare const FilePathAbsoluteSchema: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string, string>>, z.ZodTransform<{
|
|
4
|
-
directory: string & z.core.$brand<"
|
|
4
|
+
directory: string & z.core.$brand<"directory_path_absolute_">;
|
|
5
5
|
filename: Filename;
|
|
6
6
|
}, string>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { Filename } from "./filename.vo";
|
|
3
3
|
export declare const FilePathRelativeSchema: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodTransform<string, string>>, z.ZodTransform<{
|
|
4
|
-
directory: string & z.core.$brand<"
|
|
4
|
+
directory: string & z.core.$brand<"directory_path_relative">;
|
|
5
5
|
filename: Filename;
|
|
6
6
|
}, string>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgord/tools",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bartosz Gordon",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"only-allow": "1.2.1",
|
|
33
33
|
"shellcheck": "4.1.0",
|
|
34
34
|
"typescript": "5.9.2",
|
|
35
|
-
"zod": "4.1.
|
|
35
|
+
"zod": "4.1.4"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"date-fns": "4.1.0",
|
|
39
39
|
"mime-types": "^3.0.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"zod": "4.1.
|
|
42
|
+
"zod": "4.1.4"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false
|
|
45
45
|
}
|
|
@@ -17,6 +17,6 @@ export const DirectoryPathAbsoluteSchema = z
|
|
|
17
17
|
segment.length > 0 && /^[A-Za-z0-9._-]+$/.test(segment) && segment !== "." && segment !== "..",
|
|
18
18
|
);
|
|
19
19
|
}, "abs_dir_bad_segments")
|
|
20
|
-
.brand("
|
|
20
|
+
.brand("directory_path_absolute_");
|
|
21
21
|
|
|
22
22
|
export type DirectoryPathAbsoluteType = z.infer<typeof DirectoryPathAbsoluteSchema>;
|
|
@@ -17,6 +17,6 @@ export const DirectoryPathRelativeSchema = z
|
|
|
17
17
|
.every((segment) => /^[A-Za-z0-9._-]+$/.test(segment) && segment !== "." && segment !== ".."),
|
|
18
18
|
"rel_dir_bad_segments",
|
|
19
19
|
)
|
|
20
|
-
.brand("
|
|
20
|
+
.brand("directory_path_relative");
|
|
21
21
|
|
|
22
22
|
export type DirectoryPathRelativeType = z.infer<typeof DirectoryPathRelativeSchema>;
|