@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/index.mjs CHANGED
@@ -106,6 +106,10 @@ function JSONAttemptParse(json) {
106
106
  return json;
107
107
  }
108
108
  }
109
+ function JSONSerialize(obj) {
110
+ if (typeof obj == "object" && obj != null) return JSONSanitize(obj);
111
+ return obj;
112
+ }
109
113
  function JSONSanitize(obj, space) {
110
114
  return JSON.stringify(obj, (key, value2) => {
111
115
  return value2;
@@ -1420,6 +1424,7 @@ function formatDate(date, format = "YYYY-MM-DD H:mm", tz) {
1420
1424
  ["MSK", 3],
1421
1425
  ["AST", 4],
1422
1426
  ["PKT", 5],
1427
+ ["IST", 5.5],
1423
1428
  ["BST", 6],
1424
1429
  ["ICT", 7],
1425
1430
  ["CST", 8],
@@ -1547,6 +1552,7 @@ export {
1547
1552
  InternalServerError,
1548
1553
  JSONAttemptParse,
1549
1554
  JSONSanitize,
1555
+ JSONSerialize,
1550
1556
  LETTER_LIST,
1551
1557
  LOG_LEVEL,
1552
1558
  Logger,