cja-phoenix 0.19.27 → 0.19.28

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.
@@ -1984,7 +1984,7 @@ const vh = (e, t) => {
1984
1984
  }, Sx = (e) => JSON.parse(e, (t, r) => {
1985
1985
  if (r === "true" || r === "false")
1986
1986
  return r === "true";
1987
- if (Number(r) || r === "0")
1987
+ if ((Number(r) || r === "0") && typeof r != "boolean")
1988
1988
  return Number(r);
1989
1989
  if (r !== "undefined")
1990
1990
  return r === "null" ? null : r;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cja-phoenix",
3
- "version": "0.19.27",
3
+ "version": "0.19.28",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -4,7 +4,7 @@ export const jsonReviver = (data: any) =>
4
4
  return v === "true";
5
5
  }
6
6
 
7
- if (Number(v) || v === "0") {
7
+ if ((Number(v) || v === "0") && typeof v != "boolean") {
8
8
  return Number(v);
9
9
  }
10
10