@ls-stack/utils 3.3.0 → 3.3.1

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.
@@ -1,6 +1,6 @@
1
1
  /** JSON.stringify can throw if the value is circular or contains functions, this function catches those errors and returns undefined */
2
2
  declare function safeJsonStringify(value: unknown): string | undefined;
3
3
  /** JSON.parse can throw if the value is not valid JSON, this function catches those errors and returns undefined */
4
- declare function safeJsonParse(value: string): any;
4
+ declare function safeJsonParse(value: string): unknown;
5
5
 
6
6
  export { safeJsonParse, safeJsonStringify };
package/lib/safeJson.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /** JSON.stringify can throw if the value is circular or contains functions, this function catches those errors and returns undefined */
2
2
  declare function safeJsonStringify(value: unknown): string | undefined;
3
3
  /** JSON.parse can throw if the value is not valid JSON, this function catches those errors and returns undefined */
4
- declare function safeJsonParse(value: string): any;
4
+ declare function safeJsonParse(value: string): unknown;
5
5
 
6
6
  export { safeJsonParse, safeJsonStringify };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ls-stack/utils",
3
3
  "description": "Typescript utils",
4
- "version": "3.3.0",
4
+ "version": "3.3.1",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "lib"