@power-plant/schema 0.0.53 → 0.0.55
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/codegen.cjs +2 -4
- package/dist/codegen.mjs +1 -3
- package/dist/{constants-DUJjv-fA.cjs → constants-CPMTQEYP.cjs} +0 -1
- package/dist/{deepkit-BUz4LI7V.mjs → deepkit-9Y_7fx_M.mjs} +11 -959
- package/dist/deepkit-9Y_7fx_M.mjs.map +1 -0
- package/dist/{deepkit-CzTuG3HO.cjs → deepkit-DdL6PozG.cjs} +6 -956
- package/dist/deepkit.cjs +1 -1
- package/dist/deepkit.mjs +1 -1
- package/dist/{helpers-on-hD-7R.cjs → helpers-LhLPb88g.cjs} +2 -2
- package/dist/index.cjs +8 -7
- package/dist/index.mjs +5 -4
- package/dist/{rolldown-runtime-fl3r8ClO.cjs → rolldown-runtime-7nYvXII6.cjs} +1 -2
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.mjs +1 -1
- package/dist/{storage-C8Lnl5Hw.cjs → storage-BTI2epDz.cjs} +5 -3
- package/dist/{storage-C3BT2Xh-.mjs → storage-DuoqLXEu.mjs} +5 -3
- package/dist/storage-DuoqLXEu.mjs.map +1 -0
- package/dist/valibot.cjs +2 -2
- package/dist/zod.cjs +3 -3
- package/package.json +5 -5
- package/dist/deepkit-BUz4LI7V.mjs.map +0 -1
- package/dist/storage-C3BT2Xh-.mjs.map +0 -1
package/dist/codegen.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers = require('./helpers-
|
|
2
|
+
const require_helpers = require('./helpers-LhLPb88g.cjs');
|
|
3
3
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
4
4
|
let _stryke_type_checks = require("@stryke/type-checks");
|
|
5
5
|
let _stryke_string_format_list = require("@stryke/string-format/list");
|
|
@@ -205,9 +205,7 @@ function generateParserCode(schema, options = {}) {
|
|
|
205
205
|
lines.push(`if (${valueVar} === null) {`, ` ${targetVar} = null;`, `} else {`, ` ${errorsVar}.push({ path: ${pathVar}, failure: "Expected a null value" });`, ` ${targetVar} = ${valueVar};`, `}`);
|
|
206
206
|
break;
|
|
207
207
|
case void 0:
|
|
208
|
-
default:
|
|
209
|
-
lines.push(`${targetVar} = ${valueVar};`);
|
|
210
|
-
break;
|
|
208
|
+
default: lines.push(`${targetVar} = ${valueVar};`);
|
|
211
209
|
}
|
|
212
210
|
return lines;
|
|
213
211
|
}
|
package/dist/codegen.mjs
CHANGED
|
@@ -204,9 +204,7 @@ function generateParserCode(schema, options = {}) {
|
|
|
204
204
|
lines.push(`if (${valueVar} === null) {`, ` ${targetVar} = null;`, `} else {`, ` ${errorsVar}.push({ path: ${pathVar}, failure: "Expected a null value" });`, ` ${targetVar} = ${valueVar};`, `}`);
|
|
205
205
|
break;
|
|
206
206
|
case void 0:
|
|
207
|
-
default:
|
|
208
|
-
lines.push(`${targetVar} = ${valueVar};`);
|
|
209
|
-
break;
|
|
207
|
+
default: lines.push(`${targetVar} = ${valueVar};`);
|
|
210
208
|
}
|
|
211
209
|
return lines;
|
|
212
210
|
}
|