@storm-software/linting-tools 1.119.14 → 1.119.16

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.
Files changed (107) hide show
  1. package/README.md +7 -7
  2. package/{dist/chunk-P57FV6C7.cjs → bin/chunk-2HPUSEOW.cjs} +2 -2
  3. package/{dist/chunk-54CFDIUE.js → bin/chunk-2IE4DLUN.js} +1 -1
  4. package/bin/{chunk-5YNSXZUV.cjs → chunk-2KDMIKWU.cjs} +11 -11
  5. package/bin/{chunk-54RWBTS6.js → chunk-A4TZZH23.js} +2 -2
  6. package/bin/{chunk-2MMI4SWB.cjs → chunk-B5GG3XCQ.cjs} +44 -44
  7. package/{dist/chunk-ZCN56EP7.js → bin/chunk-BLCDYU3V.js} +1 -1
  8. package/{dist/chunk-UGTDGDK4.cjs → bin/chunk-BPGBQ4AU.cjs} +388 -388
  9. package/bin/{chunk-MWIMLJFN.cjs → chunk-EF2QNWS4.cjs} +204 -204
  10. package/bin/chunk-F6SMOBG3.js +112 -0
  11. package/bin/{chunk-3C4I67HA.js → chunk-FH3GDOOO.js} +2 -2
  12. package/{dist/chunk-XSNTWOJH.js → bin/chunk-HEZ4RO23.js} +2 -2
  13. package/bin/{chunk-YVJJXPQ6.js → chunk-NBPTD76Q.js} +2 -2
  14. package/bin/{chunk-32N2OGWN.js → chunk-NJWQ5DAN.js} +2 -2
  15. package/{dist/chunk-RHWLTUG4.cjs → bin/chunk-PQ5PUA5Y.cjs} +40 -40
  16. package/bin/{chunk-7GNWLBIN.cjs → chunk-SG7EAXX4.cjs} +138 -138
  17. package/{dist/chunk-RTS6UXXP.cjs → bin/chunk-SQCSB444.cjs} +32 -32
  18. package/{dist/chunk-K6L3YLSV.js → bin/chunk-VO3ZJK3W.js} +2 -2
  19. package/bin/{chunk-WHKY3M5Z.js → chunk-YGKJSNX7.js} +2 -2
  20. package/bin/chunk-YPA2QUMR.cjs +112 -0
  21. package/{dist/chunk-C5CFETOZ.cjs → bin/chunk-ZDJ6A2LW.cjs} +152 -152
  22. package/bin/{dist-ADRPNADD.cjs → dist-7LMLAWUP.cjs} +13 -11
  23. package/bin/{dist-3WBV2IAS.cjs → dist-OHY4PLS2.cjs} +989 -989
  24. package/bin/{dist-25H3BHT5.js → dist-RWR2JNAL.js} +7 -5
  25. package/bin/{dist-VPVBHEYK.js → dist-VFELXY4D.js} +8 -8
  26. package/bin/{esm-RUXZNXEX.js → esm-HY37SH6N.js} +1 -1
  27. package/{dist/esm-BNVF2MRI.cjs → bin/esm-XU4H3B2N.cjs} +46 -46
  28. package/bin/json5-3VVARTPN.cjs +10 -0
  29. package/bin/json5-WUIP5FMS.js +10 -0
  30. package/bin/jsonc-IS6EPVRJ.cjs +15 -0
  31. package/{dist/jsonc-HBV365B7.js → bin/jsonc-KYPEKHOV.js} +3 -3
  32. package/bin/lint.cjs +27626 -27108
  33. package/bin/lint.js +1102 -584
  34. package/{dist/multipart-parser-GIYQPD3I.js → bin/multipart-parser-5HBMD6JO.js} +2 -2
  35. package/bin/{multipart-parser-GL32RRIX.cjs → multipart-parser-CF3BQORX.cjs} +11 -11
  36. package/bin/{package-json-XQ2VHHU4.cjs → package-json-6XHUARKD.cjs} +248 -248
  37. package/{dist/package-json-BISGQCQA.js → bin/package-json-V5Z5DK5X.js} +2 -2
  38. package/bin/toml-BAOM6BGG.js +10 -0
  39. package/bin/toml-JQMR5ASK.cjs +10 -0
  40. package/bin/{utils-ZXNPMV2B.js → utils-DUARF7MU.js} +4 -13
  41. package/{dist/utils-B72MMWGL.cjs → bin/utils-ZLRC2VXJ.cjs} +12 -21
  42. package/bin/yaml-LF4MDF3I.cjs +10 -0
  43. package/bin/yaml-TI2L6CZN.js +10 -0
  44. package/{bin/chunk-P57FV6C7.cjs → dist/chunk-2HPUSEOW.cjs} +2 -2
  45. package/{bin/chunk-54CFDIUE.js → dist/chunk-2IE4DLUN.js} +1 -1
  46. package/dist/{chunk-5YNSXZUV.cjs → chunk-2KDMIKWU.cjs} +11 -11
  47. package/dist/{chunk-54RWBTS6.js → chunk-A4TZZH23.js} +2 -2
  48. package/dist/{chunk-2MMI4SWB.cjs → chunk-B5GG3XCQ.cjs} +44 -44
  49. package/{bin/chunk-ZCN56EP7.js → dist/chunk-BLCDYU3V.js} +1 -1
  50. package/{bin/chunk-UGTDGDK4.cjs → dist/chunk-BPGBQ4AU.cjs} +388 -388
  51. package/dist/{chunk-MWIMLJFN.cjs → chunk-EF2QNWS4.cjs} +204 -204
  52. package/dist/chunk-F6SMOBG3.js +112 -0
  53. package/dist/{chunk-3C4I67HA.js → chunk-FH3GDOOO.js} +2 -2
  54. package/{bin/chunk-XSNTWOJH.js → dist/chunk-HEZ4RO23.js} +2 -2
  55. package/dist/{chunk-YVJJXPQ6.js → chunk-NBPTD76Q.js} +2 -2
  56. package/dist/{chunk-32N2OGWN.js → chunk-NJWQ5DAN.js} +2 -2
  57. package/{bin/chunk-RHWLTUG4.cjs → dist/chunk-PQ5PUA5Y.cjs} +40 -40
  58. package/dist/{chunk-7GNWLBIN.cjs → chunk-SG7EAXX4.cjs} +138 -138
  59. package/{bin/chunk-RTS6UXXP.cjs → dist/chunk-SQCSB444.cjs} +32 -32
  60. package/{bin/chunk-K6L3YLSV.js → dist/chunk-VO3ZJK3W.js} +2 -2
  61. package/dist/{chunk-WHKY3M5Z.js → chunk-YGKJSNX7.js} +2 -2
  62. package/dist/chunk-YPA2QUMR.cjs +112 -0
  63. package/{bin/chunk-C5CFETOZ.cjs → dist/chunk-ZDJ6A2LW.cjs} +152 -152
  64. package/dist/{dist-ADRPNADD.cjs → dist-7LMLAWUP.cjs} +13 -11
  65. package/dist/{dist-3WBV2IAS.cjs → dist-OHY4PLS2.cjs} +989 -989
  66. package/dist/{dist-25H3BHT5.js → dist-RWR2JNAL.js} +7 -5
  67. package/dist/{dist-VPVBHEYK.js → dist-VFELXY4D.js} +8 -8
  68. package/dist/{esm-RUXZNXEX.js → esm-HY37SH6N.js} +1 -1
  69. package/{bin/esm-BNVF2MRI.cjs → dist/esm-XU4H3B2N.cjs} +46 -46
  70. package/dist/index.cjs +27622 -27104
  71. package/dist/index.d.cts +64 -0
  72. package/dist/index.d.ts +64 -0
  73. package/dist/index.js +1102 -584
  74. package/dist/json5-3VVARTPN.cjs +10 -0
  75. package/dist/json5-WUIP5FMS.js +10 -0
  76. package/dist/jsonc-IS6EPVRJ.cjs +15 -0
  77. package/{bin/jsonc-HBV365B7.js → dist/jsonc-KYPEKHOV.js} +3 -3
  78. package/{bin/multipart-parser-GIYQPD3I.js → dist/multipart-parser-5HBMD6JO.js} +2 -2
  79. package/dist/{multipart-parser-GL32RRIX.cjs → multipart-parser-CF3BQORX.cjs} +11 -11
  80. package/dist/{package-json-XQ2VHHU4.cjs → package-json-6XHUARKD.cjs} +248 -248
  81. package/{bin/package-json-BISGQCQA.js → dist/package-json-V5Z5DK5X.js} +2 -2
  82. package/dist/toml-BAOM6BGG.js +10 -0
  83. package/dist/toml-JQMR5ASK.cjs +10 -0
  84. package/dist/{utils-ZXNPMV2B.js → utils-DUARF7MU.js} +4 -13
  85. package/{bin/utils-B72MMWGL.cjs → dist/utils-ZLRC2VXJ.cjs} +12 -21
  86. package/dist/yaml-LF4MDF3I.cjs +10 -0
  87. package/dist/yaml-TI2L6CZN.js +10 -0
  88. package/package.json +1 -1
  89. package/zizmor/config.yml +1 -2
  90. package/bin/chunk-FQD7U3GL.cjs +0 -105
  91. package/bin/chunk-LPZTUZI7.js +0 -105
  92. package/bin/json5-4GROEWN5.cjs +0 -10
  93. package/bin/json5-OPEY7IVI.js +0 -10
  94. package/bin/jsonc-HON5YCSB.cjs +0 -15
  95. package/bin/toml-4KC5RP7Q.js +0 -10
  96. package/bin/toml-52O5X4HU.cjs +0 -10
  97. package/bin/yaml-GU7KPIYY.cjs +0 -10
  98. package/bin/yaml-ODZRTFYX.js +0 -10
  99. package/dist/chunk-FQD7U3GL.cjs +0 -105
  100. package/dist/chunk-LPZTUZI7.js +0 -105
  101. package/dist/json5-4GROEWN5.cjs +0 -10
  102. package/dist/json5-OPEY7IVI.js +0 -10
  103. package/dist/jsonc-HON5YCSB.cjs +0 -15
  104. package/dist/toml-4KC5RP7Q.js +0 -10
  105. package/dist/toml-52O5X4HU.cjs +0 -10
  106. package/dist/yaml-GU7KPIYY.cjs +0 -10
  107. package/dist/yaml-ODZRTFYX.js +0 -10
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-ZCN56EP7.js";
3
+ } from "./chunk-BLCDYU3V.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __dirname,
@@ -8,7 +8,7 @@ import {
8
8
  __require,
9
9
  __toESM,
10
10
  init_esm_shims
11
- } from "./chunk-3C4I67HA.js";
11
+ } from "./chunk-FH3GDOOO.js";
12
12
 
13
13
  // ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
14
14
  var require_ini = __commonJS({
@@ -0,0 +1,10 @@
1
+ import {
2
+ ae,
3
+ ue
4
+ } from "./chunk-VO3ZJK3W.js";
5
+ import "./chunk-2IE4DLUN.js";
6
+ import "./chunk-FH3GDOOO.js";
7
+ export {
8
+ ae as parseTOML,
9
+ ue as stringifyTOML
10
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkPQ5PUA5Ycjs = require('./chunk-PQ5PUA5Y.cjs');
5
+ require('./chunk-2KDMIKWU.cjs');
6
+ require('./chunk-2HPUSEOW.cjs');
7
+
8
+
9
+
10
+ exports.parseTOML = _chunkPQ5PUA5Ycjs.ae; exports.stringifyTOML = _chunkPQ5PUA5Ycjs.ue;
@@ -1,23 +1,14 @@
1
1
  import {
2
+ isEqual,
2
3
  serialize
3
- } from "./chunk-LPZTUZI7.js";
4
+ } from "./chunk-F6SMOBG3.js";
4
5
  import {
5
6
  __name,
6
7
  init_esm_shims
7
- } from "./chunk-3C4I67HA.js";
8
+ } from "./chunk-FH3GDOOO.js";
8
9
 
9
- // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/utils/index.mjs
10
+ // ../../node_modules/.pnpm/ohash@2.0.10/node_modules/ohash/dist/utils/index.mjs
10
11
  init_esm_shims();
11
- function isEqual(object1, object2) {
12
- if (object1 === object2) {
13
- return true;
14
- }
15
- if (serialize(object1) === serialize(object2)) {
16
- return true;
17
- }
18
- return false;
19
- }
20
- __name(isEqual, "isEqual");
21
12
  function diff(obj1, obj2) {
22
13
  const h1 = _toHashedObject(obj1);
23
14
  const h2 = _toHashedObject(obj2);
@@ -1,29 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkFQD7U3GLcjs = require('./chunk-FQD7U3GL.cjs');
4
3
 
4
+ var _chunkYPA2QUMRcjs = require('./chunk-YPA2QUMR.cjs');
5
5
 
6
6
 
7
- var _chunkP57FV6C7cjs = require('./chunk-P57FV6C7.cjs');
8
7
 
9
- // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/utils/index.mjs
10
- _chunkP57FV6C7cjs.init_cjs_shims.call(void 0, );
11
- function isEqual(object1, object2) {
12
- if (object1 === object2) {
13
- return true;
14
- }
15
- if (_chunkFQD7U3GLcjs.serialize.call(void 0, object1) === _chunkFQD7U3GLcjs.serialize.call(void 0, object2)) {
16
- return true;
17
- }
18
- return false;
19
- }
20
- _chunkP57FV6C7cjs.__name.call(void 0, isEqual, "isEqual");
8
+ var _chunk2HPUSEOWcjs = require('./chunk-2HPUSEOW.cjs');
9
+
10
+ // ../../node_modules/.pnpm/ohash@2.0.10/node_modules/ohash/dist/utils/index.mjs
11
+ _chunk2HPUSEOWcjs.init_cjs_shims.call(void 0, );
21
12
  function diff(obj1, obj2) {
22
13
  const h1 = _toHashedObject(obj1);
23
14
  const h2 = _toHashedObject(obj2);
24
15
  return _diff(h1, h2);
25
16
  }
26
- _chunkP57FV6C7cjs.__name.call(void 0, diff, "diff");
17
+ _chunk2HPUSEOWcjs.__name.call(void 0, diff, "diff");
27
18
  function _diff(h1, h2) {
28
19
  const diffs = [];
29
20
  const allProps = /* @__PURE__ */ new Set([
@@ -48,10 +39,10 @@ function _diff(h1, h2) {
48
39
  }
49
40
  return diffs;
50
41
  }
51
- _chunkP57FV6C7cjs.__name.call(void 0, _diff, "_diff");
42
+ _chunk2HPUSEOWcjs.__name.call(void 0, _diff, "_diff");
52
43
  function _toHashedObject(obj, key = "") {
53
44
  if (obj && typeof obj !== "object") {
54
- return new DiffHashedObject(key, obj, _chunkFQD7U3GLcjs.serialize.call(void 0, obj));
45
+ return new DiffHashedObject(key, obj, _chunkYPA2QUMRcjs.serialize.call(void 0, obj));
55
46
  }
56
47
  const props = {};
57
48
  const hashes = [];
@@ -61,10 +52,10 @@ function _toHashedObject(obj, key = "") {
61
52
  }
62
53
  return new DiffHashedObject(key, obj, `{${hashes.join(":")}}`, props);
63
54
  }
64
- _chunkP57FV6C7cjs.__name.call(void 0, _toHashedObject, "_toHashedObject");
55
+ _chunk2HPUSEOWcjs.__name.call(void 0, _toHashedObject, "_toHashedObject");
65
56
  var DiffEntry = class {
66
57
  static {
67
- _chunkP57FV6C7cjs.__name.call(void 0, this, "DiffEntry");
58
+ _chunk2HPUSEOWcjs.__name.call(void 0, this, "DiffEntry");
68
59
  }
69
60
  constructor(key, type, newValue, oldValue) {
70
61
  this.key = key;
@@ -91,7 +82,7 @@ var DiffEntry = class {
91
82
  };
92
83
  var DiffHashedObject = class {
93
84
  static {
94
- _chunkP57FV6C7cjs.__name.call(void 0, this, "DiffHashedObject");
85
+ _chunk2HPUSEOWcjs.__name.call(void 0, this, "DiffHashedObject");
95
86
  }
96
87
  constructor(key, value, hash, props) {
97
88
  this.key = key;
@@ -117,4 +108,4 @@ var DiffHashedObject = class {
117
108
 
118
109
 
119
110
 
120
- exports.diff = diff; exports.isEqual = isEqual;
111
+ exports.diff = diff; exports.isEqual = _chunkYPA2QUMRcjs.isEqual;
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkSG7EAXX4cjs = require('./chunk-SG7EAXX4.cjs');
5
+ require('./chunk-2KDMIKWU.cjs');
6
+ require('./chunk-2HPUSEOW.cjs');
7
+
8
+
9
+
10
+ exports.parseYAML = _chunkSG7EAXX4cjs.Ar; exports.stringifyYAML = _chunkSG7EAXX4cjs.vr;
@@ -0,0 +1,10 @@
1
+ import {
2
+ Ar,
3
+ vr
4
+ } from "./chunk-NBPTD76Q.js";
5
+ import "./chunk-2IE4DLUN.js";
6
+ import "./chunk-FH3GDOOO.js";
7
+ export {
8
+ Ar as parseYAML,
9
+ vr as stringifyYAML
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.119.14",
3
+ "version": "1.119.16",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
6
6
  "repository": {
package/zizmor/config.yml CHANGED
@@ -1,8 +1,7 @@
1
1
  rules:
2
2
  template-injection:
3
3
  ignore:
4
- - ci-reusable.yml:80
5
- - ci-reusable.yml:86
4
+ - ci-reusable.yml
6
5
  - ci.yml
7
6
  dangerous-triggers:
8
7
  ignore:
@@ -1,105 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
-
4
- var _chunkP57FV6C7cjs = require('./chunk-P57FV6C7.cjs');
5
-
6
- // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/shared/ohash.CL_iaQBA.mjs
7
- _chunkP57FV6C7cjs.init_cjs_shims.call(void 0, );
8
- function serialize(s) {
9
- if (typeof s == "string") return `'${s}'`;
10
- const i = new c();
11
- return i.dispatch(s), i.serialized;
12
- }
13
- _chunkP57FV6C7cjs.__name.call(void 0, serialize, "serialize");
14
- var c = /* @__PURE__ */ function() {
15
- class s {constructor() { s.prototype.__init.call(this); }
16
- static {
17
- _chunkP57FV6C7cjs.__name.call(void 0, this, "s");
18
- }
19
- __init() {this.serialized = ""}
20
- #t = /* @__PURE__ */ new Map();
21
- write(t) {
22
- this.serialized += t;
23
- }
24
- dispatch(t) {
25
- return this["$" + (t === null ? "null" : typeof t)].call(this, t);
26
- }
27
- compare(t, r) {
28
- return typeof t == "string" && typeof r == "string" ? t.localeCompare(r) : serialize(t).localeCompare(serialize(r));
29
- }
30
- objectEntries(t, r) {
31
- const e = Array.from(r).sort((n, a) => this.compare(n[0], a[0]));
32
- this.write(`${t}{`);
33
- for (let n = 0; n < e.length; n++) {
34
- const [a, o] = e[n];
35
- this.write(`${a}:`), this.dispatch(o), n < e.length - 1 && this.write(",");
36
- }
37
- this.write("}");
38
- }
39
- $string(t) {
40
- this.write("'" + t + "'");
41
- }
42
- $symbol(t) {
43
- this.write(t.toString());
44
- }
45
- $bigint(t) {
46
- this.write(`${t}n`);
47
- }
48
- $object(t) {
49
- const r = Object.prototype.toString.call(t);
50
- let e = "";
51
- const n = r.length;
52
- n < 10 ? e = "unknown:[" + r + "]" : e = r.slice(8, n - 1);
53
- let a = null;
54
- if ((a = this.#t.get(t)) === void 0) this.#t.set(t, this.#t.size);
55
- else return this.write(`#${a}`);
56
- if (e !== "Object" && e !== "Function" && e !== "AsyncFunction") {
57
- const o = this["$" + e];
58
- if (o) o.call(this, t);
59
- else {
60
- if (typeof _optionalChain([t, 'optionalAccess', _ => _.entries]) == "function") return this.objectEntries(e, t.entries());
61
- throw new Error(`Cannot serialize ${e}`);
62
- }
63
- } else {
64
- const o = t.constructor.name, l = o === "Object" ? "" : o;
65
- return typeof t.toJSON == "function" ? (l && this.write(l), this.$object(t.toJSON())) : this.objectEntries(l, Object.entries(t));
66
- }
67
- }
68
- $function(t) {
69
- const r = Function.prototype.toString.call(t);
70
- if (r.slice(-15) === "[native code] }") return this.write(`${t.name || ""}()[native]`);
71
- this.write(`${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`);
72
- }
73
- $Array(t) {
74
- this.write("[");
75
- for (let r = 0; r < t.length; r++) this.dispatch(t[r]), r < t.length - 1 && this.write(",");
76
- this.write("]");
77
- }
78
- $Date(t) {
79
- return this.write(`Date(${t.toJSON()})`);
80
- }
81
- $ArrayBuffer(t) {
82
- this.write(`ArrayBuffer[${Array.prototype.slice.call(new Uint8Array(t)).join(",")}]`);
83
- }
84
- $Set(t) {
85
- this.write("Set"), this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)));
86
- }
87
- $Map(t) {
88
- return this.objectEntries("Map", t.entries());
89
- }
90
- }
91
- for (const i of ["boolean", "number", "null", "undefined"]) s.prototype["$" + i] = function(t) {
92
- return this.write(t);
93
- };
94
- for (const i of ["Error", "RegExp", "URL"]) s.prototype["$" + i] = function(t) {
95
- return this.write(`${i}(${t.toString()})`);
96
- };
97
- for (const i of ["Uint8Array", "Uint8ClampedArray", "Unt8Array", "Uint16Array", "Unt16Array", "Uint32Array", "Unt32Array", "Float32Array", "Float64Array"]) s.prototype["$" + i] = function(t) {
98
- this.write(`${i}[${Array.prototype.slice.call(t).join(",")}]`);
99
- };
100
- return s;
101
- }();
102
-
103
-
104
-
105
- exports.serialize = serialize;
@@ -1,105 +0,0 @@
1
- import {
2
- __name,
3
- init_esm_shims
4
- } from "./chunk-3C4I67HA.js";
5
-
6
- // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/shared/ohash.CL_iaQBA.mjs
7
- init_esm_shims();
8
- function serialize(s) {
9
- if (typeof s == "string") return `'${s}'`;
10
- const i = new c();
11
- return i.dispatch(s), i.serialized;
12
- }
13
- __name(serialize, "serialize");
14
- var c = /* @__PURE__ */ function() {
15
- class s {
16
- static {
17
- __name(this, "s");
18
- }
19
- serialized = "";
20
- #t = /* @__PURE__ */ new Map();
21
- write(t) {
22
- this.serialized += t;
23
- }
24
- dispatch(t) {
25
- return this["$" + (t === null ? "null" : typeof t)].call(this, t);
26
- }
27
- compare(t, r) {
28
- return typeof t == "string" && typeof r == "string" ? t.localeCompare(r) : serialize(t).localeCompare(serialize(r));
29
- }
30
- objectEntries(t, r) {
31
- const e = Array.from(r).sort((n, a) => this.compare(n[0], a[0]));
32
- this.write(`${t}{`);
33
- for (let n = 0; n < e.length; n++) {
34
- const [a, o] = e[n];
35
- this.write(`${a}:`), this.dispatch(o), n < e.length - 1 && this.write(",");
36
- }
37
- this.write("}");
38
- }
39
- $string(t) {
40
- this.write("'" + t + "'");
41
- }
42
- $symbol(t) {
43
- this.write(t.toString());
44
- }
45
- $bigint(t) {
46
- this.write(`${t}n`);
47
- }
48
- $object(t) {
49
- const r = Object.prototype.toString.call(t);
50
- let e = "";
51
- const n = r.length;
52
- n < 10 ? e = "unknown:[" + r + "]" : e = r.slice(8, n - 1);
53
- let a = null;
54
- if ((a = this.#t.get(t)) === void 0) this.#t.set(t, this.#t.size);
55
- else return this.write(`#${a}`);
56
- if (e !== "Object" && e !== "Function" && e !== "AsyncFunction") {
57
- const o = this["$" + e];
58
- if (o) o.call(this, t);
59
- else {
60
- if (typeof t?.entries == "function") return this.objectEntries(e, t.entries());
61
- throw new Error(`Cannot serialize ${e}`);
62
- }
63
- } else {
64
- const o = t.constructor.name, l = o === "Object" ? "" : o;
65
- return typeof t.toJSON == "function" ? (l && this.write(l), this.$object(t.toJSON())) : this.objectEntries(l, Object.entries(t));
66
- }
67
- }
68
- $function(t) {
69
- const r = Function.prototype.toString.call(t);
70
- if (r.slice(-15) === "[native code] }") return this.write(`${t.name || ""}()[native]`);
71
- this.write(`${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`);
72
- }
73
- $Array(t) {
74
- this.write("[");
75
- for (let r = 0; r < t.length; r++) this.dispatch(t[r]), r < t.length - 1 && this.write(",");
76
- this.write("]");
77
- }
78
- $Date(t) {
79
- return this.write(`Date(${t.toJSON()})`);
80
- }
81
- $ArrayBuffer(t) {
82
- this.write(`ArrayBuffer[${Array.prototype.slice.call(new Uint8Array(t)).join(",")}]`);
83
- }
84
- $Set(t) {
85
- this.write("Set"), this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)));
86
- }
87
- $Map(t) {
88
- return this.objectEntries("Map", t.entries());
89
- }
90
- }
91
- for (const i of ["boolean", "number", "null", "undefined"]) s.prototype["$" + i] = function(t) {
92
- return this.write(t);
93
- };
94
- for (const i of ["Error", "RegExp", "URL"]) s.prototype["$" + i] = function(t) {
95
- return this.write(`${i}(${t.toString()})`);
96
- };
97
- for (const i of ["Uint8Array", "Uint8ClampedArray", "Unt8Array", "Uint16Array", "Unt16Array", "Uint32Array", "Unt32Array", "Float32Array", "Float64Array"]) s.prototype["$" + i] = function(t) {
98
- this.write(`${i}[${Array.prototype.slice.call(t).join(",")}]`);
99
- };
100
- return s;
101
- }();
102
-
103
- export {
104
- serialize
105
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkRTS6UXXPcjs = require('./chunk-RTS6UXXP.cjs');
5
- require('./chunk-5YNSXZUV.cjs');
6
- require('./chunk-P57FV6C7.cjs');
7
-
8
-
9
-
10
- exports.parseJSON5 = _chunkRTS6UXXPcjs.ou; exports.stringifyJSON5 = _chunkRTS6UXXPcjs.cu;
@@ -1,10 +0,0 @@
1
- import {
2
- cu,
3
- ou
4
- } from "./chunk-54RWBTS6.js";
5
- import "./chunk-54CFDIUE.js";
6
- import "./chunk-3C4I67HA.js";
7
- export {
8
- ou as parseJSON5,
9
- cu as stringifyJSON5
10
- };
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunk2MMI4SWBcjs = require('./chunk-2MMI4SWB.cjs');
5
- require('./chunk-5YNSXZUV.cjs');
6
-
7
-
8
- var _chunkP57FV6C7cjs = require('./chunk-P57FV6C7.cjs');
9
-
10
- // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/jsonc.mjs
11
- _chunkP57FV6C7cjs.init_cjs_shims.call(void 0, );
12
-
13
-
14
-
15
- exports.parseJSONC = _chunk2MMI4SWBcjs.h; exports.stringifyJSONC = _chunk2MMI4SWBcjs.d;
@@ -1,10 +0,0 @@
1
- import {
2
- ae,
3
- ue
4
- } from "./chunk-K6L3YLSV.js";
5
- import "./chunk-54CFDIUE.js";
6
- import "./chunk-3C4I67HA.js";
7
- export {
8
- ae as parseTOML,
9
- ue as stringifyTOML
10
- };
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkRHWLTUG4cjs = require('./chunk-RHWLTUG4.cjs');
5
- require('./chunk-5YNSXZUV.cjs');
6
- require('./chunk-P57FV6C7.cjs');
7
-
8
-
9
-
10
- exports.parseTOML = _chunkRHWLTUG4cjs.ae; exports.stringifyTOML = _chunkRHWLTUG4cjs.ue;
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunk7GNWLBINcjs = require('./chunk-7GNWLBIN.cjs');
5
- require('./chunk-5YNSXZUV.cjs');
6
- require('./chunk-P57FV6C7.cjs');
7
-
8
-
9
-
10
- exports.parseYAML = _chunk7GNWLBINcjs.Ar; exports.stringifyYAML = _chunk7GNWLBINcjs.vr;
@@ -1,10 +0,0 @@
1
- import {
2
- Ar,
3
- vr
4
- } from "./chunk-YVJJXPQ6.js";
5
- import "./chunk-54CFDIUE.js";
6
- import "./chunk-3C4I67HA.js";
7
- export {
8
- Ar as parseYAML,
9
- vr as stringifyYAML
10
- };
@@ -1,105 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
-
4
- var _chunkP57FV6C7cjs = require('./chunk-P57FV6C7.cjs');
5
-
6
- // ../../node_modules/.pnpm/ohash@2.0.4/node_modules/ohash/dist/shared/ohash.CL_iaQBA.mjs
7
- _chunkP57FV6C7cjs.init_cjs_shims.call(void 0, );
8
- function serialize(s) {
9
- if (typeof s == "string") return `'${s}'`;
10
- const i = new c();
11
- return i.dispatch(s), i.serialized;
12
- }
13
- _chunkP57FV6C7cjs.__name.call(void 0, serialize, "serialize");
14
- var c = /* @__PURE__ */ function() {
15
- class s {constructor() { s.prototype.__init.call(this); }
16
- static {
17
- _chunkP57FV6C7cjs.__name.call(void 0, this, "s");
18
- }
19
- __init() {this.serialized = ""}
20
- #t = /* @__PURE__ */ new Map();
21
- write(t) {
22
- this.serialized += t;
23
- }
24
- dispatch(t) {
25
- return this["$" + (t === null ? "null" : typeof t)].call(this, t);
26
- }
27
- compare(t, r) {
28
- return typeof t == "string" && typeof r == "string" ? t.localeCompare(r) : serialize(t).localeCompare(serialize(r));
29
- }
30
- objectEntries(t, r) {
31
- const e = Array.from(r).sort((n, a) => this.compare(n[0], a[0]));
32
- this.write(`${t}{`);
33
- for (let n = 0; n < e.length; n++) {
34
- const [a, o] = e[n];
35
- this.write(`${a}:`), this.dispatch(o), n < e.length - 1 && this.write(",");
36
- }
37
- this.write("}");
38
- }
39
- $string(t) {
40
- this.write("'" + t + "'");
41
- }
42
- $symbol(t) {
43
- this.write(t.toString());
44
- }
45
- $bigint(t) {
46
- this.write(`${t}n`);
47
- }
48
- $object(t) {
49
- const r = Object.prototype.toString.call(t);
50
- let e = "";
51
- const n = r.length;
52
- n < 10 ? e = "unknown:[" + r + "]" : e = r.slice(8, n - 1);
53
- let a = null;
54
- if ((a = this.#t.get(t)) === void 0) this.#t.set(t, this.#t.size);
55
- else return this.write(`#${a}`);
56
- if (e !== "Object" && e !== "Function" && e !== "AsyncFunction") {
57
- const o = this["$" + e];
58
- if (o) o.call(this, t);
59
- else {
60
- if (typeof _optionalChain([t, 'optionalAccess', _ => _.entries]) == "function") return this.objectEntries(e, t.entries());
61
- throw new Error(`Cannot serialize ${e}`);
62
- }
63
- } else {
64
- const o = t.constructor.name, l = o === "Object" ? "" : o;
65
- return typeof t.toJSON == "function" ? (l && this.write(l), this.$object(t.toJSON())) : this.objectEntries(l, Object.entries(t));
66
- }
67
- }
68
- $function(t) {
69
- const r = Function.prototype.toString.call(t);
70
- if (r.slice(-15) === "[native code] }") return this.write(`${t.name || ""}()[native]`);
71
- this.write(`${t.name}(${t.length})${r.replace(/\s*\n\s*/g, "")}`);
72
- }
73
- $Array(t) {
74
- this.write("[");
75
- for (let r = 0; r < t.length; r++) this.dispatch(t[r]), r < t.length - 1 && this.write(",");
76
- this.write("]");
77
- }
78
- $Date(t) {
79
- return this.write(`Date(${t.toJSON()})`);
80
- }
81
- $ArrayBuffer(t) {
82
- this.write(`ArrayBuffer[${Array.prototype.slice.call(new Uint8Array(t)).join(",")}]`);
83
- }
84
- $Set(t) {
85
- this.write("Set"), this.$Array(Array.from(t).sort((r, e) => this.compare(r, e)));
86
- }
87
- $Map(t) {
88
- return this.objectEntries("Map", t.entries());
89
- }
90
- }
91
- for (const i of ["boolean", "number", "null", "undefined"]) s.prototype["$" + i] = function(t) {
92
- return this.write(t);
93
- };
94
- for (const i of ["Error", "RegExp", "URL"]) s.prototype["$" + i] = function(t) {
95
- return this.write(`${i}(${t.toString()})`);
96
- };
97
- for (const i of ["Uint8Array", "Uint8ClampedArray", "Unt8Array", "Uint16Array", "Unt16Array", "Uint32Array", "Unt32Array", "Float32Array", "Float64Array"]) s.prototype["$" + i] = function(t) {
98
- this.write(`${i}[${Array.prototype.slice.call(t).join(",")}]`);
99
- };
100
- return s;
101
- }();
102
-
103
-
104
-
105
- exports.serialize = serialize;