scenv-zod 0.1.0 → 0.2.0

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/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  /**
4
- * Returns a validator function for use with senv(), using a Zod schema.
4
+ * Returns a validator function for use with scenv(), using a Zod schema.
5
5
  * Values from env/context/--set are strings; the schema can coerce (e.g. z.coerce.number()).
6
6
  */
7
7
  declare function validator<T extends z.ZodTypeAny>(schema: T): (val: unknown) => {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  /**
4
- * Returns a validator function for use with senv(), using a Zod schema.
4
+ * Returns a validator function for use with scenv(), using a Zod schema.
5
5
  * Values from env/context/--set are strings; the schema can coerce (e.g. z.coerce.number()).
6
6
  */
7
7
  declare function validator<T extends z.ZodTypeAny>(schema: T): (val: unknown) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scenv-zod",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Zod validator for scenv variables",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,13 +27,13 @@
27
27
  ],
28
28
  "peerDependencies": {
29
29
  "zod": "^3.22.0",
30
- "scenv": "0.1.0"
30
+ "scenv": "0.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "zod": "^3.22.0",
34
34
  "tsup": "^8.0.0",
35
35
  "typescript": "^5.3.0",
36
- "scenv": "0.1.0"
36
+ "scenv": "0.2.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsup src/index.ts --format cjs,esm --dts --clean"