@storm-software/linting-tools 1.119.10 → 1.119.12
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/README.md +1 -1
- package/{dist/chunk-XV6IBRMZ.cjs → bin/chunk-2MMI4SWB.cjs} +44 -44
- package/{dist/chunk-P36IQ2HN.js → bin/chunk-32N2OGWN.js} +2 -2
- package/{dist/chunk-NENGWJYA.js → bin/chunk-3C4I67HA.js} +2 -2
- package/bin/{chunk-7TD5A5D7.js → chunk-54CFDIUE.js} +1 -1
- package/{dist/chunk-KANXUMWW.js → bin/chunk-54RWBTS6.js} +2 -2
- package/bin/{chunk-HP3XCXQR.cjs → chunk-5YNSXZUV.cjs} +11 -11
- package/{dist/chunk-B42TOUVC.cjs → bin/chunk-7GNWLBIN.cjs} +138 -138
- package/{dist/chunk-MEU6Q2ZZ.cjs → bin/chunk-C5CFETOZ.cjs} +152 -152
- package/bin/chunk-FQD7U3GL.cjs +105 -0
- package/bin/{chunk-KZMPPMLI.js → chunk-K6L3YLSV.js} +2 -2
- package/bin/chunk-LPZTUZI7.js +105 -0
- package/bin/{chunk-3U2JI7F4.cjs → chunk-MWIMLJFN.cjs} +204 -204
- package/{dist/chunk-OKHMCCMQ.cjs → bin/chunk-P57FV6C7.cjs} +2 -2
- package/bin/{chunk-DZ4CTAMG.cjs → chunk-RHWLTUG4.cjs} +40 -40
- package/{dist/chunk-QB4RY2O2.cjs → bin/chunk-RTS6UXXP.cjs} +32 -32
- package/bin/{chunk-SUCHSNMD.cjs → chunk-UGTDGDK4.cjs} +388 -388
- package/{dist/chunk-ZKD3DEX3.js → bin/chunk-WHKY3M5Z.js} +2 -2
- package/{dist/chunk-YJD2T3D3.js → bin/chunk-XSNTWOJH.js} +2 -2
- package/{dist/chunk-57CQKW3U.js → bin/chunk-YVJJXPQ6.js} +2 -2
- package/bin/{chunk-CPUOXQVO.js → chunk-ZCN56EP7.js} +1 -1
- package/bin/dist-25H3BHT5.js +34 -0
- package/bin/{dist-SF3G6LKO.cjs → dist-3WBV2IAS.cjs} +1007 -1004
- package/bin/dist-ADRPNADD.cjs +34 -0
- package/bin/{dist-LAXHN42C.js → dist-VPVBHEYK.js} +17 -14
- package/{dist/esm-6CGCFXB6.cjs → bin/esm-BNVF2MRI.cjs} +46 -46
- package/bin/{esm-YESBDQQ2.js → esm-RUXZNXEX.js} +1 -1
- package/bin/json5-4GROEWN5.cjs +10 -0
- package/bin/json5-OPEY7IVI.js +10 -0
- package/{dist/jsonc-YCDSJSS2.js → bin/jsonc-HBV365B7.js} +3 -3
- package/bin/jsonc-HON5YCSB.cjs +15 -0
- package/bin/lint.cjs +27146 -27780
- package/bin/lint.js +449 -1083
- package/{dist/multipart-parser-HZ46XN43.js → bin/multipart-parser-GIYQPD3I.js} +2 -2
- package/bin/{multipart-parser-JXBY73TG.cjs → multipart-parser-GL32RRIX.cjs} +11 -11
- package/{dist/package-json-RFV5FQSF.js → bin/package-json-BISGQCQA.js} +2 -2
- package/{dist/package-json-DOZ42I7U.cjs → bin/package-json-XQ2VHHU4.cjs} +248 -248
- package/bin/toml-4KC5RP7Q.js +10 -0
- package/bin/toml-52O5X4HU.cjs +10 -0
- package/bin/utils-B72MMWGL.cjs +120 -0
- package/bin/utils-ZXNPMV2B.js +120 -0
- package/bin/yaml-GU7KPIYY.cjs +10 -0
- package/bin/yaml-ODZRTFYX.js +10 -0
- package/{bin/chunk-XV6IBRMZ.cjs → dist/chunk-2MMI4SWB.cjs} +44 -44
- package/{bin/chunk-P36IQ2HN.js → dist/chunk-32N2OGWN.js} +2 -2
- package/{bin/chunk-NENGWJYA.js → dist/chunk-3C4I67HA.js} +2 -2
- package/dist/{chunk-7TD5A5D7.js → chunk-54CFDIUE.js} +1 -1
- package/{bin/chunk-KANXUMWW.js → dist/chunk-54RWBTS6.js} +2 -2
- package/dist/{chunk-HP3XCXQR.cjs → chunk-5YNSXZUV.cjs} +11 -11
- package/{bin/chunk-B42TOUVC.cjs → dist/chunk-7GNWLBIN.cjs} +138 -138
- package/{bin/chunk-MEU6Q2ZZ.cjs → dist/chunk-C5CFETOZ.cjs} +152 -152
- package/dist/chunk-FQD7U3GL.cjs +105 -0
- package/dist/{chunk-KZMPPMLI.js → chunk-K6L3YLSV.js} +2 -2
- package/dist/chunk-LPZTUZI7.js +105 -0
- package/dist/{chunk-3U2JI7F4.cjs → chunk-MWIMLJFN.cjs} +204 -204
- package/{bin/chunk-OKHMCCMQ.cjs → dist/chunk-P57FV6C7.cjs} +2 -2
- package/dist/{chunk-DZ4CTAMG.cjs → chunk-RHWLTUG4.cjs} +40 -40
- package/{bin/chunk-QB4RY2O2.cjs → dist/chunk-RTS6UXXP.cjs} +32 -32
- package/dist/{chunk-SUCHSNMD.cjs → chunk-UGTDGDK4.cjs} +388 -388
- package/{bin/chunk-ZKD3DEX3.js → dist/chunk-WHKY3M5Z.js} +2 -2
- package/{bin/chunk-YJD2T3D3.js → dist/chunk-XSNTWOJH.js} +2 -2
- package/{bin/chunk-57CQKW3U.js → dist/chunk-YVJJXPQ6.js} +2 -2
- package/dist/{chunk-CPUOXQVO.js → chunk-ZCN56EP7.js} +1 -1
- package/dist/dist-25H3BHT5.js +34 -0
- package/dist/{dist-SF3G6LKO.cjs → dist-3WBV2IAS.cjs} +1007 -1004
- package/dist/dist-ADRPNADD.cjs +34 -0
- package/dist/{dist-LAXHN42C.js → dist-VPVBHEYK.js} +17 -14
- package/{bin/esm-6CGCFXB6.cjs → dist/esm-BNVF2MRI.cjs} +46 -46
- package/dist/{esm-YESBDQQ2.js → esm-RUXZNXEX.js} +1 -1
- package/dist/index.cjs +27141 -27775
- package/dist/index.js +449 -1083
- package/dist/json5-4GROEWN5.cjs +10 -0
- package/dist/json5-OPEY7IVI.js +10 -0
- package/{bin/jsonc-YCDSJSS2.js → dist/jsonc-HBV365B7.js} +3 -3
- package/dist/jsonc-HON5YCSB.cjs +15 -0
- package/{bin/multipart-parser-HZ46XN43.js → dist/multipart-parser-GIYQPD3I.js} +2 -2
- package/dist/{multipart-parser-JXBY73TG.cjs → multipart-parser-GL32RRIX.cjs} +11 -11
- package/{bin/package-json-RFV5FQSF.js → dist/package-json-BISGQCQA.js} +2 -2
- package/{bin/package-json-DOZ42I7U.cjs → dist/package-json-XQ2VHHU4.cjs} +248 -248
- package/dist/toml-4KC5RP7Q.js +10 -0
- package/dist/toml-52O5X4HU.cjs +10 -0
- package/dist/utils-B72MMWGL.cjs +120 -0
- package/dist/utils-ZXNPMV2B.js +120 -0
- package/dist/yaml-GU7KPIYY.cjs +10 -0
- package/dist/yaml-ODZRTFYX.js +10 -0
- package/package.json +1 -1
- package/bin/json5-KFL2546J.cjs +0 -10
- package/bin/json5-QOJRSU3X.js +0 -10
- package/bin/jsonc-VKQ5AIAI.cjs +0 -15
- package/bin/toml-QAWFQPIQ.cjs +0 -10
- package/bin/toml-U5TVWQLZ.js +0 -10
- package/bin/yaml-6KMQU4W5.cjs +0 -10
- package/bin/yaml-XP5UAV4Y.js +0 -10
- package/dist/json5-KFL2546J.cjs +0 -10
- package/dist/json5-QOJRSU3X.js +0 -10
- package/dist/jsonc-VKQ5AIAI.cjs +0 -15
- package/dist/toml-QAWFQPIQ.cjs +0 -10
- package/dist/toml-U5TVWQLZ.js +0 -10
- package/dist/yaml-6KMQU4W5.cjs +0 -10
- package/dist/yaml-XP5UAV4Y.js +0 -10
|
@@ -0,0 +1,105 @@
|
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
C,
|
|
3
3
|
N
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-54CFDIUE.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3C4I67HA.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/toml.mjs
|
|
11
11
|
init_esm_shims();
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
};
|