@cabloy/zod-query 1.0.3 → 1.0.4

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/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.3",
4
+ "version": "1.0.4",
5
5
  "description": "zod-query",
6
6
  "publishConfig": {
7
7
  "access": "public"