mezon-js 2.9.97 → 2.9.98

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.
@@ -720,10 +720,6 @@ function safeJSONParse(jsonString) {
720
720
  switch (match) {
721
721
  case '\\"':
722
722
  return '"';
723
- case "\\n":
724
- return "\n";
725
- case "\\t":
726
- return " ";
727
723
  default:
728
724
  return match[1];
729
725
  }
@@ -686,10 +686,6 @@ function safeJSONParse(jsonString) {
686
686
  switch (match) {
687
687
  case '\\"':
688
688
  return '"';
689
- case "\\n":
690
- return "\n";
691
- case "\\t":
692
- return " ";
693
689
  default:
694
690
  return match[1];
695
691
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.97",
4
+ "version": "2.9.98",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/utils.ts CHANGED
@@ -54,8 +54,8 @@ export function safeJSONParse(jsonString: string) {
54
54
  const unescapedJSON = jsonString.replace(/\\./g, (match) => {
55
55
  switch (match) {
56
56
  case '\\"': return '"';
57
- case '\\n': return '\n';
58
- case '\\t': return '\t';
57
+ //case '\\n': return '\n';
58
+ //case '\\t': return '\t';
59
59
  // Add more escape sequences as needed
60
60
  default: return match[1]; // Remove the backslash
61
61
  }