@ztimson/utils 0.23.1 → 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/index.cjs CHANGED
@@ -110,6 +110,10 @@ var __publicField = (obj, key, value2) => __defNormalProp(obj, typeof key !== "s
110
110
  return json;
111
111
  }
112
112
  }
113
+ function JSONSerialize(obj) {
114
+ if (typeof obj == "object" && obj != null) return JSONSanitize(obj);
115
+ return obj;
116
+ }
113
117
  function JSONSanitize(obj, space) {
114
118
  return JSON.stringify(obj, (key, value2) => {
115
119
  return value2;
@@ -1551,6 +1555,7 @@ var __publicField = (obj, key, value2) => __defNormalProp(obj, typeof key !== "s
1551
1555
  exports.InternalServerError = InternalServerError;
1552
1556
  exports.JSONAttemptParse = JSONAttemptParse;
1553
1557
  exports.JSONSanitize = JSONSanitize;
1558
+ exports.JSONSerialize = JSONSerialize;
1554
1559
  exports.LETTER_LIST = LETTER_LIST;
1555
1560
  exports.LOG_LEVEL = LOG_LEVEL;
1556
1561
  exports.Logger = Logger;