@ws-ui/shared 0.2.7 → 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(
@@ -12907,7 +12907,7 @@ function DA(e) {
12907
12907
  if (!e)
12908
12908
  return "";
12909
12909
  const { id: r, namespace: n } = e;
12910
- return n ? `${n}:${r}` : r;
12910
+ return n && r ? `${n}:${r}` : r;
12911
12911
  }
12912
12912
  function xP(e) {
12913
12913
  return [