zod-conf 1.0.1 → 1.0.3
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/LICENSE +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/LICENSE
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { boolean, number, string, enum as zenum } from 'zod';
|
|
2
|
-
|
|
2
|
+
export { ZodConfSchema } from './values/define.js';
|
|
3
3
|
export declare const zc: {
|
|
4
|
-
define: <T extends import("zod").ZodRawShape>(shape: T) => ZodConfSchema<T>;
|
|
4
|
+
define: <T extends import("zod").ZodRawShape>(shape: T) => import("./values/define.js").ZodConfSchema<T>;
|
|
5
5
|
env: (key: string) => {
|
|
6
6
|
string: () => import("zod").ZodString;
|
|
7
7
|
number: () => import("zod").ZodCoercedNumber<unknown>;
|
|
@@ -12,7 +12,6 @@ export declare const zc: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
object: <T extends import("zod").ZodRawShape>(shape: T) => import("zod").ZodObject<T>;
|
|
15
|
-
ZodConfSchema: typeof ZodConfSchema;
|
|
16
15
|
string: typeof string;
|
|
17
16
|
boolean: typeof boolean;
|
|
18
17
|
number: typeof number;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAK7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;CAWd,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { boolean, number, string, enum as zenum } from 'zod';
|
|
2
|
-
import { define
|
|
2
|
+
import { define } from './values/define.js';
|
|
3
3
|
import { env } from './values/env.js';
|
|
4
4
|
import { object } from './values/object.js';
|
|
5
|
+
export { ZodConfSchema } from './values/define.js';
|
|
5
6
|
export const zc = {
|
|
6
7
|
// core values
|
|
7
8
|
define,
|
|
8
9
|
env,
|
|
9
10
|
object,
|
|
10
|
-
ZodConfSchema,
|
|
11
11
|
// re-export common zod values for convenience
|
|
12
12
|
string,
|
|
13
13
|
boolean,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,EAAE,GAAG;IAEhB,MAAM;IACN,GAAG;IACH,MAAM;IAGN,MAAM;IACN,OAAO;IACP,MAAM;IACN,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-conf",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Type-safe configuration management with Zod schemas and environment variables",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "smnbbrv",
|
|
@@ -57,24 +57,24 @@
|
|
|
57
57
|
"zod": "^4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@commitlint/cli": "^
|
|
61
|
-
"@commitlint/config-conventional": "^
|
|
60
|
+
"@commitlint/cli": "^20.4.1",
|
|
61
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
62
62
|
"@semantic-release/changelog": "^6.0.3",
|
|
63
63
|
"@semantic-release/git": "^10.0.1",
|
|
64
|
-
"@types/node": "^
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
66
|
-
"dotenv": "^17.2.
|
|
67
|
-
"eslint": "^9.
|
|
64
|
+
"@types/node": "^25.2.0",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
66
|
+
"dotenv": "^17.2.3",
|
|
67
|
+
"eslint": "^9.39.2",
|
|
68
68
|
"eslint-config-prettier": "^10.1.8",
|
|
69
69
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
70
70
|
"eslint-plugin-import": "^2.32.0",
|
|
71
|
-
"eslint-plugin-prettier": "^5.5.
|
|
71
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
72
72
|
"husky": "^9.1.7",
|
|
73
73
|
"npm-run-all": "^4.1.5",
|
|
74
|
-
"semantic-release": "^
|
|
75
|
-
"tsx": "^4.
|
|
76
|
-
"typescript": "^5.9.
|
|
77
|
-
"typescript-eslint": "^8.
|
|
78
|
-
"zod": "^4.
|
|
74
|
+
"semantic-release": "^25.0.3",
|
|
75
|
+
"tsx": "^4.21.0",
|
|
76
|
+
"typescript": "^5.9.3",
|
|
77
|
+
"typescript-eslint": "^8.54.0",
|
|
78
|
+
"zod": "^4.3.6"
|
|
79
79
|
}
|
|
80
80
|
}
|