@sinclair/typebox 0.27.1 → 0.27.2

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.
Files changed (2) hide show
  1. package/errors/errors.js +3 -3
  2. package/package.json +1 -1
package/errors/errors.js CHANGED
@@ -505,12 +505,12 @@ var ValueErrors;
505
505
  return;
506
506
  errors.push(...variantErrors);
507
507
  }
508
- for (const error of errors) {
509
- yield error;
510
- }
511
508
  if (errors.length > 0) {
512
509
  yield { type: ValueErrorType.Union, schema, path, value, message: 'Expected value of union' };
513
510
  }
511
+ for (const error of errors) {
512
+ yield error;
513
+ }
514
514
  }
515
515
  function* Uint8Array(schema, references, path, value) {
516
516
  if (!(value instanceof globalThis.Uint8Array)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.27.1",
3
+ "version": "0.27.2",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",