@ztimson/utils 0.23.0 → 0.23.2

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/objects.d.ts CHANGED
@@ -121,6 +121,13 @@ export declare function mixin(target: any, constructors: any[]): void;
121
121
  * @return {string | T} Object if successful, original string otherwise
122
122
  */
123
123
  export declare function JSONAttemptParse<T1, T2>(json: T2): T1 | T2;
124
+ /**
125
+ * Stringifies objects & skips primitives
126
+ *
127
+ * @param {any} obj Object to convert to serializable value
128
+ * @return {string | T} Serialized value
129
+ */
130
+ export declare function JSONSerialize<T1>(obj: T1): T1 | string;
124
131
  /**
125
132
  * Convert an object to a JSON string avoiding any circular references.
126
133
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",