@signalium/query 1.0.15 → 1.0.16
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/CHANGELOG.md +6 -0
- package/dist/cjs/development/index.js +2 -2
- package/dist/cjs/development/index.js.map +1 -1
- package/dist/cjs/production/index.js +2 -2
- package/dist/cjs/production/index.js.map +1 -1
- package/dist/esm/development/index.js +2 -2
- package/dist/esm/development/index.js.map +1 -1
- package/dist/esm/production/index.js +2 -2
- package/dist/esm/production/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -303,7 +303,7 @@ function defineUnion(...types) {
|
|
|
303
303
|
return new ValidatorDef(2, mask | Mask.UNION, void 0, values);
|
|
304
304
|
}
|
|
305
305
|
if (shape === void 0) {
|
|
306
|
-
return ValidatorDef.cloneWith(definition, mask
|
|
306
|
+
return ValidatorDef.cloneWith(definition, mask, values);
|
|
307
307
|
}
|
|
308
308
|
return new ValidatorDef(1, mask | Mask.UNION, shape, values);
|
|
309
309
|
}
|
|
@@ -846,7 +846,7 @@ function parseValue(value, propDef, path, skipFallbacks = false, warn = noopWarn
|
|
|
846
846
|
}
|
|
847
847
|
return value;
|
|
848
848
|
}
|
|
849
|
-
if ((
|
|
849
|
+
if ((propMask & Mask.UNION) !== 0) {
|
|
850
850
|
return parseUnionValue(
|
|
851
851
|
valueType,
|
|
852
852
|
value,
|