@formkit/zod 0.18.0-7d9b8a6 → 0.18.0-812b0ae
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.cjs +1 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var core = require('@formkit/core');
|
|
6
4
|
|
|
7
5
|
function createMessageName(node) {
|
|
@@ -101,7 +99,7 @@ function createZodPlugin(zodSchema, submitCallback) {
|
|
|
101
99
|
setFormValidations(zodResults.error, node);
|
|
102
100
|
}
|
|
103
101
|
else {
|
|
104
|
-
await submitCallback(
|
|
102
|
+
await submitCallback(zodResults.data, node);
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
// Sets the form errors on the correct nodes.
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -97,7 +97,7 @@ function createZodPlugin(zodSchema, submitCallback) {
|
|
|
97
97
|
setFormValidations(zodResults.error, node);
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
|
-
await submitCallback(
|
|
100
|
+
await submitCallback(zodResults.data, node);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
// Sets the form errors on the correct nodes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formkit/zod",
|
|
3
|
-
"version": "0.18.0-
|
|
3
|
+
"version": "0.18.0-812b0ae",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Zod validation for FormKit.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"Justin Schroeder <justin@formkit.com>"
|
|
31
31
|
],
|
|
32
32
|
"license": "MIT",
|
|
33
|
-
"scripts": {
|
|
34
|
-
"test": "jest"
|
|
35
|
-
},
|
|
36
33
|
"dependencies": {
|
|
37
|
-
"@formkit/core": "0.18.0-
|
|
34
|
+
"@formkit/core": "0.18.0-812b0ae"
|
|
38
35
|
},
|
|
39
36
|
"devDependencies": {},
|
|
40
37
|
"peerDependencies": {
|
|
41
38
|
"zod": "^3.0.0"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"test": "jest"
|
|
42
42
|
}
|
|
43
43
|
}
|