@cabloy/zod-query 1.0.3 → 1.0.6
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/LICENSE +0 -0
- package/dist/lib/query.js +3 -0
- package/package.json +12 -3
package/LICENSE
CHANGED
|
File without changes
|
package/dist/lib/query.js
CHANGED
|
@@ -131,6 +131,9 @@ z.ZodOptional.prototype._parse = function (input) {
|
|
|
131
131
|
else {
|
|
132
132
|
_coerceWithNil(input);
|
|
133
133
|
}
|
|
134
|
+
if (input.data === null) {
|
|
135
|
+
input.data = undefined;
|
|
136
|
+
}
|
|
134
137
|
return _parseOptional.call(this, input);
|
|
135
138
|
};
|
|
136
139
|
////////////////////////////////////////////
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/zod-query",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
5
5
|
"description": "zod-query",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,5 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist"
|
|
36
|
-
]
|
|
37
|
-
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
40
|
+
"tsc:publish": "npm run clean && tsc",
|
|
41
|
+
"prepublishOnly": "npm run tsc:publish",
|
|
42
|
+
"prepack": "clean-package",
|
|
43
|
+
"postpack": "clean-package restore"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "0eab9dc4a5622caffe89e7b1b3f02c08ccbc4c4b"
|
|
46
|
+
}
|