@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.
- package/errors/errors.js +3 -3
- 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)) {
|