mezon-js 2.13.59 → 2.13.60

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.
@@ -721,7 +721,7 @@ function safeJSONParse(jsonStr) {
721
721
  if (jsonStr !== "") {
722
722
  console.error("Error parsing JSON:", jsonStr, error);
723
723
  }
724
- return null;
724
+ return { t: jsonStr };
725
725
  }
726
726
  }
727
727
 
@@ -687,7 +687,7 @@ function safeJSONParse(jsonStr) {
687
687
  if (jsonStr !== "") {
688
688
  console.error("Error parsing JSON:", jsonStr, error);
689
689
  }
690
- return null;
690
+ return { t: jsonStr };
691
691
  }
692
692
  }
693
693
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.59",
3
+ "version": "2.13.60",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/utils.ts CHANGED
@@ -56,6 +56,6 @@ export function safeJSONParse(jsonStr: string) {
56
56
  if (jsonStr !== "") {
57
57
  console.error('Error parsing JSON:', jsonStr, error);
58
58
  }
59
- return null; // Handle the error gracefully or throw an exception if necessary
59
+ return {t: jsonStr}; // Handle the error gracefully or throw an exception if necessary
60
60
  }
61
61
  }