@storm-software/linting-tools 1.119.6 → 1.119.8
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/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
require_clean,
|
|
3
3
|
require_semver,
|
|
4
4
|
require_valid
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CPUOXQVO.js";
|
|
6
6
|
import {
|
|
7
7
|
basename,
|
|
8
8
|
be,
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
join,
|
|
15
15
|
readPackageJSON,
|
|
16
16
|
resolve
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-YJD2T3D3.js";
|
|
18
|
+
import "./chunk-KANXUMWW.js";
|
|
19
|
+
import "./chunk-57CQKW3U.js";
|
|
20
|
+
import "./chunk-KZMPPMLI.js";
|
|
21
|
+
import "./chunk-P36IQ2HN.js";
|
|
22
|
+
import "./chunk-7TD5A5D7.js";
|
|
23
23
|
import {
|
|
24
24
|
__commonJS,
|
|
25
25
|
__dirname,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
__toCommonJS,
|
|
33
33
|
__toESM,
|
|
34
34
|
init_esm_shims
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NENGWJYA.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.cjs
|
|
38
38
|
var require_jiti = __commonJS({
|
|
@@ -35318,9 +35318,9 @@ var require_source = __commonJS({
|
|
|
35318
35318
|
}
|
|
35319
35319
|
});
|
|
35320
35320
|
|
|
35321
|
-
// ../../node_modules/.pnpm/find-value@1.0.
|
|
35321
|
+
// ../../node_modules/.pnpm/find-value@1.0.13/node_modules/find-value/lib/index.js
|
|
35322
35322
|
var require_lib = __commonJS({
|
|
35323
|
-
"../../node_modules/.pnpm/find-value@1.0.
|
|
35323
|
+
"../../node_modules/.pnpm/find-value@1.0.13/node_modules/find-value/lib/index.js"(exports, module) {
|
|
35324
35324
|
"use strict";
|
|
35325
35325
|
init_esm_shims();
|
|
35326
35326
|
module.exports = /* @__PURE__ */ __name(function findValue(obj, path36) {
|
|
@@ -35557,9 +35557,9 @@ var require_lib2 = __commonJS({
|
|
|
35557
35557
|
}
|
|
35558
35558
|
});
|
|
35559
35559
|
|
|
35560
|
-
// ../../node_modules/.pnpm/r-json@1.3.
|
|
35560
|
+
// ../../node_modules/.pnpm/r-json@1.3.1/node_modules/r-json/lib/index.js
|
|
35561
35561
|
var require_lib3 = __commonJS({
|
|
35562
|
-
"../../node_modules/.pnpm/r-json@1.3.
|
|
35562
|
+
"../../node_modules/.pnpm/r-json@1.3.1/node_modules/r-json/lib/index.js"(exports, module) {
|
|
35563
35563
|
"use strict";
|
|
35564
35564
|
init_esm_shims();
|
|
35565
35565
|
var Fs = __require("fs");
|
|
@@ -35617,9 +35617,9 @@ var require_lib3 = __commonJS({
|
|
|
35617
35617
|
}
|
|
35618
35618
|
});
|
|
35619
35619
|
|
|
35620
|
-
// ../../node_modules/.pnpm/iterate-object@1.3.
|
|
35620
|
+
// ../../node_modules/.pnpm/iterate-object@1.3.5/node_modules/iterate-object/lib/index.js
|
|
35621
35621
|
var require_lib4 = __commonJS({
|
|
35622
|
-
"../../node_modules/.pnpm/iterate-object@1.3.
|
|
35622
|
+
"../../node_modules/.pnpm/iterate-object@1.3.5/node_modules/iterate-object/lib/index.js"(exports, module) {
|
|
35623
35623
|
"use strict";
|
|
35624
35624
|
init_esm_shims();
|
|
35625
35625
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
@@ -35649,9 +35649,9 @@ var require_lib4 = __commonJS({
|
|
|
35649
35649
|
}
|
|
35650
35650
|
});
|
|
35651
35651
|
|
|
35652
|
-
// ../../node_modules/.pnpm/edit-json-file@1.8.
|
|
35652
|
+
// ../../node_modules/.pnpm/edit-json-file@1.8.1/node_modules/edit-json-file/lib/index.js
|
|
35653
35653
|
var require_lib5 = __commonJS({
|
|
35654
|
-
"../../node_modules/.pnpm/edit-json-file@1.8.
|
|
35654
|
+
"../../node_modules/.pnpm/edit-json-file@1.8.1/node_modules/edit-json-file/lib/index.js"(exports, module) {
|
|
35655
35655
|
"use strict";
|
|
35656
35656
|
init_esm_shims();
|
|
35657
35657
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
@@ -36089,17 +36089,17 @@ var require_path = __commonJS({
|
|
|
36089
36089
|
}
|
|
36090
36090
|
__name(escapePosixPath2, "escapePosixPath");
|
|
36091
36091
|
exports.escapePosixPath = escapePosixPath2;
|
|
36092
|
-
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern :
|
|
36092
|
+
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
36093
36093
|
function convertWindowsPathToPattern(filepath) {
|
|
36094
36094
|
return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
|
|
36095
36095
|
}
|
|
36096
36096
|
__name(convertWindowsPathToPattern, "convertWindowsPathToPattern");
|
|
36097
36097
|
exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
|
|
36098
|
-
function
|
|
36098
|
+
function convertPosixPathToPattern(filepath) {
|
|
36099
36099
|
return escapePosixPath2(filepath);
|
|
36100
36100
|
}
|
|
36101
|
-
__name(
|
|
36102
|
-
exports.convertPosixPathToPattern =
|
|
36101
|
+
__name(convertPosixPathToPattern, "convertPosixPathToPattern");
|
|
36102
|
+
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
36103
36103
|
}
|
|
36104
36104
|
});
|
|
36105
36105
|
|
|
@@ -42014,12 +42014,12 @@ var require_out4 = __commonJS({
|
|
|
42014
42014
|
}
|
|
42015
42015
|
__name(escapePath2, "escapePath");
|
|
42016
42016
|
FastGlob2.escapePath = escapePath2;
|
|
42017
|
-
function
|
|
42017
|
+
function convertPathToPattern(source) {
|
|
42018
42018
|
assertPatternsInput2(source);
|
|
42019
42019
|
return utils.path.convertPathToPattern(source);
|
|
42020
42020
|
}
|
|
42021
|
-
__name(
|
|
42022
|
-
FastGlob2.convertPathToPattern =
|
|
42021
|
+
__name(convertPathToPattern, "convertPathToPattern");
|
|
42022
|
+
FastGlob2.convertPathToPattern = convertPathToPattern;
|
|
42023
42023
|
let posix6;
|
|
42024
42024
|
(function(posix7) {
|
|
42025
42025
|
function escapePath3(source) {
|
|
@@ -42028,12 +42028,12 @@ var require_out4 = __commonJS({
|
|
|
42028
42028
|
}
|
|
42029
42029
|
__name(escapePath3, "escapePath");
|
|
42030
42030
|
posix7.escapePath = escapePath3;
|
|
42031
|
-
function
|
|
42031
|
+
function convertPathToPattern2(source) {
|
|
42032
42032
|
assertPatternsInput2(source);
|
|
42033
42033
|
return utils.path.convertPosixPathToPattern(source);
|
|
42034
42034
|
}
|
|
42035
|
-
__name(
|
|
42036
|
-
posix7.convertPathToPattern =
|
|
42035
|
+
__name(convertPathToPattern2, "convertPathToPattern");
|
|
42036
|
+
posix7.convertPathToPattern = convertPathToPattern2;
|
|
42037
42037
|
})(posix6 = FastGlob2.posix || (FastGlob2.posix = {}));
|
|
42038
42038
|
let win323;
|
|
42039
42039
|
(function(win324) {
|
|
@@ -42043,12 +42043,12 @@ var require_out4 = __commonJS({
|
|
|
42043
42043
|
}
|
|
42044
42044
|
__name(escapePath3, "escapePath");
|
|
42045
42045
|
win324.escapePath = escapePath3;
|
|
42046
|
-
function
|
|
42046
|
+
function convertPathToPattern2(source) {
|
|
42047
42047
|
assertPatternsInput2(source);
|
|
42048
42048
|
return utils.path.convertWindowsPathToPattern(source);
|
|
42049
42049
|
}
|
|
42050
|
-
__name(
|
|
42051
|
-
win324.convertPathToPattern =
|
|
42050
|
+
__name(convertPathToPattern2, "convertPathToPattern");
|
|
42051
|
+
win324.convertPathToPattern = convertPathToPattern2;
|
|
42052
42052
|
})(win323 = FastGlob2.win32 || (FastGlob2.win32 = {}));
|
|
42053
42053
|
})(FastGlob || (FastGlob = {}));
|
|
42054
42054
|
function getWorks(source, _Provider, options) {
|
|
@@ -42386,7 +42386,7 @@ var require_ignore = __commonJS({
|
|
|
42386
42386
|
}, "makeRegex");
|
|
42387
42387
|
var isString2 = /* @__PURE__ */ __name((subject) => typeof subject === "string", "isString");
|
|
42388
42388
|
var checkPattern = /* @__PURE__ */ __name((pattern) => pattern && isString2(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0, "checkPattern");
|
|
42389
|
-
var
|
|
42389
|
+
var splitPattern2 = /* @__PURE__ */ __name((pattern) => pattern.split(REGEX_SPLITALL_CRLF), "splitPattern");
|
|
42390
42390
|
var IgnoreRule = class IgnoreRule {
|
|
42391
42391
|
static {
|
|
42392
42392
|
__name(this, "IgnoreRule");
|
|
@@ -42458,7 +42458,7 @@ var require_ignore = __commonJS({
|
|
|
42458
42458
|
// @param {Array<string> | string | Ignore} pattern
|
|
42459
42459
|
add(pattern) {
|
|
42460
42460
|
this._added = false;
|
|
42461
|
-
makeArray(isString2(pattern) ?
|
|
42461
|
+
makeArray(isString2(pattern) ? splitPattern2(pattern) : pattern).forEach(this._addPattern, this);
|
|
42462
42462
|
if (this._added) {
|
|
42463
42463
|
this._initCache();
|
|
42464
42464
|
}
|
|
@@ -60593,7 +60593,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
60593
60593
|
"../../node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
60594
60594
|
"use strict";
|
|
60595
60595
|
init_esm_shims();
|
|
60596
|
-
var
|
|
60596
|
+
var log4 = require_log();
|
|
60597
60597
|
var merge9 = require_merge();
|
|
60598
60598
|
var stringify4 = require_stringify3();
|
|
60599
60599
|
var identity2 = require_identity();
|
|
@@ -60635,7 +60635,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
60635
60635
|
if (!ctx.mapKeyWarned) {
|
|
60636
60636
|
let jsonStr = JSON.stringify(strKey);
|
|
60637
60637
|
if (jsonStr.length > 40) jsonStr = jsonStr.substring(0, 36) + '..."';
|
|
60638
|
-
|
|
60638
|
+
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.`);
|
|
60639
60639
|
ctx.mapKeyWarned = true;
|
|
60640
60640
|
}
|
|
60641
60641
|
return strKey;
|
|
@@ -66208,7 +66208,7 @@ var require_public_api = __commonJS({
|
|
|
66208
66208
|
var composer = require_composer();
|
|
66209
66209
|
var Document = require_Document();
|
|
66210
66210
|
var errors = require_errors();
|
|
66211
|
-
var
|
|
66211
|
+
var log4 = require_log();
|
|
66212
66212
|
var identity2 = require_identity();
|
|
66213
66213
|
var lineCounter = require_line_counter();
|
|
66214
66214
|
var parser2 = require_parser();
|
|
@@ -66264,7 +66264,7 @@ var require_public_api = __commonJS({
|
|
|
66264
66264
|
}
|
|
66265
66265
|
const doc = parseDocument(src, options);
|
|
66266
66266
|
if (!doc) return null;
|
|
66267
|
-
doc.warnings.forEach((warning) =>
|
|
66267
|
+
doc.warnings.forEach((warning) => log4.warn(doc.options.logLevel, warning));
|
|
66268
66268
|
if (doc.errors.length > 0) {
|
|
66269
66269
|
if (doc.options.logLevel !== "silent") throw doc.errors[0];
|
|
66270
66270
|
else doc.errors = [];
|
|
@@ -86304,11 +86304,11 @@ var require_typescript = __commonJS({
|
|
|
86304
86304
|
}
|
|
86305
86305
|
}
|
|
86306
86306
|
__name(logMessage, "logMessage");
|
|
86307
|
-
function
|
|
86307
|
+
function log4(s) {
|
|
86308
86308
|
logMessage(3, s);
|
|
86309
86309
|
}
|
|
86310
|
-
__name(
|
|
86311
|
-
Debug2.log =
|
|
86310
|
+
__name(log4, "log");
|
|
86311
|
+
Debug2.log = log4;
|
|
86312
86312
|
((_log2) => {
|
|
86313
86313
|
function error22(s) {
|
|
86314
86314
|
logMessage(1, s);
|
|
@@ -86330,7 +86330,7 @@ var require_typescript = __commonJS({
|
|
|
86330
86330
|
}
|
|
86331
86331
|
__name(trace2, "trace2");
|
|
86332
86332
|
_log2.trace = trace2;
|
|
86333
|
-
})(
|
|
86333
|
+
})(log4 = Debug2.log || (Debug2.log = {}));
|
|
86334
86334
|
const assertionCache = {};
|
|
86335
86335
|
function getAssertionLevel() {
|
|
86336
86336
|
return currentAssertionLevel;
|
|
@@ -227044,8 +227044,8 @@ ${lanes.join("\n")}
|
|
|
227044
227044
|
WatchLogLevel2[WatchLogLevel2["Verbose"] = 2] = "Verbose";
|
|
227045
227045
|
return WatchLogLevel2;
|
|
227046
227046
|
})(WatchLogLevel || {});
|
|
227047
|
-
function getWatchFactory(host, watchLogLevel,
|
|
227048
|
-
setSysLog(watchLogLevel === 2 ?
|
|
227047
|
+
function getWatchFactory(host, watchLogLevel, log4, getDetailWatchInfo2) {
|
|
227048
|
+
setSysLog(watchLogLevel === 2 ? log4 : noop3);
|
|
227049
227049
|
const plainInvokeFactory = {
|
|
227050
227050
|
watchFile: /* @__PURE__ */ __name((file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options), "watchFile"),
|
|
227051
227051
|
watchDirectory: /* @__PURE__ */ __name((directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1) !== 0, options), "watchDirectory")
|
|
@@ -227084,18 +227084,18 @@ ${lanes.join("\n")}
|
|
|
227084
227084
|
}
|
|
227085
227085
|
__name(useCaseSensitiveFileNames2, "useCaseSensitiveFileNames2");
|
|
227086
227086
|
function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
|
|
227087
|
-
|
|
227087
|
+
log4(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
|
|
227088
227088
|
return {
|
|
227089
|
-
close: /* @__PURE__ */ __name(() =>
|
|
227089
|
+
close: /* @__PURE__ */ __name(() => log4(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`), "close")
|
|
227090
227090
|
};
|
|
227091
227091
|
}
|
|
227092
227092
|
__name(createExcludeWatcherWithLogging, "createExcludeWatcherWithLogging");
|
|
227093
227093
|
function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
227094
|
-
|
|
227094
|
+
log4(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
|
|
227095
227095
|
const watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
227096
227096
|
return {
|
|
227097
227097
|
close: /* @__PURE__ */ __name(() => {
|
|
227098
|
-
|
|
227098
|
+
log4(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
|
|
227099
227099
|
watcher.close();
|
|
227100
227100
|
}, "close")
|
|
227101
227101
|
};
|
|
@@ -227103,19 +227103,19 @@ ${lanes.join("\n")}
|
|
|
227103
227103
|
__name(createFileWatcherWithLogging, "createFileWatcherWithLogging");
|
|
227104
227104
|
function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
227105
227105
|
const watchInfo = `DirectoryWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
|
|
227106
|
-
|
|
227106
|
+
log4(watchInfo);
|
|
227107
227107
|
const start = timestamp2();
|
|
227108
227108
|
const watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
227109
227109
|
const elapsed = timestamp2() - start;
|
|
227110
|
-
|
|
227110
|
+
log4(`Elapsed:: ${elapsed}ms ${watchInfo}`);
|
|
227111
227111
|
return {
|
|
227112
227112
|
close: /* @__PURE__ */ __name(() => {
|
|
227113
227113
|
const watchInfo2 = `DirectoryWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
|
|
227114
|
-
|
|
227114
|
+
log4(watchInfo2);
|
|
227115
227115
|
const start2 = timestamp2();
|
|
227116
227116
|
watcher.close();
|
|
227117
227117
|
const elapsed2 = timestamp2() - start2;
|
|
227118
|
-
|
|
227118
|
+
log4(`Elapsed:: ${elapsed2}ms ${watchInfo2}`);
|
|
227119
227119
|
}, "close")
|
|
227120
227120
|
};
|
|
227121
227121
|
}
|
|
@@ -227127,7 +227127,7 @@ ${lanes.join("\n")}
|
|
|
227127
227127
|
file,
|
|
227128
227128
|
(...args) => {
|
|
227129
227129
|
const triggerredInfo = `${key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${args[0]} ${args[1] !== void 0 ? args[1] : ""}:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
|
|
227130
|
-
|
|
227130
|
+
log4(triggerredInfo);
|
|
227131
227131
|
const start = timestamp2();
|
|
227132
227132
|
cb.call(
|
|
227133
227133
|
/*thisArg*/
|
|
@@ -227135,7 +227135,7 @@ ${lanes.join("\n")}
|
|
|
227135
227135
|
...args
|
|
227136
227136
|
);
|
|
227137
227137
|
const elapsed = timestamp2() - start;
|
|
227138
|
-
|
|
227138
|
+
log4(`Elapsed:: ${elapsed}ms ${triggerredInfo}`);
|
|
227139
227139
|
},
|
|
227140
227140
|
flags,
|
|
227141
227141
|
options,
|
|
@@ -240225,7 +240225,7 @@ ${lanes.join("\n")}
|
|
|
240225
240225
|
return void 0;
|
|
240226
240226
|
}
|
|
240227
240227
|
__name(loadTypesMap, "loadTypesMap");
|
|
240228
|
-
function discoverTypings(host,
|
|
240228
|
+
function discoverTypings(host, log4, fileNames, projectRootPath, safeList, packageNameToTypingLocation, typeAcquisition, unresolvedImports, typesRegistry, compilerOptions) {
|
|
240229
240229
|
if (!typeAcquisition || !typeAcquisition.enable) {
|
|
240230
240230
|
return {
|
|
240231
240231
|
cachedTypingPaths: [],
|
|
@@ -240260,7 +240260,7 @@ ${lanes.join("\n")}
|
|
|
240260
240260
|
}
|
|
240261
240261
|
for (const excludeTypingName of exclude) {
|
|
240262
240262
|
const didDelete = inferredTypings.delete(excludeTypingName);
|
|
240263
|
-
if (didDelete &&
|
|
240263
|
+
if (didDelete && log4) log4(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`);
|
|
240264
240264
|
}
|
|
240265
240265
|
packageNameToTypingLocation.forEach((typing, name2) => {
|
|
240266
240266
|
const registryEntry = typesRegistry.get(name2);
|
|
@@ -240282,7 +240282,7 @@ ${lanes.join("\n")}
|
|
|
240282
240282
|
newTypingNames,
|
|
240283
240283
|
filesToWatch
|
|
240284
240284
|
};
|
|
240285
|
-
if (
|
|
240285
|
+
if (log4) log4(`Finished typings discovery:${stringifyIndented(result)}`);
|
|
240286
240286
|
return result;
|
|
240287
240287
|
function addInferredTyping(typingName) {
|
|
240288
240288
|
if (!inferredTypings.has(typingName)) {
|
|
@@ -240291,7 +240291,7 @@ ${lanes.join("\n")}
|
|
|
240291
240291
|
}
|
|
240292
240292
|
__name(addInferredTyping, "addInferredTyping");
|
|
240293
240293
|
function addInferredTypings(typingNames, message) {
|
|
240294
|
-
if (
|
|
240294
|
+
if (log4) log4(`${message}: ${JSON.stringify(typingNames)}`);
|
|
240295
240295
|
forEach3(typingNames, addInferredTyping);
|
|
240296
240296
|
}
|
|
240297
240297
|
__name(addInferredTypings, "addInferredTypings");
|
|
@@ -240337,7 +240337,7 @@ ${lanes.join("\n")}
|
|
|
240337
240337
|
return isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 4]) === modulesDirName || // `node_modules/@foo/bar`
|
|
240338
240338
|
!isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 3]) === modulesDirName;
|
|
240339
240339
|
});
|
|
240340
|
-
if (
|
|
240340
|
+
if (log4) log4(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);
|
|
240341
240341
|
for (const manifestPath2 of dependencyManifestNames) {
|
|
240342
240342
|
const normalizedFileName = normalizePath4(manifestPath2);
|
|
240343
240343
|
const result2 = readConfigFile3(normalizedFileName, (path36) => host.readFile(path36));
|
|
@@ -240349,10 +240349,10 @@ ${lanes.join("\n")}
|
|
|
240349
240349
|
if (ownTypes) {
|
|
240350
240350
|
const absolutePath = getNormalizedAbsolutePath(ownTypes, getDirectoryPath(normalizedFileName));
|
|
240351
240351
|
if (host.fileExists(absolutePath)) {
|
|
240352
|
-
if (
|
|
240352
|
+
if (log4) log4(` Package '${manifest2.name}' provides its own types.`);
|
|
240353
240353
|
inferredTypings.set(manifest2.name, absolutePath);
|
|
240354
240354
|
} else {
|
|
240355
|
-
if (
|
|
240355
|
+
if (log4) log4(` Package '${manifest2.name}' provides its own types but they are missing.`);
|
|
240356
240356
|
}
|
|
240357
240357
|
} else {
|
|
240358
240358
|
packageNames.push(manifest2.name);
|
|
@@ -240377,7 +240377,7 @@ ${lanes.join("\n")}
|
|
|
240377
240377
|
/* Jsx */
|
|
240378
240378
|
));
|
|
240379
240379
|
if (hasJsxFile) {
|
|
240380
|
-
if (
|
|
240380
|
+
if (log4) log4(`Inferred 'react' typings due to presence of '.jsx' extension`);
|
|
240381
240381
|
addInferredTyping("react");
|
|
240382
240382
|
}
|
|
240383
240383
|
}
|
|
@@ -256456,12 +256456,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256456
256456
|
const cancellationToken = host.getCancellationToken ? new CancellationTokenObject(host.getCancellationToken()) : NoopCancellationToken;
|
|
256457
256457
|
const currentDirectory = host.getCurrentDirectory();
|
|
256458
256458
|
maybeSetLocalizedDiagnosticMessages((_a = host.getLocalizedDiagnosticMessages) == null ? void 0 : _a.bind(host));
|
|
256459
|
-
function
|
|
256459
|
+
function log4(message) {
|
|
256460
256460
|
if (host.log) {
|
|
256461
256461
|
host.log(message);
|
|
256462
256462
|
}
|
|
256463
256463
|
}
|
|
256464
|
-
__name(
|
|
256464
|
+
__name(log4, "log");
|
|
256465
256465
|
const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host);
|
|
256466
256466
|
const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
|
|
256467
256467
|
const sourceMapper = getSourceMapper({
|
|
@@ -256472,7 +256472,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256472
256472
|
readFile: maybeBind(host, host.readFile),
|
|
256473
256473
|
getDocumentPositionMapper: maybeBind(host, host.getDocumentPositionMapper),
|
|
256474
256474
|
getSourceFileLike: maybeBind(host, host.getSourceFileLike),
|
|
256475
|
-
log:
|
|
256475
|
+
log: log4
|
|
256476
256476
|
});
|
|
256477
256477
|
function getValidSourceFile(fileName) {
|
|
256478
256478
|
const sourceFile = program2.getSourceFile(fileName);
|
|
@@ -256509,7 +256509,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256509
256509
|
}
|
|
256510
256510
|
const typeRootsVersion = host.getTypeRootsVersion ? host.getTypeRootsVersion() : 0;
|
|
256511
256511
|
if (lastTypesRootVersion !== typeRootsVersion) {
|
|
256512
|
-
|
|
256512
|
+
log4("TypeRoots version has changed; provide new program");
|
|
256513
256513
|
program2 = void 0;
|
|
256514
256514
|
lastTypesRootVersion = typeRootsVersion;
|
|
256515
256515
|
}
|
|
@@ -256907,14 +256907,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256907
256907
|
includeCompletionsWithInsertText: options.includeCompletionsWithInsertText || options.includeInsertTextCompletions
|
|
256908
256908
|
};
|
|
256909
256909
|
synchronizeHostData();
|
|
256910
|
-
return ts_Completions_exports.getCompletionsAtPosition(host, program2,
|
|
256910
|
+
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);
|
|
256911
256911
|
}
|
|
256912
256912
|
__name(getCompletionsAtPosition2, "getCompletionsAtPosition2");
|
|
256913
256913
|
function getCompletionEntryDetails2(fileName, position3, name2, formattingOptions, source, preferences = emptyOptions4, data) {
|
|
256914
256914
|
synchronizeHostData();
|
|
256915
256915
|
return ts_Completions_exports.getCompletionEntryDetails(
|
|
256916
256916
|
program2,
|
|
256917
|
-
|
|
256917
|
+
log4,
|
|
256918
256918
|
getValidSourceFile(fileName),
|
|
256919
256919
|
position3,
|
|
256920
256920
|
{
|
|
@@ -256932,7 +256932,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
256932
256932
|
__name(getCompletionEntryDetails2, "getCompletionEntryDetails2");
|
|
256933
256933
|
function getCompletionEntrySymbol2(fileName, position3, name2, source, preferences = emptyOptions4) {
|
|
256934
256934
|
synchronizeHostData();
|
|
256935
|
-
return ts_Completions_exports.getCompletionEntrySymbol(program2,
|
|
256935
|
+
return ts_Completions_exports.getCompletionEntrySymbol(program2, log4, getValidSourceFile(fileName), position3, {
|
|
256936
256936
|
name: name2,
|
|
256937
256937
|
source
|
|
256938
256938
|
}, host, preferences);
|
|
@@ -257252,10 +257252,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
257252
257252
|
let start = timestamp2();
|
|
257253
257253
|
const settings = toEditorSettings(editorOptions);
|
|
257254
257254
|
const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
|
|
257255
|
-
|
|
257255
|
+
log4("getIndentationAtPosition: getCurrentSourceFile: " + (timestamp2() - start));
|
|
257256
257256
|
start = timestamp2();
|
|
257257
257257
|
const result = ts_formatting_exports.SmartIndenter.getIndentation(position3, sourceFile, settings);
|
|
257258
|
-
|
|
257258
|
+
log4("getIndentationAtPosition: computeIndentation : " + (timestamp2() - start));
|
|
257259
257259
|
return result;
|
|
257260
257260
|
}
|
|
257261
257261
|
__name(getIndentationAtPosition, "getIndentationAtPosition");
|
|
@@ -272498,7 +272498,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272498
272498
|
return allCommitCharacters;
|
|
272499
272499
|
}
|
|
272500
272500
|
__name(getDefaultCommitCharacters, "getDefaultCommitCharacters");
|
|
272501
|
-
function getCompletionsAtPosition(host, program2,
|
|
272501
|
+
function getCompletionsAtPosition(host, program2, log4, sourceFile, position3, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) {
|
|
272502
272502
|
var _a;
|
|
272503
272503
|
const { previousToken } = getRelevantTokens(position3, sourceFile);
|
|
272504
272504
|
if (triggerCharacter && !isInString(sourceFile, position3, previousToken) && !isValidTrigger(sourceFile, triggerCharacter, previousToken, position3)) {
|
|
@@ -272531,7 +272531,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272531
272531
|
} else {
|
|
272532
272532
|
incompleteCompletionsCache == null ? void 0 : incompleteCompletionsCache.clear();
|
|
272533
272533
|
}
|
|
272534
|
-
const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position3, previousToken, compilerOptions, host, program2,
|
|
272534
|
+
const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position3, previousToken, compilerOptions, host, program2, log4, preferences, includeSymbol);
|
|
272535
272535
|
if (stringCompletions) {
|
|
272536
272536
|
return stringCompletions;
|
|
272537
272537
|
}
|
|
@@ -272540,7 +272540,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272540
272540
|
}
|
|
272541
272541
|
const completionData = getCompletionData(
|
|
272542
272542
|
program2,
|
|
272543
|
-
|
|
272543
|
+
log4,
|
|
272544
272544
|
sourceFile,
|
|
272545
272545
|
compilerOptions,
|
|
272546
272546
|
position3,
|
|
@@ -272556,7 +272556,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
272556
272556
|
}
|
|
272557
272557
|
switch (completionData.kind) {
|
|
272558
272558
|
case 0:
|
|
272559
|
-
const response = completionInfoFromData(sourceFile, host, program2, compilerOptions,
|
|
272559
|
+
const response = completionInfoFromData(sourceFile, host, program2, compilerOptions, log4, completionData, preferences, formatContext, position3, includeSymbol);
|
|
272560
272560
|
if (response == null ? void 0 : response.isIncomplete) {
|
|
272561
272561
|
incompleteCompletionsCache == null ? void 0 : incompleteCompletionsCache.set(response);
|
|
272562
272562
|
}
|
|
@@ -273004,7 +273004,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
273004
273004
|
return (location2 == null ? void 0 : location2.kind) === 80 ? createTextSpanFromNode(location2) : void 0;
|
|
273005
273005
|
}
|
|
273006
273006
|
__name(getOptionalReplacementSpan, "getOptionalReplacementSpan");
|
|
273007
|
-
function completionInfoFromData(sourceFile, host, program2, compilerOptions,
|
|
273007
|
+
function completionInfoFromData(sourceFile, host, program2, compilerOptions, log4, completionData, preferences, formatContext, position3, includeSymbol) {
|
|
273008
273008
|
const { symbols, contextToken, completionKind, isInSnippetScope, isNewIdentifierLocation, location: location2, propertyAccessToConvert, keywordFilters, symbolToOriginInfoMap, recommendedCompletion, isJsxInitializer, isTypeOnlyLocation, isJsxIdentifierExpected, isRightOfOpenTag, isRightOfDotOrQuestionDot, importStatementCompletion, insideJsDocTagTypeExpression, symbolToSortTextMap, hasUnresolvedAutoImports, defaultCommitCharacters } = completionData;
|
|
273009
273009
|
let literals = completionData.literals;
|
|
273010
273010
|
const checker = program2.getTypeChecker();
|
|
@@ -273047,7 +273047,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
273047
273047
|
host,
|
|
273048
273048
|
program2,
|
|
273049
273049
|
getEmitScriptTarget(compilerOptions),
|
|
273050
|
-
|
|
273050
|
+
log4,
|
|
273051
273051
|
completionKind,
|
|
273052
273052
|
preferences,
|
|
273053
273053
|
compilerOptions,
|
|
@@ -274127,7 +274127,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274127
274127
|
}
|
|
274128
274128
|
}
|
|
274129
274129
|
__name(getSourceFromOrigin, "getSourceFromOrigin");
|
|
274130
|
-
function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location2, position3, sourceFile, host, program2, target,
|
|
274130
|
+
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) {
|
|
274131
274131
|
const start = timestamp2();
|
|
274132
274132
|
const closestSymbolDeclaration = getClosestSymbolDeclaration(contextToken, location2);
|
|
274133
274133
|
const useSemicolons = probablyUsesSemicolons(sourceFile);
|
|
@@ -274162,7 +274162,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274162
274162
|
true
|
|
274163
274163
|
);
|
|
274164
274164
|
}
|
|
274165
|
-
|
|
274165
|
+
log4("getCompletionsAtPosition: getCompletionEntriesFromSymbols: " + (timestamp2() - start));
|
|
274166
274166
|
return {
|
|
274167
274167
|
has: /* @__PURE__ */ __name((name2) => uniques.has(name2), "has"),
|
|
274168
274168
|
add: /* @__PURE__ */ __name((name2) => uniques.set(name2, true), "add")
|
|
@@ -274260,7 +274260,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274260
274260
|
return entries;
|
|
274261
274261
|
}
|
|
274262
274262
|
__name(getLabelStatementCompletions, "getLabelStatementCompletions");
|
|
274263
|
-
function getSymbolCompletionFromEntryId(program2,
|
|
274263
|
+
function getSymbolCompletionFromEntryId(program2, log4, sourceFile, position3, entryId, host, preferences) {
|
|
274264
274264
|
if (entryId.source === "SwitchCases/") {
|
|
274265
274265
|
return {
|
|
274266
274266
|
type: "cases"
|
|
@@ -274285,7 +274285,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274285
274285
|
const compilerOptions = program2.getCompilerOptions();
|
|
274286
274286
|
const completionData = getCompletionData(
|
|
274287
274287
|
program2,
|
|
274288
|
-
|
|
274288
|
+
log4,
|
|
274289
274289
|
sourceFile,
|
|
274290
274290
|
compilerOptions,
|
|
274291
274291
|
position3,
|
|
@@ -274333,7 +274333,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274333
274333
|
};
|
|
274334
274334
|
}
|
|
274335
274335
|
__name(getSymbolCompletionFromEntryId, "getSymbolCompletionFromEntryId");
|
|
274336
|
-
function getCompletionEntryDetails(program2,
|
|
274336
|
+
function getCompletionEntryDetails(program2, log4, sourceFile, position3, entryId, host, formatContext, preferences, cancellationToken) {
|
|
274337
274337
|
const typeChecker = program2.getTypeChecker();
|
|
274338
274338
|
const compilerOptions = program2.getCompilerOptions();
|
|
274339
274339
|
const { name: name2, source, data } = entryId;
|
|
@@ -274341,7 +274341,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274341
274341
|
if (isInString(sourceFile, position3, previousToken)) {
|
|
274342
274342
|
return ts_Completions_StringCompletions_exports.getStringLiteralCompletionDetails(name2, sourceFile, position3, previousToken, program2, host, cancellationToken, preferences);
|
|
274343
274343
|
}
|
|
274344
|
-
const symbolCompletion = getSymbolCompletionFromEntryId(program2,
|
|
274344
|
+
const symbolCompletion = getSymbolCompletionFromEntryId(program2, log4, sourceFile, position3, entryId, host, preferences);
|
|
274345
274345
|
switch (symbolCompletion.type) {
|
|
274346
274346
|
case "request": {
|
|
274347
274347
|
const { request: request2 } = symbolCompletion;
|
|
@@ -274562,8 +274562,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274562
274562
|
};
|
|
274563
274563
|
}
|
|
274564
274564
|
__name(getCompletionEntryCodeActionsAndSourceDisplay, "getCompletionEntryCodeActionsAndSourceDisplay");
|
|
274565
|
-
function getCompletionEntrySymbol(program2,
|
|
274566
|
-
const completion = getSymbolCompletionFromEntryId(program2,
|
|
274565
|
+
function getCompletionEntrySymbol(program2, log4, sourceFile, position3, entryId, host, preferences) {
|
|
274566
|
+
const completion = getSymbolCompletionFromEntryId(program2, log4, sourceFile, position3, entryId, host, preferences);
|
|
274567
274567
|
return completion.type === "symbol" ? completion.symbol : void 0;
|
|
274568
274568
|
}
|
|
274569
274569
|
__name(getCompletionEntrySymbol, "getCompletionEntrySymbol");
|
|
@@ -274643,15 +274643,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274643
274643
|
));
|
|
274644
274644
|
}
|
|
274645
274645
|
__name(isModuleSymbol, "isModuleSymbol");
|
|
274646
|
-
function getCompletionData(program2,
|
|
274646
|
+
function getCompletionData(program2, log4, sourceFile, compilerOptions, position3, preferences, detailsEntryId, host, formatContext, cancellationToken) {
|
|
274647
274647
|
const typeChecker = program2.getTypeChecker();
|
|
274648
274648
|
const inCheckedFile = isCheckedFile(sourceFile, compilerOptions);
|
|
274649
274649
|
let start = timestamp2();
|
|
274650
274650
|
let currentToken = getTokenAtPosition(sourceFile, position3);
|
|
274651
|
-
|
|
274651
|
+
log4("getCompletionData: Get current token: " + (timestamp2() - start));
|
|
274652
274652
|
start = timestamp2();
|
|
274653
274653
|
const insideComment = isInComment(sourceFile, position3, currentToken);
|
|
274654
|
-
|
|
274654
|
+
log4("getCompletionData: Is inside comment: " + (timestamp2() - start));
|
|
274655
274655
|
let insideJsDocTagTypeExpression = false;
|
|
274656
274656
|
let insideJsDocImportTag = false;
|
|
274657
274657
|
let isInSnippetScope = false;
|
|
@@ -274699,7 +274699,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274699
274699
|
}
|
|
274700
274700
|
}
|
|
274701
274701
|
if (!insideJsDocTagTypeExpression && !insideJsDocImportTag) {
|
|
274702
|
-
|
|
274702
|
+
log4("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");
|
|
274703
274703
|
return void 0;
|
|
274704
274704
|
}
|
|
274705
274705
|
}
|
|
@@ -274708,7 +274708,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274708
274708
|
const tokens = getRelevantTokens(position3, sourceFile);
|
|
274709
274709
|
const previousToken = tokens.previousToken;
|
|
274710
274710
|
let contextToken = tokens.contextToken;
|
|
274711
|
-
|
|
274711
|
+
log4("getCompletionData: Get previous token: " + (timestamp2() - start));
|
|
274712
274712
|
let node = currentToken;
|
|
274713
274713
|
let propertyAccessToConvert;
|
|
274714
274714
|
let isRightOfDot = false;
|
|
@@ -274743,7 +274743,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274743
274743
|
isNewIdentifierLocation = importStatementCompletionInfo.isNewIdentifierLocation;
|
|
274744
274744
|
}
|
|
274745
274745
|
if (!importStatementCompletionInfo.replacementSpan && isCompletionListBlocker(contextToken)) {
|
|
274746
|
-
|
|
274746
|
+
log4("Returning an empty list because completion was requested in an invalid position.");
|
|
274747
274747
|
return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, computeCommitCharactersAndIsNewIdentifier().isNewIdentifierLocation) : void 0;
|
|
274748
274748
|
}
|
|
274749
274749
|
let parent2 = contextToken.parent;
|
|
@@ -274878,7 +274878,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
274878
274878
|
return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, isNewIdentifierLocation) : void 0;
|
|
274879
274879
|
}
|
|
274880
274880
|
}
|
|
274881
|
-
|
|
274881
|
+
log4("getCompletionData: Semantic work: " + (timestamp2() - semanticStart));
|
|
274882
274882
|
const contextualType = previousToken && getContextualType(previousToken, position3, sourceFile, typeChecker);
|
|
274883
274883
|
const isLiteralExpected = !tryCast(previousToken, isStringLiteralLike) && !isJsxIdentifierExpected;
|
|
274884
274884
|
const literals = !isLiteralExpected ? [] : mapDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [
|
|
@@ -275428,7 +275428,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
275428
275428
|
function isCompletionListBlocker(contextToken2) {
|
|
275429
275429
|
const start2 = timestamp2();
|
|
275430
275430
|
const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || isSolelyIdentifierDefinitionLocation(contextToken2) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
|
|
275431
|
-
|
|
275431
|
+
log4("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp2() - start2));
|
|
275432
275432
|
return result;
|
|
275433
275433
|
}
|
|
275434
275434
|
__name(isCompletionListBlocker, "isCompletionListBlocker");
|
|
@@ -276917,7 +276917,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
276917
276917
|
};
|
|
276918
276918
|
}
|
|
276919
276919
|
__name(createNameAndKindSet, "createNameAndKindSet");
|
|
276920
|
-
function getStringLiteralCompletions(sourceFile, position3, contextToken, options, host, program2,
|
|
276920
|
+
function getStringLiteralCompletions(sourceFile, position3, contextToken, options, host, program2, log4, preferences, includeSymbol) {
|
|
276921
276921
|
if (isInReferenceComment(sourceFile, position3)) {
|
|
276922
276922
|
const entries = getTripleSlashReferenceCompletion(sourceFile, position3, program2, host, createModuleSpecifierResolutionHost(program2, host));
|
|
276923
276923
|
return entries && convertPathCompletions(entries);
|
|
@@ -276925,11 +276925,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
276925
276925
|
if (isInString(sourceFile, position3, contextToken)) {
|
|
276926
276926
|
if (!contextToken || !isStringLiteralLike(contextToken)) return void 0;
|
|
276927
276927
|
const entries = getStringLiteralCompletionEntries(sourceFile, contextToken, position3, program2, host, preferences);
|
|
276928
|
-
return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program2,
|
|
276928
|
+
return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program2, log4, options, preferences, position3, includeSymbol);
|
|
276929
276929
|
}
|
|
276930
276930
|
}
|
|
276931
276931
|
__name(getStringLiteralCompletions, "getStringLiteralCompletions");
|
|
276932
|
-
function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program2,
|
|
276932
|
+
function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program2, log4, options, preferences, position3, includeSymbol) {
|
|
276933
276933
|
if (completion === void 0) {
|
|
276934
276934
|
return void 0;
|
|
276935
276935
|
}
|
|
@@ -276950,7 +276950,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
276950
276950
|
host,
|
|
276951
276951
|
program2,
|
|
276952
276952
|
99,
|
|
276953
|
-
|
|
276953
|
+
log4,
|
|
276954
276954
|
4,
|
|
276955
276955
|
preferences,
|
|
276956
276956
|
options,
|
|
@@ -295355,7 +295355,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295355
295355
|
isEnabled: /* @__PURE__ */ __name(() => false, "isEnabled"),
|
|
295356
295356
|
writeLine: noop3
|
|
295357
295357
|
};
|
|
295358
|
-
function typingToFileName(cachePath2, packageName2, installTypingHost,
|
|
295358
|
+
function typingToFileName(cachePath2, packageName2, installTypingHost, log4) {
|
|
295359
295359
|
try {
|
|
295360
295360
|
const result = resolveModuleName(packageName2, combinePaths(cachePath2, "index.d.ts"), {
|
|
295361
295361
|
moduleResolution: 2
|
|
@@ -295363,8 +295363,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295363
295363
|
}, installTypingHost);
|
|
295364
295364
|
return result.resolvedModule && result.resolvedModule.resolvedFileName;
|
|
295365
295365
|
} catch (e) {
|
|
295366
|
-
if (
|
|
295367
|
-
|
|
295366
|
+
if (log4.isEnabled()) {
|
|
295367
|
+
log4.writeLine(`Failed to resolve ${packageName2} in folder '${cachePath2}': ${e.message}`);
|
|
295368
295368
|
}
|
|
295369
295369
|
return void 0;
|
|
295370
295370
|
}
|
|
@@ -295400,13 +295400,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295400
295400
|
static {
|
|
295401
295401
|
__name(this, "TypingsInstaller");
|
|
295402
295402
|
}
|
|
295403
|
-
constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation, throttleLimit,
|
|
295403
|
+
constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation, throttleLimit, log4 = nullLog) {
|
|
295404
295404
|
this.installTypingHost = installTypingHost;
|
|
295405
295405
|
this.globalCachePath = globalCachePath;
|
|
295406
295406
|
this.safeListPath = safeListPath;
|
|
295407
295407
|
this.typesMapLocation = typesMapLocation;
|
|
295408
295408
|
this.throttleLimit = throttleLimit;
|
|
295409
|
-
this.log =
|
|
295409
|
+
this.log = log4;
|
|
295410
295410
|
this.packageNameToTypingLocation = /* @__PURE__ */ new Map();
|
|
295411
295411
|
this.missingTypingsSet = /* @__PURE__ */ new Set();
|
|
295412
295412
|
this.knownCachesSet = /* @__PURE__ */ new Set();
|
|
@@ -295941,13 +295941,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
295941
295941
|
}
|
|
295942
295942
|
static run(self2) {
|
|
295943
295943
|
self2.timerId = void 0;
|
|
295944
|
-
const
|
|
295944
|
+
const log4 = self2.logger.hasLevel(
|
|
295945
295945
|
2
|
|
295946
295946
|
/* requestTime */
|
|
295947
295947
|
);
|
|
295948
|
-
const before =
|
|
295948
|
+
const before = log4 && self2.host.getMemoryUsage();
|
|
295949
295949
|
self2.host.gc();
|
|
295950
|
-
if (
|
|
295950
|
+
if (log4) {
|
|
295951
295951
|
const after = self2.host.getMemoryUsage();
|
|
295952
295952
|
self2.logger.perftrc(`GC::before ${before}, after ${after}`);
|
|
295953
295953
|
}
|
|
@@ -296905,21 +296905,21 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
296905
296905
|
updateProjectIfDirty(this);
|
|
296906
296906
|
return hasOneOrMoreJsAndNoTsFiles(this);
|
|
296907
296907
|
}
|
|
296908
|
-
static resolveModule(moduleName, initialDir, host,
|
|
296908
|
+
static resolveModule(moduleName, initialDir, host, log4) {
|
|
296909
296909
|
return _Project.importServicePluginSync({
|
|
296910
296910
|
name: moduleName
|
|
296911
296911
|
}, [
|
|
296912
296912
|
initialDir
|
|
296913
|
-
], host,
|
|
296913
|
+
], host, log4).resolvedModule;
|
|
296914
296914
|
}
|
|
296915
296915
|
/** @internal */
|
|
296916
|
-
static importServicePluginSync(pluginConfigEntry, searchPaths, host,
|
|
296916
|
+
static importServicePluginSync(pluginConfigEntry, searchPaths, host, log4) {
|
|
296917
296917
|
Debug.assertIsDefined(host.require);
|
|
296918
296918
|
let errorLogs;
|
|
296919
296919
|
let resolvedModule;
|
|
296920
296920
|
for (const initialDir of searchPaths) {
|
|
296921
296921
|
const resolvedPath = normalizeSlashes(host.resolvePath(combinePaths(initialDir, "node_modules")));
|
|
296922
|
-
|
|
296922
|
+
log4(`Loading ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
|
|
296923
296923
|
const result = host.require(resolvedPath, pluginConfigEntry.name);
|
|
296924
296924
|
if (!result.error) {
|
|
296925
296925
|
resolvedModule = result.module;
|
|
@@ -296935,13 +296935,13 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
296935
296935
|
};
|
|
296936
296936
|
}
|
|
296937
296937
|
/** @internal */
|
|
296938
|
-
static async importServicePluginAsync(pluginConfigEntry, searchPaths, host,
|
|
296938
|
+
static async importServicePluginAsync(pluginConfigEntry, searchPaths, host, log4) {
|
|
296939
296939
|
Debug.assertIsDefined(host.importPlugin);
|
|
296940
296940
|
let errorLogs;
|
|
296941
296941
|
let resolvedModule;
|
|
296942
296942
|
for (const initialDir of searchPaths) {
|
|
296943
296943
|
const resolvedPath = combinePaths(initialDir, "node_modules");
|
|
296944
|
-
|
|
296944
|
+
log4(`Dynamically importing ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
|
|
296945
296945
|
let result;
|
|
296946
296946
|
try {
|
|
296947
296947
|
result = await host.importPlugin(resolvedPath, pluginConfigEntry.name);
|
|
@@ -299727,12 +299727,12 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
299727
299727
|
3
|
|
299728
299728
|
/* verbose */
|
|
299729
299729
|
) ? 2 : this.logger.loggingEnabled() ? 1 : 0;
|
|
299730
|
-
const
|
|
299730
|
+
const log4 = watchLogLevel !== 0 ? (s) => this.logger.info(s) : noop3;
|
|
299731
299731
|
this.packageJsonCache = createPackageJsonCache(this);
|
|
299732
299732
|
this.watchFactory = this.serverMode !== 0 ? {
|
|
299733
299733
|
watchFile: returnNoopFileWatcher,
|
|
299734
299734
|
watchDirectory: returnNoopFileWatcher
|
|
299735
|
-
} : getWatchFactory(createWatchFactoryHostUsingWatchEvents(this, opts.canUseWatchEvents) || this.host, watchLogLevel,
|
|
299735
|
+
} : getWatchFactory(createWatchFactoryHostUsingWatchEvents(this, opts.canUseWatchEvents) || this.host, watchLogLevel, log4, getDetailWatchInfo);
|
|
299736
299736
|
this.canUseWatchEvents = getCanUseWatchEvents(this, opts.canUseWatchEvents);
|
|
299737
299737
|
(_a = opts.incrementalVerifier) == null ? void 0 : _a.call(opts, this);
|
|
299738
299738
|
}
|
|
@@ -309946,7 +309946,7 @@ var require_node = __commonJS({
|
|
|
309946
309946
|
var tty3 = __require("tty");
|
|
309947
309947
|
var util3 = __require("util");
|
|
309948
309948
|
exports.init = init;
|
|
309949
|
-
exports.log =
|
|
309949
|
+
exports.log = log4;
|
|
309950
309950
|
exports.formatArgs = formatArgs;
|
|
309951
309951
|
exports.save = save;
|
|
309952
309952
|
exports.load = load3;
|
|
@@ -310088,10 +310088,10 @@ var require_node = __commonJS({
|
|
|
310088
310088
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
310089
310089
|
}
|
|
310090
310090
|
__name(getDate, "getDate");
|
|
310091
|
-
function
|
|
310091
|
+
function log4(...args) {
|
|
310092
310092
|
return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
310093
310093
|
}
|
|
310094
|
-
__name(
|
|
310094
|
+
__name(log4, "log");
|
|
310095
310095
|
function save(namespaces) {
|
|
310096
310096
|
if (namespaces) {
|
|
310097
310097
|
process.env.DEBUG = namespaces;
|
|
@@ -310462,8 +310462,8 @@ var require_type_defs = __commonJS({
|
|
|
310462
310462
|
return true;
|
|
310463
310463
|
}
|
|
310464
310464
|
val = String(val);
|
|
310465
|
-
const
|
|
310466
|
-
const homePattern =
|
|
310465
|
+
const isWin2 = process.platform === "win32";
|
|
310466
|
+
const homePattern = isWin2 ? /^~(\/|\\)/ : /^~\//;
|
|
310467
310467
|
const home = os7.homedir();
|
|
310468
310468
|
if (home && val.match(homePattern)) {
|
|
310469
310469
|
data[k] = path36.resolve(home, val.slice(2));
|
|
@@ -313316,7 +313316,7 @@ var require_spawn = __commonJS({
|
|
|
313316
313316
|
init_esm_shims();
|
|
313317
313317
|
var spawn2 = require_lib12();
|
|
313318
313318
|
var promiseRetry = require_promise_retry();
|
|
313319
|
-
var { log:
|
|
313319
|
+
var { log: log4 } = require_lib8();
|
|
313320
313320
|
var makeError = require_make_error();
|
|
313321
313321
|
var makeOpts = require_opts();
|
|
313322
313322
|
module.exports = (gitArgs, opts = {}) => {
|
|
@@ -313340,7 +313340,7 @@ var require_spawn = __commonJS({
|
|
|
313340
313340
|
}
|
|
313341
313341
|
return promiseRetry((retryFn, number) => {
|
|
313342
313342
|
if (number !== 1) {
|
|
313343
|
-
|
|
313343
|
+
log4.silly("git", `Retrying git command: ${args.join(" ")} attempt # ${number}`);
|
|
313344
313344
|
}
|
|
313345
313345
|
return spawn2(gitPath, args, makeOpts(opts)).catch((er) => {
|
|
313346
313346
|
const gitError = makeError(er);
|
|
@@ -313633,7 +313633,7 @@ var require_npa = __commonJS({
|
|
|
313633
313633
|
var path36 = global.FAKE_WINDOWS ? __require("path").win32 : __require("path");
|
|
313634
313634
|
var validatePackageName = require_lib13();
|
|
313635
313635
|
var { homedir: homedir6 } = __require("os");
|
|
313636
|
-
var { log:
|
|
313636
|
+
var { log: log4 } = require_lib8();
|
|
313637
313637
|
var isWindows4 = process.platform === "win32" || global.FAKE_WINDOWS;
|
|
313638
313638
|
var hasSlashes = isWindows4 ? /\\|[/]/ : /[/]/;
|
|
313639
313639
|
var isURL3 = /^(?:git[+])?[a-z]+:/i;
|
|
@@ -313820,7 +313820,7 @@ var require_npa = __commonJS({
|
|
|
313820
313820
|
res.gitSubdir = `/${value2}`;
|
|
313821
313821
|
continue;
|
|
313822
313822
|
}
|
|
313823
|
-
|
|
313823
|
+
log4.warn("npm-package-arg", `ignoring unknown key "${name2}"`);
|
|
313824
313824
|
}
|
|
313825
313825
|
}
|
|
313826
313826
|
__name(setGitAttrs, "setGitAttrs");
|
|
@@ -316782,7 +316782,7 @@ var require_normalize = __commonJS({
|
|
|
316782
316782
|
var clean6 = require_clean();
|
|
316783
316783
|
var fs19 = __require("node:fs/promises");
|
|
316784
316784
|
var path36 = __require("node:path");
|
|
316785
|
-
var { log:
|
|
316785
|
+
var { log: log4 } = require_lib8();
|
|
316786
316786
|
var _hostedGitInfo;
|
|
316787
316787
|
function lazyHostedGitInfo() {
|
|
316788
316788
|
if (!_hostedGitInfo) {
|
|
@@ -317283,7 +317283,7 @@ var require_normalize = __commonJS({
|
|
|
317283
317283
|
try {
|
|
317284
317284
|
await fs19.access(path36.resolve(pkg.path, data.bin[key]));
|
|
317285
317285
|
} catch {
|
|
317286
|
-
|
|
317286
|
+
log4.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
317287
317287
|
}
|
|
317288
317288
|
}
|
|
317289
317289
|
}
|
|
@@ -317913,7 +317913,7 @@ var require_lib22 = __commonJS({
|
|
|
317913
317913
|
var { walkUp } = require_cjs2();
|
|
317914
317914
|
var ini2 = require_ini2();
|
|
317915
317915
|
var nopt = require_nopt();
|
|
317916
|
-
var { log:
|
|
317916
|
+
var { log: log4, time } = require_lib8();
|
|
317917
317917
|
var { resolve: resolve12, dirname: dirname8, join: join9 } = __require("node:path");
|
|
317918
317918
|
var { homedir: homedir6 } = __require("node:os");
|
|
317919
317919
|
var { readFile: readFile6, writeFile: writeFile3, chmod, unlink, stat: stat3, mkdir } = __require("node:fs/promises");
|
|
@@ -318304,7 +318304,7 @@ var require_lib22 = __commonJS({
|
|
|
318304
318304
|
}
|
|
318305
318305
|
invalidHandler(k, val, type2, source, where) {
|
|
318306
318306
|
const typeDescription = require_type_description();
|
|
318307
|
-
|
|
318307
|
+
log4.warn("invalid config", k + "=" + JSON.stringify(val), `set in ${source}`);
|
|
318308
318308
|
this.data.get(where)[_valid] = false;
|
|
318309
318309
|
if (Array.isArray(type2)) {
|
|
318310
318310
|
if (type2.includes(typeDefs.url.type)) {
|
|
@@ -318321,7 +318321,7 @@ var require_lib22 = __commonJS({
|
|
|
318321
318321
|
const desc = mustBe.length === 1 ? mustBe[0] : [
|
|
318322
318322
|
...new Set(mustBe.map((n) => typeof n === "string" ? n : JSON.stringify(n)))
|
|
318323
318323
|
].join(", ");
|
|
318324
|
-
|
|
318324
|
+
log4.warn("invalid config", msg, desc);
|
|
318325
318325
|
}
|
|
318326
318326
|
#getOneOfKeywords(mustBe, typeDesc) {
|
|
318327
318327
|
let keyword;
|
|
@@ -318351,7 +318351,7 @@ var require_lib22 = __commonJS({
|
|
|
318351
318351
|
if (er) {
|
|
318352
318352
|
conf.loadError = er;
|
|
318353
318353
|
if (er.code !== "ENOENT") {
|
|
318354
|
-
|
|
318354
|
+
log4.verbose("config", `error loading ${where} config`, er);
|
|
318355
318355
|
}
|
|
318356
318356
|
} else {
|
|
318357
318357
|
conf.raw = obj;
|
|
@@ -318374,7 +318374,7 @@ var require_lib22 = __commonJS({
|
|
|
318374
318374
|
}
|
|
318375
318375
|
#checkDeprecated(key) {
|
|
318376
318376
|
if (this.deprecated[key]) {
|
|
318377
|
-
|
|
318377
|
+
log4.warn("config", key, this.deprecated[key]);
|
|
318378
318378
|
}
|
|
318379
318379
|
}
|
|
318380
318380
|
// Parse a field, coercing it to the best type available.
|
|
@@ -318382,11 +318382,11 @@ var require_lib22 = __commonJS({
|
|
|
318382
318382
|
return parseField(f, key, this, listElement);
|
|
318383
318383
|
}
|
|
318384
318384
|
async #loadFile(file, type2) {
|
|
318385
|
-
|
|
318385
|
+
log4.silly("config", `load:file:${file}`);
|
|
318386
318386
|
await readFile6(file, "utf8").then((data) => {
|
|
318387
318387
|
const parsedConfig = ini2.parse(data);
|
|
318388
318388
|
if (type2 === "project" && parsedConfig.prefix) {
|
|
318389
|
-
|
|
318389
|
+
log4.error("config", `prefix cannot be changed from project config: ${file}.`);
|
|
318390
318390
|
}
|
|
318391
318391
|
return this.#loadObject(parsedConfig, type2, file);
|
|
318392
318392
|
}, (er) => this.#loadObject(null, type2, file, er));
|
|
@@ -318449,7 +318449,7 @@ var require_lib22 = __commonJS({
|
|
|
318449
318449
|
for (const w of workspaces.values()) {
|
|
318450
318450
|
if (w === this.localPrefix) {
|
|
318451
318451
|
if (await fileExists2(this.localPrefix, ".npmrc")) {
|
|
318452
|
-
|
|
318452
|
+
log4.warn("config", `ignoring workspace config at ${this.localPrefix}/.npmrc`);
|
|
318453
318453
|
}
|
|
318454
318454
|
const { data } = this.data.get("default");
|
|
318455
318455
|
data.workspace = [
|
|
@@ -318457,7 +318457,7 @@ var require_lib22 = __commonJS({
|
|
|
318457
318457
|
];
|
|
318458
318458
|
this.localPrefix = p;
|
|
318459
318459
|
this.localPackage = hasPackageJson;
|
|
318460
|
-
|
|
318460
|
+
log4.info("config", `found workspace root at ${this.localPrefix}`);
|
|
318461
318461
|
return;
|
|
318462
318462
|
}
|
|
318463
318463
|
}
|
|
@@ -326319,7 +326319,7 @@ var require_typedarray = __commonJS({
|
|
|
326319
326319
|
var LN2 = Math.LN2;
|
|
326320
326320
|
var abs = Math.abs;
|
|
326321
326321
|
var floor = Math.floor;
|
|
326322
|
-
var
|
|
326322
|
+
var log4 = Math.log;
|
|
326323
326323
|
var min3 = Math.min;
|
|
326324
326324
|
var pow = Math.pow;
|
|
326325
326325
|
var round = Math.round;
|
|
@@ -326506,7 +326506,7 @@ var require_typedarray = __commonJS({
|
|
|
326506
326506
|
s = v < 0;
|
|
326507
326507
|
v = abs(v);
|
|
326508
326508
|
if (v >= pow(2, 1 - bias)) {
|
|
326509
|
-
e = min3(floor(
|
|
326509
|
+
e = min3(floor(log4(v) / LN2), 1023);
|
|
326510
326510
|
f = roundToEven(v / pow(2, e) * pow(2, fbits));
|
|
326511
326511
|
if (f / pow(2, fbits) >= 2) {
|
|
326512
326512
|
e = e + 1;
|
|
@@ -337808,14 +337808,14 @@ var require_parse8 = __commonJS({
|
|
|
337808
337808
|
var escapeArgument = require_escapeArgument();
|
|
337809
337809
|
var escapeCommand = require_escapeCommand();
|
|
337810
337810
|
var readShebang = require_readShebang();
|
|
337811
|
-
var
|
|
337811
|
+
var isWin2 = process.platform === "win32";
|
|
337812
337812
|
var skipShellRegExp = /\.(?:com|exe)$/i;
|
|
337813
337813
|
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;
|
|
337814
337814
|
function parseNonShell(parsed) {
|
|
337815
337815
|
var shebang;
|
|
337816
337816
|
var needsShell;
|
|
337817
337817
|
var applyQuotes;
|
|
337818
|
-
if (!
|
|
337818
|
+
if (!isWin2) {
|
|
337819
337819
|
return parsed;
|
|
337820
337820
|
}
|
|
337821
337821
|
parsed.file = resolveCommand(parsed.command);
|
|
@@ -337854,7 +337854,7 @@ var require_parse8 = __commonJS({
|
|
|
337854
337854
|
shellCommand = [
|
|
337855
337855
|
parsed.command
|
|
337856
337856
|
].concat(parsed.args).join(" ");
|
|
337857
|
-
if (
|
|
337857
|
+
if (isWin2) {
|
|
337858
337858
|
parsed.command = typeof parsed.options.shell === "string" ? parsed.options.shell : process.env.comspec || "cmd.exe";
|
|
337859
337859
|
parsed.args = [
|
|
337860
337860
|
"/d",
|
|
@@ -337906,7 +337906,7 @@ var require_enoent = __commonJS({
|
|
|
337906
337906
|
"../../node_modules/.pnpm/cross-spawn@5.1.0/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
337907
337907
|
"use strict";
|
|
337908
337908
|
init_esm_shims();
|
|
337909
|
-
var
|
|
337909
|
+
var isWin2 = process.platform === "win32";
|
|
337910
337910
|
var resolveCommand = require_resolveCommand();
|
|
337911
337911
|
var isNode10 = process.version.indexOf("v0.10.") === 0;
|
|
337912
337912
|
function notFoundError(command, syscall) {
|
|
@@ -337919,7 +337919,7 @@ var require_enoent = __commonJS({
|
|
|
337919
337919
|
__name(notFoundError, "notFoundError");
|
|
337920
337920
|
function hookChildProcess(cp, parsed) {
|
|
337921
337921
|
var originalEmit;
|
|
337922
|
-
if (!
|
|
337922
|
+
if (!isWin2) {
|
|
337923
337923
|
return;
|
|
337924
337924
|
}
|
|
337925
337925
|
originalEmit = cp.emit;
|
|
@@ -337936,18 +337936,18 @@ var require_enoent = __commonJS({
|
|
|
337936
337936
|
}
|
|
337937
337937
|
__name(hookChildProcess, "hookChildProcess");
|
|
337938
337938
|
function verifyENOENT(status, parsed) {
|
|
337939
|
-
if (
|
|
337939
|
+
if (isWin2 && status === 1 && !parsed.file) {
|
|
337940
337940
|
return notFoundError(parsed.original, "spawn");
|
|
337941
337941
|
}
|
|
337942
337942
|
return null;
|
|
337943
337943
|
}
|
|
337944
337944
|
__name(verifyENOENT, "verifyENOENT");
|
|
337945
337945
|
function verifyENOENTSync(status, parsed) {
|
|
337946
|
-
if (
|
|
337946
|
+
if (isWin2 && status === 1 && !parsed.file) {
|
|
337947
337947
|
return notFoundError(parsed.original, "spawnSync");
|
|
337948
337948
|
}
|
|
337949
337949
|
if (isNode10 && status === -1) {
|
|
337950
|
-
parsed.file =
|
|
337950
|
+
parsed.file = isWin2 ? parsed.file : resolveCommand(parsed.original);
|
|
337951
337951
|
if (!parsed.file) {
|
|
337952
337952
|
return notFoundError(parsed.original, "spawnSync");
|
|
337953
337953
|
}
|
|
@@ -338040,7 +338040,7 @@ var require_signal_exit = __commonJS({
|
|
|
338040
338040
|
} else {
|
|
338041
338041
|
assert28 = __require("assert");
|
|
338042
338042
|
signals = require_signals();
|
|
338043
|
-
|
|
338043
|
+
isWin2 = /^win/i.test(process11.platform);
|
|
338044
338044
|
EE = __require("events");
|
|
338045
338045
|
if (typeof EE !== "function") {
|
|
338046
338046
|
EE = EE.EventEmitter;
|
|
@@ -338112,7 +338112,7 @@ var require_signal_exit = __commonJS({
|
|
|
338112
338112
|
unload();
|
|
338113
338113
|
emit("exit", null, sig);
|
|
338114
338114
|
emit("afterexit", null, sig);
|
|
338115
|
-
if (
|
|
338115
|
+
if (isWin2 && sig === "SIGHUP") {
|
|
338116
338116
|
sig = "SIGINT";
|
|
338117
338117
|
}
|
|
338118
338118
|
process11.kill(process11.pid, sig);
|
|
@@ -338169,7 +338169,7 @@ var require_signal_exit = __commonJS({
|
|
|
338169
338169
|
}
|
|
338170
338170
|
var assert28;
|
|
338171
338171
|
var signals;
|
|
338172
|
-
var
|
|
338172
|
+
var isWin2;
|
|
338173
338173
|
var EE;
|
|
338174
338174
|
var emitter;
|
|
338175
338175
|
var unload;
|
|
@@ -339282,11 +339282,11 @@ function interpolate(target, source = {}, parse8 = (v) => v) {
|
|
|
339282
339282
|
__name(interpolate, "interpolate");
|
|
339283
339283
|
var _normalize = /* @__PURE__ */ __name((p) => p?.replace(/\\/g, "/"), "_normalize");
|
|
339284
339284
|
var ASYNC_LOADERS = {
|
|
339285
|
-
".yaml": /* @__PURE__ */ __name(() => import("./yaml-
|
|
339286
|
-
".yml": /* @__PURE__ */ __name(() => import("./yaml-
|
|
339287
|
-
".jsonc": /* @__PURE__ */ __name(() => import("./jsonc-
|
|
339288
|
-
".json5": /* @__PURE__ */ __name(() => import("./json5-
|
|
339289
|
-
".toml": /* @__PURE__ */ __name(() => import("./toml-
|
|
339285
|
+
".yaml": /* @__PURE__ */ __name(() => import("./yaml-XP5UAV4Y.js").then((r) => r.parseYAML), ".yaml"),
|
|
339286
|
+
".yml": /* @__PURE__ */ __name(() => import("./yaml-XP5UAV4Y.js").then((r) => r.parseYAML), ".yml"),
|
|
339287
|
+
".jsonc": /* @__PURE__ */ __name(() => import("./jsonc-YCDSJSS2.js").then((r) => r.parseJSONC), ".jsonc"),
|
|
339288
|
+
".json5": /* @__PURE__ */ __name(() => import("./json5-QOJRSU3X.js").then((r) => r.parseJSON5), ".json5"),
|
|
339289
|
+
".toml": /* @__PURE__ */ __name(() => import("./toml-U5TVWQLZ.js").then((r) => r.parseTOML), ".toml")
|
|
339290
339290
|
};
|
|
339291
339291
|
var SUPPORTED_EXTENSIONS = [
|
|
339292
339292
|
// with jiti
|
|
@@ -339488,7 +339488,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
339488
339488
|
}
|
|
339489
339489
|
const _merger = options.merger || defu;
|
|
339490
339490
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
339491
|
-
const { downloadTemplate } = await import("./dist-
|
|
339491
|
+
const { downloadTemplate } = await import("./dist-LAXHN42C.js");
|
|
339492
339492
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + hash(source);
|
|
339493
339493
|
let cloneDir;
|
|
339494
339494
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -343937,11 +343937,11 @@ var StormConfigSchema = z.object({
|
|
|
343937
343937
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
343938
343938
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
343939
343939
|
bot: WorkspaceBotConfigSchema,
|
|
343940
|
-
|
|
343940
|
+
mode: z.enum([
|
|
343941
343941
|
"development",
|
|
343942
343942
|
"staging",
|
|
343943
343943
|
"production"
|
|
343944
|
-
]).default("production").describe("The current runtime environment
|
|
343944
|
+
]).default("production").describe("The current runtime environment mode for the package"),
|
|
343945
343945
|
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
343946
343946
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
343947
343947
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
@@ -344620,7 +344620,7 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
344620
344620
|
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
344621
344621
|
},
|
|
344622
344622
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
344623
|
-
|
|
344623
|
+
mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
|
|
344624
344624
|
// ci:
|
|
344625
344625
|
// process.env[`${prefix}CI`] !== undefined
|
|
344626
344626
|
// ? Boolean(
|
|
@@ -344830,10 +344830,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
344830
344830
|
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
344831
344831
|
}
|
|
344832
344832
|
}
|
|
344833
|
-
if (config.
|
|
344834
|
-
process.env[`${prefix}
|
|
344835
|
-
process.env.NODE_ENV = config.
|
|
344836
|
-
process.env.ENVIRONMENT = config.
|
|
344833
|
+
if (config.mode) {
|
|
344834
|
+
process.env[`${prefix}MODE`] = config.mode;
|
|
344835
|
+
process.env.NODE_ENV = config.mode;
|
|
344836
|
+
process.env.ENVIRONMENT = config.mode;
|
|
344837
344837
|
}
|
|
344838
344838
|
if (config.colors?.base?.light || config.colors?.base?.dark) {
|
|
344839
344839
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -378211,27 +378211,69 @@ import { promises as fs8 } from "node:fs";
|
|
|
378211
378211
|
import * as path18 from "node:path";
|
|
378212
378212
|
import { posix as posix3 } from "node:path";
|
|
378213
378213
|
|
|
378214
|
-
// ../../node_modules/.pnpm/tinyglobby@0.2.
|
|
378214
|
+
// ../../node_modules/.pnpm/tinyglobby@0.2.11/node_modules/tinyglobby/dist/index.mjs
|
|
378215
378215
|
init_esm_shims();
|
|
378216
378216
|
var import_fdir = __toESM(require_dist2(), 1);
|
|
378217
378217
|
var import_picomatch = __toESM(require_picomatch4(), 1);
|
|
378218
378218
|
var import_picomatch2 = __toESM(require_picomatch4(), 1);
|
|
378219
378219
|
import path17, { posix as posix2 } from "path";
|
|
378220
|
-
|
|
378221
|
-
|
|
378222
|
-
|
|
378220
|
+
function getPartialMatcher(patterns2, options) {
|
|
378221
|
+
const patternsCount = patterns2.length;
|
|
378222
|
+
const patternsParts = Array(patternsCount);
|
|
378223
|
+
const regexes = Array(patternsCount);
|
|
378224
|
+
for (let i = 0; i < patternsCount; i++) {
|
|
378225
|
+
const parts = splitPattern(patterns2[i]);
|
|
378226
|
+
patternsParts[i] = parts;
|
|
378227
|
+
const partsCount = parts.length;
|
|
378228
|
+
const partRegexes = Array(partsCount);
|
|
378229
|
+
for (let j = 0; j < partsCount; j++) {
|
|
378230
|
+
partRegexes[j] = import_picomatch2.default.makeRe(parts[j], options);
|
|
378231
|
+
}
|
|
378232
|
+
regexes[i] = partRegexes;
|
|
378233
|
+
}
|
|
378234
|
+
return (input) => {
|
|
378235
|
+
const inputParts = input.split("/");
|
|
378236
|
+
for (let i = 0; i < patterns2.length; i++) {
|
|
378237
|
+
const patternParts = patternsParts[i];
|
|
378238
|
+
const regex3 = regexes[i];
|
|
378239
|
+
const inputPatternCount = inputParts.length;
|
|
378240
|
+
const minParts = Math.min(inputPatternCount, patternParts.length);
|
|
378241
|
+
let j = 0;
|
|
378242
|
+
while (j < minParts) {
|
|
378243
|
+
const part = patternParts[j];
|
|
378244
|
+
if (part.includes("/")) {
|
|
378245
|
+
return true;
|
|
378246
|
+
}
|
|
378247
|
+
const match4 = regex3[j].test(inputParts[j]);
|
|
378248
|
+
if (!match4) {
|
|
378249
|
+
break;
|
|
378250
|
+
}
|
|
378251
|
+
if (part === "**") {
|
|
378252
|
+
return true;
|
|
378253
|
+
}
|
|
378254
|
+
j++;
|
|
378255
|
+
}
|
|
378256
|
+
if (j === inputPatternCount) {
|
|
378257
|
+
return true;
|
|
378258
|
+
}
|
|
378259
|
+
}
|
|
378260
|
+
return false;
|
|
378261
|
+
};
|
|
378223
378262
|
}
|
|
378224
|
-
__name(
|
|
378225
|
-
|
|
378226
|
-
|
|
378263
|
+
__name(getPartialMatcher, "getPartialMatcher");
|
|
378264
|
+
var splitPatternOptions = { parts: true };
|
|
378265
|
+
function splitPattern(path210) {
|
|
378266
|
+
var _a;
|
|
378267
|
+
const result = import_picomatch2.default.scan(path210, splitPatternOptions);
|
|
378268
|
+
return ((_a = result.parts) == null ? void 0 : _a.length) ? result.parts : [path210];
|
|
378227
378269
|
}
|
|
378228
|
-
__name(
|
|
378229
|
-
var
|
|
378270
|
+
__name(splitPattern, "splitPattern");
|
|
378271
|
+
var isWin = process.platform === "win32";
|
|
378230
378272
|
var POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
|
|
378231
378273
|
var WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
378232
378274
|
var escapePosixPath = /* @__PURE__ */ __name((path210) => path210.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&"), "escapePosixPath");
|
|
378233
378275
|
var escapeWin32Path = /* @__PURE__ */ __name((path210) => path210.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&"), "escapeWin32Path");
|
|
378234
|
-
var escapePath =
|
|
378276
|
+
var escapePath = isWin ? escapeWin32Path : escapePosixPath;
|
|
378235
378277
|
function isDynamicPattern2(pattern, options) {
|
|
378236
378278
|
if ((options == null ? void 0 : options.caseSensitiveMatch) === false) {
|
|
378237
378279
|
return true;
|
|
@@ -378240,7 +378282,14 @@ function isDynamicPattern2(pattern, options) {
|
|
|
378240
378282
|
return scan3.isGlob || scan3.negated;
|
|
378241
378283
|
}
|
|
378242
378284
|
__name(isDynamicPattern2, "isDynamicPattern");
|
|
378243
|
-
function
|
|
378285
|
+
function log2(...tasks) {
|
|
378286
|
+
console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
|
|
378287
|
+
}
|
|
378288
|
+
__name(log2, "log");
|
|
378289
|
+
var PARENT_DIRECTORY = /^(\/?\.\.)+/;
|
|
378290
|
+
var ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
|
|
378291
|
+
var BACKSLASHES = /\\/g;
|
|
378292
|
+
function normalizePattern3(pattern, expandDirectories, cwd, props, isIgnore) {
|
|
378244
378293
|
var _a;
|
|
378245
378294
|
let result = pattern;
|
|
378246
378295
|
if (pattern.endsWith("/")) {
|
|
@@ -378249,41 +378298,42 @@ function normalizePattern3(pattern, expandDirectories, cwd, properties, isIgnore
|
|
|
378249
378298
|
if (!result.endsWith("*") && expandDirectories) {
|
|
378250
378299
|
result += "/**";
|
|
378251
378300
|
}
|
|
378252
|
-
if (path17.isAbsolute(result.replace(
|
|
378253
|
-
result = posix2.relative(cwd, result);
|
|
378301
|
+
if (path17.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) {
|
|
378302
|
+
result = posix2.relative(escapePath(cwd), result);
|
|
378254
378303
|
} else {
|
|
378255
378304
|
result = posix2.normalize(result);
|
|
378256
378305
|
}
|
|
378257
|
-
const parentDirectoryMatch =
|
|
378306
|
+
const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
|
|
378258
378307
|
if (parentDirectoryMatch == null ? void 0 : parentDirectoryMatch[0]) {
|
|
378259
378308
|
const potentialRoot = posix2.join(cwd, parentDirectoryMatch[0]);
|
|
378260
|
-
if (
|
|
378261
|
-
|
|
378262
|
-
|
|
378309
|
+
if (props.root.length > potentialRoot.length) {
|
|
378310
|
+
props.root = potentialRoot;
|
|
378311
|
+
props.depthOffset = -(parentDirectoryMatch[0].length + 1) / 3;
|
|
378263
378312
|
}
|
|
378264
|
-
} else if (!isIgnore &&
|
|
378265
|
-
const
|
|
378266
|
-
(_a =
|
|
378313
|
+
} else if (!isIgnore && props.depthOffset >= 0) {
|
|
378314
|
+
const parts = splitPattern(result);
|
|
378315
|
+
(_a = props.commonPath) != null ? _a : props.commonPath = parts;
|
|
378267
378316
|
const newCommonPath = [];
|
|
378268
|
-
|
|
378269
|
-
|
|
378270
|
-
|
|
378317
|
+
const length = Math.min(props.commonPath.length, parts.length);
|
|
378318
|
+
for (let i = 0; i < length; i++) {
|
|
378319
|
+
const part = parts[i];
|
|
378320
|
+
if (part === "**" && !parts[i + 1]) {
|
|
378271
378321
|
newCommonPath.pop();
|
|
378272
378322
|
break;
|
|
378273
378323
|
}
|
|
378274
|
-
if (part !==
|
|
378324
|
+
if (part !== props.commonPath[i] || isDynamicPattern2(part) || i === parts.length - 1) {
|
|
378275
378325
|
break;
|
|
378276
378326
|
}
|
|
378277
378327
|
newCommonPath.push(part);
|
|
378278
378328
|
}
|
|
378279
|
-
|
|
378280
|
-
|
|
378281
|
-
|
|
378329
|
+
props.depthOffset = newCommonPath.length;
|
|
378330
|
+
props.commonPath = newCommonPath;
|
|
378331
|
+
props.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd;
|
|
378282
378332
|
}
|
|
378283
378333
|
return result;
|
|
378284
378334
|
}
|
|
378285
378335
|
__name(normalizePattern3, "normalizePattern");
|
|
378286
|
-
function processPatterns({ patterns: patterns2, ignore: ignore3 = [], expandDirectories = true }, cwd,
|
|
378336
|
+
function processPatterns({ patterns: patterns2, ignore: ignore3 = [], expandDirectories = true }, cwd, props) {
|
|
378287
378337
|
if (typeof patterns2 === "string") {
|
|
378288
378338
|
patterns2 = [patterns2];
|
|
378289
378339
|
} else if (!patterns2) {
|
|
@@ -378295,25 +378345,28 @@ function processPatterns({ patterns: patterns2, ignore: ignore3 = [], expandDire
|
|
|
378295
378345
|
const matchPatterns = [];
|
|
378296
378346
|
const ignorePatterns = [];
|
|
378297
378347
|
for (const pattern of ignore3) {
|
|
378298
|
-
if (!pattern
|
|
378299
|
-
|
|
378300
|
-
|
|
378348
|
+
if (!pattern) {
|
|
378349
|
+
continue;
|
|
378350
|
+
}
|
|
378351
|
+
if (pattern[0] !== "!" || pattern[1] === "(") {
|
|
378352
|
+
ignorePatterns.push(normalizePattern3(pattern, expandDirectories, cwd, props, true));
|
|
378301
378353
|
}
|
|
378302
378354
|
}
|
|
378303
378355
|
for (const pattern of patterns2) {
|
|
378304
|
-
if (!pattern
|
|
378305
|
-
|
|
378306
|
-
|
|
378356
|
+
if (!pattern) {
|
|
378357
|
+
continue;
|
|
378358
|
+
}
|
|
378359
|
+
if (pattern[0] !== "!" || pattern[1] === "(") {
|
|
378360
|
+
matchPatterns.push(normalizePattern3(pattern, expandDirectories, cwd, props, false));
|
|
378307
378361
|
} else if (pattern[1] !== "!" || pattern[2] === "(") {
|
|
378308
|
-
|
|
378309
|
-
ignorePatterns.push(newPattern);
|
|
378362
|
+
ignorePatterns.push(normalizePattern3(pattern.slice(1), expandDirectories, cwd, props, true));
|
|
378310
378363
|
}
|
|
378311
378364
|
}
|
|
378312
378365
|
return { match: matchPatterns, ignore: ignorePatterns };
|
|
378313
378366
|
}
|
|
378314
378367
|
__name(processPatterns, "processPatterns");
|
|
378315
378368
|
function getRelativePath(path210, cwd, root) {
|
|
378316
|
-
return posix2.relative(cwd, `${root}/${path210}`);
|
|
378369
|
+
return posix2.relative(cwd, `${root}/${path210}`) || ".";
|
|
378317
378370
|
}
|
|
378318
378371
|
__name(getRelativePath, "getRelativePath");
|
|
378319
378372
|
function processPath(path210, cwd, root, isDirectory2, absolute) {
|
|
@@ -378324,32 +378377,76 @@ function processPath(path210, cwd, root, isDirectory2, absolute) {
|
|
|
378324
378377
|
return getRelativePath(relativePath2, cwd, root);
|
|
378325
378378
|
}
|
|
378326
378379
|
__name(processPath, "processPath");
|
|
378380
|
+
function formatPaths(paths, cwd, root) {
|
|
378381
|
+
for (let i = paths.length - 1; i >= 0; i--) {
|
|
378382
|
+
const path210 = paths[i];
|
|
378383
|
+
paths[i] = getRelativePath(path210, cwd, root) + (!path210 || path210.endsWith("/") ? "/" : "");
|
|
378384
|
+
}
|
|
378385
|
+
return paths;
|
|
378386
|
+
}
|
|
378387
|
+
__name(formatPaths, "formatPaths");
|
|
378327
378388
|
function crawl(options, cwd, sync3) {
|
|
378328
|
-
|
|
378389
|
+
if (process.env.TINYGLOBBY_DEBUG) {
|
|
378390
|
+
options.debug = true;
|
|
378391
|
+
}
|
|
378392
|
+
if (options.debug) {
|
|
378393
|
+
log2("globbing with options:", options, "cwd:", cwd);
|
|
378394
|
+
}
|
|
378395
|
+
if (Array.isArray(options.patterns) && options.patterns.length === 0) {
|
|
378396
|
+
return sync3 ? [] : Promise.resolve([]);
|
|
378397
|
+
}
|
|
378398
|
+
const props = {
|
|
378329
378399
|
root: cwd,
|
|
378330
378400
|
commonPath: null,
|
|
378331
378401
|
depthOffset: 0
|
|
378332
378402
|
};
|
|
378333
|
-
const processed = processPatterns(options, cwd,
|
|
378403
|
+
const processed = processPatterns(options, cwd, props);
|
|
378404
|
+
const nocase = options.caseSensitiveMatch === false;
|
|
378405
|
+
if (options.debug) {
|
|
378406
|
+
log2("internal processing patterns:", processed);
|
|
378407
|
+
}
|
|
378334
378408
|
const matcher = (0, import_picomatch.default)(processed.match, {
|
|
378335
378409
|
dot: options.dot,
|
|
378336
|
-
nocase
|
|
378410
|
+
nocase,
|
|
378337
378411
|
ignore: processed.ignore
|
|
378338
378412
|
});
|
|
378339
|
-
const
|
|
378413
|
+
const ignore3 = (0, import_picomatch.default)(processed.ignore, {
|
|
378340
378414
|
dot: options.dot,
|
|
378341
|
-
nocase
|
|
378415
|
+
nocase
|
|
378416
|
+
});
|
|
378417
|
+
const partialMatcher = getPartialMatcher(processed.match, {
|
|
378418
|
+
dot: options.dot,
|
|
378419
|
+
nocase
|
|
378342
378420
|
});
|
|
378343
378421
|
const fdirOptions = {
|
|
378344
378422
|
// use relative paths in the matcher
|
|
378345
|
-
filters: [
|
|
378346
|
-
|
|
378423
|
+
filters: [
|
|
378424
|
+
options.debug ? (p, isDirectory2) => {
|
|
378425
|
+
const path210 = processPath(p, cwd, props.root, isDirectory2, options.absolute);
|
|
378426
|
+
const matches = matcher(path210);
|
|
378427
|
+
if (matches) {
|
|
378428
|
+
log2(`matched ${path210}`);
|
|
378429
|
+
}
|
|
378430
|
+
return matches;
|
|
378431
|
+
} : (p, isDirectory2) => matcher(processPath(p, cwd, props.root, isDirectory2, options.absolute))
|
|
378432
|
+
],
|
|
378433
|
+
exclude: options.debug ? (_, p) => {
|
|
378434
|
+
const relativePath2 = processPath(p, cwd, props.root, true, true);
|
|
378435
|
+
const skipped = relativePath2 !== "." && !partialMatcher(relativePath2) || ignore3(relativePath2);
|
|
378436
|
+
if (!skipped) {
|
|
378437
|
+
log2(`crawling ${p}`);
|
|
378438
|
+
}
|
|
378439
|
+
return skipped;
|
|
378440
|
+
} : (_, p) => {
|
|
378441
|
+
const relativePath2 = processPath(p, cwd, props.root, true, true);
|
|
378442
|
+
return relativePath2 !== "." && !partialMatcher(relativePath2) || ignore3(relativePath2);
|
|
378443
|
+
},
|
|
378347
378444
|
pathSeparator: "/",
|
|
378348
378445
|
relativePaths: true,
|
|
378349
378446
|
resolveSymlinks: true
|
|
378350
378447
|
};
|
|
378351
378448
|
if (options.deep) {
|
|
378352
|
-
fdirOptions.maxDepth = Math.round(options.deep -
|
|
378449
|
+
fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
|
|
378353
378450
|
}
|
|
378354
378451
|
if (options.absolute) {
|
|
378355
378452
|
fdirOptions.relativePaths = false;
|
|
@@ -378366,12 +378463,16 @@ function crawl(options, cwd, sync3) {
|
|
|
378366
378463
|
} else if (options.onlyFiles === false) {
|
|
378367
378464
|
fdirOptions.includeDirs = true;
|
|
378368
378465
|
}
|
|
378369
|
-
|
|
378370
|
-
const
|
|
378371
|
-
if (
|
|
378466
|
+
props.root = props.root.replace(BACKSLASHES, "");
|
|
378467
|
+
const root = props.root;
|
|
378468
|
+
if (options.debug) {
|
|
378469
|
+
log2("internal properties:", props);
|
|
378470
|
+
}
|
|
378471
|
+
const api = new import_fdir.fdir(fdirOptions).crawl(root);
|
|
378472
|
+
if (cwd === root || options.absolute) {
|
|
378372
378473
|
return sync3 ? api.sync() : api.withPromise();
|
|
378373
378474
|
}
|
|
378374
|
-
return sync3 ? api.sync()
|
|
378475
|
+
return sync3 ? formatPaths(api.sync(), cwd, root) : api.withPromise().then((paths) => formatPaths(paths, cwd, root));
|
|
378375
378476
|
}
|
|
378376
378477
|
__name(crawl, "crawl");
|
|
378377
378478
|
async function glob(patternsOrOptions, options) {
|
|
@@ -378379,7 +378480,7 @@ async function glob(patternsOrOptions, options) {
|
|
|
378379
378480
|
throw new Error("Cannot pass patterns as both an argument and an option");
|
|
378380
378481
|
}
|
|
378381
378482
|
const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
|
|
378382
|
-
const cwd = opts.cwd ? path17.resolve(opts.cwd).replace(
|
|
378483
|
+
const cwd = opts.cwd ? path17.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
|
|
378383
378484
|
return crawl(opts, cwd, false);
|
|
378384
378485
|
}
|
|
378385
378486
|
__name(glob, "glob");
|
|
@@ -379778,7 +379879,7 @@ function yesNo(value2) {
|
|
|
379778
379879
|
}
|
|
379779
379880
|
__name(yesNo, "yesNo");
|
|
379780
379881
|
function getLoggerFromReporter(reporter2) {
|
|
379781
|
-
const
|
|
379882
|
+
const log4 = /* @__PURE__ */ __name((...params) => {
|
|
379782
379883
|
const msg = format4(...params);
|
|
379783
379884
|
reporter2.info(msg, "Info");
|
|
379784
379885
|
}, "log");
|
|
@@ -379796,7 +379897,7 @@ function getLoggerFromReporter(reporter2) {
|
|
|
379796
379897
|
reporter2.info(msg, "Warning");
|
|
379797
379898
|
}, "warn");
|
|
379798
379899
|
return {
|
|
379799
|
-
log:
|
|
379900
|
+
log: log4,
|
|
379800
379901
|
warn,
|
|
379801
379902
|
error: error2
|
|
379802
379903
|
};
|
|
@@ -400637,7 +400738,7 @@ function serializeRows(rows) {
|
|
|
400637
400738
|
__name(serializeRows, "serializeRows");
|
|
400638
400739
|
|
|
400639
400740
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/file-set-pipeline/log.js
|
|
400640
|
-
async function
|
|
400741
|
+
async function log3(context, settings) {
|
|
400641
400742
|
let value2 = reporter;
|
|
400642
400743
|
if (typeof settings.reporter === "string") {
|
|
400643
400744
|
try {
|
|
@@ -400675,7 +400776,7 @@ async function log2(context, settings) {
|
|
|
400675
400776
|
});
|
|
400676
400777
|
}
|
|
400677
400778
|
}
|
|
400678
|
-
__name(
|
|
400779
|
+
__name(log3, "log");
|
|
400679
400780
|
|
|
400680
400781
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/file-set-pipeline/stdin.js
|
|
400681
400782
|
init_esm_shims();
|
|
@@ -401419,7 +401520,7 @@ function transform4(context, settings, next) {
|
|
|
401419
401520
|
__name(transform4, "transform");
|
|
401420
401521
|
|
|
401421
401522
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/file-set-pipeline/index.js
|
|
401422
|
-
var fileSetPipeline = trough().use(configure).use(fileSystem).use(stdin2).use(transform4).use(
|
|
401523
|
+
var fileSetPipeline = trough().use(configure).use(fileSystem).use(stdin2).use(transform4).use(log3);
|
|
401423
401524
|
|
|
401424
401525
|
// ../../node_modules/.pnpm/unified-engine@11.2.1/node_modules/unified-engine/lib/index.js
|
|
401425
401526
|
function engine(options, callback) {
|
|
@@ -407328,7 +407429,7 @@ glob3.glob = glob3;
|
|
|
407328
407429
|
// ../../node_modules/.pnpm/octokit@4.0.2/node_modules/octokit/dist-bundle/index.js
|
|
407329
407430
|
init_esm_shims();
|
|
407330
407431
|
|
|
407331
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
407432
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.4/node_modules/@octokit/core/dist-src/index.js
|
|
407332
407433
|
init_esm_shims();
|
|
407333
407434
|
|
|
407334
407435
|
// ../../node_modules/.pnpm/universal-user-agent@7.0.2/node_modules/universal-user-agent/index.js
|
|
@@ -407481,10 +407582,10 @@ var before_after_hook_default = {
|
|
|
407481
407582
|
Collection
|
|
407482
407583
|
};
|
|
407483
407584
|
|
|
407484
|
-
// ../../node_modules/.pnpm/@octokit+request@9.2.
|
|
407585
|
+
// ../../node_modules/.pnpm/@octokit+request@9.2.2/node_modules/@octokit/request/dist-bundle/index.js
|
|
407485
407586
|
init_esm_shims();
|
|
407486
407587
|
|
|
407487
|
-
// ../../node_modules/.pnpm/@octokit+endpoint@10.1.
|
|
407588
|
+
// ../../node_modules/.pnpm/@octokit+endpoint@10.1.3/node_modules/@octokit/endpoint/dist-bundle/index.js
|
|
407488
407589
|
init_esm_shims();
|
|
407489
407590
|
var VERSION = "0.0.0-development";
|
|
407490
407591
|
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
@@ -407583,9 +407684,9 @@ function addQueryParameters(url2, parameters) {
|
|
|
407583
407684
|
}).join("&");
|
|
407584
407685
|
}
|
|
407585
407686
|
__name(addQueryParameters, "addQueryParameters");
|
|
407586
|
-
var urlVariableRegex = /\{[^}]+\}/g;
|
|
407687
|
+
var urlVariableRegex = /\{[^{}}]+\}/g;
|
|
407587
407688
|
function removeNonChars(variableName) {
|
|
407588
|
-
return variableName.replace(
|
|
407689
|
+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
407589
407690
|
}
|
|
407590
407691
|
__name(removeNonChars, "removeNonChars");
|
|
407591
407692
|
function extractUrlVariableNames(url2) {
|
|
@@ -407774,7 +407875,7 @@ function parse7(options) {
|
|
|
407774
407875
|
}
|
|
407775
407876
|
if (url2.endsWith("/graphql")) {
|
|
407776
407877
|
if (options.mediaType.previews?.length) {
|
|
407777
|
-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
407878
|
+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
|
|
407778
407879
|
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
407779
407880
|
const format6 = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
407780
407881
|
return `application/vnd.github.${preview}-preview${format6}`;
|
|
@@ -407833,10 +407934,10 @@ function withDefaults2(oldDefaults, newDefaults) {
|
|
|
407833
407934
|
__name(withDefaults2, "withDefaults");
|
|
407834
407935
|
var endpoint = withDefaults2(null, DEFAULTS);
|
|
407835
407936
|
|
|
407836
|
-
// ../../node_modules/.pnpm/@octokit+request@9.2.
|
|
407937
|
+
// ../../node_modules/.pnpm/@octokit+request@9.2.2/node_modules/@octokit/request/dist-bundle/index.js
|
|
407837
407938
|
var import_fast_content_type_parse = __toESM(require_fast_content_type_parse(), 1);
|
|
407838
407939
|
|
|
407839
|
-
// ../../node_modules/.pnpm/@octokit+request-error@6.1.
|
|
407940
|
+
// ../../node_modules/.pnpm/@octokit+request-error@6.1.7/node_modules/@octokit/request-error/dist-src/index.js
|
|
407840
407941
|
init_esm_shims();
|
|
407841
407942
|
var RequestError = class RequestError2 extends Error {
|
|
407842
407943
|
static {
|
|
@@ -407868,7 +407969,7 @@ var RequestError = class RequestError2 extends Error {
|
|
|
407868
407969
|
const requestCopy = Object.assign({}, options.request);
|
|
407869
407970
|
if (options.request.headers.authorization) {
|
|
407870
407971
|
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
407871
|
-
authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
|
|
407972
|
+
authorization: options.request.headers.authorization.replace(/(?<! ) .*$/, " [REDACTED]")
|
|
407872
407973
|
});
|
|
407873
407974
|
}
|
|
407874
407975
|
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
@@ -407876,7 +407977,7 @@ var RequestError = class RequestError2 extends Error {
|
|
|
407876
407977
|
}
|
|
407877
407978
|
};
|
|
407878
407979
|
|
|
407879
|
-
// ../../node_modules/.pnpm/@octokit+request@9.2.
|
|
407980
|
+
// ../../node_modules/.pnpm/@octokit+request@9.2.2/node_modules/@octokit/request/dist-bundle/index.js
|
|
407880
407981
|
var VERSION2 = "0.0.0-development";
|
|
407881
407982
|
var defaults_default = {
|
|
407882
407983
|
headers: {
|
|
@@ -407897,7 +407998,7 @@ async function fetchWrapper(requestOptions) {
|
|
|
407897
407998
|
if (!fetch) {
|
|
407898
407999
|
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");
|
|
407899
408000
|
}
|
|
407900
|
-
const
|
|
408001
|
+
const log4 = requestOptions.request?.log || console;
|
|
407901
408002
|
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
407902
408003
|
const body = isPlainObject3(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
|
|
407903
408004
|
const requestHeaders = Object.fromEntries(Object.entries(requestOptions.headers).map(([name2, value2]) => [
|
|
@@ -407953,9 +408054,9 @@ async function fetchWrapper(requestOptions) {
|
|
|
407953
408054
|
data: ""
|
|
407954
408055
|
};
|
|
407955
408056
|
if ("deprecation" in responseHeaders) {
|
|
407956
|
-
const matches = responseHeaders.link && responseHeaders.link.match(/<([
|
|
408057
|
+
const matches = responseHeaders.link && responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/);
|
|
407957
408058
|
const deprecationLink = matches && matches.pop();
|
|
407958
|
-
|
|
408059
|
+
log4.warn(`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`);
|
|
407959
408060
|
}
|
|
407960
408061
|
if (status === 204 || status === 205) {
|
|
407961
408062
|
return octokitResponse;
|
|
@@ -408050,7 +408151,7 @@ function withDefaults3(oldEndpoint, newDefaults) {
|
|
|
408050
408151
|
__name(withDefaults3, "withDefaults");
|
|
408051
408152
|
var request = withDefaults3(endpoint, defaults_default);
|
|
408052
408153
|
|
|
408053
|
-
// ../../node_modules/.pnpm/@octokit+graphql@8.2.
|
|
408154
|
+
// ../../node_modules/.pnpm/@octokit+graphql@8.2.1/node_modules/@octokit/graphql/dist-bundle/index.js
|
|
408054
408155
|
init_esm_shims();
|
|
408055
408156
|
var VERSION3 = "0.0.0-development";
|
|
408056
408157
|
function _buildMessageForResponseErrors(data) {
|
|
@@ -408203,11 +408304,11 @@ var createTokenAuth = /* @__PURE__ */ __name(function createTokenAuth2(token) {
|
|
|
408203
408304
|
});
|
|
408204
408305
|
}, "createTokenAuth2");
|
|
408205
408306
|
|
|
408206
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
408307
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.4/node_modules/@octokit/core/dist-src/version.js
|
|
408207
408308
|
init_esm_shims();
|
|
408208
|
-
var VERSION4 = "6.1.
|
|
408309
|
+
var VERSION4 = "6.1.4";
|
|
408209
408310
|
|
|
408210
|
-
// ../../node_modules/.pnpm/@octokit+core@6.1.
|
|
408311
|
+
// ../../node_modules/.pnpm/@octokit+core@6.1.4/node_modules/@octokit/core/dist-src/index.js
|
|
408211
408312
|
var noop = /* @__PURE__ */ __name(() => {
|
|
408212
408313
|
}, "noop");
|
|
408213
408314
|
var consoleWarn = console.warn.bind(console);
|
|
@@ -408326,7 +408427,7 @@ var Octokit = class Octokit2 {
|
|
|
408326
408427
|
auth;
|
|
408327
408428
|
};
|
|
408328
408429
|
|
|
408329
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@11.4.
|
|
408430
|
+
// ../../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
|
|
408330
408431
|
init_esm_shims();
|
|
408331
408432
|
var VERSION5 = "0.0.0-development";
|
|
408332
408433
|
function normalizePaginatedListResponse(response) {
|
|
@@ -408376,7 +408477,7 @@ function iterator(octokit, route, parameters) {
|
|
|
408376
408477
|
headers
|
|
408377
408478
|
});
|
|
408378
408479
|
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
408379
|
-
url2 = ((normalizedResponse.headers.link || "").match(/<([
|
|
408480
|
+
url2 = ((normalizedResponse.headers.link || "").match(/<([^<>]+)>;\s*rel="next"/) || [])[1];
|
|
408380
408481
|
return {
|
|
408381
408482
|
value: normalizedResponse
|
|
408382
408483
|
};
|
|
@@ -408435,7 +408536,7 @@ function paginateRest(octokit) {
|
|
|
408435
408536
|
__name(paginateRest, "paginateRest");
|
|
408436
408537
|
paginateRest.VERSION = VERSION5;
|
|
408437
408538
|
|
|
408438
|
-
// ../../node_modules/.pnpm/@octokit+plugin-paginate-graphql@5.2.4_@octokit+core@6.1.
|
|
408539
|
+
// ../../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
|
|
408439
408540
|
init_esm_shims();
|
|
408440
408541
|
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");
|
|
408441
408542
|
var MissingCursorChange = class extends Error {
|
|
@@ -408615,17 +408716,17 @@ function paginateGraphQL(octokit) {
|
|
|
408615
408716
|
}
|
|
408616
408717
|
__name(paginateGraphQL, "paginateGraphQL");
|
|
408617
408718
|
|
|
408618
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408719
|
+
// ../../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
|
|
408619
408720
|
init_esm_shims();
|
|
408620
408721
|
|
|
408621
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408722
|
+
// ../../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
|
|
408622
408723
|
init_esm_shims();
|
|
408623
408724
|
var VERSION6 = "13.3.1";
|
|
408624
408725
|
|
|
408625
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408726
|
+
// ../../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
|
|
408626
408727
|
init_esm_shims();
|
|
408627
408728
|
|
|
408628
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
408729
|
+
// ../../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
|
|
408629
408730
|
init_esm_shims();
|
|
408630
408731
|
var Endpoints = {
|
|
408631
408732
|
actions: {
|
|
@@ -411852,7 +411953,7 @@ var Endpoints = {
|
|
|
411852
411953
|
};
|
|
411853
411954
|
var endpoints_default = Endpoints;
|
|
411854
411955
|
|
|
411855
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
411956
|
+
// ../../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
|
|
411856
411957
|
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
411857
411958
|
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
411858
411959
|
for (const [methodName, endpoint2] of Object.entries(endpoints)) {
|
|
@@ -411969,7 +412070,7 @@ function decorate(octokit, scope, methodName, defaults5, decorations) {
|
|
|
411969
412070
|
}
|
|
411970
412071
|
__name(decorate, "decorate");
|
|
411971
412072
|
|
|
411972
|
-
// ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@13.3.1_@octokit+core@6.1.
|
|
412073
|
+
// ../../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
|
|
411973
412074
|
function restEndpointMethods(octokit) {
|
|
411974
412075
|
const api = endpointsToMethods(octokit);
|
|
411975
412076
|
return {
|
|
@@ -411988,7 +412089,7 @@ function legacyRestEndpointMethods(octokit) {
|
|
|
411988
412089
|
__name(legacyRestEndpointMethods, "legacyRestEndpointMethods");
|
|
411989
412090
|
legacyRestEndpointMethods.VERSION = VERSION6;
|
|
411990
412091
|
|
|
411991
|
-
// ../../node_modules/.pnpm/@octokit+plugin-retry@7.1.
|
|
412092
|
+
// ../../node_modules/.pnpm/@octokit+plugin-retry@7.1.4_@octokit+core@6.1.4/node_modules/@octokit/plugin-retry/dist-bundle/index.js
|
|
411992
412093
|
init_esm_shims();
|
|
411993
412094
|
var import_light = __toESM(require_light(), 1);
|
|
411994
412095
|
var VERSION7 = "0.0.0-development";
|
|
@@ -412062,7 +412163,7 @@ function retry(octokit, octokitOptions) {
|
|
|
412062
412163
|
__name(retry, "retry");
|
|
412063
412164
|
retry.VERSION = VERSION7;
|
|
412064
412165
|
|
|
412065
|
-
// ../../node_modules/.pnpm/@octokit+plugin-throttling@9.4.0_@octokit+core@6.1.
|
|
412166
|
+
// ../../node_modules/.pnpm/@octokit+plugin-throttling@9.4.0_@octokit+core@6.1.4/node_modules/@octokit/plugin-throttling/dist-bundle/index.js
|
|
412066
412167
|
init_esm_shims();
|
|
412067
412168
|
var import_light2 = __toESM(require_light(), 1);
|
|
412068
412169
|
var VERSION8 = "0.0.0-development";
|
|
@@ -412257,22 +412358,22 @@ __name(throttling, "throttling");
|
|
|
412257
412358
|
throttling.VERSION = VERSION8;
|
|
412258
412359
|
throttling.triggersNotification = triggersNotification;
|
|
412259
412360
|
|
|
412260
|
-
// ../../node_modules/.pnpm/@octokit+app@15.1.
|
|
412361
|
+
// ../../node_modules/.pnpm/@octokit+app@15.1.4/node_modules/@octokit/app/dist-node/index.js
|
|
412261
412362
|
init_esm_shims();
|
|
412262
412363
|
|
|
412263
|
-
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.
|
|
412364
|
+
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.5/node_modules/@octokit/auth-app/dist-node/index.js
|
|
412264
412365
|
init_esm_shims();
|
|
412265
412366
|
|
|
412266
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.
|
|
412367
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.3/node_modules/@octokit/auth-oauth-app/dist-bundle/index.js
|
|
412267
412368
|
init_esm_shims();
|
|
412268
412369
|
|
|
412269
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.
|
|
412370
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.3/node_modules/@octokit/auth-oauth-user/dist-bundle/index.js
|
|
412270
412371
|
init_esm_shims();
|
|
412271
412372
|
|
|
412272
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.
|
|
412373
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.3/node_modules/@octokit/auth-oauth-device/dist-bundle/index.js
|
|
412273
412374
|
init_esm_shims();
|
|
412274
412375
|
|
|
412275
|
-
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.
|
|
412376
|
+
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.4/node_modules/@octokit/oauth-methods/dist-bundle/index.js
|
|
412276
412377
|
init_esm_shims();
|
|
412277
412378
|
|
|
412278
412379
|
// ../../node_modules/.pnpm/@octokit+oauth-authorization-url@7.1.1/node_modules/@octokit/oauth-authorization-url/dist-src/index.js
|
|
@@ -412322,7 +412423,7 @@ function urlBuilderAuthorize(base2, options) {
|
|
|
412322
412423
|
}
|
|
412323
412424
|
__name(urlBuilderAuthorize, "urlBuilderAuthorize");
|
|
412324
412425
|
|
|
412325
|
-
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.
|
|
412426
|
+
// ../../node_modules/.pnpm/@octokit+oauth-methods@5.1.4/node_modules/@octokit/oauth-methods/dist-bundle/index.js
|
|
412326
412427
|
function requestToOAuthBaseUrl(request2) {
|
|
412327
412428
|
const endpointDefaults = request2.endpoint.DEFAULTS;
|
|
412328
412429
|
return /^https:\/\/(api\.)?github\.com$/.test(endpointDefaults.baseUrl) ? "https://github.com" : endpointDefaults.baseUrl.replace("/api/v3", "");
|
|
@@ -412356,8 +412457,7 @@ function getWebFlowAuthorizationUrl({ request: request2 = request, ...options })
|
|
|
412356
412457
|
}
|
|
412357
412458
|
__name(getWebFlowAuthorizationUrl, "getWebFlowAuthorizationUrl");
|
|
412358
412459
|
async function exchangeWebFlowCode(options) {
|
|
412359
|
-
const request2 = options.request ||
|
|
412360
|
-
request;
|
|
412460
|
+
const request2 = options.request || request;
|
|
412361
412461
|
const response = await oauthRequest(request2, "POST /login/oauth/access_token", {
|
|
412362
412462
|
client_id: options.clientId,
|
|
412363
412463
|
client_secret: options.clientSecret,
|
|
@@ -412389,8 +412489,7 @@ function toTimestamp(apiTimeInMs, expirationInSeconds) {
|
|
|
412389
412489
|
}
|
|
412390
412490
|
__name(toTimestamp, "toTimestamp");
|
|
412391
412491
|
async function createDeviceCode(options) {
|
|
412392
|
-
const request2 = options.request ||
|
|
412393
|
-
request;
|
|
412492
|
+
const request2 = options.request || request;
|
|
412394
412493
|
const parameters = {
|
|
412395
412494
|
client_id: options.clientId
|
|
412396
412495
|
};
|
|
@@ -412401,8 +412500,7 @@ async function createDeviceCode(options) {
|
|
|
412401
412500
|
}
|
|
412402
412501
|
__name(createDeviceCode, "createDeviceCode");
|
|
412403
412502
|
async function exchangeDeviceCode(options) {
|
|
412404
|
-
const request2 = options.request ||
|
|
412405
|
-
request;
|
|
412503
|
+
const request2 = options.request || request;
|
|
412406
412504
|
const response = await oauthRequest(request2, "POST /login/oauth/access_token", {
|
|
412407
412505
|
client_id: options.clientId,
|
|
412408
412506
|
device_code: options.code,
|
|
@@ -412435,8 +412533,7 @@ function toTimestamp2(apiTimeInMs, expirationInSeconds) {
|
|
|
412435
412533
|
}
|
|
412436
412534
|
__name(toTimestamp2, "toTimestamp2");
|
|
412437
412535
|
async function checkToken(options) {
|
|
412438
|
-
const request2 = options.request ||
|
|
412439
|
-
request;
|
|
412536
|
+
const request2 = options.request || request;
|
|
412440
412537
|
const response = await request2("POST /applications/{client_id}/token", {
|
|
412441
412538
|
headers: {
|
|
412442
412539
|
authorization: `basic ${btoa(`${options.clientId}:${options.clientSecret}`)}`
|
|
@@ -412462,8 +412559,7 @@ async function checkToken(options) {
|
|
|
412462
412559
|
}
|
|
412463
412560
|
__name(checkToken, "checkToken");
|
|
412464
412561
|
async function refreshToken(options) {
|
|
412465
|
-
const request2 = options.request ||
|
|
412466
|
-
request;
|
|
412562
|
+
const request2 = options.request || request;
|
|
412467
412563
|
const response = await oauthRequest(request2, "POST /login/oauth/access_token", {
|
|
412468
412564
|
client_id: options.clientId,
|
|
412469
412565
|
client_secret: options.clientSecret,
|
|
@@ -412492,8 +412588,7 @@ function toTimestamp3(apiTimeInMs, expirationInSeconds) {
|
|
|
412492
412588
|
__name(toTimestamp3, "toTimestamp3");
|
|
412493
412589
|
async function scopeToken(options) {
|
|
412494
412590
|
const { request: optionsRequest, clientType, clientId, clientSecret, token, ...requestOptions } = options;
|
|
412495
|
-
const request2 =
|
|
412496
|
-
request;
|
|
412591
|
+
const request2 = options.request || request;
|
|
412497
412592
|
const response = await request2("POST /applications/{client_id}/token/scoped", {
|
|
412498
412593
|
headers: {
|
|
412499
412594
|
authorization: `basic ${btoa(`${clientId}:${clientSecret}`)}`
|
|
@@ -412517,8 +412612,7 @@ async function scopeToken(options) {
|
|
|
412517
412612
|
}
|
|
412518
412613
|
__name(scopeToken, "scopeToken");
|
|
412519
412614
|
async function resetToken(options) {
|
|
412520
|
-
const request2 = options.request ||
|
|
412521
|
-
request;
|
|
412615
|
+
const request2 = options.request || request;
|
|
412522
412616
|
const auth7 = btoa(`${options.clientId}:${options.clientSecret}`);
|
|
412523
412617
|
const response = await request2("PATCH /applications/{client_id}/token", {
|
|
412524
412618
|
headers: {
|
|
@@ -412545,8 +412639,7 @@ async function resetToken(options) {
|
|
|
412545
412639
|
}
|
|
412546
412640
|
__name(resetToken, "resetToken");
|
|
412547
412641
|
async function deleteToken(options) {
|
|
412548
|
-
const request2 = options.request ||
|
|
412549
|
-
request;
|
|
412642
|
+
const request2 = options.request || request;
|
|
412550
412643
|
const auth7 = btoa(`${options.clientId}:${options.clientSecret}`);
|
|
412551
412644
|
return request2("DELETE /applications/{client_id}/token", {
|
|
412552
412645
|
headers: {
|
|
@@ -412558,8 +412651,7 @@ async function deleteToken(options) {
|
|
|
412558
412651
|
}
|
|
412559
412652
|
__name(deleteToken, "deleteToken");
|
|
412560
412653
|
async function deleteAuthorization(options) {
|
|
412561
|
-
const request2 = options.request ||
|
|
412562
|
-
request;
|
|
412654
|
+
const request2 = options.request || request;
|
|
412563
412655
|
const auth7 = btoa(`${options.clientId}:${options.clientSecret}`);
|
|
412564
412656
|
return request2("DELETE /applications/{client_id}/grant", {
|
|
412565
412657
|
headers: {
|
|
@@ -412571,7 +412663,7 @@ async function deleteAuthorization(options) {
|
|
|
412571
412663
|
}
|
|
412572
412664
|
__name(deleteAuthorization, "deleteAuthorization");
|
|
412573
412665
|
|
|
412574
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.
|
|
412666
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-device@7.1.3/node_modules/@octokit/auth-oauth-device/dist-bundle/index.js
|
|
412575
412667
|
async function getOAuthAccessToken(state, options) {
|
|
412576
412668
|
const cachedAuthentication = getCachedAuthentication(state, options.auth);
|
|
412577
412669
|
if (cachedAuthentication) return cachedAuthentication;
|
|
@@ -412689,7 +412781,7 @@ function createOAuthDeviceAuth(options) {
|
|
|
412689
412781
|
}
|
|
412690
412782
|
__name(createOAuthDeviceAuth, "createOAuthDeviceAuth");
|
|
412691
412783
|
|
|
412692
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.
|
|
412784
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-user@5.1.3/node_modules/@octokit/auth-oauth-user/dist-bundle/index.js
|
|
412693
412785
|
var VERSION10 = "0.0.0-development";
|
|
412694
412786
|
async function getAuthentication(state) {
|
|
412695
412787
|
if ("code" in state.strategyOptions) {
|
|
@@ -412870,7 +412962,7 @@ function createOAuthUserAuth({ clientId, clientSecret, clientType = "oauth-app",
|
|
|
412870
412962
|
__name(createOAuthUserAuth, "createOAuthUserAuth");
|
|
412871
412963
|
createOAuthUserAuth.VERSION = VERSION10;
|
|
412872
412964
|
|
|
412873
|
-
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.
|
|
412965
|
+
// ../../node_modules/.pnpm/@octokit+auth-oauth-app@8.1.3/node_modules/@octokit/auth-oauth-app/dist-bundle/index.js
|
|
412874
412966
|
async function auth4(state, authOptions) {
|
|
412875
412967
|
if (authOptions.type === "oauth-app") {
|
|
412876
412968
|
return {
|
|
@@ -413206,7 +413298,7 @@ var LruObject = class {
|
|
|
413206
413298
|
}
|
|
413207
413299
|
};
|
|
413208
413300
|
|
|
413209
|
-
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.
|
|
413301
|
+
// ../../node_modules/.pnpm/@octokit+auth-app@7.1.5/node_modules/@octokit/auth-app/dist-node/index.js
|
|
413210
413302
|
async function getAppAuthentication({ appId, privateKey, timeDifference }) {
|
|
413211
413303
|
try {
|
|
413212
413304
|
const authOptions = {
|
|
@@ -413546,7 +413638,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
|
|
|
413546
413638
|
}
|
|
413547
413639
|
}
|
|
413548
413640
|
__name(sendRequestWithRetries, "sendRequestWithRetries");
|
|
413549
|
-
var VERSION12 = "7.1.
|
|
413641
|
+
var VERSION12 = "7.1.5";
|
|
413550
413642
|
function createAppAuth(options) {
|
|
413551
413643
|
if (!options.appId) {
|
|
413552
413644
|
throw new Error("[@octokit/auth-app] appId option is required");
|
|
@@ -413557,7 +413649,7 @@ function createAppAuth(options) {
|
|
|
413557
413649
|
if ("installationId" in options && !options.installationId) {
|
|
413558
413650
|
throw new Error("[@octokit/auth-app] installationId is set to a falsy value");
|
|
413559
413651
|
}
|
|
413560
|
-
const
|
|
413652
|
+
const log4 = Object.assign({
|
|
413561
413653
|
warn: console.warn.bind(console)
|
|
413562
413654
|
}, options.log);
|
|
413563
413655
|
const request2 = options.request || request.defaults({
|
|
@@ -413571,7 +413663,7 @@ function createAppAuth(options) {
|
|
|
413571
413663
|
}, options, options.installationId ? {
|
|
413572
413664
|
installationId: Number(options.installationId)
|
|
413573
413665
|
} : {}, {
|
|
413574
|
-
log:
|
|
413666
|
+
log: log4,
|
|
413575
413667
|
oauthApp: createOAuthAppAuth({
|
|
413576
413668
|
clientType: "github-app",
|
|
413577
413669
|
clientId: options.clientId || "",
|
|
@@ -413585,10 +413677,10 @@ function createAppAuth(options) {
|
|
|
413585
413677
|
}
|
|
413586
413678
|
__name(createAppAuth, "createAppAuth");
|
|
413587
413679
|
|
|
413588
|
-
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.
|
|
413680
|
+
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.6/node_modules/@octokit/oauth-app/dist-node/index.js
|
|
413589
413681
|
init_esm_shims();
|
|
413590
413682
|
|
|
413591
|
-
// ../../node_modules/.pnpm/@octokit+auth-unauthenticated@6.1.
|
|
413683
|
+
// ../../node_modules/.pnpm/@octokit+auth-unauthenticated@6.1.2/node_modules/@octokit/auth-unauthenticated/dist-node/index.js
|
|
413592
413684
|
init_esm_shims();
|
|
413593
413685
|
async function auth6(reason) {
|
|
413594
413686
|
return {
|
|
@@ -413650,8 +413742,8 @@ var createUnauthenticatedAuth = /* @__PURE__ */ __name(function createUnauthenti
|
|
|
413650
413742
|
});
|
|
413651
413743
|
}, "createUnauthenticatedAuth2");
|
|
413652
413744
|
|
|
413653
|
-
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.
|
|
413654
|
-
var VERSION13 = "7.1.
|
|
413745
|
+
// ../../node_modules/.pnpm/@octokit+oauth-app@7.1.6/node_modules/@octokit/oauth-app/dist-node/index.js
|
|
413746
|
+
var VERSION13 = "7.1.6";
|
|
413655
413747
|
function addEventHandler(state, eventName, eventHandler) {
|
|
413656
413748
|
if (Array.isArray(eventName)) {
|
|
413657
413749
|
for (const singleEventName of eventName) {
|
|
@@ -414051,7 +414143,7 @@ var OAuthApp = class {
|
|
|
414051
414143
|
deleteAuthorization;
|
|
414052
414144
|
};
|
|
414053
414145
|
|
|
414054
|
-
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.
|
|
414146
|
+
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.1/node_modules/@octokit/webhooks/dist-bundle/index.js
|
|
414055
414147
|
init_esm_shims();
|
|
414056
414148
|
|
|
414057
414149
|
// ../../node_modules/.pnpm/@octokit+webhooks-methods@5.1.1/node_modules/@octokit/webhooks-methods/dist-node/index.js
|
|
@@ -414105,7 +414197,7 @@ async function verifyWithFallback(secret, payload, signature, additionalSecrets)
|
|
|
414105
414197
|
}
|
|
414106
414198
|
__name(verifyWithFallback, "verifyWithFallback");
|
|
414107
414199
|
|
|
414108
|
-
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.
|
|
414200
|
+
// ../../node_modules/.pnpm/@octokit+webhooks@13.6.1/node_modules/@octokit/webhooks/dist-bundle/index.js
|
|
414109
414201
|
var createLogger = /* @__PURE__ */ __name((logger) => ({
|
|
414110
414202
|
debug: /* @__PURE__ */ __name(() => {
|
|
414111
414203
|
}, "debug"),
|
|
@@ -414636,8 +414728,8 @@ var Webhooks = class {
|
|
|
414636
414728
|
}
|
|
414637
414729
|
};
|
|
414638
414730
|
|
|
414639
|
-
// ../../node_modules/.pnpm/@octokit+app@15.1.
|
|
414640
|
-
var VERSION15 = "15.1.
|
|
414731
|
+
// ../../node_modules/.pnpm/@octokit+app@15.1.4/node_modules/@octokit/app/dist-node/index.js
|
|
414732
|
+
var VERSION15 = "15.1.4";
|
|
414641
414733
|
function webhooks(appOctokit, options) {
|
|
414642
414734
|
return new Webhooks({
|
|
414643
414735
|
secret: options.secret,
|
|
@@ -415951,7 +416043,7 @@ __name(upgradeDependency, "upgradeDependency");
|
|
|
415951
416043
|
var npmRequestLimit = (0, import_p_limit2.default)(40);
|
|
415952
416044
|
function getPackageInfo(pkgName) {
|
|
415953
416045
|
return npmRequestLimit(async () => {
|
|
415954
|
-
const getPackageJson = (await import("./package-json-
|
|
416046
|
+
const getPackageJson = (await import("./package-json-RFV5FQSF.js")).default;
|
|
415955
416047
|
return getPackageJson(pkgName, {
|
|
415956
416048
|
allVersions: true
|
|
415957
416049
|
});
|