@formkit/zod 0.18.0-91071e6 → 0.18.0-94f33ac

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 CHANGED
@@ -99,7 +99,7 @@ function createZodPlugin(zodSchema, submitCallback) {
99
99
  setFormValidations(zodResults.error, node);
100
100
  }
101
101
  else {
102
- await submitCallback(payload, node);
102
+ await submitCallback(zodResults.data, node);
103
103
  }
104
104
  }
105
105
  // Sets the form errors on the correct nodes.
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(payload, node);
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-91071e6",
3
+ "version": "0.18.0-94f33ac",
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-91071e6"
34
+ "@formkit/core": "0.18.0-94f33ac"
38
35
  },
39
36
  "devDependencies": {},
40
37
  "peerDependencies": {
41
38
  "zod": "^3.0.0"
39
+ },
40
+ "scripts": {
41
+ "test": "jest"
42
42
  }
43
43
  }