@ws-ui/shared 0.2.8 → 0.2.9

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/index.es.js CHANGED
@@ -12809,7 +12809,7 @@ function OA(e, r) {
12809
12809
  }
12810
12810
  return r === "date" && (new RegExp(
12811
12811
  /^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/
12812
- ).test(e) || (n = `Invalid value for type ${r}`)), r === "number" && isNaN(+e) && (n = `Invalid value for type ${r}`), ["boolean", "bool"].includes(r) && !["true", "false"].includes(e) && (n = `Invalid value for type ${r}`), n;
12812
+ ).test(e) || (n = `Invalid value for type ${r}`)), r === "number" && isNaN(+e) && (n = `Invalid value for type ${r}`), ["boolean", "bool"].includes(r) && typeof e != "boolean" && !["true", "false"].includes(e) && (n = `Invalid value for type ${r}`), n;
12813
12813
  }
12814
12814
  function dc(e) {
12815
12815
  const r = new RegExp(