zod-joda 2.1.0 → 2.1.2
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.js +3 -3
- package/dist/mini.js +3 -3
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { string } from "zod/v4";
|
|
2
2
|
import { durationConfig, localDateConfig, localDateTimeConfig, localTimeConfig, zonedDateTimeConfig, } from "./core.js";
|
|
3
3
|
const createParseConstructor = ({ parse, invalidMessage, schemaFormat, example, }) => (params) => {
|
|
4
|
-
const inputSchema = string().meta({
|
|
5
|
-
inputSchema._zod.toJSONSchema = () => ({
|
|
6
|
-
format: schemaFormat,
|
|
4
|
+
const inputSchema = string().meta({
|
|
7
5
|
type: "string",
|
|
6
|
+
format: schemaFormat,
|
|
7
|
+
example: example(params),
|
|
8
8
|
});
|
|
9
9
|
return inputSchema.transform((value, context) => {
|
|
10
10
|
try {
|
package/dist/mini.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { globalRegistry, pipe, string, transform } from "zod/v4/mini";
|
|
2
2
|
import { durationConfig, localDateConfig, localDateTimeConfig, localTimeConfig, zonedDateTimeConfig, } from "./core.js";
|
|
3
3
|
const createParseConstructor = ({ parse, invalidMessage, schemaFormat, example, }) => (params) => {
|
|
4
|
-
const inputSchema = string().register(globalRegistry, {
|
|
5
|
-
inputSchema._zod.toJSONSchema = () => ({
|
|
6
|
-
format: schemaFormat,
|
|
4
|
+
const inputSchema = string().register(globalRegistry, {
|
|
7
5
|
type: "string",
|
|
6
|
+
format: schemaFormat,
|
|
7
|
+
example: example(params),
|
|
8
8
|
});
|
|
9
9
|
return pipe(inputSchema, transform((value, context) => {
|
|
10
10
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-joda",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "JS-Joda integration for Zod validation library",
|
|
5
5
|
"author": "Ben Scholzen 'DASPRiD'",
|
|
6
6
|
"keywords": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "BSD-2-Clause",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/DASPRiD/zod-joda.git"
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
19
19
|
"sideEffects": false,
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@biomejs/biome": "^2.1
|
|
60
|
-
"@commitlint/cli": "^
|
|
61
|
-
"@commitlint/config-conventional": "^
|
|
62
|
-
"@js-joda/core": "^5.
|
|
63
|
-
"@tsconfig/node22": "^22.0.
|
|
64
|
-
"@types/node": "^24.
|
|
59
|
+
"@biomejs/biome": "^2.5.1",
|
|
60
|
+
"@commitlint/cli": "^21.1.0",
|
|
61
|
+
"@commitlint/config-conventional": "^21.1.0",
|
|
62
|
+
"@js-joda/core": "^5.7.0",
|
|
63
|
+
"@tsconfig/node22": "^22.0.5",
|
|
64
|
+
"@types/node": "^24.13.2",
|
|
65
65
|
"c8": "^10.1.3",
|
|
66
|
-
"lefthook": "^1.
|
|
67
|
-
"tsx": "^4.
|
|
68
|
-
"typescript": "^5.
|
|
69
|
-
"zod": "^4.
|
|
66
|
+
"lefthook": "^1.13.6",
|
|
67
|
+
"tsx": "^4.22.4",
|
|
68
|
+
"typescript": "^5.9.3",
|
|
69
|
+
"zod": "^4.4.3"
|
|
70
70
|
},
|
|
71
|
-
"packageManager": "pnpm@10.
|
|
71
|
+
"packageManager": "pnpm@10.34.4+sha512.8768be55200ae3f2226b6527fcca2687e14bc4e5f12d7721a0f25da3df47915177058648db4177baf348120fa0ba2752d8d8d93f6beaf1fe64ae18da8de961af"
|
|
72
72
|
}
|