@storm-software/linting-tools 1.119.5 → 1.119.7
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-VLPTUXW4.cjs → bin/chunk-3U2JI7F4.cjs} +204 -204
- package/{dist/chunk-5ZMWUMUC.js → bin/chunk-57CQKW3U.js} +2 -2
- package/{dist/chunk-U4UFTI6B.js → bin/chunk-7TD5A5D7.js} +1 -1
- package/bin/{chunk-F3W33PFH.cjs → chunk-B42TOUVC.cjs} +138 -138
- package/bin/{chunk-B3RHPIJP.js → chunk-CPUOXQVO.js} +1 -1
- package/bin/{chunk-3FBUAA7Z.cjs → chunk-DZ4CTAMG.cjs} +40 -40
- package/bin/{chunk-4ZFXOAID.cjs → chunk-HP3XCXQR.cjs} +11 -11
- package/bin/{chunk-SXVDNBBQ.js → chunk-KANXUMWW.js} +2 -2
- package/bin/{chunk-DIIWBHCG.js → chunk-KZMPPMLI.js} +2 -2
- package/{dist/chunk-XQETQP2H.cjs → bin/chunk-MEU6Q2ZZ.cjs} +152 -152
- package/bin/{chunk-Q2UNFIZN.js → chunk-NENGWJYA.js} +2 -2
- package/bin/{chunk-GPU42JLK.cjs → chunk-OKHMCCMQ.cjs} +2 -2
- package/{dist/chunk-5WDTXQYE.js → bin/chunk-P36IQ2HN.js} +2 -2
- package/{dist/chunk-FXD4YL75.cjs → bin/chunk-QB4RY2O2.cjs} +32 -32
- package/bin/{chunk-6PBDI6OA.cjs → chunk-SUCHSNMD.cjs} +388 -388
- package/bin/{chunk-N6P3NGIL.cjs → chunk-XV6IBRMZ.cjs} +44 -44
- package/{dist/chunk-Y4YNZAVE.js → bin/chunk-YJD2T3D3.js} +2 -2
- package/bin/{chunk-L2GU4VVI.js → chunk-ZKD3DEX3.js} +2 -2
- package/bin/{dist-2OO6NCYC.js → dist-LAXHN42C.js} +8 -8
- package/bin/{dist-SA37GSFD.cjs → dist-SF3G6LKO.cjs} +989 -989
- package/{dist/esm-667BEMXO.cjs → bin/esm-6CGCFXB6.cjs} +48 -51
- package/bin/{esm-OOYUY4AM.js → esm-YESBDQQ2.js} +3 -6
- package/bin/json5-KFL2546J.cjs +10 -0
- package/bin/json5-QOJRSU3X.js +10 -0
- package/bin/jsonc-VKQ5AIAI.cjs +15 -0
- package/{dist/jsonc-3GXFMZE7.js → bin/jsonc-YCDSJSS2.js} +3 -3
- package/bin/lint.cjs +26925 -26833
- package/bin/lint.js +372 -280
- package/bin/{multipart-parser-HBA2WX6Y.js → multipart-parser-HZ46XN43.js} +2 -2
- package/bin/{multipart-parser-VQZG3CLL.cjs → multipart-parser-JXBY73TG.cjs} +11 -11
- package/bin/{package-json-TMUUO3QU.cjs → package-json-DOZ42I7U.cjs} +248 -248
- package/bin/{package-json-2QZEJOJE.js → package-json-RFV5FQSF.js} +2 -2
- package/bin/toml-QAWFQPIQ.cjs +10 -0
- package/bin/toml-U5TVWQLZ.js +10 -0
- package/bin/yaml-6KMQU4W5.cjs +10 -0
- package/bin/yaml-XP5UAV4Y.js +10 -0
- package/{bin/chunk-VLPTUXW4.cjs → dist/chunk-3U2JI7F4.cjs} +204 -204
- package/{bin/chunk-5ZMWUMUC.js → dist/chunk-57CQKW3U.js} +2 -2
- package/{bin/chunk-U4UFTI6B.js → dist/chunk-7TD5A5D7.js} +1 -1
- package/dist/{chunk-F3W33PFH.cjs → chunk-B42TOUVC.cjs} +138 -138
- package/dist/{chunk-B3RHPIJP.js → chunk-CPUOXQVO.js} +1 -1
- package/dist/{chunk-3FBUAA7Z.cjs → chunk-DZ4CTAMG.cjs} +40 -40
- package/dist/{chunk-4ZFXOAID.cjs → chunk-HP3XCXQR.cjs} +11 -11
- package/dist/{chunk-SXVDNBBQ.js → chunk-KANXUMWW.js} +2 -2
- package/dist/{chunk-DIIWBHCG.js → chunk-KZMPPMLI.js} +2 -2
- package/{bin/chunk-XQETQP2H.cjs → dist/chunk-MEU6Q2ZZ.cjs} +152 -152
- package/dist/{chunk-Q2UNFIZN.js → chunk-NENGWJYA.js} +2 -2
- package/dist/{chunk-GPU42JLK.cjs → chunk-OKHMCCMQ.cjs} +2 -2
- package/{bin/chunk-5WDTXQYE.js → dist/chunk-P36IQ2HN.js} +2 -2
- package/{bin/chunk-FXD4YL75.cjs → dist/chunk-QB4RY2O2.cjs} +32 -32
- package/dist/{chunk-6PBDI6OA.cjs → chunk-SUCHSNMD.cjs} +388 -388
- package/dist/{chunk-N6P3NGIL.cjs → chunk-XV6IBRMZ.cjs} +44 -44
- package/{bin/chunk-Y4YNZAVE.js → dist/chunk-YJD2T3D3.js} +2 -2
- package/dist/{chunk-L2GU4VVI.js → chunk-ZKD3DEX3.js} +2 -2
- package/dist/{dist-2OO6NCYC.js → dist-LAXHN42C.js} +8 -8
- package/dist/{dist-SA37GSFD.cjs → dist-SF3G6LKO.cjs} +989 -989
- package/{bin/esm-667BEMXO.cjs → dist/esm-6CGCFXB6.cjs} +48 -51
- package/dist/{esm-OOYUY4AM.js → esm-YESBDQQ2.js} +3 -6
- package/dist/index.cjs +26921 -26829
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +372 -280
- package/dist/json5-KFL2546J.cjs +10 -0
- package/dist/json5-QOJRSU3X.js +10 -0
- package/dist/jsonc-VKQ5AIAI.cjs +15 -0
- package/{bin/jsonc-3GXFMZE7.js → dist/jsonc-YCDSJSS2.js} +3 -3
- package/dist/{multipart-parser-HBA2WX6Y.js → multipart-parser-HZ46XN43.js} +2 -2
- package/dist/{multipart-parser-VQZG3CLL.cjs → multipart-parser-JXBY73TG.cjs} +11 -11
- package/dist/{package-json-TMUUO3QU.cjs → package-json-DOZ42I7U.cjs} +248 -248
- package/dist/{package-json-2QZEJOJE.js → package-json-RFV5FQSF.js} +2 -2
- package/dist/toml-QAWFQPIQ.cjs +10 -0
- package/dist/toml-U5TVWQLZ.js +10 -0
- package/dist/yaml-6KMQU4W5.cjs +10 -0
- package/dist/yaml-XP5UAV4Y.js +10 -0
- package/package.json +1 -1
- package/bin/json5-JQ2O4J4G.js +0 -10
- package/bin/json5-WPCE27KG.cjs +0 -10
- package/bin/jsonc-ZOZPUZJB.cjs +0 -15
- package/bin/toml-I5O5TNJR.js +0 -10
- package/bin/toml-XMCGOTPR.cjs +0 -10
- package/bin/yaml-52IG2XK6.js +0 -10
- package/bin/yaml-XNJPDOFN.cjs +0 -10
- package/dist/json5-JQ2O4J4G.js +0 -10
- package/dist/json5-WPCE27KG.cjs +0 -10
- package/dist/jsonc-ZOZPUZJB.cjs +0 -15
- package/dist/toml-I5O5TNJR.js +0 -10
- package/dist/toml-XMCGOTPR.cjs +0 -10
- package/dist/yaml-52IG2XK6.js +0 -10
- package/dist/yaml-XNJPDOFN.cjs +0 -10
package/bin/lint.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
require_clean,
|
|
4
4
|
require_semver,
|
|
5
5
|
require_valid
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CPUOXQVO.js";
|
|
7
7
|
import {
|
|
8
8
|
basename,
|
|
9
9
|
be,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
join,
|
|
16
16
|
readPackageJSON,
|
|
17
17
|
resolve
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-YJD2T3D3.js";
|
|
19
|
+
import "./chunk-KANXUMWW.js";
|
|
20
|
+
import "./chunk-57CQKW3U.js";
|
|
21
|
+
import "./chunk-KZMPPMLI.js";
|
|
22
|
+
import "./chunk-P36IQ2HN.js";
|
|
23
|
+
import "./chunk-7TD5A5D7.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__dirname,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
__toCommonJS,
|
|
34
34
|
__toESM,
|
|
35
35
|
init_esm_shims
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NENGWJYA.js";
|
|
37
37
|
|
|
38
38
|
// ../../node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.cjs
|
|
39
39
|
var require_jiti = __commonJS({
|
|
@@ -35319,9 +35319,9 @@ var require_source = __commonJS({
|
|
|
35319
35319
|
}
|
|
35320
35320
|
});
|
|
35321
35321
|
|
|
35322
|
-
// ../../node_modules/.pnpm/find-value@1.0.
|
|
35322
|
+
// ../../node_modules/.pnpm/find-value@1.0.13/node_modules/find-value/lib/index.js
|
|
35323
35323
|
var require_lib = __commonJS({
|
|
35324
|
-
"../../node_modules/.pnpm/find-value@1.0.
|
|
35324
|
+
"../../node_modules/.pnpm/find-value@1.0.13/node_modules/find-value/lib/index.js"(exports, module) {
|
|
35325
35325
|
"use strict";
|
|
35326
35326
|
init_esm_shims();
|
|
35327
35327
|
module.exports = /* @__PURE__ */ __name(function findValue(obj, path36) {
|
|
@@ -35558,9 +35558,9 @@ var require_lib2 = __commonJS({
|
|
|
35558
35558
|
}
|
|
35559
35559
|
});
|
|
35560
35560
|
|
|
35561
|
-
// ../../node_modules/.pnpm/r-json@1.3.
|
|
35561
|
+
// ../../node_modules/.pnpm/r-json@1.3.1/node_modules/r-json/lib/index.js
|
|
35562
35562
|
var require_lib3 = __commonJS({
|
|
35563
|
-
"../../node_modules/.pnpm/r-json@1.3.
|
|
35563
|
+
"../../node_modules/.pnpm/r-json@1.3.1/node_modules/r-json/lib/index.js"(exports, module) {
|
|
35564
35564
|
"use strict";
|
|
35565
35565
|
init_esm_shims();
|
|
35566
35566
|
var Fs = __require("fs");
|
|
@@ -35618,9 +35618,9 @@ var require_lib3 = __commonJS({
|
|
|
35618
35618
|
}
|
|
35619
35619
|
});
|
|
35620
35620
|
|
|
35621
|
-
// ../../node_modules/.pnpm/iterate-object@1.3.
|
|
35621
|
+
// ../../node_modules/.pnpm/iterate-object@1.3.5/node_modules/iterate-object/lib/index.js
|
|
35622
35622
|
var require_lib4 = __commonJS({
|
|
35623
|
-
"../../node_modules/.pnpm/iterate-object@1.3.
|
|
35623
|
+
"../../node_modules/.pnpm/iterate-object@1.3.5/node_modules/iterate-object/lib/index.js"(exports, module) {
|
|
35624
35624
|
"use strict";
|
|
35625
35625
|
init_esm_shims();
|
|
35626
35626
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
@@ -35650,9 +35650,9 @@ var require_lib4 = __commonJS({
|
|
|
35650
35650
|
}
|
|
35651
35651
|
});
|
|
35652
35652
|
|
|
35653
|
-
// ../../node_modules/.pnpm/edit-json-file@1.8.
|
|
35653
|
+
// ../../node_modules/.pnpm/edit-json-file@1.8.1/node_modules/edit-json-file/lib/index.js
|
|
35654
35654
|
var require_lib5 = __commonJS({
|
|
35655
|
-
"../../node_modules/.pnpm/edit-json-file@1.8.
|
|
35655
|
+
"../../node_modules/.pnpm/edit-json-file@1.8.1/node_modules/edit-json-file/lib/index.js"(exports, module) {
|
|
35656
35656
|
"use strict";
|
|
35657
35657
|
init_esm_shims();
|
|
35658
35658
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
@@ -36090,17 +36090,17 @@ var require_path = __commonJS({
|
|
|
36090
36090
|
}
|
|
36091
36091
|
__name(escapePosixPath2, "escapePosixPath");
|
|
36092
36092
|
exports.escapePosixPath = escapePosixPath2;
|
|
36093
|
-
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern :
|
|
36093
|
+
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
36094
36094
|
function convertWindowsPathToPattern(filepath) {
|
|
36095
36095
|
return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
|
|
36096
36096
|
}
|
|
36097
36097
|
__name(convertWindowsPathToPattern, "convertWindowsPathToPattern");
|
|
36098
36098
|
exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
|
|
36099
|
-
function
|
|
36099
|
+
function convertPosixPathToPattern(filepath) {
|
|
36100
36100
|
return escapePosixPath2(filepath);
|
|
36101
36101
|
}
|
|
36102
|
-
__name(
|
|
36103
|
-
exports.convertPosixPathToPattern =
|
|
36102
|
+
__name(convertPosixPathToPattern, "convertPosixPathToPattern");
|
|
36103
|
+
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
36104
36104
|
}
|
|
36105
36105
|
});
|
|
36106
36106
|
|
|
@@ -42015,12 +42015,12 @@ var require_out4 = __commonJS({
|
|
|
42015
42015
|
}
|
|
42016
42016
|
__name(escapePath2, "escapePath");
|
|
42017
42017
|
FastGlob2.escapePath = escapePath2;
|
|
42018
|
-
function
|
|
42018
|
+
function convertPathToPattern(source) {
|
|
42019
42019
|
assertPatternsInput2(source);
|
|
42020
42020
|
return utils.path.convertPathToPattern(source);
|
|
42021
42021
|
}
|
|
42022
|
-
__name(
|
|
42023
|
-
FastGlob2.convertPathToPattern =
|
|
42022
|
+
__name(convertPathToPattern, "convertPathToPattern");
|
|
42023
|
+
FastGlob2.convertPathToPattern = convertPathToPattern;
|
|
42024
42024
|
let posix6;
|
|
42025
42025
|
(function(posix7) {
|
|
42026
42026
|
function escapePath3(source) {
|
|
@@ -42029,12 +42029,12 @@ var require_out4 = __commonJS({
|
|
|
42029
42029
|
}
|
|
42030
42030
|
__name(escapePath3, "escapePath");
|
|
42031
42031
|
posix7.escapePath = escapePath3;
|
|
42032
|
-
function
|
|
42032
|
+
function convertPathToPattern2(source) {
|
|
42033
42033
|
assertPatternsInput2(source);
|
|
42034
42034
|
return utils.path.convertPosixPathToPattern(source);
|
|
42035
42035
|
}
|
|
42036
|
-
__name(
|
|
42037
|
-
posix7.convertPathToPattern =
|
|
42036
|
+
__name(convertPathToPattern2, "convertPathToPattern");
|
|
42037
|
+
posix7.convertPathToPattern = convertPathToPattern2;
|
|
42038
42038
|
})(posix6 = FastGlob2.posix || (FastGlob2.posix = {}));
|
|
42039
42039
|
let win323;
|
|
42040
42040
|
(function(win324) {
|
|
@@ -42044,12 +42044,12 @@ var require_out4 = __commonJS({
|
|
|
42044
42044
|
}
|
|
42045
42045
|
__name(escapePath3, "escapePath");
|
|
42046
42046
|
win324.escapePath = escapePath3;
|
|
42047
|
-
function
|
|
42047
|
+
function convertPathToPattern2(source) {
|
|
42048
42048
|
assertPatternsInput2(source);
|
|
42049
42049
|
return utils.path.convertWindowsPathToPattern(source);
|
|
42050
42050
|
}
|
|
42051
|
-
__name(
|
|
42052
|
-
win324.convertPathToPattern =
|
|
42051
|
+
__name(convertPathToPattern2, "convertPathToPattern");
|
|
42052
|
+
win324.convertPathToPattern = convertPathToPattern2;
|
|
42053
42053
|
})(win323 = FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
42054
42054
|
})(FastGlob || (FastGlob = {}));
|
|
42055
42055
|
function getWorks(source, _Provider, options) {
|
|
@@ -42387,7 +42387,7 @@ var require_ignore = __commonJS({
|
|
|
42387
42387
|
}, "makeRegex");
|
|
42388
42388
|
var isString2 = /* @__PURE__ */ __name((subject) => typeof subject === "string", "isString");
|
|
42389
42389
|
var checkPattern = /* @__PURE__ */ __name((pattern) => pattern && isString2(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0, "checkPattern");
|
|
42390
|
-
var
|
|
42390
|
+
var splitPattern2 = /* @__PURE__ */ __name((pattern) => pattern.split(REGEX_SPLITALL_CRLF), "splitPattern");
|
|
42391
42391
|
var IgnoreRule = class IgnoreRule {
|
|
42392
42392
|
static {
|
|
42393
42393
|
__name(this, "IgnoreRule");
|
|
@@ -42459,7 +42459,7 @@ var require_ignore = __commonJS({
|
|
|
42459
42459
|
// @param {Array<string> | string | Ignore} pattern
|
|
42460
42460
|
add(pattern) {
|
|
42461
42461
|
this._added = false;
|
|
42462
|
-
makeArray(isString2(pattern) ?
|
|
42462
|
+
makeArray(isString2(pattern) ? splitPattern2(pattern) : pattern).forEach(this._addPattern, this);
|
|
42463
42463
|
if (this._added) {
|
|
42464
42464
|
this._initCache();
|
|
42465
42465
|
}
|
|
@@ -60594,7 +60594,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
60594
60594
|
"../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
60595
60595
|
"use strict";
|
|
60596
60596
|
init_esm_shims();
|
|
60597
|
-
var
|
|
60597
|
+
var log4 = require_log();
|
|
60598
60598
|
var merge9 = require_merge();
|
|
60599
60599
|
var stringify4 = require_stringify3();
|
|
60600
60600
|
var identity2 = require_identity();
|
|
@@ -60636,7 +60636,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
60636
60636
|
if (!ctx.mapKeyWarned) {
|
|
60637
60637
|
let jsonStr = JSON.stringify(strKey);
|
|
60638
60638
|
if (jsonStr.length > 40) jsonStr = jsonStr.substring(0, 36) + '..."';
|
|
60639
|
-
|
|
60639
|
+
log4.warn(ctx.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${jsonStr}. Set mapAsMap: true to use object keys.`);
|
|
60640
60640
|
ctx.mapKeyWarned = true;
|
|
60641
60641
|
}
|
|
60642
60642
|
return strKey;
|
|
@@ -66209,7 +66209,7 @@ var require_public_api = __commonJS({
|
|
|
66209
66209
|
var composer = require_composer();
|
|
66210
66210
|
var Document = require_Document();
|
|
66211
66211
|
var errors = require_errors();
|
|
66212
|
-
var
|
|
66212
|
+
var log4 = require_log();
|
|
66213
66213
|
var identity2 = require_identity();
|
|
66214
66214
|
var lineCounter = require_line_counter();
|
|
66215
66215
|
var parser2 = require_parser();
|
|
@@ -66265,7 +66265,7 @@ var require_public_api = __commonJS({
|
|
|
66265
66265
|
}
|
|
66266
66266
|
const doc = parseDocument(src, options);
|
|
66267
66267
|
if (!doc) return null;
|
|
66268
|
-
doc.warnings.forEach((warning) =>
|
|
66268
|
+
doc.warnings.forEach((warning) => log4.warn(doc.options.logLevel, warning));
|
|
66269
66269
|
if (doc.errors.length > 0) {
|
|
66270
66270
|
if (doc.options.logLevel !== "silent") throw doc.errors[0];
|
|
66271
66271
|
else doc.errors = [];
|
|
@@ -86305,11 +86305,11 @@ var require_typescript = __commonJS({
|
|
|
86305
86305
|
}
|
|
86306
86306
|
}
|
|
86307
86307
|
__name(logMessage, "logMessage");
|
|
86308
|
-
function
|
|
86308
|
+
function log4(s) {
|
|
86309
86309
|
logMessage(3, s);
|
|
86310
86310
|
}
|
|
86311
|
-
__name(
|
|
86312
|
-
Debug2.log =
|
|
86311
|
+
__name(log4, "log");
|
|
86312
|
+
Debug2.log = log4;
|
|
86313
86313
|
((_log2) => {
|
|
86314
86314
|
function error22(s) {
|
|
86315
86315
|
logMessage(1, s);
|
|
@@ -86331,7 +86331,7 @@ var require_typescript = __commonJS({
|
|
|
86331
86331
|
}
|
|
86332
86332
|
__name(trace2, "trace2");
|
|
86333
86333
|
_log2.trace = trace2;
|
|
86334
|
-
})(
|
|
86334
|
+
})(log4 = Debug2.log || (Debug2.log = {}));
|
|
86335
86335
|
const assertionCache = {};
|
|
86336
86336
|
function getAssertionLevel() {
|
|
86337
86337
|
return currentAssertionLevel;
|
|
@@ -227045,8 +227045,8 @@ ${lanes.join("\n")}
|
|
|
227045
227045
|
WatchLogLevel2[WatchLogLevel2["Verbose"] = 2] = "Verbose";
|
|
227046
227046
|
return WatchLogLevel2;
|
|
227047
227047
|
})(WatchLogLevel || {});
|
|
227048
|
-
function getWatchFactory(host, watchLogLevel,
|
|
227049
|
-
setSysLog(watchLogLevel === 2 ?
|
|
227048
|
+
function getWatchFactory(host, watchLogLevel, log4, getDetailWatchInfo2) {
|
|
227049
|
+
setSysLog(watchLogLevel === 2 ? log4 : noop3);
|
|
227050
227050
|
const plainInvokeFactory = {
|
|
227051
227051
|
watchFile: /* @__PURE__ */ __name((file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options), "watchFile"),
|
|
227052
227052
|
watchDirectory: /* @__PURE__ */ __name((directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1) !== 0, options), "watchDirectory")
|
|
@@ -227085,18 +227085,18 @@ ${lanes.join("\n")}
|
|
|
227085
227085
|
}
|
|
227086
227086
|
__name(useCaseSensitiveFileNames2, "useCaseSensitiveFileNames2");
|
|
227087
227087
|
function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
|
|
227088
|
-
|
|
227088
|
+
log4(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
|
|
227089
227089
|
return {
|
|
227090
|
-
close: /* @__PURE__ */ __name(() =>
|
|
227090
|
+
close: /* @__PURE__ */ __name(() => log4(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`), "close")
|
|
227091
227091
|
};
|
|
227092
227092
|
}
|
|
227093
227093
|
__name(createExcludeWatcherWithLogging, "createExcludeWatcherWithLogging");
|
|
227094
227094
|
function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
227095
|
-
|
|
227095
|
+
log4(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
|
|
227096
227096
|
const watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
227097
227097
|
return {
|
|
227098
227098
|
close: /* @__PURE__ */ __name(() => {
|
|
227099
|
-
|
|
227099
|
+
log4(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
|
|
227100
227100
|
watcher.close();
|
|
227101
227101
|
}, "close")
|
|
227102
227102
|
};
|
|
@@ -227104,19 +227104,19 @@ ${lanes.join("\n")}
|
|
|
227104
227104
|
__name(createFileWatcherWithLogging, "createFileWatcherWithLogging");
|
|
227105
227105
|
function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
227106
227106
|
const watchInfo = `DirectoryWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
|
|
227107
|
-
|
|
227107
|
+
log4(watchInfo);
|
|
227108
227108
|
const start = timestamp2();
|
|
227109
227109
|
const watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
227110
227110
|
const elapsed = timestamp2() - start;
|
|
227111
|
-
|
|
227111
|
+
log4(`Elapsed:: ${elapsed}ms ${watchInfo}`);
|
|
227112
227112
|
return {
|
|
227113
227113
|
close: /* @__PURE__ */ __name(() => {
|
|
227114
227114
|
const watchInfo2 = `DirectoryWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
|
|
227115
|
-
|
|
227115
|
+
log4(watchInfo2);
|
|
227116
227116
|
const start2 = timestamp2();
|
|
227117
227117
|
watcher.close();
|
|
227118
227118
|
const elapsed2 = timestamp2() - start2;
|
|
227119
|
-
|
|
227119
|
+
log4(`Elapsed:: ${elapsed2}ms ${watchInfo2}`);
|
|
227120
227120
|
}, "close")
|
|
227121
227121
|
};
|
|
227122
227122
|
}
|
|
@@ -227128,7 +227128,7 @@ ${lanes.join("\n")}
|
|
|
227128
227128
|
file,
|
|
227129
227129
|
(...args) => {
|
|
227130
227130
|
const triggerredInfo = `${key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${args[0]} ${args[1] !== void 0 ? args[1] : ""}:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
|
|
227131
|
-
|
|
227131
|
+
log4(triggerredInfo);
|
|
227132
227132
|
const start = timestamp2();
|
|
227133
227133
|
cb.call(
|
|
227134
227134
|
/*thisArg*/
|
|
@@ -227136,7 +227136,7 @@ ${lanes.join("\n")}
|
|
|
227136
227136
|
...args
|
|
227137
227137
|
);
|
|
227138
227138
|
const elapsed = timestamp2() - start;
|
|
227139
|
-
|
|
227139
|
+
log4(`Elapsed:: ${elapsed}ms ${triggerredInfo}`);
|
|
227140
227140
|
},
|
|
227141
227141
|
flags,
|
|
227142
227142
|
options,
|
|
@@ -240226,7 +240226,7 @@ ${lanes.join("\n")}
|
|
|
240226
240226
|
return void 0;
|
|
240227
240227
|
}
|
|
240228
240228
|
__name(loadTypesMap, "loadTypesMap");
|
|
240229
|
-
function discoverTypings(host,
|
|
240229
|
+
function discoverTypings(host, log4, fileNames, projectRootPath, safeList, packageNameToTypingLocation, typeAcquisition, unresolvedImports, typesRegistry, compilerOptions) {
|
|
240230
240230
|
if (!typeAcquisition || !typeAcquisition.enable) {
|
|
240231
240231
|
return {
|
|
240232
240232
|
cachedTypingPaths: [],
|
|
@@ -240261,7 +240261,7 @@ ${lanes.join("\n")}
|
|
|
240261
240261
|
}
|
|
240262
240262
|
for (const excludeTypingName of exclude) {
|
|
240263
240263
|
const didDelete = inferredTypings.delete(excludeTypingName);
|
|
240264
|
-
if (didDelete &&
|
|
240264
|
+
if (didDelete && log4) log4(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`);
|
|
240265
240265
|
}
|
|
240266
240266
|
packageNameToTypingLocation.forEach((typing, name2) => {
|
|
240267
240267
|
const registryEntry = typesRegistry.get(name2);
|
|
@@ -240283,7 +240283,7 @@ ${lanes.join("\n")}
|
|
|
240283
240283
|
newTypingNames,
|
|
240284
240284
|
filesToWatch
|
|
240285
240285
|
};
|
|
240286
|
-
if (
|
|
240286
|
+
if (log4) log4(`Finished typings discovery:${stringifyIndented(result)}`);
|
|
240287
240287
|
return result;
|
|
240288
240288
|
function addInferredTyping(typingName) {
|
|
240289
240289
|
if (!inferredTypings.has(typingName)) {
|
|
@@ -240292,7 +240292,7 @@ ${lanes.join("\n")}
|
|
|
240292
240292
|
}
|
|
240293
240293
|
__name(addInferredTyping, "addInferredTyping");
|
|
240294
240294
|
function addInferredTypings(typingNames, message) {
|
|
240295
|
-
if (
|
|
240295
|
+
if (log4) log4(`${message}: ${JSON.stringify(typingNames)}`);
|
|
240296
240296
|
forEach3(typingNames, addInferredTyping);
|
|
240297
240297
|
}
|
|
240298
240298
|
__name(addInferredTypings, "addInferredTypings");
|
|
@@ -240338,7 +240338,7 @@ ${lanes.join("\n")}
|
|
|
240338
240338
|
return isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 4]) === modulesDirName || // `node_modules/@foo/bar`
|
|
240339
240339
|
!isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 3]) === modulesDirName;
|
|
240340
240340
|
});
|
|
240341
|
-
if (
|
|
240341
|
+
if (log4) log4(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);
|
|
240342
240342
|
for (const manifestPath2 of dependencyManifestNames) {
|
|
240343
240343
|
const normalizedFileName = normalizePath4(manifestPath2);
|
|
240344
240344
|
const result2 = readConfigFile3(normalizedFileName, (path36) => host.readFile(path36));
|
|
@@ -240350,10 +240350,10 @@ ${lanes.join("\n")}
|
|
|
240350
240350
|
if (ownTypes) {
|
|
240351
240351
|
const absolutePath = getNormalizedAbsolutePath(ownTypes, getDirectoryPath(normalizedFileName));
|
|
240352
240352
|
if (host.fileExists(absolutePath)) {
|
|
240353
|
-
if (
|
|
240353
|
+
if (log4) log4(` Package '${manifest2.name}' provides its own types.`);
|
|
240354
240354
|
inferredTypings.set(manifest2.name, absolutePath);
|
|
240355
240355
|
} else {
|
|
240356
|
-
if (
|
|
240356
|
+
if (log4) log4(` Package '${manifest2.name}' provides its own types but they are missing.`);
|
|
240357
240357
|
}
|
|
240358
240358
|
} else {
|
|
240359
240359
|
packageNames.push(manifest2.name);
|
|
@@ -240378,7 +240378,7 @@ ${lanes.join("\n")}
|
|
|
240378
240378
|
/* Jsx */
|
|
240379
240379
|
));
|
|
240380
240380
|
if (hasJsxFile) {
|
|
240381
|
-
if (
|
|
240381
|
+
if (log4) log4(`Inferred 'react' typings due to presence of '.jsx' extension`);
|
|
240382
240382
|
addInferredTyping("react");
|
|
240383
240383
|
}
|
|
240384
240384
|
}
|
|
@@ -256457,12 +256457,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256457
256457
|
const cancellationToken = host.getCancellationToken ? new CancellationTokenObject(host.getCancellationToken()) : NoopCancellationToken;
|
|
256458
256458
|
const currentDirectory = host.getCurrentDirectory();
|
|
256459
256459
|
maybeSetLocalizedDiagnosticMessages((_a = host.getLocalizedDiagnosticMessages) == null ? void 0 : _a.bind(host));
|
|
256460
|
-
function
|
|
256460
|
+
function log4(message) {
|
|
256461
256461
|
if (host.log) {
|
|
256462
256462
|
host.log(message);
|
|
256463
256463
|
}
|
|
256464
256464
|
}
|
|
256465
|
-
__name(
|
|
256465
|
+
__name(log4, "log");
|
|
256466
256466
|
const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host);
|
|
256467
256467
|
const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
|
|
256468
256468
|
const sourceMapper = getSourceMapper({
|
|
@@ -256473,7 +256473,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256473
256473
|
readFile: maybeBind(host, host.readFile),
|
|
256474
256474
|
getDocumentPositionMapper: maybeBind(host, host.getDocumentPositionMapper),
|
|
256475
256475
|
getSourceFileLike: maybeBind(host, host.getSourceFileLike),
|
|
256476
|
-
log:
|
|
256476
|
+
log: log4
|
|
256477
256477
|
});
|
|
256478
256478
|
function getValidSourceFile(fileName) {
|
|
256479
256479
|
const sourceFile = program2.getSourceFile(fileName);
|
|
@@ -256510,7 +256510,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256510
256510
|
}
|
|
256511
256511
|
const typeRootsVersion = host.getTypeRootsVersion ? host.getTypeRootsVersion() : 0;
|
|
256512
256512
|
if (lastTypesRootVersion !== typeRootsVersion) {
|
|
256513
|
-
|
|
256513
|
+
log4("TypeRoots version has changed; provide new program");
|
|
256514
256514
|
program2 = void 0;
|
|
256515
256515
|
lastTypesRootVersion = typeRootsVersion;
|
|
256516
256516
|
}
|
|
@@ -256908,14 +256908,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256908
256908
|
includeCompletionsWithInsertText: options.includeCompletionsWithInsertText || options.includeInsertTextCompletions
|
|
256909
256909
|
};
|
|
256910
256910
|
synchronizeHostData();
|
|
256911
|
-
return ts_Completions_exports.getCompletionsAtPosition(host, program2,
|
|
256911
|
+
return ts_Completions_exports.getCompletionsAtPosition(host, program2, log4, getValidSourceFile(fileName), position3, fullPreferences, options.triggerCharacter, options.triggerKind, cancellationToken, formattingSettings && ts_formatting_exports.getFormatContext(formattingSettings, host), options.includeSymbol);
|
|
256912
256912
|
}
|
|
256913
256913
|
__name(getCompletionsAtPosition2, "getCompletionsAtPosition2");
|
|
256914
256914
|
function getCompletionEntryDetails2(fileName, position3, name2, formattingOptions, source, preferences = emptyOptions4, data) {
|
|
256915
256915
|
synchronizeHostData();
|
|
256916
256916
|
return ts_Completions_exports.getCompletionEntryDetails(
|
|
256917
256917
|
program2,
|
|
256918
|
-
|
|
256918
|
+
log4,
|
|
256919
256919
|
getValidSourceFile(fileName),
|
|
256920
256920
|
position3,
|
|
256921
256921
|
{
|
|
@@ -256933,7 +256933,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256933
256933
|
__name(getCompletionEntryDetails2, "getCompletionEntryDetails2");
|
|
256934
256934
|
function getCompletionEntrySymbol2(fileName, position3, name2, source, preferences = emptyOptions4) {
|
|
256935
256935
|
synchronizeHostData();
|
|
256936
|
-
return ts_Completions_exports.getCompletionEntrySymbol(program2,
|
|
256936
|
+
return ts_Completions_exports.getCompletionEntrySymbol(program2, log4, getValidSourceFile(fileName), position3, {
|
|
256937
256937
|
name: name2,
|
|
256938
256938
|
source
|
|
256939
256939
|
}, host, preferences);
|
|
@@ -257253,10 +257253,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
257253
257253
|
let start = timestamp2();
|
|
257254
257254
|
const settings = toEditorSettings(editorOptions);
|
|
257255
257255
|
const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
|
|
257256
|
-
|
|
257256
|
+
log4("getIndentationAtPosition: getCurrentSourceFile: " + (timestamp2() - start));
|
|
257257
257257
|
start = timestamp2();
|
|
257258
257258
|
const result = ts_formatting_exports.SmartIndenter.getIndentation(position3, sourceFile, settings);
|
|
257259
|
-
|
|
257259
|
+
log4("getIndentationAtPosition: computeIndentation : " + (timestamp2() - start));
|
|
257260
257260
|
return result;
|
|
257261
257261
|
}
|
|
257262
257262
|
__name(getIndentationAtPosition, "getIndentationAtPosition");
|
|
@@ -272499,7 +272499,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272499
272499
|
return allCommitCharacters;
|
|
272500
272500
|
}
|
|
272501
272501
|
__name(getDefaultCommitCharacters, "getDefaultCommitCharacters");
|
|
272502
|
-
function getCompletionsAtPosition(host, program2,
|
|
272502
|
+
function getCompletionsAtPosition(host, program2, log4, sourceFile, position3, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) {
|
|
272503
272503
|
var _a;
|
|
272504
272504
|
const { previousToken } = getRelevantTokens(position3, sourceFile);
|
|
272505
272505
|
if (triggerCharacter && !isInString(sourceFile, position3, previousToken) && !isValidTrigger(sourceFile, triggerCharacter, previousToken, position3)) {
|
|
@@ -272532,7 +272532,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272532
272532
|
} else {
|
|
272533
272533
|
incompleteCompletionsCache == null ? void 0 : incompleteCompletionsCache.clear();
|
|
272534
272534
|
}
|
|
272535
|
-
const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position3, previousToken, compilerOptions, host, program2,
|
|
272535
|
+
const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position3, previousToken, compilerOptions, host, program2, log4, preferences, includeSymbol);
|
|
272536
272536
|
if (stringCompletions) {
|
|
272537
272537
|
return stringCompletions;
|
|
272538
272538
|
}
|
|
@@ -272541,7 +272541,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272541
272541
|
}
|
|
272542
272542
|
const completionData = getCompletionData(
|
|
272543
272543
|
program2,
|
|
272544
|
-
|
|
272544
|
+
log4,
|
|
272545
272545
|
sourceFile,
|
|
272546
272546
|
compilerOptions,
|
|
272547
272547
|
position3,
|
|
@@ -272557,7 +272557,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272557
272557
|
}
|
|
272558
272558
|
switch (completionData.kind) {
|
|
272559
272559
|
case 0:
|
|
272560
|
-
const response = completionInfoFromData(sourceFile, host, program2, compilerOptions,
|
|
272560
|
+
const response = completionInfoFromData(sourceFile, host, program2, compilerOptions, log4, completionData, preferences, formatContext, position3, includeSymbol);
|
|
272561
272561
|
if (response == null ? void 0 : response.isIncomplete) {
|
|
272562
272562
|
incompleteCompletionsCache == null ? void 0 : incompleteCompletionsCache.set(response);
|
|
272563
272563
|
}
|
|
@@ -273005,7 +273005,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
273005
273005
|
return (location2 == null ? void 0 : location2.kind) === 80 ? createTextSpanFromNode(location2) : void 0;
|
|
273006
273006
|
}
|
|
273007
273007
|
__name(getOptionalReplacementSpan, "getOptionalReplacementSpan");
|
|
273008
|
-
function completionInfoFromData(sourceFile, host, program2, compilerOptions,
|
|
273008
|
+
function completionInfoFromData(sourceFile, host, program2, compilerOptions, log4, completionData, preferences, formatContext, position3, includeSymbol) {
|
|
273009
273009
|
const { symbols, contextToken, completionKind, isInSnippetScope, isNewIdentifierLocation, location: location2, propertyAccessToConvert, keywordFilters, symbolToOriginInfoMap, recommendedCompletion, isJsxInitializer, isTypeOnlyLocation, isJsxIdentifierExpected, isRightOfOpenTag, isRightOfDotOrQuestionDot, importStatementCompletion, insideJsDocTagTypeExpression, symbolToSortTextMap, hasUnresolvedAutoImports, defaultCommitCharacters } = completionData;
|
|
273010
273010
|
let literals = completionData.literals;
|
|
273011
273011
|
const checker = program2.getTypeChecker();
|
|
@@ -273048,7 +273048,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
273048
273048
|
host,
|
|
273049
273049
|
program2,
|
|
273050
273050
|
getEmitScriptTarget(compilerOptions),
|
|
273051
|
-
|
|
273051
|
+
log4,
|
|
273052
273052
|
completionKind,
|
|
273053
273053
|
preferences,
|
|
273054
273054
|
compilerOptions,
|
|
@@ -274128,7 +274128,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274128
274128
|
}
|
|
274129
274129
|
}
|
|
274130
274130
|
__name(getSourceFromOrigin, "getSourceFromOrigin");
|
|
274131
|
-
function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location2, position3, sourceFile, host, program2, target,
|
|
274131
|
+
function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location2, position3, sourceFile, host, program2, target, log4, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
|
|
274132
274132
|
const start = timestamp2();
|
|
274133
274133
|
const closestSymbolDeclaration = getClosestSymbolDeclaration(contextToken, location2);
|
|
274134
274134
|
const useSemicolons = probablyUsesSemicolons(sourceFile);
|
|
@@ -274163,7 +274163,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274163
274163
|
true
|
|
274164
274164
|
);
|
|
274165
274165
|
}
|
|
274166
|
-
|
|
274166
|
+
log4("getCompletionsAtPosition: getCompletionEntriesFromSymbols: " + (timestamp2() - start));
|
|
274167
274167
|
return {
|
|
274168
274168
|
has: /* @__PURE__ */ __name((name2) => uniques.has(name2), "has"),
|
|
274169
274169
|
add: /* @__PURE__ */ __name((name2) => uniques.set(name2, true), "add")
|
|
@@ -274261,7 +274261,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274261
274261
|
return entries;
|
|
274262
274262
|
}
|
|
274263
274263
|
__name(getLabelStatementCompletions, "getLabelStatementCompletions");
|
|
274264
|
-
function getSymbolCompletionFromEntryId(program2,
|
|
274264
|
+
function getSymbolCompletionFromEntryId(program2, log4, sourceFile, position3, entryId, host, preferences) {
|
|
274265
274265
|
if (entryId.source === "SwitchCases/") {
|
|
274266
274266
|
return {
|
|
274267
274267
|
type: "cases"
|
|
@@ -274286,7 +274286,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274286
274286
|
const compilerOptions = program2.getCompilerOptions();
|
|
274287
274287
|
const completionData = getCompletionData(
|
|
274288
274288
|
program2,
|
|
274289
|
-
|
|
274289
|
+
log4,
|
|
274290
274290
|
sourceFile,
|
|
274291
274291
|
compilerOptions,
|
|
274292
274292
|
position3,
|
|
@@ -274334,7 +274334,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274334
274334
|
};
|
|
274335
274335
|
}
|
|
274336
274336
|
__name(getSymbolCompletionFromEntryId, "getSymbolCompletionFromEntryId");
|
|
274337
|
-
function getCompletionEntryDetails(program2,
|
|
274337
|
+
function getCompletionEntryDetails(program2, log4, sourceFile, position3, entryId, host, formatContext, preferences, cancellationToken) {
|
|
274338
274338
|
const typeChecker = program2.getTypeChecker();
|
|
274339
274339
|
const compilerOptions = program2.getCompilerOptions();
|
|
274340
274340
|
const { name: name2, source, data } = entryId;
|
|
@@ -274342,7 +274342,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274342
274342
|
if (isInString(sourceFile, position3, previousToken)) {
|
|
274343
274343
|
return ts_Completions_StringCompletions_exports.getStringLiteralCompletionDetails(name2, sourceFile, position3, previousToken, program2, host, cancellationToken, preferences);
|
|
274344
274344
|
}
|
|
274345
|
-
const symbolCompletion = getSymbolCompletionFromEntryId(program2,
|
|
274345
|
+
const symbolCompletion = getSymbolCompletionFromEntryId(program2, log4, sourceFile, position3, entryId, host, preferences);
|
|
274346
274346
|
switch (symbolCompletion.type) {
|
|
274347
274347
|
case "request": {
|
|
274348
274348
|
const { request: request2 } = symbolCompletion;
|
|
@@ -274563,8 +274563,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274563
274563
|
};
|
|
274564
274564
|
}
|
|
274565
274565
|
__name(getCompletionEntryCodeActionsAndSourceDisplay, "getCompletionEntryCodeActionsAndSourceDisplay");
|
|
274566
|
-
function getCompletionEntrySymbol(program2,
|
|
274567
|
-
const completion = getSymbolCompletionFromEntryId(program2,
|
|
274566
|
+
function getCompletionEntrySymbol(program2, log4, sourceFile, position3, entryId, host, preferences) {
|
|
274567
|
+
const completion = getSymbolCompletionFromEntryId(program2, log4, sourceFile, position3, entryId, host, preferences);
|
|
274568
274568
|
return completion.type === "symbol" ? completion.symbol : void 0;
|
|
274569
274569
|
}
|
|
274570
274570
|
__name(getCompletionEntrySymbol, "getCompletionEntrySymbol");
|
|
@@ -274644,15 +274644,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274644
274644
|
));
|
|
274645
274645
|
}
|
|
274646
274646
|
__name(isModuleSymbol, "isModuleSymbol");
|
|
274647
|
-
function getCompletionData(program2,
|
|
274647
|
+
function getCompletionData(program2, log4, sourceFile, compilerOptions, position3, preferences, detailsEntryId, host, formatContext, cancellationToken) {
|
|
274648
274648
|
const typeChecker = program2.getTypeChecker();
|
|
274649
274649
|
const inCheckedFile = isCheckedFile(sourceFile, compilerOptions);
|
|
274650
274650
|
let start = timestamp2();
|
|
274651
274651
|
let currentToken = getTokenAtPosition(sourceFile, position3);
|
|
274652
|
-
|
|
274652
|
+
log4("getCompletionData: Get current token: " + (timestamp2() - start));
|
|
274653
274653
|
start = timestamp2();
|
|
274654
274654
|
const insideComment = isInComment(sourceFile, position3, currentToken);
|
|
274655
|
-
|
|
274655
|
+
log4("getCompletionData: Is inside comment: " + (timestamp2() - start));
|
|
274656
274656
|
let insideJsDocTagTypeExpression = false;
|
|
274657
274657
|
let insideJsDocImportTag = false;
|
|
274658
274658
|
let isInSnippetScope = false;
|
|
@@ -274700,7 +274700,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274700
274700
|
}
|
|
274701
274701
|
}
|
|
274702
274702
|
if (!insideJsDocTagTypeExpression && !insideJsDocImportTag) {
|
|
274703
|
-
|
|
274703
|
+
log4("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");
|
|
274704
274704
|
return void 0;
|
|
274705
274705
|
}
|
|
274706
274706
|
}
|
|
@@ -274709,7 +274709,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274709
274709
|
const tokens = getRelevantTokens(position3, sourceFile);
|
|
274710
274710
|
const previousToken = tokens.previousToken;
|
|
274711
274711
|
let contextToken = tokens.contextToken;
|
|
274712
|
-
|
|
274712
|
+
log4("getCompletionData: Get previous token: " + (timestamp2() - start));
|
|
274713
274713
|
let node = currentToken;
|
|
274714
274714
|
let propertyAccessToConvert;
|
|
274715
274715
|
let isRightOfDot = false;
|
|
@@ -274744,7 +274744,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274744
274744
|
isNewIdentifierLocation = importStatementCompletionInfo.isNewIdentifierLocation;
|
|
274745
274745
|
}
|
|
274746
274746
|
if (!importStatementCompletionInfo.replacementSpan && isCompletionListBlocker(contextToken)) {
|
|
274747
|
-
|
|
274747
|
+
log4("Returning an empty list because completion was requested in an invalid position.");
|
|
274748
274748
|
return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, computeCommitCharactersAndIsNewIdentifier().isNewIdentifierLocation) : void 0;
|
|
274749
274749
|
}
|
|
274750
274750
|
let parent2 = contextToken.parent;
|
|
@@ -274879,7 +274879,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274879
274879
|
return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, isNewIdentifierLocation) : void 0;
|
|
274880
274880
|
}
|
|
274881
274881
|
}
|
|
274882
|
-
|
|
274882
|
+
log4("getCompletionData: Semantic work: " + (timestamp2() - semanticStart));
|
|
274883
274883
|
const contextualType = previousToken && getContextualType(previousToken, position3, sourceFile, typeChecker);
|
|
274884
274884
|
const isLiteralExpected = !tryCast(previousToken, isStringLiteralLike) && !isJsxIdentifierExpected;
|
|
274885
274885
|
const literals = !isLiteralExpected ? [] : mapDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [
|
|
@@ -275429,7 +275429,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
275429
275429
|
function isCompletionListBlocker(contextToken2) {
|
|
275430
275430
|
const start2 = timestamp2();
|
|
275431
275431
|
const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || isSolelyIdentifierDefinitionLocation(contextToken2) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
|
|
275432
|
-
|
|
275432
|
+
log4("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp2() - start2));
|
|
275433
275433
|
return result;
|
|
275434
275434
|
}
|
|
275435
275435
|
__name(isCompletionListBlocker, "isCompletionListBlocker");
|
|
@@ -276918,7 +276918,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
276918
276918
|
};
|
|
276919
276919
|
}
|
|
276920
276920
|
__name(createNameAndKindSet, "createNameAndKindSet");
|
|
276921
|
-
function getStringLiteralCompletions(sourceFile, position3, contextToken, options, host, program2,
|
|
276921
|
+
function getStringLiteralCompletions(sourceFile, position3, contextToken, options, host, program2, log4, preferences, includeSymbol) {
|
|
276922
276922
|
if (isInReferenceComment(sourceFile, position3)) {
|
|
276923
276923
|
const entries = getTripleSlashReferenceCompletion(sourceFile, position3, program2, host, createModuleSpecifierResolutionHost(program2, host));
|
|
276924
276924
|
return entries && convertPathCompletions(entries);
|
|
@@ -276926,11 +276926,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
276926
276926
|
if (isInString(sourceFile, position3, contextToken)) {
|
|
276927
276927
|
if (!contextToken || !isStringLiteralLike(contextToken)) return void 0;
|
|
276928
276928
|
const entries = getStringLiteralCompletionEntries(sourceFile, contextToken, position3, program2, host, preferences);
|
|
276929
|
-
return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program2,
|
|
276929
|
+
return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program2, log4, options, preferences, position3, includeSymbol);
|
|
276930
276930
|
}
|
|
276931
276931
|
}
|
|
276932
276932
|
__name(getStringLiteralCompletions, "getStringLiteralCompletions");
|
|
276933
|
-
function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program2,
|
|
276933
|
+
function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program2, log4, options, preferences, position3, includeSymbol) {
|
|
276934
276934
|
if (completion === void 0) {
|
|
276935
276935
|
return void 0;
|
|
276936
276936
|
}
|
|
@@ -276951,7 +276951,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
276951
276951
|
host,
|
|
276952
276952
|
program2,
|
|
276953
276953
|
99,
|
|
276954
|
-
|
|
276954
|
+
log4,
|
|
276955
276955
|
4,
|
|
276956
276956
|
preferences,
|
|
276957
276957
|
options,
|
|
@@ -295356,7 +295356,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295356
295356
|
isEnabled: /* @__PURE__ */ __name(() => false, "isEnabled"),
|
|
295357
295357
|
writeLine: noop3
|
|
295358
295358
|
};
|
|
295359
|
-
function typingToFileName(cachePath2, packageName2, installTypingHost,
|
|
295359
|
+
function typingToFileName(cachePath2, packageName2, installTypingHost, log4) {
|
|
295360
295360
|
try {
|
|
295361
295361
|
const result = resolveModuleName(packageName2, combinePaths(cachePath2, "index.d.ts"), {
|
|
295362
295362
|
moduleResolution: 2
|
|
@@ -295364,8 +295364,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295364
295364
|
}, installTypingHost);
|
|
295365
295365
|
return result.resolvedModule && result.resolvedModule.resolvedFileName;
|
|
295366
295366
|
} catch (e) {
|
|
295367
|
-
if (
|
|
295368
|
-
|
|
295367
|
+
if (log4.isEnabled()) {
|
|
295368
|
+
log4.writeLine(`Failed to resolve ${packageName2} in folder '${cachePath2}': ${e.message}`);
|
|
295369
295369
|
}
|
|
295370
295370
|
return void 0;
|
|
295371
295371
|
}
|
|
@@ -295401,13 +295401,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295401
295401
|
static {
|
|
295402
295402
|
__name(this, "TypingsInstaller");
|
|
295403
295403
|
}
|
|
295404
|
-
constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation, throttleLimit,
|
|
295404
|
+
constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation, throttleLimit, log4 = nullLog) {
|
|
295405
295405
|
this.installTypingHost = installTypingHost;
|
|
295406
295406
|
this.globalCachePath = globalCachePath;
|
|
295407
295407
|
this.safeListPath = safeListPath;
|
|
295408
295408
|
this.typesMapLocation = typesMapLocation;
|
|
295409
295409
|
this.throttleLimit = throttleLimit;
|
|
295410
|
-
this.log =
|
|
295410
|
+
this.log = log4;
|
|
295411
295411
|
this.packageNameToTypingLocation = /* @__PURE__ */ new Map();
|
|
295412
295412
|
this.missingTypingsSet = /* @__PURE__ */ new Set();
|
|
295413
295413
|
this.knownCachesSet = /* @__PURE__ */ new Set();
|
|
@@ -295942,13 +295942,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295942
295942
|
}
|
|
295943
295943
|
static run(self2) {
|
|
295944
295944
|
self2.timerId = void 0;
|
|
295945
|
-
const
|
|
295945
|
+
const log4 = self2.logger.hasLevel(
|
|
295946
295946
|
2
|
|
295947
295947
|
/* requestTime */
|
|
295948
295948
|
);
|
|
295949
|
-
const before =
|
|
295949
|
+
const before = log4 && self2.host.getMemoryUsage();
|
|
295950
295950
|
self2.host.gc();
|
|
295951
|
-
if (
|
|
295951
|
+
if (log4) {
|
|
295952
295952
|
const after = self2.host.getMemoryUsage();
|
|
295953
295953
|
self2.logger.perftrc(`GC::before ${before}, after ${after}`);
|
|
295954
295954
|
}
|
|
@@ -296906,21 +296906,21 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
296906
296906
|
updateProjectIfDirty(this);
|
|
296907
296907
|
return hasOneOrMoreJsAndNoTsFiles(this);
|
|
296908
296908
|
}
|
|
296909
|
-
static resolveModule(moduleName, initialDir, host,
|
|
296909
|
+
static resolveModule(moduleName, initialDir, host, log4) {
|
|
296910
296910
|
return _Project.importServicePluginSync({
|
|
296911
296911
|
name: moduleName
|
|
296912
296912
|
}, [
|
|
296913
296913
|
initialDir
|
|
296914
|
-
], host,
|
|
296914
|
+
], host, log4).resolvedModule;
|
|
296915
296915
|
}
|
|
296916
296916
|
/** @internal */
|
|
296917
|
-
static importServicePluginSync(pluginConfigEntry, searchPaths, host,
|
|
296917
|
+
static importServicePluginSync(pluginConfigEntry, searchPaths, host, log4) {
|
|
296918
296918
|
Debug.assertIsDefined(host.require);
|
|
296919
296919
|
let errorLogs;
|
|
296920
296920
|
let resolvedModule;
|
|
296921
296921
|
for (const initialDir of searchPaths) {
|
|
296922
296922
|
const resolvedPath = normalizeSlashes(host.resolvePath(combinePaths(initialDir, "node_modules")));
|
|
296923
|
-
|
|
296923
|
+
log4(`Loading ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
|
|
296924
296924
|
const result = host.require(resolvedPath, pluginConfigEntry.name);
|
|
296925
296925
|
if (!result.error) {
|
|
296926
296926
|
resolvedModule = result.module;
|
|
@@ -296936,13 +296936,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
296936
296936
|
};
|
|
296937
296937
|
}
|
|
296938
296938
|
/** @internal */
|
|
296939
|
-
static async importServicePluginAsync(pluginConfigEntry, searchPaths, host,
|
|
296939
|
+
static async importServicePluginAsync(pluginConfigEntry, searchPaths, host, log4) {
|
|
296940
296940
|
Debug.assertIsDefined(host.importPlugin);
|
|
296941
296941
|
let errorLogs;
|
|
296942
296942
|
let resolvedModule;
|
|
296943
296943
|
for (const initialDir of searchPaths) {
|
|
296944
296944
|
const resolvedPath = combinePaths(initialDir, "node_modules");
|
|
296945
|
-
|
|
296945
|
+
log4(`Dynamically importing ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
|
|
296946
296946
|
let result;
|
|
296947
296947
|
try {
|
|
296948
296948
|
result = await host.importPlugin(resolvedPath, pluginConfigEntry.name);
|
|
@@ -299728,12 +299728,12 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
299728
299728
|
3
|
|
299729
299729
|
/* verbose */
|
|
299730
299730
|
) ? 2 : this.logger.loggingEnabled() ? 1 : 0;
|
|
299731
|
-
const
|
|
299731
|
+
const log4 = watchLogLevel !== 0 ? (s) => this.logger.info(s) : noop3;
|
|
299732
299732
|
this.packageJsonCache = createPackageJsonCache(this);
|
|
299733
299733
|
this.watchFactory = this.serverMode !== 0 ? {
|
|
299734
299734
|
watchFile: returnNoopFileWatcher,
|
|
299735
299735
|
watchDirectory: returnNoopFileWatcher
|
|
299736
|
-
} : getWatchFactory(createWatchFactoryHostUsingWatchEvents(this, opts.canUseWatchEvents) || this.host, watchLogLevel,
|
|
299736
|
+
} : getWatchFactory(createWatchFactoryHostUsingWatchEvents(this, opts.canUseWatchEvents) || this.host, watchLogLevel, log4, getDetailWatchInfo);
|
|
299737
299737
|
this.canUseWatchEvents = getCanUseWatchEvents(this, opts.canUseWatchEvents);
|
|
299738
299738
|
(_a = opts.incrementalVerifier) == null ? void 0 : _a.call(opts, this);
|
|
299739
299739
|
}
|
|
@@ -309947,7 +309947,7 @@ var require_node = __commonJS({
|
|
|
309947
309947
|
var tty3 = __require("tty");
|
|
309948
309948
|
var util3 = __require("util");
|
|
309949
309949
|
exports.init = init;
|
|
309950
|
-
exports.log =
|
|
309950
|
+
exports.log = log4;
|
|
309951
309951
|
exports.formatArgs = formatArgs;
|
|
309952
309952
|
exports.save = save;
|
|
309953
309953
|
exports.load = load3;
|
|
@@ -310089,10 +310089,10 @@ var require_node = __commonJS({
|
|
|
310089
310089
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
310090
310090
|
}
|
|
310091
310091
|
__name(getDate, "getDate");
|
|
310092
|
-
function
|
|
310092
|
+
function log4(...args) {
|
|
310093
310093
|
return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
310094
310094
|
}
|
|
310095
|
-
__name(
|
|
310095
|
+
__name(log4, "log");
|
|
310096
310096
|
function save(namespaces) {
|
|
310097
310097
|
if (namespaces) {
|
|
310098
310098
|
process.env.DEBUG = namespaces;
|
|
@@ -310463,8 +310463,8 @@ var require_type_defs = __commonJS({
|
|
|
310463
310463
|
return true;
|
|
310464
310464
|
}
|
|
310465
310465
|
val = String(val);
|
|
310466
|
-
const
|
|
310467
|
-
const homePattern =
|
|
310466
|
+
const isWin2 = process.platform === "win32";
|
|
310467
|
+
const homePattern = isWin2 ? /^~(\/|\\)/ : /^~\//;
|
|
310468
310468
|
const home = os7.homedir();
|
|
310469
310469
|
if (home && val.match(homePattern)) {
|
|
310470
310470
|
data[k] = path36.resolve(home, val.slice(2));
|
|
@@ -313317,7 +313317,7 @@ var require_spawn = __commonJS({
|
|
|
313317
313317
|
init_esm_shims();
|
|
313318
313318
|
var spawn2 = require_lib12();
|
|
313319
313319
|
var promiseRetry = require_promise_retry();
|
|
313320
|
-
var { log:
|
|
313320
|
+
var { log: log4 } = require_lib8();
|
|
313321
313321
|
var makeError = require_make_error();
|
|
313322
313322
|
var makeOpts = require_opts();
|
|
313323
313323
|
module.exports = (gitArgs, opts = {}) => {
|
|
@@ -313341,7 +313341,7 @@ var require_spawn = __commonJS({
|
|
|
313341
313341
|
}
|
|
313342
313342
|
return promiseRetry((retryFn, number) => {
|
|
313343
313343
|
if (number !== 1) {
|
|
313344
|
-
|
|
313344
|
+
log4.silly("git", `Retrying git command: ${args.join(" ")} attempt # ${number}`);
|
|
313345
313345
|
}
|
|
313346
313346
|
return spawn2(gitPath, args, makeOpts(opts)).catch((er) => {
|
|
313347
313347
|
const gitError = makeError(er);
|
|
@@ -313634,7 +313634,7 @@ var require_npa = __commonJS({
|
|
|
313634
313634
|
var path36 = global.FAKE_WINDOWS ? __require("path").win32 : __require("path");
|
|
313635
313635
|
var validatePackageName = require_lib13();
|
|
313636
313636
|
var { homedir: homedir6 } = __require("os");
|
|
313637
|
-
var { log:
|
|
313637
|
+
var { log: log4 } = require_lib8();
|
|
313638
313638
|
var isWindows4 = process.platform === "win32" || global.FAKE_WINDOWS;
|
|
313639
313639
|
var hasSlashes = isWindows4 ? /\\|[/]/ : /[/]/;
|
|
313640
313640
|
var isURL3 = /^(?:git[+])?[a-z]+:/i;
|
|
@@ -313821,7 +313821,7 @@ var require_npa = __commonJS({
|
|
|
313821
313821
|
res.gitSubdir = `/${value2}`;
|
|
313822
313822
|
continue;
|
|
313823
313823
|
}
|
|
313824
|
-
|
|
313824
|
+
log4.warn("npm-package-arg", `ignoring unknown key "${name2}"`);
|
|
313825
313825
|
}
|
|
313826
313826
|
}
|
|
313827
313827
|
__name(setGitAttrs, "setGitAttrs");
|
|
@@ -316783,7 +316783,7 @@ var require_normalize = __commonJS({
|
|
|
316783
316783
|
var clean6 = require_clean();
|
|
316784
316784
|
var fs19 = __require("node:fs/promises");
|
|
316785
316785
|
var path36 = __require("node:path");
|
|
316786
|
-
var { log:
|
|
316786
|
+
var { log: log4 } = require_lib8();
|
|
316787
316787
|
var _hostedGitInfo;
|
|
316788
316788
|
function lazyHostedGitInfo() {
|
|
316789
316789
|
if (!_hostedGitInfo) {
|
|
@@ -317284,7 +317284,7 @@ var require_normalize = __commonJS({
|
|
|
317284
317284
|
try {
|
|
317285
317285
|
await fs19.access(path36.resolve(pkg.path, data.bin[key]));
|
|
317286
317286
|
} catch {
|
|
317287
|
-
|
|
317287
|
+
log4.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
317288
317288
|
}
|
|
317289
317289
|
}
|
|
317290
317290
|
}
|
|
@@ -317914,7 +317914,7 @@ var require_lib22 = __commonJS({
|
|
|
317914
317914
|
var { walkUp } = require_cjs2();
|
|
317915
317915
|
var ini2 = require_ini2();
|
|
317916
317916
|
var nopt = require_nopt();
|
|
317917
|
-
var { log:
|
|
317917
|
+
var { log: log4, time } = require_lib8();
|
|
317918
317918
|
var { resolve: resolve12, dirname: dirname8, join: join9 } = __require("node:path");
|
|
317919
317919
|
var { homedir: homedir6 } = __require("node:os");
|
|
317920
317920
|
var { readFile: readFile6, writeFile: writeFile3, chmod, unlink, stat: stat3, mkdir } = __require("node:fs/promises");
|
|
@@ -318305,7 +318305,7 @@ var require_lib22 = __commonJS({
|
|
|
318305
318305
|
}
|
|
318306
318306
|
invalidHandler(k, val, type2, source, where) {
|
|
318307
318307
|
const typeDescription = require_type_description();
|
|
318308
|
-
|
|
318308
|
+
log4.warn("invalid config", k + "=" + JSON.stringify(val), `set in ${source}`);
|
|
318309
318309
|
this.data.get(where)[_valid] = false;
|
|
318310
318310
|
if (Array.isArray(type2)) {
|
|
318311
318311
|
if (type2.includes(typeDefs.url.type)) {
|
|
@@ -318322,7 +318322,7 @@ var require_lib22 = __commonJS({
|
|
|
318322
318322
|
const desc = mustBe.length === 1 ? mustBe[0] : [
|
|
318323
318323
|
...new Set(mustBe.map((n) => typeof n === "string" ? n : JSON.stringify(n)))
|
|
318324
318324
|
].join(", ");
|
|
318325
|
-
|
|
318325
|
+
log4.warn("invalid config", msg, desc);
|
|
318326
318326
|
}
|
|
318327
318327
|
#getOneOfKeywords(mustBe, typeDesc) {
|
|
318328
318328
|
let keyword;
|
|
@@ -318352,7 +318352,7 @@ var require_lib22 = __commonJS({
|
|
|
318352
318352
|
if (er) {
|
|
318353
318353
|
conf.loadError = er;
|
|
318354
318354
|
if (er.code !== "ENOENT") {
|
|
318355
|
-
|
|
318355
|
+
log4.verbose("config", `error loading ${where} config`, er);
|
|
318356
318356
|
}
|
|
318357
318357
|
} else {
|
|
318358
318358
|
conf.raw = obj;
|
|
@@ -318375,7 +318375,7 @@ var require_lib22 = __commonJS({
|
|
|
318375
318375
|
}
|
|
318376
318376
|
#checkDeprecated(key) {
|
|
318377
318377
|
if (this.deprecated[key]) {
|
|
318378
|
-
|
|
318378
|
+
log4.warn("config", key, this.deprecated[key]);
|
|
318379
318379
|
}
|
|
318380
318380
|
}
|
|
318381
318381
|
// Parse a field, coercing it to the best type available.
|
|
@@ -318383,11 +318383,11 @@ var require_lib22 = __commonJS({
|
|
|
318383
318383
|
return parseField(f, key, this, listElement);
|
|
318384
318384
|
}
|
|
318385
318385
|
async #loadFile(file, type2) {
|
|
318386
|
-
|
|
318386
|
+
log4.silly("config", `load:file:${file}`);
|
|
318387
318387
|
await readFile6(file, "utf8").then((data) => {
|
|
318388
318388
|
const parsedConfig = ini2.parse(data);
|
|
318389
318389
|
if (type2 === "project" && parsedConfig.prefix) {
|
|
318390
|
-
|
|
318390
|
+
log4.error("config", `prefix cannot be changed from project config: ${file}.`);
|
|
318391
318391
|
}
|
|
318392
318392
|
return this.#loadObject(parsedConfig, type2, file);
|
|
318393
318393
|
}, (er) => this.#loadObject(null, type2, file, er));
|
|
@@ -318450,7 +318450,7 @@ var require_lib22 = __commonJS({
|
|
|
318450
318450
|
for (const w of workspaces.values()) {
|
|
318451
318451
|
if (w === this.localPrefix) {
|
|
318452
318452
|
if (await fileExists2(this.localPrefix, ".npmrc")) {
|
|
318453
|
-
|
|
318453
|
+
log4.warn("config", `ignoring workspace config at ${this.localPrefix}/.npmrc`);
|
|
318454
318454
|
}
|
|
318455
318455
|
const { data } = this.data.get("default");
|
|
318456
318456
|
data.workspace = [
|
|
@@ -318458,7 +318458,7 @@ var require_lib22 = __commonJS({
|
|
|
318458
318458
|
];
|
|
318459
318459
|
this.localPrefix = p;
|
|
318460
318460
|
this.localPackage = hasPackageJson;
|
|
318461
|
-
|
|
318461
|
+
log4.info("config", `found workspace root at ${this.localPrefix}`);
|
|
318462
318462
|
return;
|
|
318463
318463
|
}
|
|
318464
318464
|
}
|
|
@@ -326320,7 +326320,7 @@ var require_typedarray = __commonJS({
|
|
|
326320
326320
|
var LN2 = Math.LN2;
|
|
326321
326321
|
var abs = Math.abs;
|
|
326322
326322
|
var floor = Math.floor;
|
|
326323
|
-
var
|
|
326323
|
+
var log4 = Math.log;
|
|
326324
326324
|
var min3 = Math.min;
|
|
326325
326325
|
var pow = Math.pow;
|
|
326326
326326
|
var round = Math.round;
|
|
@@ -326507,7 +326507,7 @@ var require_typedarray = __commonJS({
|
|
|
326507
326507
|
s = v < 0;
|
|
326508
326508
|
v = abs(v);
|
|
326509
326509
|
if (v >= pow(2, 1 - bias)) {
|
|
326510
|
-
e = min3(floor(
|
|
326510
|
+
e = min3(floor(log4(v) / LN2), 1023);
|
|
326511
326511
|
f = roundToEven(v / pow(2, e) * pow(2, fbits));
|
|
326512
326512
|
if (f / pow(2, fbits) >= 2) {
|
|
326513
326513
|
e = e + 1;
|
|
@@ -337809,14 +337809,14 @@ var require_parse8 = __commonJS({
|
|
|
337809
337809
|
var escapeArgument = require_escapeArgument();
|
|
337810
337810
|
var escapeCommand = require_escapeCommand();
|
|
337811
337811
|
var readShebang = require_readShebang();
|
|
337812
|
-
var
|
|
337812
|
+
var isWin2 = process.platform === "win32";
|
|
337813
337813
|
var skipShellRegExp = /\.(?:com|exe)$/i;
|
|
337814
337814
|
var supportsShellOption = parseInt(process.version.substr(1).split(".")[0], 10) >= 6 || parseInt(process.version.substr(1).split(".")[0], 10) === 4 && parseInt(process.version.substr(1).split(".")[1], 10) >= 8;
|
|
337815
337815
|
function parseNonShell(parsed) {
|
|
337816
337816
|
var shebang;
|
|
337817
337817
|
var needsShell;
|
|
337818
337818
|
var applyQuotes;
|
|
337819
|
-
if (!
|
|
337819
|
+
if (!isWin2) {
|
|
337820
337820
|
return parsed;
|
|
337821
337821
|
}
|
|
337822
337822
|
parsed.file = resolveCommand(parsed.command);
|
|
@@ -337855,7 +337855,7 @@ var require_parse8 = __commonJS({
|
|
|
337855
337855
|
shellCommand = [
|
|
337856
337856
|
parsed.command
|
|
337857
337857
|
].concat(parsed.args).join(" ");
|
|
337858
|
-
if (
|
|
337858
|
+
if (isWin2) {
|
|
337859
337859
|
parsed.command = typeof parsed.options.shell === "string" ? parsed.options.shell : process.env.comspec || "cmd.exe";
|
|
337860
337860
|
parsed.args = [
|
|
337861
337861
|
"/d",
|
|
@@ -337907,7 +337907,7 @@ var require_enoent = __commonJS({
|
|
|
337907
337907
|
"../../node_modules/.pnpm/cross-spawn@5.1.0/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
337908
337908
|
"use strict";
|
|
337909
337909
|
init_esm_shims();
|
|
337910
|
-
var
|
|
337910
|
+
var isWin2 = process.platform === "win32";
|
|
337911
337911
|
var resolveCommand = require_resolveCommand();
|
|
337912
337912
|
var isNode10 = process.version.indexOf("v0.10.") === 0;
|
|
337913
337913
|
function notFoundError(command, syscall) {
|
|
@@ -337920,7 +337920,7 @@ var require_enoent = __commonJS({
|
|
|
337920
337920
|
__name(notFoundError, "notFoundError");
|
|
337921
337921
|
function hookChildProcess(cp, parsed) {
|
|
337922
337922
|
var originalEmit;
|
|
337923
|
-
if (!
|
|
337923
|
+
if (!isWin2) {
|
|
337924
337924
|
return;
|
|
337925
337925
|
}
|
|
337926
337926
|
originalEmit = cp.emit;
|
|
@@ -337937,18 +337937,18 @@ var require_enoent = __commonJS({
|
|
|
337937
337937
|
}
|
|
337938
337938
|
__name(hookChildProcess, "hookChildProcess");
|
|
337939
337939
|
function verifyENOENT(status, parsed) {
|
|
337940
|
-
if (
|
|
337940
|
+
if (isWin2 && status === 1 && !parsed.file) {
|
|
337941
337941
|
return notFoundError(parsed.original, "spawn");
|
|
337942
337942
|
}
|
|
337943
337943
|
return null;
|
|
337944
337944
|
}
|
|
337945
337945
|
__name(verifyENOENT, "verifyENOENT");
|
|
337946
337946
|
function verifyENOENTSync(status, parsed) {
|
|
337947
|
-
if (
|
|
337947
|
+
if (isWin2 && status === 1 && !parsed.file) {
|
|
337948
337948
|
return notFoundError(parsed.original, "spawnSync");
|
|
337949
337949
|
}
|
|
337950
337950
|
if (isNode10 && status === -1) {
|
|
337951
|
-
parsed.file =
|
|
337951
|
+
parsed.file = isWin2 ? parsed.file : resolveCommand(parsed.original);
|
|
337952
337952
|
if (!parsed.file) {
|
|
337953
337953
|
return notFoundError(parsed.original, "spawnSync");
|
|
337954
337954
|
}
|
|
@@ -338041,7 +338041,7 @@ var require_signal_exit = __commonJS({
|
|
|
338041
338041
|
} else {
|
|
338042
338042
|
assert28 = __require("assert");
|
|
338043
338043
|
signals = require_signals();
|
|
338044
|
-
|
|
338044
|
+
isWin2 = /^win/i.test(process11.platform);
|
|
338045
338045
|
EE = __require("events");
|
|
338046
338046
|
if (typeof EE !== "function") {
|
|
338047
338047
|
EE = EE.EventEmitter;
|
|
@@ -338113,7 +338113,7 @@ var require_signal_exit = __commonJS({
|
|
|
338113
338113
|
unload();
|
|
338114
338114
|
emit("exit", null, sig);
|
|
338115
338115
|
emit("afterexit", null, sig);
|
|
338116
|
-
if (
|
|
338116
|
+
if (isWin2 && sig === "SIGHUP") {
|
|
338117
338117
|
sig = "SIGINT";
|
|
338118
338118
|
}
|
|
338119
338119
|
process11.kill(process11.pid, sig);
|
|
@@ -338170,7 +338170,7 @@ var require_signal_exit = __commonJS({
|
|
|
338170
338170
|
}
|
|
338171
338171
|
var assert28;
|
|
338172
338172
|
var signals;
|
|
338173
|
-
var
|
|
338173
|
+
var isWin2;
|
|
338174
338174
|
var EE;
|
|
338175
338175
|
var emitter;
|
|
338176
338176
|
var unload;
|
|
@@ -339280,11 +339280,11 @@ function interpolate(target, source = {}, parse8 = (v) => v) {
|
|
|
339280
339280
|
__name(interpolate, "interpolate");
|
|
339281
339281
|
var _normalize = /* @__PURE__ */ __name((p) => p?.replace(/\\/g, "/"), "_normalize");
|
|
339282
339282
|
var ASYNC_LOADERS = {
|
|
339283
|
-
".yaml": /* @__PURE__ */ __name(() => import("./yaml-
|
|
339284
|
-
".yml": /* @__PURE__ */ __name(() => import("./yaml-
|
|
339285
|
-
".jsonc": /* @__PURE__ */ __name(() => import("./jsonc-
|
|
339286
|
-
".json5": /* @__PURE__ */ __name(() => import("./json5-
|
|
339287
|
-
".toml": /* @__PURE__ */ __name(() => import("./toml-
|
|
339283
|
+
".yaml": /* @__PURE__ */ __name(() => import("./yaml-XP5UAV4Y.js").then((r) => r.parseYAML), ".yaml"),
|
|
339284
|
+
".yml": /* @__PURE__ */ __name(() => import("./yaml-XP5UAV4Y.js").then((r) => r.parseYAML), ".yml"),
|
|
339285
|
+
".jsonc": /* @__PURE__ */ __name(() => import("./jsonc-YCDSJSS2.js").then((r) => r.parseJSONC), ".jsonc"),
|
|
339286
|
+
".json5": /* @__PURE__ */ __name(() => import("./json5-QOJRSU3X.js").then((r) => r.parseJSON5), ".json5"),
|
|
339287
|
+
".toml": /* @__PURE__ */ __name(() => import("./toml-U5TVWQLZ.js").then((r) => r.parseTOML), ".toml")
|
|
339288
339288
|
};
|
|
339289
339289
|
var SUPPORTED_EXTENSIONS = [
|
|
339290
339290
|
// with jiti
|
|
@@ -339486,7 +339486,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
339486
339486
|
}
|
|
339487
339487
|
const _merger = options.merger || defu;
|
|
339488
339488
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
339489
|
-
const { downloadTemplate } = await import("./dist-
|
|
339489
|
+
const { downloadTemplate } = await import("./dist-LAXHN42C.js");
|
|
339490
339490
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
339491
339491
|
let cloneDir;
|
|
339492
339492
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -343935,11 +343935,11 @@ var StormConfigSchema = z.object({
|
|
|
343935
343935
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
343936
343936
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
343937
343937
|
bot: WorkspaceBotConfigSchema,
|
|
343938
|
-
|
|
343938
|
+
mode: z.enum([
|
|
343939
343939
|
"development",
|
|
343940
343940
|
"staging",
|
|
343941
343941
|
"production"
|
|
343942
|
-
]).default("production").describe("The current runtime environment
|
|
343942
|
+
]).default("production").describe("The current runtime environment mode for the package"),
|
|
343943
343943
|
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
343944
343944
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
343945
343945
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
@@ -344653,7 +344653,7 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
344653
344653
|
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
344654
344654
|
},
|
|
344655
344655
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
344656
|
-
|
|
344656
|
+
mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
|
|
344657
344657
|
// ci:
|
|
344658
344658
|
// process.env[`${prefix}CI`] !== undefined
|
|
344659
344659
|
// ? Boolean(
|
|
@@ -344863,10 +344863,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
344863
344863
|
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
344864
344864
|
}
|
|
344865
344865
|
}
|
|
344866
|
-
if (config.
|
|
344867
|
-
process.env[`${prefix}
|
|
344868
|
-
process.env.NODE_ENV = config.
|
|
344869
|
-
process.env.ENVIRONMENT = config.
|
|
344866
|
+
if (config.mode) {
|
|
344867
|
+
process.env[`${prefix}MODE`] = config.mode;
|
|
344868
|
+
process.env.NODE_ENV = config.mode;
|
|
344869
|
+
process.env.ENVIRONMENT = config.mode;
|
|
344870
344870
|
}
|
|
344871
344871
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
344872
344872
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -378247,27 +378247,69 @@ import { promises as fs8 } from "node:fs";
|
|
|
378247
378247
|
import * as path18 from "node:path";
|
|
378248
378248
|
import { posix as posix3 } from "node:path";
|
|
378249
378249
|
|
|
378250
|
-
// ../../node_modules/.pnpm/tinyglobby@0.2.
|
|
378250
|
+
// ../../node_modules/.pnpm/tinyglobby@0.2.11/node_modules/tinyglobby/dist/index.mjs
|
|
378251
378251
|
init_esm_shims();
|
|
378252
378252
|
var import_fdir = __toESM(require_dist2(), 1);
|
|
378253
378253
|
var import_picomatch = __toESM(require_picomatch4(), 1);
|
|
378254
378254
|
var import_picomatch2 = __toESM(require_picomatch4(), 1);
|
|
378255
378255
|
import path17, { posix as posix2 } from "path";
|
|
378256
|
-
|
|
378257
|
-
|
|
378258
|
-
|
|
378256
|
+
function getPartialMatcher(patterns2, options) {
|
|
378257
|
+
const patternsCount = patterns2.length;
|
|
378258
|
+
const patternsParts = Array(patternsCount);
|
|
378259
|
+
const regexes = Array(patternsCount);
|
|
378260
|
+
for (let i = 0; i < patternsCount; i++) {
|
|
378261
|
+
const parts = splitPattern(patterns2[i]);
|
|
378262
|
+
patternsParts[i] = parts;
|
|
378263
|
+
const partsCount = parts.length;
|
|
378264
|
+
const partRegexes = Array(partsCount);
|
|
378265
|
+
for (let j = 0; j < partsCount; j++) {
|
|
378266
|
+
partRegexes[j] = import_picomatch2.default.makeRe(parts[j], options);
|
|
378267
|
+
}
|
|
378268
|
+
regexes[i] = partRegexes;
|
|
378269
|
+
}
|
|
378270
|
+
return (input) => {
|
|
378271
|
+
const inputParts = input.split("/");
|
|
378272
|
+
for (let i = 0; i < patterns2.length; i++) {
|
|
378273
|
+
const patternParts = patternsParts[i];
|
|
378274
|
+
const regex3 = regexes[i];
|
|
378275
|
+
const inputPatternCount = inputParts.length;
|
|
378276
|
+
const minParts = Math.min(inputPatternCount, patternParts.length);
|
|
378277
|
+
let j = 0;
|
|
378278
|
+
while (j < minParts) {
|
|
378279
|
+
const part = patternParts[j];
|
|
378280
|
+
if (part.includes("/")) {
|
|
378281
|
+
return true;
|
|
378282
|
+
}
|
|
378283
|
+
const match4 = regex3[j].test(inputParts[j]);
|
|
378284
|
+
if (!match4) {
|
|
378285
|
+
break;
|
|
378286
|
+
}
|
|
378287
|
+
if (part === "**") {
|
|
378288
|
+
return true;
|
|
378289
|
+
}
|
|
378290
|
+
j++;
|
|
378291
|
+
}
|
|
378292
|
+
if (j === inputPatternCount) {
|
|
378293
|
+
return true;
|
|
378294
|
+
}
|
|
378295
|
+
}
|
|
378296
|
+
return false;
|
|
378297
|
+
};
|
|
378259
378298
|
}
|
|
378260
|
-
__name(
|
|
378261
|
-
|
|
378262
|
-
|
|
378299
|
+
__name(getPartialMatcher, "getPartialMatcher");
|
|
378300
|
+
var splitPatternOptions = { parts: true };
|
|
378301
|
+
function splitPattern(path210) {
|
|
378302
|
+
var _a;
|
|
378303
|
+
const result = import_picomatch2.default.scan(path210, splitPatternOptions);
|
|
378304
|
+
return ((_a = result.parts) == null ? void 0 : _a.length) ? result.parts : [path210];
|
|
378263
378305
|
}
|
|
378264
|
-
__name(
|
|
378265
|
-
var
|
|
378306
|
+
__name(splitPattern, "splitPattern");
|
|
378307
|
+
var isWin = process.platform === "win32";
|
|
378266
378308
|
var POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
|
|
378267
378309
|
var WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
378268
378310
|
var escapePosixPath = /* @__PURE__ */ __name((path210) => path210.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&"), "escapePosixPath");
|
|
378269
378311
|
var escapeWin32Path = /* @__PURE__ */ __name((path210) => path210.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&"), "escapeWin32Path");
|
|
378270
|
-
var escapePath =
|
|
378312
|
+
var escapePath = isWin ? escapeWin32Path : escapePosixPath;
|
|
378271
378313
|
function isDynamicPattern2(pattern, options) {
|
|
378272
378314
|
if ((options == null ? void 0 : options.caseSensitiveMatch) === false) {
|
|
378273
378315
|
return true;
|
|
@@ -378276,7 +378318,14 @@ function isDynamicPattern2(pattern, options) {
|
|
|
378276
378318
|
return scan3.isGlob || scan3.negated;
|
|
378277
378319
|
}
|
|
378278
378320
|
__name(isDynamicPattern2, "isDynamicPattern");
|
|
378279
|
-
function
|
|
378321
|
+
function log2(...tasks) {
|
|
378322
|
+
console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
|
|
378323
|
+
}
|
|
378324
|
+
__name(log2, "log");
|
|
378325
|
+
var PARENT_DIRECTORY = /^(\/?\.\.)+/;
|
|
378326
|
+
var ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
|
|
378327
|
+
var BACKSLASHES = /\\/g;
|
|
378328
|
+
function normalizePattern3(pattern, expandDirectories, cwd, props, isIgnore) {
|
|
378280
378329
|
var _a;
|
|
378281
378330
|
let result = pattern;
|
|
378282
378331
|
if (pattern.endsWith("/")) {
|
|
@@ -378285,41 +378334,42 @@ function normalizePattern3(pattern, expandDirectories, cwd, properties, isIgnore
|
|
|
378285
378334
|
if (!result.endsWith("*") && expandDirectories) {
|
|
378286
378335
|
result += "/**";
|
|
378287
378336
|
}
|
|
378288
|
-
if (path17.isAbsolute(result.replace(
|
|
378289
|
-
result = posix2.relative(cwd, result);
|
|
378337
|
+
if (path17.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) {
|
|
378338
|
+
result = posix2.relative(escapePath(cwd), result);
|
|
378290
378339
|
} else {
|
|
378291
378340
|
result = posix2.normalize(result);
|
|
378292
378341
|
}
|
|
378293
|
-
const parentDirectoryMatch =
|
|
378342
|
+
const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
|
|
378294
378343
|
if (parentDirectoryMatch == null ? void 0 : parentDirectoryMatch[0]) {
|
|
378295
378344
|
const potentialRoot = posix2.join(cwd, parentDirectoryMatch[0]);
|
|
378296
|
-
if (
|
|
378297
|
-
|
|
378298
|
-
|
|
378345
|
+
if (props.root.length > potentialRoot.length) {
|
|
378346
|
+
props.root = potentialRoot;
|
|
378347
|
+
props.depthOffset = -(parentDirectoryMatch[0].length + 1) / 3;
|
|
378299
378348
|
}
|
|
378300
|
-
} else if (!isIgnore &&
|
|
378301
|
-
const
|
|
378302
|
-
(_a =
|
|
378349
|
+
} else if (!isIgnore && props.depthOffset >= 0) {
|
|
378350
|
+
const parts = splitPattern(result);
|
|
378351
|
+
(_a = props.commonPath) != null ? _a : props.commonPath = parts;
|
|
378303
378352
|
const newCommonPath = [];
|
|
378304
|
-
|
|
378305
|
-
|
|
378306
|
-
|
|
378353
|
+
const length = Math.min(props.commonPath.length, parts.length);
|
|
378354
|
+
for (let i = 0; i < length; i++) {
|
|
378355
|
+
const part = parts[i];
|
|
378356
|
+
if (part === "**" && !parts[i + 1]) {
|
|
378307
378357
|
newCommonPath.pop();
|
|
378308
378358
|
break;
|
|
378309
378359
|
}
|
|
378310
|
-
if (part !==
|
|
378360
|
+
if (part !== props.commonPath[i] || isDynamicPattern2(part) || i === parts.length - 1) {
|
|
378311
378361
|
break;
|
|
378312
378362
|
}
|
|
378313
378363
|
newCommonPath.push(part);
|
|
378314
378364
|
}
|
|
378315
|
-
|
|
378316
|
-
|
|
378317
|
-
|
|
378365
|
+
props.depthOffset = newCommonPath.length;
|
|
378366
|
+
props.commonPath = newCommonPath;
|
|
378367
|
+
props.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd;
|
|
378318
378368
|
}
|
|
378319
378369
|
return result;
|
|
378320
378370
|
}
|
|
378321
378371
|
__name(normalizePattern3, "normalizePattern");
|
|
378322
|
-
function processPatterns({ patterns: patterns2, ignore: ignore3 = [], expandDirectories = true }, cwd,
|
|
378372
|
+
function processPatterns({ patterns: patterns2, ignore: ignore3 = [], expandDirectories = true }, cwd, props) {
|
|
378323
378373
|
if (typeof patterns2 === "string") {
|
|
378324
378374
|
patterns2 = [patterns2];
|
|
378325
378375
|
} else if (!patterns2) {
|
|
@@ -378331,25 +378381,28 @@ function processPatterns({ patterns: patterns2, ignore: ignore3 = [], expandDire
|
|
|
378331
378381
|
const matchPatterns = [];
|
|
378332
378382
|
const ignorePatterns = [];
|
|
378333
378383
|
for (const pattern of ignore3) {
|
|
378334
|
-
if (!pattern
|
|
378335
|
-
|
|
378336
|
-
|
|
378384
|
+
if (!pattern) {
|
|
378385
|
+
continue;
|
|
378386
|
+
}
|
|
378387
|
+
if (pattern[0] !== "!" || pattern[1] === "(") {
|
|
378388
|
+
ignorePatterns.push(normalizePattern3(pattern, expandDirectories, cwd, props, true));
|
|
378337
378389
|
}
|
|
378338
378390
|
}
|
|
378339
378391
|
for (const pattern of patterns2) {
|
|
378340
|
-
if (!pattern
|
|
378341
|
-
|
|
378342
|
-
|
|
378392
|
+
if (!pattern) {
|
|
378393
|
+
continue;
|
|
378394
|
+
}
|
|
378395
|
+
if (pattern[0] !== "!" || pattern[1] === "(") {
|
|
378396
|
+
matchPatterns.push(normalizePattern3(pattern, expandDirectories, cwd, props, false));
|
|
378343
378397
|
} else if (pattern[1] !== "!" || pattern[2] === "(") {
|
|
378344
|
-
|
|
378345
|
-
ignorePatterns.push(newPattern);
|
|
378398
|
+
ignorePatterns.push(normalizePattern3(pattern.slice(1), expandDirectories, cwd, props, true));
|
|
378346
378399
|
}
|
|
378347
378400
|
}
|
|
378348
378401
|
return { match: matchPatterns, ignore: ignorePatterns };
|
|
378349
378402
|
}
|
|
378350
378403
|
__name(processPatterns, "processPatterns");
|
|
378351
378404
|
function getRelativePath(path210, cwd, root) {
|
|
378352
|
-
return posix2.relative(cwd, `${root}/${path210}`);
|
|
378405
|
+
return posix2.relative(cwd, `${root}/${path210}`) || ".";
|
|
378353
378406
|
}
|
|
378354
378407
|
__name(getRelativePath, "getRelativePath");
|
|
378355
378408
|
function processPath(path210, cwd, root, isDirectory2, absolute) {
|
|
@@ -378360,32 +378413,76 @@ function processPath(path210, cwd, root, isDirectory2, absolute) {
|
|
|
378360
378413
|
return getRelativePath(relativePath2, cwd, root);
|
|
378361
378414
|
}
|
|
378362
378415
|
__name(processPath, "processPath");
|
|
378416
|
+
function formatPaths(paths, cwd, root) {
|
|
378417
|
+
for (let i = paths.length - 1; i >= 0; i--) {
|
|
378418
|
+
const path210 = paths[i];
|
|
378419
|
+
paths[i] = getRelativePath(path210, cwd, root) + (!path210 || path210.endsWith("/") ? "/" : "");
|
|
378420
|
+
}
|
|
378421
|
+
return paths;
|
|
378422
|
+
}
|
|
378423
|
+
__name(formatPaths, "formatPaths");
|
|
378363
378424
|
function crawl(options, cwd, sync3) {
|
|
378364
|
-
|
|
378425
|
+
if (process.env.TINYGLOBBY_DEBUG) {
|
|
378426
|
+
options.debug = true;
|
|
378427
|
+
}
|
|
378428
|
+
if (options.debug) {
|
|
378429
|
+
log2("globbing with options:", options, "cwd:", cwd);
|
|
378430
|
+
}
|
|
378431
|
+
if (Array.isArray(options.patterns) && options.patterns.length === 0) {
|
|
378432
|
+
return sync3 ? [] : Promise.resolve([]);
|
|
378433
|
+
}
|
|
378434
|
+
const props = {
|
|
378365
378435
|
root: cwd,
|
|
378366
378436
|
commonPath: null,
|
|
378367
378437
|
depthOffset: 0
|
|
378368
378438
|
};
|
|
378369
|
-
const processed = processPatterns(options, cwd,
|
|
378439
|
+
const processed = processPatterns(options, cwd, props);
|
|
378440
|
+
const nocase = options.caseSensitiveMatch === false;
|
|
378441
|
+
if (options.debug) {
|
|
378442
|
+
log2("internal processing patterns:", processed);
|
|
378443
|
+
}
|
|
378370
378444
|
const matcher = (0, import_picomatch.default)(processed.match, {
|
|
378371
378445
|
dot: options.dot,
|
|
378372
|
-
nocase
|
|
378446
|
+
nocase,
|
|
378373
378447
|
ignore: processed.ignore
|
|
378374
378448
|
});
|
|
378375
|
-
const
|
|
378449
|
+
const ignore3 = (0, import_picomatch.default)(processed.ignore, {
|
|
378376
378450
|
dot: options.dot,
|
|
378377
|
-
nocase
|
|
378451
|
+
nocase
|
|
378452
|
+
});
|
|
378453
|
+
const partialMatcher = getPartialMatcher(processed.match, {
|
|
378454
|
+
dot: options.dot,
|
|
378455
|
+
nocase
|
|
378378
378456
|
});
|
|
378379
378457
|
const fdirOptions = {
|
|
378380
378458
|
// use relative paths in the matcher
|
|
378381
|
-
filters: [
|
|
378382
|
-
|
|
378459
|
+
filters: [
|
|
378460
|
+
options.debug ? (p, isDirectory2) => {
|
|
378461
|
+
const path210 = processPath(p, cwd, props.root, isDirectory2, options.absolute);
|
|
378462
|
+
const matches = matcher(path210);
|
|
378463
|
+
if (matches) {
|
|
378464
|
+
log2(`matched ${path210}`);
|
|
378465
|
+
}
|
|
378466
|
+
return matches;
|
|
378467
|
+
} : (p, isDirectory2) => matcher(processPath(p, cwd, props.root, isDirectory2, options.absolute))
|
|
378468
|
+
],
|
|
378469
|
+
exclude: options.debug ? (_, p) => {
|
|
378470
|
+
const relativePath2 = processPath(p, cwd, props.root, true, true);
|
|
378471
|
+
const skipped = relativePath2 !== "." && !partialMatcher(relativePath2) || ignore3(relativePath2);
|
|
378472
|
+
if (!skipped) {
|
|
378473
|
+
log2(`crawling ${p}`);
|
|
378474
|
+
}
|
|
378475
|
+
return skipped;
|
|
378476
|
+
} : (_, p) => {
|
|
378477
|
+
const relativePath2 = processPath(p, cwd, props.root, true, true);
|
|
378478
|
+
return relativePath2 !== "." && !partialMatcher(relativePath2) || ignore3(relativePath2);
|
|
378479
|
+
},
|
|
378383
378480
|
pathSeparator: "/",
|
|
378384
378481
|
relativePaths: true,
|
|
378385
378482
|
resolveSymlinks: true
|
|
378386
378483
|
};
|
|
378387
378484
|
if (options.deep) {
|
|
378388
|
-
fdirOptions.maxDepth = Math.round(options.deep -
|
|
378485
|
+
fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
|
|
378389
378486
|
}
|
|
378390
378487
|
if (options.absolute) {
|
|
378391
378488
|
fdirOptions.relativePaths = false;
|
|
@@ -378402,12 +378499,16 @@ function crawl(options, cwd, sync3) {
|
|
|
378402
378499
|
} else if (options.onlyFiles === false) {
|
|
378403
378500
|
fdirOptions.includeDirs = true;
|
|
378404
378501
|
}
|
|
378405
|
-
|
|
378406
|
-
const
|
|
378407
|
-
if (
|
|
378502
|
+
props.root = props.root.replace(BACKSLASHES, "");
|
|
378503
|
+
const root = props.root;
|
|
378504
|
+
if (options.debug) {
|
|
378505
|
+
log2("internal properties:", props);
|
|
378506
|
+
}
|
|
378507
|
+
const api = new import_fdir.fdir(fdirOptions).crawl(root);
|
|
378508
|
+
if (cwd === root || options.absolute) {
|
|
378408
378509
|
return sync3 ? api.sync() : api.withPromise();
|
|
378409
378510
|
}
|
|
378410
|
-
return sync3 ? api.sync()
|
|
378511
|
+
return sync3 ? formatPaths(api.sync(), cwd, root) : api.withPromise().then((paths) => formatPaths(paths, cwd, root));
|
|
378411
378512
|
}
|
|
378412
378513
|
__name(crawl, "crawl");
|
|
378413
378514
|
async function glob(patternsOrOptions, options) {
|
|
@@ -378415,7 +378516,7 @@ async function glob(patternsOrOptions, options) {
|
|
|
378415
378516
|
throw new Error("Cannot pass patterns as both an argument and an option");
|
|
378416
378517
|
}
|
|
378417
378518
|
const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
|
|
378418
|
-
const cwd = opts.cwd ? path17.resolve(opts.cwd).replace(
|
|
378519
|
+
const cwd = opts.cwd ? path17.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
|
|
378419
378520
|
return crawl(opts, cwd, false);
|
|
378420
378521
|
}
|
|
378421
378522
|
__name(glob, "glob");
|
|
@@ -379814,7 +379915,7 @@ function yesNo(value2) {
|
|
|
379814
379915
|
}
|
|
379815
379916
|
__name(yesNo, "yesNo");
|
|
379816
379917
|
function getLoggerFromReporter(reporter2) {
|
|
379817
|
-
const
|
|
379918
|
+
const log4 = /* @__PURE__ */ __name((...params) => {
|
|
379818
379919
|
const msg = format4(...params);
|
|
379819
379920
|
reporter2.info(msg, "Info");
|
|
379820
379921
|
}, "log");
|
|
@@ -379832,7 +379933,7 @@ function getLoggerFromReporter(reporter2) {
|
|
|
379832
379933
|
reporter2.info(msg, "Warning");
|
|
379833
379934
|
}, "warn");
|
|
379834
379935
|
return {
|
|
379835
|
-
log:
|
|
379936
|
+
log: log4,
|
|
379836
379937
|
warn,
|
|
379837
379938
|
error: error2
|
|
379838
379939
|
};
|
|
@@ -400673,7 +400774,7 @@ function serializeRows(rows) {
|
|
|
400673
400774
|
__name(serializeRows, "serializeRows");
|
|
400674
400775
|
|
|
400675
400776
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/file-set-pipeline/log.js
|
|
400676
|
-
async function
|
|
400777
|
+
async function log3(context, settings) {
|
|
400677
400778
|
let value2 = reporter;
|
|
400678
400779
|
if (typeof settings.reporter === "string") {
|
|
400679
400780
|
try {
|
|
@@ -400711,7 +400812,7 @@ async function log2(context, settings) {
|
|
|
400711
400812
|
});
|
|
400712
400813
|
}
|
|
400713
400814
|
}
|
|
400714
|
-
__name(
|
|
400815
|
+
__name(log3, "log");
|
|
400715
400816
|
|
|
400716
400817
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/file-set-pipeline/stdin.js
|
|
400717
400818
|
init_esm_shims();
|
|
@@ -401455,7 +401556,7 @@ function transform4(context, settings, next) {
|
|
|
401455
401556
|
__name(transform4, "transform");
|
|
401456
401557
|
|
|
401457
401558
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/file-set-pipeline/index.js
|
|
401458
|
-
var fileSetPipeline = trough().use(configure).use(fileSystem).use(stdin2).use(transform4).use(
|
|
401559
|
+
var fileSetPipeline = trough().use(configure).use(fileSystem).use(stdin2).use(transform4).use(log3);
|
|
401459
401560
|
|
|
401460
401561
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/index.js
|
|
401461
401562
|
function engine(options, callback) {
|
|
@@ -407364,7 +407465,7 @@ glob3.glob = glob3;
|
|
|
407364
407465
|
// ../../node_modules/.pnpm/octokit@4.0.2/node_modules/octokit/dist-bundle/index.js
|
|
407365
407466
|
init_esm_shims();
|
|
407366
407467
|
|
|
407367
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
407468
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.4/node_modules/@octokit/core/dist-src/index.js
|
|
407368
407469
|
init_esm_shims();
|
|
407369
407470
|
|
|
407370
407471
|
// ../../node_modules/.pnpm/universal-user-agent@7.0.2/node_modules/universal-user-agent/index.js
|
|
@@ -407517,10 +407618,10 @@ var before_after_hook_default = {
|
|
|
407517
407618
|
Collection
|
|
407518
407619
|
};
|
|
407519
407620
|
|
|
407520
|
-
// ../../node_modules/.pnpm/@octokit+request@9.2.
|
|
407621
|
+
// ../../node_modules/.pnpm/@octokit+request@9.2.2/node_modules/@octokit/request/dist-bundle/index.js
|
|
407521
407622
|
init_esm_shims();
|
|
407522
407623
|
|
|
407523
|
-
// ../../node_modules/.pnpm/@octokit+endpoint@10.1.
|
|
407624
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@10.1.3/node_modules/@octokit/endpoint/dist-bundle/index.js
|
|
407524
407625
|
init_esm_shims();
|
|
407525
407626
|
var VERSION = "0.0.0-development";
|
|
407526
407627
|
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
@@ -407619,9 +407720,9 @@ function addQueryParameters(url2, parameters) {
|
|
|
407619
407720
|
}).join("&");
|
|
407620
407721
|
}
|
|
407621
407722
|
__name(addQueryParameters, "addQueryParameters");
|
|
407622
|
-
var urlVariableRegex = /\{[^}]+\}/g;
|
|
407723
|
+
var urlVariableRegex = /\{[^{}}]+\}/g;
|
|
407623
407724
|
function removeNonChars(variableName) {
|
|
407624
|
-
return variableName.replace(
|
|
407725
|
+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
407625
407726
|
}
|
|
407626
407727
|
__name(removeNonChars, "removeNonChars");
|
|
407627
407728
|
function extractUrlVariableNames(url2) {
|
|
@@ -407810,7 +407911,7 @@ function parse7(options) {
|
|
|
407810
407911
|
}
|
|
407811
407912
|
if (url2.endsWith("/graphql")) {
|
|
407812
407913
|
if (options.mediaType.previews?.length) {
|
|
407813
|
-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
407914
|
+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
|
407814
407915
|
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
407815
407916
|
const format6 = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
407816
407917
|
return `application/vnd.github.${preview}-preview${format6}`;
|
|
@@ -407869,10 +407970,10 @@ function withDefaults2(oldDefaults, newDefaults) {
|
|
|
407869
407970
|
__name(withDefaults2, "withDefaults");
|
|
407870
407971
|
var endpoint = withDefaults2(null, DEFAULTS);
|
|
407871
407972
|
|
|
407872
|
-
// ../../node_modules/.pnpm/@octokit+request@9.2.
|
|
407973
|
+
// ../../node_modules/.pnpm/@octokit+request@9.2.2/node_modules/@octokit/request/dist-bundle/index.js
|
|
407873
407974
|
var import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
|
|
407874
407975
|
|
|
407875
|
-
// ../../node_modules/.pnpm/@octokit+request-error@6.1.
|
|
407976
|
+
// ../../node_modules/.pnpm/@octokit+request-error@6.1.7/node_modules/@octokit/request-error/dist-src/index.js
|
|
407876
407977
|
init_esm_shims();
|
|
407877
407978
|
var RequestError = class RequestError2 extends Error {
|
|
407878
407979
|
static {
|
|
@@ -407904,7 +408005,7 @@ var RequestError = class RequestError2 extends Error {
|
|
|
407904
408005
|
const requestCopy = Object.assign({}, options.request);
|
|
407905
408006
|
if (options.request.headers.authorization) {
|
|
407906
408007
|
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
407907
|
-
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
|
408008
|
+
authorization: options.request.headers.authorization.replace(/(?<! ) .*$/, " [REDACTED]")
|
|
407908
408009
|
});
|
|
407909
408010
|
}
|
|
407910
408011
|
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
@@ -407912,7 +408013,7 @@ var RequestError = class RequestError2 extends Error {
|
|
|
407912
408013
|
}
|
|
407913
408014
|
};
|
|
407914
408015
|
|
|
407915
|
-
// ../../node_modules/.pnpm/@octokit+request@9.2.
|
|
408016
|
+
// ../../node_modules/.pnpm/@octokit+request@9.2.2/node_modules/@octokit/request/dist-bundle/index.js
|
|
407916
408017
|
var VERSION2 = "0.0.0-development";
|
|
407917
408018
|
var defaults_default = {
|
|
407918
408019
|
headers: {
|
|
@@ -407933,7 +408034,7 @@ async function fetchWrapper(requestOptions) {
|
|
|
407933
408034
|
if (!fetch) {
|
|
407934
408035
|
throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");
|
|
407935
408036
|
}
|
|
407936
|
-
const
|
|
408037
|
+
const log4 = requestOptions.request?.log || console;
|
|
407937
408038
|
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
407938
408039
|
const body = isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
|
|
407939
408040
|
const requestHeaders = Object.fromEntries(Object.entries(requestOptions.headers).map(([name2, value2]) => [
|
|
@@ -407989,9 +408090,9 @@ async function fetchWrapper(requestOptions) {
|
|
|
407989
408090
|
data: ""
|
|
407990
408091
|
};
|
|
407991
408092
|
if ("deprecation" in responseHeaders) {
|
|
407992
|
-
const matches = responseHeaders.link && responseHeaders.link.match(/<([
|
|
408093
|
+
const matches = responseHeaders.link && responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/);
|
|
407993
408094
|
const deprecationLink = matches && matches.pop();
|
|
407994
|
-
|
|
408095
|
+
log4.warn(`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`);
|
|
407995
408096
|
}
|
|
407996
408097
|
if (status === 204 || status === 205) {
|
|
407997
408098
|
return octokitResponse;
|
|
@@ -408086,7 +408187,7 @@ function withDefaults3(oldEndpoint, newDefaults) {
|
|
|
408086
408187
|
__name(withDefaults3, "withDefaults");
|
|
408087
408188
|
var request = withDefaults3(endpoint, defaults_default);
|
|
408088
408189
|
|
|
408089
|
-
// ../../node_modules/.pnpm/@octokit+graphql@8.2.
|
|
408190
|
+
// ../../node_modules/.pnpm/@octokit+graphql@8.2.1/node_modules/@octokit/graphql/dist-bundle/index.js
|
|
408090
408191
|
init_esm_shims();
|
|
408091
408192
|
var VERSION3 = "0.0.0-development";
|
|
408092
408193
|
function _buildMessageForResponseErrors(data) {
|
|
@@ -408239,11 +408340,11 @@ var createTokenAuth = /* @__PURE__ */ __name(function createTokenAuth2(token) {
|
|
|
408239
408340
|
});
|
|
408240
408341
|
}, "createTokenAuth2");
|
|
408241
408342
|
|
|
408242
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
408343
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.4/node_modules/@octokit/core/dist-src/version.js
|
|
408243
408344
|
init_esm_shims();
|
|
408244
|
-
var VERSION4 = "6.1.
|
|
408345
|
+
var VERSION4 = "6.1.4";
|
|
408245
408346
|
|
|
408246
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
408347
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.4/node_modules/@octokit/core/dist-src/index.js
|
|
408247
408348
|
var noop = /* @__PURE__ */ __name(() => {
|
|
408248
408349
|
}, "noop");
|
|
408249
408350
|
var consoleWarn = console.warn.bind(console);
|
|
@@ -408362,7 +408463,7 @@ var Octokit = class Octokit2 {
|
|
|
408362
408463
|
auth;
|
|
408363
408464
|
};
|
|
408364
408465
|
|
|
408365
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.4.
|
|
408466
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.4.2_@octokit+core@6.1.4/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js
|
|
408366
408467
|
init_esm_shims();
|
|
408367
408468
|
var VERSION5 = "0.0.0-development";
|
|
408368
408469
|
function normalizePaginatedListResponse(response) {
|
|
@@ -408412,7 +408513,7 @@ function iterator(octokit, route, parameters) {
|
|
|
408412
408513
|
headers
|
|
408413
408514
|
});
|
|
408414
408515
|
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
408415
|
-
url2 = ((normalizedResponse.headers.link || "").match(/<([
|
|
408516
|
+
url2 = ((normalizedResponse.headers.link || "").match(/<([^<>]+)>;\s*rel="next"/) || [])[1];
|
|
408416
408517
|
return {
|
|
408417
408518
|
value: normalizedResponse
|
|
408418
408519
|
};
|
|
@@ -408471,7 +408572,7 @@ function paginateRest(octokit) {
|
|
|
408471
408572
|
__name(paginateRest, "paginateRest");
|
|
408472
408573
|
paginateRest.VERSION = VERSION5;
|
|
408473
408574
|
|
|
408474
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@5.2.4_@octokit+core@6.1.
|
|
408575
|
+
// ../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@5.2.4_@octokit+core@6.1.4/node_modules/@octokit/plugin-paginate-graphql/dist-bundle/index.js
|
|
408475
408576
|
init_esm_shims();
|
|
408476
408577
|
var generateMessage = /* @__PURE__ */ __name((path36, cursorValue) => `The cursor at "${path36.join(",")}" did not change its value "${cursorValue}" after a page transition. Please make sure your that your query is set up correctly.`, "generateMessage");
|
|
408477
408578
|
var MissingCursorChange = class extends Error {
|
|
@@ -408651,17 +408752,17 @@ function paginateGraphQL(octokit) {
|
|
|
408651
408752
|
}
|
|
408652
408753
|
__name(paginateGraphQL, "paginateGraphQL");
|
|
408653
408754
|
|
|
408654
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408755
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.4/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
408655
408756
|
init_esm_shims();
|
|
408656
408757
|
|
|
408657
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408758
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.4/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
|
408658
408759
|
init_esm_shims();
|
|
408659
408760
|
var VERSION6 = "13.3.1";
|
|
408660
408761
|
|
|
408661
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408762
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.4/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
408662
408763
|
init_esm_shims();
|
|
408663
408764
|
|
|
408664
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408765
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.4/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
|
|
408665
408766
|
init_esm_shims();
|
|
408666
408767
|
var Endpoints = {
|
|
408667
408768
|
actions: {
|
|
@@ -411888,7 +411989,7 @@ var Endpoints = {
|
|
|
411888
411989
|
};
|
|
411889
411990
|
var endpoints_default = Endpoints;
|
|
411890
411991
|
|
|
411891
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
411992
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.4/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
411892
411993
|
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
411893
411994
|
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
411894
411995
|
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
@@ -412005,7 +412106,7 @@ function decorate(octokit, scope, methodName, defaults5, decorations) {
|
|
|
412005
412106
|
}
|
|
412006
412107
|
__name(decorate, "decorate");
|
|
412007
412108
|
|
|
412008
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
412109
|
+
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.4/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
412009
412110
|
function restEndpointMethods(octokit) {
|
|
412010
412111
|
const api = endpointsToMethods(octokit);
|
|
412011
412112
|
return {
|
|
@@ -412024,7 +412125,7 @@ function legacyRestEndpointMethods(octokit) {
|
|
|
412024
412125
|
__name(legacyRestEndpointMethods, "legacyRestEndpointMethods");
|
|
412025
412126
|
legacyRestEndpointMethods.VERSION = VERSION6;
|
|
412026
412127
|
|
|
412027
|
-
// ../../node_modules/.pnpm/@octokit+plugin-retry@7.1.
|
|
412128
|
+
// ../../node_modules/.pnpm/@octokit+plugin-retry@7.1.4_@octokit+core@6.1.4/node_modules/@octokit/plugin-retry/dist-bundle/index.js
|
|
412028
412129
|
init_esm_shims();
|
|
412029
412130
|
var import_light = __toESM(require_light(), 1);
|
|
412030
412131
|
var VERSION7 = "0.0.0-development";
|
|
@@ -412098,7 +412199,7 @@ function retry(octokit, octokitOptions) {
|
|
|
412098
412199
|
__name(retry, "retry");
|
|
412099
412200
|
retry.VERSION = VERSION7;
|
|
412100
412201
|
|
|
412101
|
-
// ../../node_modules/.pnpm/@octokit+plugin-throttling@9.4.0_@octokit+core@6.1.
|
|
412202
|
+
// ../../node_modules/.pnpm/@octokit+plugin-throttling@9.4.0_@octokit+core@6.1.4/node_modules/@octokit/plugin-throttling/dist-bundle/index.js
|
|
412102
412203
|
init_esm_shims();
|
|
412103
412204
|
var import_light2 = __toESM(require_light(), 1);
|
|
412104
412205
|
var VERSION8 = "0.0.0-development";
|
|
@@ -412293,22 +412394,22 @@ __name(throttling, "throttling");
|
|
|
412293
412394
|
throttling.VERSION = VERSION8;
|
|
412294
412395
|
throttling.triggersNotification = triggersNotification;
|
|
412295
412396
|
|
|
412296
|
-
// ../../node_modules/.pnpm/@octokit+app@15.1.
|
|
412397
|
+
// ../../node_modules/.pnpm/@octokit+app@15.1.4/node_modules/@octokit/app/dist-node/index.js
|
|
412297
412398
|
init_esm_shims();
|
|
412298
412399
|
|
|
412299
|
-
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.
|
|
412400
|
+
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.5/node_modules/@octokit/auth-app/dist-node/index.js
|
|
412300
412401
|
init_esm_shims();
|
|
412301
412402
|
|
|
412302
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.
|
|
412403
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.3/node_modules/@octokit/auth-oauth-app/dist-bundle/index.js
|
|
412303
412404
|
init_esm_shims();
|
|
412304
412405
|
|
|
412305
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.
|
|
412406
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.3/node_modules/@octokit/auth-oauth-user/dist-bundle/index.js
|
|
412306
412407
|
init_esm_shims();
|
|
412307
412408
|
|
|
412308
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.
|
|
412409
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.3/node_modules/@octokit/auth-oauth-device/dist-bundle/index.js
|
|
412309
412410
|
init_esm_shims();
|
|
412310
412411
|
|
|
412311
|
-
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.
|
|
412412
|
+
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.4/node_modules/@octokit/oauth-methods/dist-bundle/index.js
|
|
412312
412413
|
init_esm_shims();
|
|
412313
412414
|
|
|
412314
412415
|
// ../../node_modules/.pnpm/@octokit+oauth-authorization-url@7.1.1/node_modules/@octokit/oauth-authorization-url/dist-src/index.js
|
|
@@ -412358,7 +412459,7 @@ function urlBuilderAuthorize(base2, options) {
|
|
|
412358
412459
|
}
|
|
412359
412460
|
__name(urlBuilderAuthorize, "urlBuilderAuthorize");
|
|
412360
412461
|
|
|
412361
|
-
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.
|
|
412462
|
+
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.4/node_modules/@octokit/oauth-methods/dist-bundle/index.js
|
|
412362
412463
|
function requestToOAuthBaseUrl(request2) {
|
|
412363
412464
|
const endpointDefaults = request2.endpoint.DEFAULTS;
|
|
412364
412465
|
return /^https:\/\/(api\.)?github\.com$/.test(endpointDefaults.baseUrl) ? "https://github.com" : endpointDefaults.baseUrl.replace("/api/v3", "");
|
|
@@ -412392,8 +412493,7 @@ function getWebFlowAuthorizationUrl({ request: request2 = request, ...options })
|
|
|
412392
412493
|
}
|
|
412393
412494
|
__name(getWebFlowAuthorizationUrl, "getWebFlowAuthorizationUrl");
|
|
412394
412495
|
async function exchangeWebFlowCode(options) {
|
|
412395
|
-
const request2 = options.request ||
|
|
412396
|
-
request;
|
|
412496
|
+
const request2 = options.request || request;
|
|
412397
412497
|
const response = await oauthRequest(request2, "POST /login/oauth/access_token", {
|
|
412398
412498
|
client_id: options.clientId,
|
|
412399
412499
|
client_secret: options.clientSecret,
|
|
@@ -412425,8 +412525,7 @@ function toTimestamp(apiTimeInMs, expirationInSeconds) {
|
|
|
412425
412525
|
}
|
|
412426
412526
|
__name(toTimestamp, "toTimestamp");
|
|
412427
412527
|
async function createDeviceCode(options) {
|
|
412428
|
-
const request2 = options.request ||
|
|
412429
|
-
request;
|
|
412528
|
+
const request2 = options.request || request;
|
|
412430
412529
|
const parameters = {
|
|
412431
412530
|
client_id: options.clientId
|
|
412432
412531
|
};
|
|
@@ -412437,8 +412536,7 @@ async function createDeviceCode(options) {
|
|
|
412437
412536
|
}
|
|
412438
412537
|
__name(createDeviceCode, "createDeviceCode");
|
|
412439
412538
|
async function exchangeDeviceCode(options) {
|
|
412440
|
-
const request2 = options.request ||
|
|
412441
|
-
request;
|
|
412539
|
+
const request2 = options.request || request;
|
|
412442
412540
|
const response = await oauthRequest(request2, "POST /login/oauth/access_token", {
|
|
412443
412541
|
client_id: options.clientId,
|
|
412444
412542
|
device_code: options.code,
|
|
@@ -412471,8 +412569,7 @@ function toTimestamp2(apiTimeInMs, expirationInSeconds) {
|
|
|
412471
412569
|
}
|
|
412472
412570
|
__name(toTimestamp2, "toTimestamp2");
|
|
412473
412571
|
async function checkToken(options) {
|
|
412474
|
-
const request2 = options.request ||
|
|
412475
|
-
request;
|
|
412572
|
+
const request2 = options.request || request;
|
|
412476
412573
|
const response = await request2("POST /applications/{client_id}/token", {
|
|
412477
412574
|
headers: {
|
|
412478
412575
|
authorization: `basic ${btoa(`${options.clientId}:${options.clientSecret}`)}`
|
|
@@ -412498,8 +412595,7 @@ async function checkToken(options) {
|
|
|
412498
412595
|
}
|
|
412499
412596
|
__name(checkToken, "checkToken");
|
|
412500
412597
|
async function refreshToken(options) {
|
|
412501
|
-
const request2 = options.request ||
|
|
412502
|
-
request;
|
|
412598
|
+
const request2 = options.request || request;
|
|
412503
412599
|
const response = await oauthRequest(request2, "POST /login/oauth/access_token", {
|
|
412504
412600
|
client_id: options.clientId,
|
|
412505
412601
|
client_secret: options.clientSecret,
|
|
@@ -412528,8 +412624,7 @@ function toTimestamp3(apiTimeInMs, expirationInSeconds) {
|
|
|
412528
412624
|
__name(toTimestamp3, "toTimestamp3");
|
|
412529
412625
|
async function scopeToken(options) {
|
|
412530
412626
|
const { request: optionsRequest, clientType, clientId, clientSecret, token, ...requestOptions } = options;
|
|
412531
|
-
const request2 =
|
|
412532
|
-
request;
|
|
412627
|
+
const request2 = options.request || request;
|
|
412533
412628
|
const response = await request2("POST /applications/{client_id}/token/scoped", {
|
|
412534
412629
|
headers: {
|
|
412535
412630
|
authorization: `basic ${btoa(`${clientId}:${clientSecret}`)}`
|
|
@@ -412553,8 +412648,7 @@ async function scopeToken(options) {
|
|
|
412553
412648
|
}
|
|
412554
412649
|
__name(scopeToken, "scopeToken");
|
|
412555
412650
|
async function resetToken(options) {
|
|
412556
|
-
const request2 = options.request ||
|
|
412557
|
-
request;
|
|
412651
|
+
const request2 = options.request || request;
|
|
412558
412652
|
const auth7 = btoa(`${options.clientId}:${options.clientSecret}`);
|
|
412559
412653
|
const response = await request2("PATCH /applications/{client_id}/token", {
|
|
412560
412654
|
headers: {
|
|
@@ -412581,8 +412675,7 @@ async function resetToken(options) {
|
|
|
412581
412675
|
}
|
|
412582
412676
|
__name(resetToken, "resetToken");
|
|
412583
412677
|
async function deleteToken(options) {
|
|
412584
|
-
const request2 = options.request ||
|
|
412585
|
-
request;
|
|
412678
|
+
const request2 = options.request || request;
|
|
412586
412679
|
const auth7 = btoa(`${options.clientId}:${options.clientSecret}`);
|
|
412587
412680
|
return request2("DELETE /applications/{client_id}/token", {
|
|
412588
412681
|
headers: {
|
|
@@ -412594,8 +412687,7 @@ async function deleteToken(options) {
|
|
|
412594
412687
|
}
|
|
412595
412688
|
__name(deleteToken, "deleteToken");
|
|
412596
412689
|
async function deleteAuthorization(options) {
|
|
412597
|
-
const request2 = options.request ||
|
|
412598
|
-
request;
|
|
412690
|
+
const request2 = options.request || request;
|
|
412599
412691
|
const auth7 = btoa(`${options.clientId}:${options.clientSecret}`);
|
|
412600
412692
|
return request2("DELETE /applications/{client_id}/grant", {
|
|
412601
412693
|
headers: {
|
|
@@ -412607,7 +412699,7 @@ async function deleteAuthorization(options) {
|
|
|
412607
412699
|
}
|
|
412608
412700
|
__name(deleteAuthorization, "deleteAuthorization");
|
|
412609
412701
|
|
|
412610
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.
|
|
412702
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.3/node_modules/@octokit/auth-oauth-device/dist-bundle/index.js
|
|
412611
412703
|
async function getOAuthAccessToken(state, options) {
|
|
412612
412704
|
const cachedAuthentication = getCachedAuthentication(state, options.auth);
|
|
412613
412705
|
if (cachedAuthentication) return cachedAuthentication;
|
|
@@ -412725,7 +412817,7 @@ function createOAuthDeviceAuth(options) {
|
|
|
412725
412817
|
}
|
|
412726
412818
|
__name(createOAuthDeviceAuth, "createOAuthDeviceAuth");
|
|
412727
412819
|
|
|
412728
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.
|
|
412820
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.3/node_modules/@octokit/auth-oauth-user/dist-bundle/index.js
|
|
412729
412821
|
var VERSION10 = "0.0.0-development";
|
|
412730
412822
|
async function getAuthentication(state) {
|
|
412731
412823
|
if ("code" in state.strategyOptions) {
|
|
@@ -412906,7 +412998,7 @@ function createOAuthUserAuth({ clientId, clientSecret, clientType = "oauth-app",
|
|
|
412906
412998
|
__name(createOAuthUserAuth, "createOAuthUserAuth");
|
|
412907
412999
|
createOAuthUserAuth.VERSION = VERSION10;
|
|
412908
413000
|
|
|
412909
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.
|
|
413001
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.3/node_modules/@octokit/auth-oauth-app/dist-bundle/index.js
|
|
412910
413002
|
async function auth4(state, authOptions) {
|
|
412911
413003
|
if (authOptions.type === "oauth-app") {
|
|
412912
413004
|
return {
|
|
@@ -413242,7 +413334,7 @@ var LruObject = class {
|
|
|
413242
413334
|
}
|
|
413243
413335
|
};
|
|
413244
413336
|
|
|
413245
|
-
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.
|
|
413337
|
+
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.5/node_modules/@octokit/auth-app/dist-node/index.js
|
|
413246
413338
|
async function getAppAuthentication({ appId, privateKey, timeDifference }) {
|
|
413247
413339
|
try {
|
|
413248
413340
|
const authOptions = {
|
|
@@ -413582,7 +413674,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
|
|
|
413582
413674
|
}
|
|
413583
413675
|
}
|
|
413584
413676
|
__name(sendRequestWithRetries, "sendRequestWithRetries");
|
|
413585
|
-
var VERSION12 = "7.1.
|
|
413677
|
+
var VERSION12 = "7.1.5";
|
|
413586
413678
|
function createAppAuth(options) {
|
|
413587
413679
|
if (!options.appId) {
|
|
413588
413680
|
throw new Error("[@octokit/auth-app] appId option is required");
|
|
@@ -413593,7 +413685,7 @@ function createAppAuth(options) {
|
|
|
413593
413685
|
if ("installationId" in options && !options.installationId) {
|
|
413594
413686
|
throw new Error("[@octokit/auth-app] installationId is set to a falsy value");
|
|
413595
413687
|
}
|
|
413596
|
-
const
|
|
413688
|
+
const log4 = Object.assign({
|
|
413597
413689
|
warn: console.warn.bind(console)
|
|
413598
413690
|
}, options.log);
|
|
413599
413691
|
const request2 = options.request || request.defaults({
|
|
@@ -413607,7 +413699,7 @@ function createAppAuth(options) {
|
|
|
413607
413699
|
}, options, options.installationId ? {
|
|
413608
413700
|
installationId: Number(options.installationId)
|
|
413609
413701
|
} : {}, {
|
|
413610
|
-
log:
|
|
413702
|
+
log: log4,
|
|
413611
413703
|
oauthApp: createOAuthAppAuth({
|
|
413612
413704
|
clientType: "github-app",
|
|
413613
413705
|
clientId: options.clientId || "",
|
|
@@ -413621,10 +413713,10 @@ function createAppAuth(options) {
|
|
|
413621
413713
|
}
|
|
413622
413714
|
__name(createAppAuth, "createAppAuth");
|
|
413623
413715
|
|
|
413624
|
-
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.
|
|
413716
|
+
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.6/node_modules/@octokit/oauth-app/dist-node/index.js
|
|
413625
413717
|
init_esm_shims();
|
|
413626
413718
|
|
|
413627
|
-
// ../../node_modules/.pnpm/@octokit+auth-unauthenticated@6.1.
|
|
413719
|
+
// ../../node_modules/.pnpm/@octokit+auth-unauthenticated@6.1.2/node_modules/@octokit/auth-unauthenticated/dist-node/index.js
|
|
413628
413720
|
init_esm_shims();
|
|
413629
413721
|
async function auth6(reason) {
|
|
413630
413722
|
return {
|
|
@@ -413686,8 +413778,8 @@ var createUnauthenticatedAuth = /* @__PURE__ */ __name(function createUnauthenti
|
|
|
413686
413778
|
});
|
|
413687
413779
|
}, "createUnauthenticatedAuth2");
|
|
413688
413780
|
|
|
413689
|
-
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.
|
|
413690
|
-
var VERSION13 = "7.1.
|
|
413781
|
+
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.6/node_modules/@octokit/oauth-app/dist-node/index.js
|
|
413782
|
+
var VERSION13 = "7.1.6";
|
|
413691
413783
|
function addEventHandler(state, eventName, eventHandler) {
|
|
413692
413784
|
if (Array.isArray(eventName)) {
|
|
413693
413785
|
for (const singleEventName of eventName) {
|
|
@@ -414087,7 +414179,7 @@ var OAuthApp = class {
|
|
|
414087
414179
|
deleteAuthorization;
|
|
414088
414180
|
};
|
|
414089
414181
|
|
|
414090
|
-
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.
|
|
414182
|
+
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.1/node_modules/@octokit/webhooks/dist-bundle/index.js
|
|
414091
414183
|
init_esm_shims();
|
|
414092
414184
|
|
|
414093
414185
|
// ../../node_modules/.pnpm/@octokit+webhooks-methods@5.1.1/node_modules/@octokit/webhooks-methods/dist-node/index.js
|
|
@@ -414141,7 +414233,7 @@ async function verifyWithFallback(secret, payload, signature, additionalSecrets)
|
|
|
414141
414233
|
}
|
|
414142
414234
|
__name(verifyWithFallback, "verifyWithFallback");
|
|
414143
414235
|
|
|
414144
|
-
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.
|
|
414236
|
+
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.1/node_modules/@octokit/webhooks/dist-bundle/index.js
|
|
414145
414237
|
var createLogger = /* @__PURE__ */ __name((logger) => ({
|
|
414146
414238
|
debug: /* @__PURE__ */ __name(() => {
|
|
414147
414239
|
}, "debug"),
|
|
@@ -414672,8 +414764,8 @@ var Webhooks = class {
|
|
|
414672
414764
|
}
|
|
414673
414765
|
};
|
|
414674
414766
|
|
|
414675
|
-
// ../../node_modules/.pnpm/@octokit+app@15.1.
|
|
414676
|
-
var VERSION15 = "15.1.
|
|
414767
|
+
// ../../node_modules/.pnpm/@octokit+app@15.1.4/node_modules/@octokit/app/dist-node/index.js
|
|
414768
|
+
var VERSION15 = "15.1.4";
|
|
414677
414769
|
function webhooks(appOctokit, options) {
|
|
414678
414770
|
return new Webhooks({
|
|
414679
414771
|
secret: options.secret,
|
|
@@ -415987,7 +416079,7 @@ __name(upgradeDependency, "upgradeDependency");
|
|
|
415987
416079
|
var npmRequestLimit = (0, import_p_limit2.default)(40);
|
|
415988
416080
|
function getPackageInfo(pkgName) {
|
|
415989
416081
|
return npmRequestLimit(async () => {
|
|
415990
|
-
const getPackageJson = (await import("./package-json-
|
|
416082
|
+
const getPackageJson = (await import("./package-json-RFV5FQSF.js")).default;
|
|
415991
416083
|
return getPackageJson(pkgName, {
|
|
415992
416084
|
allVersions: true
|
|
415993
416085
|
});
|