@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @signalium/query
2
2
 
3
+ ## 1.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 4a3bc06: Fix union parseValue check
8
+
3
9
  ## 1.0.15
4
10
 
5
11
  ### Patch Changes
@@ -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 | Mask.UNION, values);
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 ((valueType & Mask.UNION) !== 0) {
849
+ if ((propMask & Mask.UNION) !== 0) {
850
850
  return parseUnionValue(
851
851
  valueType,
852
852
  value,