@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_helpers = require('./helpers-on-hD-7R.cjs');
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
  }
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/constants.ts
3
2
  /**
4
3
  * Runtime value for an unconstrained {@link JsonSchemaAny} schema.