@storm-software/linting-tools 1.131.8 → 1.131.10
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 +2 -1
- package/bin/{chunk-SZKILJR4.cjs → chunk-3TS5TOSJ.cjs} +20 -20
- package/bin/{chunk-FDNMBJDJ.js → chunk-4KNQ2G53.js} +1 -1
- package/bin/{chunk-DHBV23JJ.cjs → chunk-57HKETJK.cjs} +6 -6
- package/bin/{chunk-TZKN5VL4.cjs → chunk-5SNRUCNM.cjs} +5 -5
- package/bin/{chunk-5IDZX5I5.js → chunk-5YVROVEW.js} +2 -2
- package/bin/{chunk-E6QVWJBK.js → chunk-6RY3FHZ3.js} +2 -2
- package/bin/{chunk-RU5SNMFV.js → chunk-APFVK62L.js} +1 -1
- package/bin/{chunk-SDXV7YPY.js → chunk-AXP2Q6BG.js} +2 -2
- package/bin/{chunk-XCWEWHEG.js → chunk-BZNDNMWQ.js} +2 -2
- package/bin/{chunk-GPQ3EXSW.js → chunk-CEPTY2J6.js} +2 -2
- package/bin/{chunk-4K3XYH76.js → chunk-CO4AUP6B.js} +1 -1
- package/bin/{chunk-WZRB6R42.cjs → chunk-IA2ACEV3.cjs} +2 -2
- package/bin/{chunk-33QPGVW3.cjs → chunk-KQLTXM5G.cjs} +14 -14
- package/bin/{chunk-2M57UESH.cjs → chunk-M5JTETW4.cjs} +5 -5
- package/bin/{chunk-N27QERDX.js → chunk-MF6MO6BG.js} +2 -2
- package/bin/{chunk-QY7MWVNZ.cjs → chunk-NSDZHJOF.cjs} +91 -91
- package/bin/{chunk-SCMHL3KF.cjs → chunk-Q4HEVJ5E.cjs} +5 -5
- package/bin/{chunk-76IR4C3I.cjs → chunk-SFDOHVGS.cjs} +2 -2
- package/bin/{chunk-HRF46AXJ.js → chunk-ULIDOEZ3.js} +2 -2
- package/bin/{chunk-GMYXKRA6.cjs → chunk-YAHTQIE3.cjs} +2 -2
- package/bin/{dist-FE6ZHWCB.cjs → dist-3ZR3XR5J.cjs} +206 -206
- package/bin/{dist-ZSMMV4WF.cjs → dist-OK3CE3BP.cjs} +6 -6
- package/bin/{dist-AW3GMB6E.js → dist-QKZCDPV6.js} +8 -8
- package/bin/{dist-BZG5DGPR.js → dist-VHQ2FMGW.js} +2 -2
- package/bin/{esm-SVEBN4MS.js → esm-P6QXSRZY.js} +1 -1
- package/bin/{esm-WKIWN5IZ.cjs → esm-YT4J7L4V.cjs} +4 -4
- package/bin/json5-BJUSMVO7.js +10 -0
- package/bin/json5-SYEOIYAO.cjs +10 -0
- package/bin/{jsonc-CIQZLV2E.js → jsonc-NE4OKOYH.js} +3 -3
- package/bin/jsonc-WAFR36NP.cjs +15 -0
- package/bin/lint.cjs +2562 -2527
- package/bin/lint.js +253 -220
- package/bin/{multipart-parser-SM5GXJIN.js → multipart-parser-MCIEAON7.js} +2 -2
- package/bin/{multipart-parser-Y5MVN3ZF.cjs → multipart-parser-MIC272EJ.cjs} +6 -6
- package/bin/{package-json-PWHSBGGM.js → package-json-2IA7FBCO.js} +64 -79
- package/bin/{package-json-RKY64HVK.cjs → package-json-SQWNLMCM.cjs} +157 -172
- package/bin/toml-6QZKNSFY.js +10 -0
- package/bin/toml-N6E2XBCF.cjs +10 -0
- package/bin/{utils-TMU2J7R4.js → utils-NZHBHNSV.js} +2 -2
- package/bin/{utils-MJN5KXMZ.cjs → utils-RS7CS6SE.cjs} +5 -5
- package/bin/yaml-MRB3DWC4.cjs +10 -0
- package/bin/yaml-X3ZLHGYD.js +10 -0
- package/package.json +2 -2
- package/bin/json5-GPKLZTTL.cjs +0 -10
- package/bin/json5-QNTLRXAX.js +0 -10
- package/bin/jsonc-VCPC456T.cjs +0 -15
- package/bin/toml-2RXZXXD7.js +0 -10
- package/bin/toml-55EAY7MF.cjs +0 -10
- package/bin/yaml-AAH742IK.cjs +0 -10
- package/bin/yaml-QA6BLBI6.js +0 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNSDZHJOFcjs = require('./chunk-NSDZHJOF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSFDOHVGScjs = require('./chunk-SFDOHVGS.cjs');
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
|
|
12
|
-
var require_ini =
|
|
12
|
+
var require_ini = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
13
13
|
"../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js"(exports) {
|
|
14
|
-
|
|
14
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
15
15
|
exports.parse = exports.decode = decode;
|
|
16
16
|
exports.stringify = exports.encode = encode;
|
|
17
17
|
exports.safe = safe;
|
|
@@ -172,10 +172,10 @@ var require_ini = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
// ../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js
|
|
175
|
-
var require_strip_json_comments =
|
|
175
|
+
var require_strip_json_comments = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
176
176
|
"../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js"(exports, module) {
|
|
177
177
|
"use strict";
|
|
178
|
-
|
|
178
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
179
179
|
var singleComment = 1;
|
|
180
180
|
var multiComment = 2;
|
|
181
181
|
function stripWithoutWhitespace() {
|
|
@@ -240,13 +240,13 @@ var require_strip_json_comments = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
// ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js
|
|
243
|
-
var require_utils =
|
|
243
|
+
var require_utils = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
244
244
|
"../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports) {
|
|
245
245
|
"use strict";
|
|
246
|
-
|
|
247
|
-
var fs =
|
|
246
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
247
|
+
var fs = _chunkSFDOHVGScjs.__require.call(void 0, "fs");
|
|
248
248
|
var ini = require_ini();
|
|
249
|
-
var path =
|
|
249
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
250
250
|
var stripJsonComments = require_strip_json_comments();
|
|
251
251
|
var parse = exports.parse = function(content) {
|
|
252
252
|
if (/^\s*{/.test(content))
|
|
@@ -315,10 +315,10 @@ var require_utils = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
315
315
|
});
|
|
316
316
|
|
|
317
317
|
// ../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js
|
|
318
|
-
var require_deep_extend =
|
|
318
|
+
var require_deep_extend = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
319
319
|
"../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js"(exports, module) {
|
|
320
320
|
"use strict";
|
|
321
|
-
|
|
321
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
322
322
|
function isSpecificValue(val) {
|
|
323
323
|
return val instanceof Buffer || val instanceof Date || val instanceof RegExp ? true : false;
|
|
324
324
|
}
|
|
@@ -398,10 +398,10 @@ var require_deep_extend = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
398
398
|
});
|
|
399
399
|
|
|
400
400
|
// ../../node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js
|
|
401
|
-
var require_minimist =
|
|
401
|
+
var require_minimist = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
402
402
|
"../../node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js"(exports, module) {
|
|
403
403
|
"use strict";
|
|
404
|
-
|
|
404
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
405
405
|
function hasKey(obj, keys) {
|
|
406
406
|
var o = obj;
|
|
407
407
|
keys.slice(0, -1).forEach(function(key2) {
|
|
@@ -621,11 +621,11 @@ var require_minimist = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
621
621
|
});
|
|
622
622
|
|
|
623
623
|
// ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/index.js
|
|
624
|
-
var require_rc =
|
|
624
|
+
var require_rc = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
625
625
|
"../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/index.js"(exports, module) {
|
|
626
|
-
|
|
626
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
627
627
|
var cc = require_utils();
|
|
628
|
-
var join =
|
|
628
|
+
var join = _chunkSFDOHVGScjs.__require.call(void 0, "path").join;
|
|
629
629
|
var deepExtend = require_deep_extend();
|
|
630
630
|
var etc = "/etc";
|
|
631
631
|
var win = process.platform === "win32";
|
|
@@ -673,10 +673,10 @@ var require_rc = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
673
673
|
});
|
|
674
674
|
|
|
675
675
|
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
676
|
-
var require_polyfills =
|
|
676
|
+
var require_polyfills = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
677
677
|
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module) {
|
|
678
|
-
|
|
679
|
-
var constants =
|
|
678
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
679
|
+
var constants = _chunkSFDOHVGScjs.__require.call(void 0, "constants");
|
|
680
680
|
var origCwd = process.cwd;
|
|
681
681
|
var cwd = null;
|
|
682
682
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -962,10 +962,10 @@ var require_polyfills = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
962
962
|
});
|
|
963
963
|
|
|
964
964
|
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
965
|
-
var require_legacy_streams =
|
|
965
|
+
var require_legacy_streams = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
966
966
|
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module) {
|
|
967
|
-
|
|
968
|
-
var Stream =
|
|
967
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
968
|
+
var Stream = _chunkSFDOHVGScjs.__require.call(void 0, "stream").Stream;
|
|
969
969
|
module.exports = legacy;
|
|
970
970
|
function legacy(fs) {
|
|
971
971
|
return {
|
|
@@ -1059,10 +1059,10 @@ var require_legacy_streams = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1059
1059
|
});
|
|
1060
1060
|
|
|
1061
1061
|
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js
|
|
1062
|
-
var require_clone =
|
|
1062
|
+
var require_clone = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1063
1063
|
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module) {
|
|
1064
1064
|
"use strict";
|
|
1065
|
-
|
|
1065
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1066
1066
|
module.exports = clone;
|
|
1067
1067
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
1068
1068
|
return obj.__proto__;
|
|
@@ -1083,14 +1083,14 @@ var require_clone = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
|
|
1085
1085
|
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
1086
|
-
var require_graceful_fs =
|
|
1086
|
+
var require_graceful_fs = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1087
1087
|
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
1088
|
-
|
|
1089
|
-
var fs =
|
|
1088
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1089
|
+
var fs = _chunkSFDOHVGScjs.__require.call(void 0, "fs");
|
|
1090
1090
|
var polyfills = require_polyfills();
|
|
1091
1091
|
var legacy = require_legacy_streams();
|
|
1092
1092
|
var clone = require_clone();
|
|
1093
|
-
var util =
|
|
1093
|
+
var util = _chunkSFDOHVGScjs.__require.call(void 0, "util");
|
|
1094
1094
|
var gracefulQueue;
|
|
1095
1095
|
var previousSymbol;
|
|
1096
1096
|
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
@@ -1149,7 +1149,7 @@ var require_graceful_fs = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1149
1149
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
1150
1150
|
process.on("exit", function() {
|
|
1151
1151
|
debug(fs[gracefulQueue]);
|
|
1152
|
-
|
|
1152
|
+
_chunkSFDOHVGScjs.__require.call(void 0, "assert").equal(fs[gracefulQueue].length, 0);
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
@@ -1454,10 +1454,10 @@ var require_graceful_fs = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1454
1454
|
});
|
|
1455
1455
|
|
|
1456
1456
|
// ../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/ca-file.js
|
|
1457
|
-
var require_ca_file =
|
|
1457
|
+
var require_ca_file = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1458
1458
|
"../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/ca-file.js"(exports) {
|
|
1459
1459
|
"use strict";
|
|
1460
|
-
|
|
1460
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1461
1461
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
1462
1462
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1463
1463
|
};
|
|
@@ -1481,10 +1481,10 @@ var require_ca_file = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1481
1481
|
});
|
|
1482
1482
|
|
|
1483
1483
|
// ../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/index.js
|
|
1484
|
-
var require_dist =
|
|
1484
|
+
var require_dist = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1485
1485
|
"../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/index.js"(exports) {
|
|
1486
1486
|
"use strict";
|
|
1487
|
-
|
|
1487
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1488
1488
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
1489
1489
|
if (k2 === void 0) k2 = k;
|
|
1490
1490
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -1507,9 +1507,9 @@ var require_dist = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1507
1507
|
});
|
|
1508
1508
|
|
|
1509
1509
|
// ../../node_modules/.pnpm/proto-list@1.2.4/node_modules/proto-list/proto-list.js
|
|
1510
|
-
var require_proto_list =
|
|
1510
|
+
var require_proto_list = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1511
1511
|
"../../node_modules/.pnpm/proto-list@1.2.4/node_modules/proto-list/proto-list.js"(exports, module) {
|
|
1512
|
-
|
|
1512
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1513
1513
|
module.exports = ProtoList;
|
|
1514
1514
|
function setProto(obj, proto) {
|
|
1515
1515
|
if (typeof Object.setPrototypeOf === "function")
|
|
@@ -1603,16 +1603,16 @@ var require_proto_list = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1603
1603
|
});
|
|
1604
1604
|
|
|
1605
1605
|
// ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
|
|
1606
|
-
var require_config_chain =
|
|
1606
|
+
var require_config_chain = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1607
1607
|
"../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js"(exports, module) {
|
|
1608
|
-
|
|
1608
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1609
1609
|
var ProtoList = require_proto_list();
|
|
1610
|
-
var path =
|
|
1611
|
-
var fs =
|
|
1610
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
1611
|
+
var fs = _chunkSFDOHVGScjs.__require.call(void 0, "fs");
|
|
1612
1612
|
var ini = require_ini();
|
|
1613
|
-
var EE =
|
|
1614
|
-
var url =
|
|
1615
|
-
var http =
|
|
1613
|
+
var EE = _chunkSFDOHVGScjs.__require.call(void 0, "events").EventEmitter;
|
|
1614
|
+
var url = _chunkSFDOHVGScjs.__require.call(void 0, "url");
|
|
1615
|
+
var http = _chunkSFDOHVGScjs.__require.call(void 0, "http");
|
|
1616
1616
|
var exports = module.exports = function() {
|
|
1617
1617
|
var args = [].slice.call(arguments), conf = new ConfigChain();
|
|
1618
1618
|
while (args.length) {
|
|
@@ -1847,9 +1847,9 @@ var require_config_chain = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1847
1847
|
});
|
|
1848
1848
|
|
|
1849
1849
|
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
1850
|
-
var require_envKeyToSetting =
|
|
1850
|
+
var require_envKeyToSetting = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1851
1851
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js"(exports, module) {
|
|
1852
|
-
|
|
1852
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1853
1853
|
module.exports = function(x) {
|
|
1854
1854
|
const colonIndex = x.indexOf(":");
|
|
1855
1855
|
if (colonIndex === -1) {
|
|
@@ -1872,10 +1872,10 @@ var require_envKeyToSetting = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1872
1872
|
});
|
|
1873
1873
|
|
|
1874
1874
|
// ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/env-replace.js
|
|
1875
|
-
var require_env_replace =
|
|
1875
|
+
var require_env_replace = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1876
1876
|
"../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/env-replace.js"(exports) {
|
|
1877
1877
|
"use strict";
|
|
1878
|
-
|
|
1878
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1879
1879
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1880
1880
|
exports.envReplace = void 0;
|
|
1881
1881
|
var ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
|
|
@@ -1908,10 +1908,10 @@ var require_env_replace = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1908
1908
|
});
|
|
1909
1909
|
|
|
1910
1910
|
// ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/index.js
|
|
1911
|
-
var require_dist2 =
|
|
1911
|
+
var require_dist2 = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1912
1912
|
"../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/index.js"(exports) {
|
|
1913
1913
|
"use strict";
|
|
1914
|
-
|
|
1914
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1915
1915
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1916
1916
|
exports.envReplace = void 0;
|
|
1917
1917
|
var env_replace_1 = require_env_replace();
|
|
@@ -1922,12 +1922,12 @@ var require_dist2 = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
1922
1922
|
});
|
|
1923
1923
|
|
|
1924
1924
|
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js
|
|
1925
|
-
var require_util =
|
|
1925
|
+
var require_util = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
1926
1926
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
|
|
1927
1927
|
"use strict";
|
|
1928
|
-
|
|
1929
|
-
var fs =
|
|
1930
|
-
var path =
|
|
1928
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
1929
|
+
var fs = _chunkSFDOHVGScjs.__require.call(void 0, "fs");
|
|
1930
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
1931
1931
|
var { envReplace } = require_dist2();
|
|
1932
1932
|
var parseKey = (key) => {
|
|
1933
1933
|
if (typeof key !== "string") {
|
|
@@ -2028,13 +2028,13 @@ var require_util = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2028
2028
|
});
|
|
2029
2029
|
|
|
2030
2030
|
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js
|
|
2031
|
-
var require_types =
|
|
2031
|
+
var require_types = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
2032
2032
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
|
|
2033
2033
|
"use strict";
|
|
2034
|
-
|
|
2035
|
-
var path =
|
|
2036
|
-
var Stream =
|
|
2037
|
-
var url =
|
|
2034
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2035
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
2036
|
+
var Stream = _chunkSFDOHVGScjs.__require.call(void 0, "stream").Stream;
|
|
2037
|
+
var url = _chunkSFDOHVGScjs.__require.call(void 0, "url");
|
|
2038
2038
|
var Umask = () => {
|
|
2039
2039
|
};
|
|
2040
2040
|
var getLocalAddresses = () => [];
|
|
@@ -2168,13 +2168,13 @@ var require_types = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2168
2168
|
});
|
|
2169
2169
|
|
|
2170
2170
|
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
2171
|
-
var require_conf =
|
|
2171
|
+
var require_conf = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
2172
2172
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module) {
|
|
2173
2173
|
"use strict";
|
|
2174
|
-
|
|
2174
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2175
2175
|
var { readCAFileSync } = require_dist();
|
|
2176
|
-
var fs =
|
|
2177
|
-
var path =
|
|
2176
|
+
var fs = _chunkSFDOHVGScjs.__require.call(void 0, "fs");
|
|
2177
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
2178
2178
|
var { ConfigChain } = require_config_chain();
|
|
2179
2179
|
var envKeyToSetting = require_envKeyToSetting();
|
|
2180
2180
|
var util = require_util();
|
|
@@ -2329,12 +2329,12 @@ var require_conf = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2329
2329
|
});
|
|
2330
2330
|
|
|
2331
2331
|
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
2332
|
-
var require_defaults =
|
|
2332
|
+
var require_defaults = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
2333
2333
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js"(exports) {
|
|
2334
2334
|
"use strict";
|
|
2335
|
-
|
|
2336
|
-
var os =
|
|
2337
|
-
var path =
|
|
2335
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2336
|
+
var os = _chunkSFDOHVGScjs.__require.call(void 0, "os");
|
|
2337
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
2338
2338
|
var temp = os.tmpdir();
|
|
2339
2339
|
var uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
2340
2340
|
var hasUnicode = () => true;
|
|
@@ -2498,11 +2498,11 @@ var require_defaults = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2498
2498
|
});
|
|
2499
2499
|
|
|
2500
2500
|
// ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js
|
|
2501
|
-
var require_npm_conf =
|
|
2501
|
+
var require_npm_conf = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
2502
2502
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js"(exports, module) {
|
|
2503
2503
|
"use strict";
|
|
2504
|
-
|
|
2505
|
-
var path =
|
|
2504
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2505
|
+
var path = _chunkSFDOHVGScjs.__require.call(void 0, "path");
|
|
2506
2506
|
var Conf = require_conf();
|
|
2507
2507
|
var _defaults = require_defaults();
|
|
2508
2508
|
module.exports = (opts, types, defaults) => {
|
|
@@ -2510,11 +2510,11 @@ var require_npm_conf = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2510
2510
|
conf.add(Object.assign({}, opts), "cli");
|
|
2511
2511
|
const warnings = [];
|
|
2512
2512
|
let failedToLoadBuiltInConfig = false;
|
|
2513
|
-
if (
|
|
2514
|
-
const paths =
|
|
2513
|
+
if (_chunkSFDOHVGScjs.__require.resolve.paths) {
|
|
2514
|
+
const paths = _chunkSFDOHVGScjs.__require.resolve.paths("npm");
|
|
2515
2515
|
let npmPath;
|
|
2516
2516
|
try {
|
|
2517
|
-
npmPath =
|
|
2517
|
+
npmPath = _chunkSFDOHVGScjs.__require.resolve("npm", { paths: paths.slice(-1) });
|
|
2518
2518
|
} catch (error) {
|
|
2519
2519
|
failedToLoadBuiltInConfig = true;
|
|
2520
2520
|
}
|
|
@@ -2563,9 +2563,9 @@ var require_npm_conf = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2563
2563
|
});
|
|
2564
2564
|
|
|
2565
2565
|
// ../../node_modules/.pnpm/registry-auth-token@5.1.0/node_modules/registry-auth-token/index.js
|
|
2566
|
-
var require_registry_auth_token =
|
|
2566
|
+
var require_registry_auth_token = _chunkSFDOHVGScjs.__commonJS.call(void 0, {
|
|
2567
2567
|
"../../node_modules/.pnpm/registry-auth-token@5.1.0/node_modules/registry-auth-token/index.js"(exports, module) {
|
|
2568
|
-
|
|
2568
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2569
2569
|
var npmConf = require_npm_conf();
|
|
2570
2570
|
var tokenKey = ":_authToken";
|
|
2571
2571
|
var legacyTokenKey = ":_auth";
|
|
@@ -2680,23 +2680,23 @@ var require_registry_auth_token = _chunk76IR4C3Icjs.__commonJS.call(void 0, {
|
|
|
2680
2680
|
});
|
|
2681
2681
|
|
|
2682
2682
|
// ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
|
|
2683
|
-
|
|
2683
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2684
2684
|
|
|
2685
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2686
|
-
|
|
2685
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/index.js
|
|
2686
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2687
2687
|
|
|
2688
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2689
|
-
|
|
2688
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/Ky.js
|
|
2689
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2690
2690
|
|
|
2691
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2692
|
-
|
|
2691
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/HTTPError.js
|
|
2692
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2693
2693
|
var HTTPError = class extends Error {
|
|
2694
2694
|
|
|
2695
2695
|
|
|
2696
2696
|
|
|
2697
2697
|
constructor(response, request, options) {
|
|
2698
2698
|
const code = response.status || response.status === 0 ? response.status : "";
|
|
2699
|
-
const title = response.statusText
|
|
2699
|
+
const title = _nullishCoalesce(response.statusText, () => ( ""));
|
|
2700
2700
|
const status = `${code} ${title}`.trim();
|
|
2701
2701
|
const reason = status ? `status code ${status}` : "an unknown error";
|
|
2702
2702
|
super(`Request failed with ${reason}: ${request.method} ${request.url}`);
|
|
@@ -2707,8 +2707,8 @@ var HTTPError = class extends Error {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
};
|
|
2709
2709
|
|
|
2710
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2711
|
-
|
|
2710
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/TimeoutError.js
|
|
2711
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2712
2712
|
var TimeoutError = class extends Error {
|
|
2713
2713
|
|
|
2714
2714
|
constructor(request) {
|
|
@@ -2718,11 +2718,11 @@ var TimeoutError = class extends Error {
|
|
|
2718
2718
|
}
|
|
2719
2719
|
};
|
|
2720
2720
|
|
|
2721
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2722
|
-
|
|
2721
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/body.js
|
|
2722
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2723
2723
|
|
|
2724
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2725
|
-
|
|
2724
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/constants.js
|
|
2725
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2726
2726
|
var supportsRequestStreams = (() => {
|
|
2727
2727
|
let duplexAccessed = false;
|
|
2728
2728
|
let hasContentType = false;
|
|
@@ -2801,7 +2801,7 @@ var requestOptionsRegistry = {
|
|
|
2801
2801
|
priority: true
|
|
2802
2802
|
};
|
|
2803
2803
|
|
|
2804
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2804
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/body.js
|
|
2805
2805
|
var getBodySize = (body) => {
|
|
2806
2806
|
if (!body) {
|
|
2807
2807
|
return 0;
|
|
@@ -2840,90 +2840,68 @@ var getBodySize = (body) => {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
return 0;
|
|
2842
2842
|
};
|
|
2843
|
-
var
|
|
2844
|
-
|
|
2843
|
+
var withProgress = (stream, totalBytes, onProgress) => {
|
|
2844
|
+
let previousChunk;
|
|
2845
2845
|
let transferredBytes = 0;
|
|
2846
|
+
return stream.pipeThrough(new TransformStream({
|
|
2847
|
+
transform(currentChunk, controller) {
|
|
2848
|
+
controller.enqueue(currentChunk);
|
|
2849
|
+
if (previousChunk) {
|
|
2850
|
+
transferredBytes += previousChunk.byteLength;
|
|
2851
|
+
let percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
|
|
2852
|
+
if (percent >= 1) {
|
|
2853
|
+
percent = 1 - Number.EPSILON;
|
|
2854
|
+
}
|
|
2855
|
+
_optionalChain([onProgress, 'optionalCall', _3 => _3({ percent, totalBytes: Math.max(totalBytes, transferredBytes), transferredBytes }, previousChunk)]);
|
|
2856
|
+
}
|
|
2857
|
+
previousChunk = currentChunk;
|
|
2858
|
+
},
|
|
2859
|
+
flush() {
|
|
2860
|
+
if (previousChunk) {
|
|
2861
|
+
transferredBytes += previousChunk.byteLength;
|
|
2862
|
+
_optionalChain([onProgress, 'optionalCall', _4 => _4({ percent: 1, totalBytes: Math.max(totalBytes, transferredBytes), transferredBytes }, previousChunk)]);
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
}));
|
|
2866
|
+
};
|
|
2867
|
+
var streamResponse = (response, onDownloadProgress) => {
|
|
2868
|
+
if (!response.body) {
|
|
2869
|
+
return response;
|
|
2870
|
+
}
|
|
2846
2871
|
if (response.status === 204) {
|
|
2847
|
-
if (onDownloadProgress) {
|
|
2848
|
-
onDownloadProgress({ percent: 1, totalBytes, transferredBytes }, new Uint8Array());
|
|
2849
|
-
}
|
|
2850
2872
|
return new Response(null, {
|
|
2851
2873
|
status: response.status,
|
|
2852
2874
|
statusText: response.statusText,
|
|
2853
2875
|
headers: response.headers
|
|
2854
2876
|
});
|
|
2855
2877
|
}
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
const reader = response.body.getReader();
|
|
2859
|
-
if (onDownloadProgress) {
|
|
2860
|
-
onDownloadProgress({ percent: 0, transferredBytes: 0, totalBytes }, new Uint8Array());
|
|
2861
|
-
}
|
|
2862
|
-
async function read() {
|
|
2863
|
-
const { done, value } = await reader.read();
|
|
2864
|
-
if (done) {
|
|
2865
|
-
controller.close();
|
|
2866
|
-
return;
|
|
2867
|
-
}
|
|
2868
|
-
if (onDownloadProgress) {
|
|
2869
|
-
transferredBytes += value.byteLength;
|
|
2870
|
-
const percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
|
|
2871
|
-
onDownloadProgress({ percent, transferredBytes, totalBytes }, value);
|
|
2872
|
-
}
|
|
2873
|
-
controller.enqueue(value);
|
|
2874
|
-
await read();
|
|
2875
|
-
}
|
|
2876
|
-
await read();
|
|
2877
|
-
}
|
|
2878
|
-
}), {
|
|
2878
|
+
const totalBytes = Number(response.headers.get("content-length")) || 0;
|
|
2879
|
+
return new Response(withProgress(response.body, totalBytes, onDownloadProgress), {
|
|
2879
2880
|
status: response.status,
|
|
2880
2881
|
statusText: response.statusText,
|
|
2881
2882
|
headers: response.headers
|
|
2882
2883
|
});
|
|
2883
2884
|
};
|
|
2884
2885
|
var streamRequest = (request, onUploadProgress, originalBody) => {
|
|
2886
|
+
if (!request.body) {
|
|
2887
|
+
return request;
|
|
2888
|
+
}
|
|
2885
2889
|
const totalBytes = getBodySize(_nullishCoalesce(originalBody, () => ( request.body)));
|
|
2886
|
-
let transferredBytes = 0;
|
|
2887
2890
|
return new Request(request, {
|
|
2888
2891
|
// @ts-expect-error - Types are outdated.
|
|
2889
2892
|
duplex: "half",
|
|
2890
|
-
body:
|
|
2891
|
-
async start(controller) {
|
|
2892
|
-
const reader = request.body instanceof ReadableStream ? request.body.getReader() : new Response("").body.getReader();
|
|
2893
|
-
async function read() {
|
|
2894
|
-
const { done, value } = await reader.read();
|
|
2895
|
-
if (done) {
|
|
2896
|
-
if (onUploadProgress) {
|
|
2897
|
-
onUploadProgress({ percent: 1, transferredBytes, totalBytes: Math.max(totalBytes, transferredBytes) }, new Uint8Array());
|
|
2898
|
-
}
|
|
2899
|
-
controller.close();
|
|
2900
|
-
return;
|
|
2901
|
-
}
|
|
2902
|
-
transferredBytes += value.byteLength;
|
|
2903
|
-
let percent = totalBytes === 0 ? 0 : transferredBytes / totalBytes;
|
|
2904
|
-
if (totalBytes < transferredBytes || percent === 1) {
|
|
2905
|
-
percent = 0.99;
|
|
2906
|
-
}
|
|
2907
|
-
if (onUploadProgress) {
|
|
2908
|
-
onUploadProgress({ percent: Number(percent.toFixed(2)), transferredBytes, totalBytes }, value);
|
|
2909
|
-
}
|
|
2910
|
-
controller.enqueue(value);
|
|
2911
|
-
await read();
|
|
2912
|
-
}
|
|
2913
|
-
await read();
|
|
2914
|
-
}
|
|
2915
|
-
})
|
|
2893
|
+
body: withProgress(request.body, totalBytes, onUploadProgress)
|
|
2916
2894
|
});
|
|
2917
2895
|
};
|
|
2918
2896
|
|
|
2919
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2920
|
-
|
|
2897
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/merge.js
|
|
2898
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2921
2899
|
|
|
2922
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2923
|
-
|
|
2900
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/is.js
|
|
2901
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2924
2902
|
var isObject = (value) => value !== null && typeof value === "object";
|
|
2925
2903
|
|
|
2926
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2904
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/merge.js
|
|
2927
2905
|
var validateAndMerge = (...sources) => {
|
|
2928
2906
|
for (const source of sources) {
|
|
2929
2907
|
if ((!isObject(source) || Array.isArray(source)) && source !== void 0) {
|
|
@@ -2984,8 +2962,8 @@ var deepMerge = (...sources) => {
|
|
|
2984
2962
|
return returnValue;
|
|
2985
2963
|
};
|
|
2986
2964
|
|
|
2987
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
2988
|
-
|
|
2965
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/normalize.js
|
|
2966
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
2989
2967
|
var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
2990
2968
|
var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
|
|
2991
2969
|
var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
|
|
@@ -3018,8 +2996,8 @@ var normalizeRetryOptions = (retry = {}) => {
|
|
|
3018
2996
|
};
|
|
3019
2997
|
};
|
|
3020
2998
|
|
|
3021
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
3022
|
-
|
|
2999
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/timeout.js
|
|
3000
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
3023
3001
|
async function timeout(request, init, abortController, options) {
|
|
3024
3002
|
return new Promise((resolve, reject) => {
|
|
3025
3003
|
const timeoutId = setTimeout(() => {
|
|
@@ -3034,8 +3012,8 @@ async function timeout(request, init, abortController, options) {
|
|
|
3034
3012
|
});
|
|
3035
3013
|
}
|
|
3036
3014
|
|
|
3037
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
3038
|
-
|
|
3015
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/delay.js
|
|
3016
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
3039
3017
|
async function delay(ms, { signal }) {
|
|
3040
3018
|
return new Promise((resolve, reject) => {
|
|
3041
3019
|
if (signal) {
|
|
@@ -3047,14 +3025,14 @@ async function delay(ms, { signal }) {
|
|
|
3047
3025
|
reject(signal.reason);
|
|
3048
3026
|
}
|
|
3049
3027
|
const timeoutId = setTimeout(() => {
|
|
3050
|
-
_optionalChain([signal, 'optionalAccess',
|
|
3028
|
+
_optionalChain([signal, 'optionalAccess', _5 => _5.removeEventListener, 'call', _6 => _6("abort", abortHandler)]);
|
|
3051
3029
|
resolve();
|
|
3052
3030
|
}, ms);
|
|
3053
3031
|
});
|
|
3054
3032
|
}
|
|
3055
3033
|
|
|
3056
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
3057
|
-
|
|
3034
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/options.js
|
|
3035
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
3058
3036
|
var findUnknownOptions = (request, options) => {
|
|
3059
3037
|
const unknownOptions = {};
|
|
3060
3038
|
for (const key in options) {
|
|
@@ -3083,7 +3061,7 @@ var hasSearchParameters = (search) => {
|
|
|
3083
3061
|
return Boolean(search);
|
|
3084
3062
|
};
|
|
3085
3063
|
|
|
3086
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
3064
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/Ky.js
|
|
3087
3065
|
var Ky = (_class = class _Ky {
|
|
3088
3066
|
static create(input, options) {
|
|
3089
3067
|
const ky2 = new _Ky(input, options);
|
|
@@ -3120,12 +3098,18 @@ var Ky = (_class = class _Ky {
|
|
|
3120
3098
|
};
|
|
3121
3099
|
const isRetriableMethod = ky2._options.retry.methods.includes(ky2.request.method.toLowerCase());
|
|
3122
3100
|
const result = (isRetriableMethod ? ky2._retry(function_) : function_()).finally(async () => {
|
|
3101
|
+
const originalRequest = ky2._originalRequest;
|
|
3102
|
+
const cleanupPromises = [];
|
|
3103
|
+
if (originalRequest && !originalRequest.bodyUsed) {
|
|
3104
|
+
cleanupPromises.push(_optionalChain([originalRequest, 'access', _7 => _7.body, 'optionalAccess', _8 => _8.cancel, 'call', _9 => _9()]));
|
|
3105
|
+
}
|
|
3123
3106
|
if (!ky2.request.bodyUsed) {
|
|
3124
|
-
|
|
3107
|
+
cleanupPromises.push(_optionalChain([ky2, 'access', _10 => _10.request, 'access', _11 => _11.body, 'optionalAccess', _12 => _12.cancel, 'call', _13 => _13()]));
|
|
3125
3108
|
}
|
|
3109
|
+
await Promise.all(cleanupPromises);
|
|
3126
3110
|
});
|
|
3127
3111
|
for (const [type, mimeType] of Object.entries(responseTypes)) {
|
|
3128
|
-
if (type === "bytes" && typeof _optionalChain([globalThis, 'access',
|
|
3112
|
+
if (type === "bytes" && typeof _optionalChain([globalThis, 'access', _14 => _14.Response, 'optionalAccess', _15 => _15.prototype, 'optionalAccess', _16 => _16.bytes]) !== "function") {
|
|
3129
3113
|
continue;
|
|
3130
3114
|
}
|
|
3131
3115
|
result[type] = async () => {
|
|
@@ -3161,6 +3145,7 @@ var Ky = (_class = class _Ky {
|
|
|
3161
3145
|
__init() {this._retryCount = 0}
|
|
3162
3146
|
|
|
3163
3147
|
|
|
3148
|
+
|
|
3164
3149
|
// eslint-disable-next-line complexity
|
|
3165
3150
|
constructor(input, options = {}) {;_class.prototype.__init.call(this);
|
|
3166
3151
|
this._input = input;
|
|
@@ -3202,7 +3187,7 @@ var Ky = (_class = class _Ky {
|
|
|
3202
3187
|
this._options.duplex = "half";
|
|
3203
3188
|
}
|
|
3204
3189
|
if (this._options.json !== void 0) {
|
|
3205
|
-
this._options.body = _nullishCoalesce(_optionalChain([this, 'access',
|
|
3190
|
+
this._options.body = _nullishCoalesce(_optionalChain([this, 'access', _17 => _17._options, 'access', _18 => _18.stringifyJson, 'optionalCall', _19 => _19(this._options.json)]), () => ( JSON.stringify(this._options.json)));
|
|
3206
3191
|
this._options.headers.set("content-type", _nullishCoalesce(this._options.headers.get("content-type"), () => ( "application/json")));
|
|
3207
3192
|
}
|
|
3208
3193
|
this.request = new globalThis.Request(this._input, this._options);
|
|
@@ -3296,16 +3281,16 @@ var Ky = (_class = class _Ky {
|
|
|
3296
3281
|
}
|
|
3297
3282
|
}
|
|
3298
3283
|
const nonRequestOptions = findUnknownOptions(this.request, this._options);
|
|
3299
|
-
|
|
3300
|
-
this.request =
|
|
3284
|
+
this._originalRequest = this.request;
|
|
3285
|
+
this.request = this._originalRequest.clone();
|
|
3301
3286
|
if (this._options.timeout === false) {
|
|
3302
|
-
return this._options.fetch(
|
|
3287
|
+
return this._options.fetch(this._originalRequest, nonRequestOptions);
|
|
3303
3288
|
}
|
|
3304
|
-
return timeout(
|
|
3289
|
+
return timeout(this._originalRequest, nonRequestOptions, this.abortController, this._options);
|
|
3305
3290
|
}
|
|
3306
3291
|
}, _class);
|
|
3307
3292
|
|
|
3308
|
-
// ../../node_modules/.pnpm/ky@1.
|
|
3293
|
+
// ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/index.js
|
|
3309
3294
|
var createInstance = (defaults) => {
|
|
3310
3295
|
const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
|
|
3311
3296
|
for (const method of requestMethods) {
|
|
@@ -3325,8 +3310,8 @@ var ky = createInstance();
|
|
|
3325
3310
|
var distribution_default = ky;
|
|
3326
3311
|
|
|
3327
3312
|
// ../../node_modules/.pnpm/registry-url@6.0.1/node_modules/registry-url/index.js
|
|
3328
|
-
|
|
3329
|
-
var import_rc =
|
|
3313
|
+
_chunkSFDOHVGScjs.init_cjs_shims.call(void 0, );
|
|
3314
|
+
var import_rc = _chunkSFDOHVGScjs.__toESM.call(void 0, require_rc(), 1);
|
|
3330
3315
|
function registryUrl(scope) {
|
|
3331
3316
|
const result = (0, import_rc.default)("npm", { registry: "https://registry.npmjs.org/" });
|
|
3332
3317
|
const url = result[`${scope}:registry`] || result.config_registry || result.registry;
|
|
@@ -3334,8 +3319,8 @@ function registryUrl(scope) {
|
|
|
3334
3319
|
}
|
|
3335
3320
|
|
|
3336
3321
|
// ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
|
|
3337
|
-
var import_registry_auth_token =
|
|
3338
|
-
var import_semver =
|
|
3322
|
+
var import_registry_auth_token = _chunkSFDOHVGScjs.__toESM.call(void 0, require_registry_auth_token(), 1);
|
|
3323
|
+
var import_semver = _chunkSFDOHVGScjs.__toESM.call(void 0, _chunkNSDZHJOFcjs.require_semver.call(void 0, ), 1);
|
|
3339
3324
|
var PackageNotFoundError = class extends Error {
|
|
3340
3325
|
constructor(packageName) {
|
|
3341
3326
|
super(`Package \`${packageName}\` could not be found`);
|
|
@@ -3368,7 +3353,7 @@ async function packageJson(packageName, options = {}) {
|
|
|
3368
3353
|
try {
|
|
3369
3354
|
data = await distribution_default(packageUrl, { headers, keepalive: true }).json();
|
|
3370
3355
|
} catch (error) {
|
|
3371
|
-
if (_optionalChain([error, 'optionalAccess',
|
|
3356
|
+
if (_optionalChain([error, 'optionalAccess', _20 => _20.response, 'optionalAccess', _21 => _21.status]) === 404) {
|
|
3372
3357
|
throw new PackageNotFoundError(packageName);
|
|
3373
3358
|
}
|
|
3374
3359
|
throw error;
|