zod-conf 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Type-safe configuration management with Zod schemas and environment variables.
4
4
 
5
+ Not affiliated with the official Zod library.
6
+
5
7
  ## Features
6
8
 
7
9
  - **Type-safe** - Full TypeScript support with Zod schema validation
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { boolean, number, string, enum as zenum } from 'zod';
2
+ import { ZodConfSchema } from './values/define.js';
2
3
  export declare const zc: {
3
- define: <T extends import("zod").ZodRawShape>(shape: T) => import("./values/define.js").ZodConfSchema<T>;
4
+ define: <T extends import("zod").ZodRawShape>(shape: T) => ZodConfSchema<T>;
4
5
  env: (key: string) => {
5
6
  string: () => import("zod").ZodString;
6
7
  number: () => import("zod").ZodCoercedNumber<unknown>;
@@ -11,6 +12,7 @@ export declare const zc: {
11
12
  };
12
13
  };
13
14
  object: <T extends import("zod").ZodRawShape>(shape: T) => import("zod").ZodObject<T>;
15
+ ZodConfSchema: typeof ZodConfSchema;
14
16
  string: typeof string;
15
17
  boolean: typeof boolean;
16
18
  number: typeof number;
@@ -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;AAK7D,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;CAWd,CAAC;AAEF,eAAe,EAAE,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;AAC7D,OAAO,EAAU,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI3D,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;CAYd,CAAC;AAEF,eAAe,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { boolean, number, string, enum as zenum } from 'zod';
2
- import { define } from './values/define.js';
2
+ import { define, ZodConfSchema } from './values/define.js';
3
3
  import { env } from './values/env.js';
4
4
  import { object } from './values/object.js';
5
5
  export const zc = {
@@ -7,6 +7,7 @@ export const zc = {
7
7
  define,
8
8
  env,
9
9
  object,
10
+ ZodConfSchema,
10
11
  // re-export common zod values for convenience
11
12
  string,
12
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,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,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"}
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,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,CAAC,MAAM,EAAE,GAAG;IAEhB,MAAM;IACN,GAAG;IACH,MAAM;IACN,aAAa;IAGb,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.0",
3
+ "version": "1.0.1",
4
4
  "description": "Type-safe configuration management with Zod schemas and environment variables",
5
5
  "license": "MIT",
6
6
  "author": "smnbbrv",