@rushstack/package-extractor 0.10.30 → 0.10.32
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/CHANGELOG.json +39 -0
- package/CHANGELOG.md +11 -1
- package/dist/scripts/create-links.js +144 -23
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +8 -8
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.10.32",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.10.32",
|
|
7
|
+
"date": "Sat, 26 Jul 2025 00:12:22 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.36`"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"version": "0.10.31",
|
|
18
|
+
"tag": "@rushstack/package-extractor_v0.10.31",
|
|
19
|
+
"date": "Wed, 23 Jul 2025 20:55:57 GMT",
|
|
20
|
+
"comments": {
|
|
21
|
+
"dependency": [
|
|
22
|
+
{
|
|
23
|
+
"comment": "Updating dependency \"@rushstack/node-core-library\" to `5.14.0`"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"comment": "Updating dependency \"@rushstack/terminal\" to `0.15.4`"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.0.2`"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.35`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.74.1`"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.104`"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
4
43
|
{
|
|
5
44
|
"version": "0.10.30",
|
|
6
45
|
"tag": "@rushstack/package-extractor_v0.10.30",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on Sat,
|
|
3
|
+
This log was last generated on Sat, 26 Jul 2025 00:12:22 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.10.32
|
|
6
|
+
Sat, 26 Jul 2025 00:12:22 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.10.31
|
|
11
|
+
Wed, 23 Jul 2025 20:55:57 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 0.10.30
|
|
6
16
|
Sat, 21 Jun 2025 00:13:15 GMT
|
|
@@ -7581,6 +7581,86 @@ function _concat(set1, set2) {
|
|
|
7581
7581
|
return result;
|
|
7582
7582
|
}
|
|
7583
7583
|
|
|
7584
|
+
/***/ }),
|
|
7585
|
+
|
|
7586
|
+
/***/ 111505:
|
|
7587
|
+
/*!***************************************************************************************************************!*\
|
|
7588
|
+
!*** ../../common/temp/default/node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js ***!
|
|
7589
|
+
\***************************************************************************************************************/
|
|
7590
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7591
|
+
|
|
7592
|
+
"use strict";
|
|
7593
|
+
|
|
7594
|
+
|
|
7595
|
+
var hasOwn = __webpack_require__(/*! hasown */ 641255);
|
|
7596
|
+
|
|
7597
|
+
function specifierIncluded(current, specifier) {
|
|
7598
|
+
var nodeParts = current.split('.');
|
|
7599
|
+
var parts = specifier.split(' ');
|
|
7600
|
+
var op = parts.length > 1 ? parts[0] : '=';
|
|
7601
|
+
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
|
|
7602
|
+
|
|
7603
|
+
for (var i = 0; i < 3; ++i) {
|
|
7604
|
+
var cur = parseInt(nodeParts[i] || 0, 10);
|
|
7605
|
+
var ver = parseInt(versionParts[i] || 0, 10);
|
|
7606
|
+
if (cur === ver) {
|
|
7607
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
7608
|
+
}
|
|
7609
|
+
if (op === '<') {
|
|
7610
|
+
return cur < ver;
|
|
7611
|
+
}
|
|
7612
|
+
if (op === '>=') {
|
|
7613
|
+
return cur >= ver;
|
|
7614
|
+
}
|
|
7615
|
+
return false;
|
|
7616
|
+
}
|
|
7617
|
+
return op === '>=';
|
|
7618
|
+
}
|
|
7619
|
+
|
|
7620
|
+
function matchesRange(current, range) {
|
|
7621
|
+
var specifiers = range.split(/ ?&& ?/);
|
|
7622
|
+
if (specifiers.length === 0) {
|
|
7623
|
+
return false;
|
|
7624
|
+
}
|
|
7625
|
+
for (var i = 0; i < specifiers.length; ++i) {
|
|
7626
|
+
if (!specifierIncluded(current, specifiers[i])) {
|
|
7627
|
+
return false;
|
|
7628
|
+
}
|
|
7629
|
+
}
|
|
7630
|
+
return true;
|
|
7631
|
+
}
|
|
7632
|
+
|
|
7633
|
+
function versionIncluded(nodeVersion, specifierValue) {
|
|
7634
|
+
if (typeof specifierValue === 'boolean') {
|
|
7635
|
+
return specifierValue;
|
|
7636
|
+
}
|
|
7637
|
+
|
|
7638
|
+
var current = typeof nodeVersion === 'undefined'
|
|
7639
|
+
? process.versions && process.versions.node
|
|
7640
|
+
: nodeVersion;
|
|
7641
|
+
|
|
7642
|
+
if (typeof current !== 'string') {
|
|
7643
|
+
throw new TypeError(typeof nodeVersion === 'undefined' ? 'Unable to determine current node version' : 'If provided, a valid node version is required');
|
|
7644
|
+
}
|
|
7645
|
+
|
|
7646
|
+
if (specifierValue && typeof specifierValue === 'object') {
|
|
7647
|
+
for (var i = 0; i < specifierValue.length; ++i) {
|
|
7648
|
+
if (matchesRange(current, specifierValue[i])) {
|
|
7649
|
+
return true;
|
|
7650
|
+
}
|
|
7651
|
+
}
|
|
7652
|
+
return false;
|
|
7653
|
+
}
|
|
7654
|
+
return matchesRange(current, specifierValue);
|
|
7655
|
+
}
|
|
7656
|
+
|
|
7657
|
+
var data = __webpack_require__(/*! ./core.json */ 462377);
|
|
7658
|
+
|
|
7659
|
+
module.exports = function isCore(x, nodeVersion) {
|
|
7660
|
+
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
|
7661
|
+
};
|
|
7662
|
+
|
|
7663
|
+
|
|
7584
7664
|
/***/ }),
|
|
7585
7665
|
|
|
7586
7666
|
/***/ 111938:
|
|
@@ -11037,7 +11117,6 @@ class PrefixProxyTerminalProvider {
|
|
|
11037
11117
|
this._getPrefix = getPrefix;
|
|
11038
11118
|
}
|
|
11039
11119
|
this._isOnNewline = true;
|
|
11040
|
-
// eslint-disable-next-line @rushstack/security/no-unsafe-regexp
|
|
11041
11120
|
this._newlineRegex = new RegExp(`${node_core_library_1.Text.escapeRegExp(terminalProvider.eolCharacter)}|\\n`, 'g');
|
|
11042
11121
|
}
|
|
11043
11122
|
/** @override */
|
|
@@ -11052,7 +11131,6 @@ class PrefixProxyTerminalProvider {
|
|
|
11052
11131
|
write(data, severity) {
|
|
11053
11132
|
// We need to track newlines to ensure that the prefix is added to each line
|
|
11054
11133
|
let currentIndex = 0;
|
|
11055
|
-
// eslint-disable-next-line @rushstack/no-new-null
|
|
11056
11134
|
let newlineMatch;
|
|
11057
11135
|
while ((newlineMatch = this._newlineRegex.exec(data))) {
|
|
11058
11136
|
// Extract the line, add the prefix, and write it out with the newline
|
|
@@ -11791,6 +11869,7 @@ const CommandLineStringListParameter_1 = __webpack_require__(/*! ../parameters/C
|
|
|
11791
11869
|
const CommandLineRemainder_1 = __webpack_require__(/*! ../parameters/CommandLineRemainder */ 560223);
|
|
11792
11870
|
const Constants_1 = __webpack_require__(/*! ../Constants */ 381217);
|
|
11793
11871
|
const CommandLineParserExitError_1 = __webpack_require__(/*! ./CommandLineParserExitError */ 387895);
|
|
11872
|
+
const escapeSprintf_1 = __webpack_require__(/*! ../escapeSprintf */ 758523);
|
|
11794
11873
|
const SCOPE_GROUP_NAME = 'scope';
|
|
11795
11874
|
const LONG_NAME_GROUP_NAME = 'longName';
|
|
11796
11875
|
const POSSIBLY_SCOPED_LONG_NAME_REGEXP = /^--((?<scope>[a-z0-9]+(-[a-z0-9]+)*):)?(?<longName>[a-z0-9]+((-[a-z0-9]+)+)?)$/;
|
|
@@ -12308,7 +12387,7 @@ class CommandLineParameterProvider {
|
|
|
12308
12387
|
// NOTE: Our "environmentVariable" feature takes precedence over argparse's "defaultValue",
|
|
12309
12388
|
// so we have to reimplement that feature.
|
|
12310
12389
|
const argparseOptions = {
|
|
12311
|
-
help: finalDescription,
|
|
12390
|
+
help: (0, escapeSprintf_1.escapeSprintf)(finalDescription),
|
|
12312
12391
|
dest: parserKey,
|
|
12313
12392
|
metavar: parameter.argumentName,
|
|
12314
12393
|
required,
|
|
@@ -16967,7 +17046,7 @@ var isValidSemver = __webpack_require__(/*! semver/functions/valid */ 489741)
|
|
|
16967
17046
|
var cleanSemver = __webpack_require__(/*! semver/functions/clean */ 741242)
|
|
16968
17047
|
var validateLicense = __webpack_require__(/*! validate-npm-package-license */ 189318)
|
|
16969
17048
|
var hostedGitInfo = __webpack_require__(/*! hosted-git-info */ 697824)
|
|
16970
|
-
var isBuiltinModule = __webpack_require__(/*! is-core-module */
|
|
17049
|
+
var isBuiltinModule = __webpack_require__(/*! is-core-module */ 111505)
|
|
16971
17050
|
var depTypes = ['dependencies', 'devDependencies', 'optionalDependencies']
|
|
16972
17051
|
var extractDescription = __webpack_require__(/*! ./extract_description */ 598943)
|
|
16973
17052
|
var url = __webpack_require__(/*! url */ 187016)
|
|
@@ -30577,6 +30656,7 @@ const CommandLineParameterProvider_1 = __webpack_require__(/*! ./CommandLinePara
|
|
|
30577
30656
|
const CommandLineParserExitError_1 = __webpack_require__(/*! ./CommandLineParserExitError */ 387895);
|
|
30578
30657
|
const TabCompletionAction_1 = __webpack_require__(/*! ./TabCompletionAction */ 471898);
|
|
30579
30658
|
const TypeUuidLite_1 = __webpack_require__(/*! ../TypeUuidLite */ 552549);
|
|
30659
|
+
const escapeSprintf_1 = __webpack_require__(/*! ../escapeSprintf */ 758523);
|
|
30580
30660
|
/**
|
|
30581
30661
|
* The "argparse" library is a relatively advanced command-line parser with features such
|
|
30582
30662
|
* as word-wrapping and intelligible error messages (that are lacking in other similar
|
|
@@ -30589,18 +30669,18 @@ const TypeUuidLite_1 = __webpack_require__(/*! ../TypeUuidLite */ 552549);
|
|
|
30589
30669
|
*/
|
|
30590
30670
|
class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParameterProvider {
|
|
30591
30671
|
constructor(options) {
|
|
30592
|
-
var _a;
|
|
30593
30672
|
super();
|
|
30594
30673
|
this._executed = false;
|
|
30595
30674
|
this._tabCompleteActionWasAdded = false;
|
|
30596
30675
|
this._options = options;
|
|
30597
30676
|
this._actions = [];
|
|
30598
30677
|
this._actionsByName = new Map();
|
|
30678
|
+
const { toolFilename, toolDescription, toolEpilog } = options;
|
|
30599
30679
|
this._argumentParser = new CommandLineParserExitError_1.CustomArgumentParser({
|
|
30600
30680
|
addHelp: true,
|
|
30601
|
-
prog:
|
|
30602
|
-
description:
|
|
30603
|
-
epilog: terminal_1.Colorize.bold((
|
|
30681
|
+
prog: toolFilename,
|
|
30682
|
+
description: (0, escapeSprintf_1.escapeSprintf)(toolDescription),
|
|
30683
|
+
epilog: terminal_1.Colorize.bold((0, escapeSprintf_1.escapeSprintf)(toolEpilog !== null && toolEpilog !== void 0 ? toolEpilog : `For detailed help about a specific command, use: ${toolFilename} <command> -h`))
|
|
30604
30684
|
});
|
|
30605
30685
|
}
|
|
30606
30686
|
/**
|
|
@@ -32693,6 +32773,17 @@ exports["default"] = formatLimitPlugin;
|
|
|
32693
32773
|
|
|
32694
32774
|
/***/ }),
|
|
32695
32775
|
|
|
32776
|
+
/***/ 462377:
|
|
32777
|
+
/*!****************************************************************************************************************!*\
|
|
32778
|
+
!*** ../../common/temp/default/node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json ***!
|
|
32779
|
+
\****************************************************************************************************************/
|
|
32780
|
+
/***/ ((module) => {
|
|
32781
|
+
|
|
32782
|
+
"use strict";
|
|
32783
|
+
module.exports = /*#__PURE__*/JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":">= 0.5 && < 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17","repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],"smalloc":">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],"_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],"worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}');
|
|
32784
|
+
|
|
32785
|
+
/***/ }),
|
|
32786
|
+
|
|
32696
32787
|
/***/ 462674:
|
|
32697
32788
|
/*!************************************************************************************************!*\
|
|
32698
32789
|
!*** ../../common/temp/default/node_modules/.pnpm/chalk@2.4.2/node_modules/chalk/templates.js ***!
|
|
@@ -33825,7 +33916,6 @@ class Sort {
|
|
|
33825
33916
|
* console.log(JSON.stringify(Array.from(map.keys()))); // ["aardvark","goose","zebra"]
|
|
33826
33917
|
* ```
|
|
33827
33918
|
*/
|
|
33828
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33829
33919
|
static sortMapKeys(map, keyComparer = Sort.compareByValue) {
|
|
33830
33920
|
// Sorting a map is expensive, so first check whether it's already sorted.
|
|
33831
33921
|
if (Sort.isSorted(map.keys(), keyComparer)) {
|
|
@@ -33881,7 +33971,6 @@ class Sort {
|
|
|
33881
33971
|
* console.log(Array.from(set)); // ['aardvark', 'goose', 'zebra']
|
|
33882
33972
|
* ```
|
|
33883
33973
|
*/
|
|
33884
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33885
33974
|
static sortSet(set, comparer = Sort.compareByValue) {
|
|
33886
33975
|
// Sorting a set is expensive, so first check whether it's already sorted.
|
|
33887
33976
|
if (Sort.isSorted(set, comparer)) {
|
|
@@ -40076,7 +40165,6 @@ class AnsiEscape {
|
|
|
40076
40165
|
* colorized console output to a log file.
|
|
40077
40166
|
*/
|
|
40078
40167
|
static removeCodes(text) {
|
|
40079
|
-
// eslint-disable-next-line no-control-regex
|
|
40080
40168
|
return text.replace(AnsiEscape._csiRegExp, '');
|
|
40081
40169
|
}
|
|
40082
40170
|
/**
|
|
@@ -43822,30 +43910,24 @@ class FileSystem {
|
|
|
43822
43910
|
static _updateErrorMessage(error) {
|
|
43823
43911
|
if (FileSystem.isErrnoException(error)) {
|
|
43824
43912
|
if (FileSystem.isFileDoesNotExistError(error)) {
|
|
43825
|
-
// eslint-disable-line @typescript-eslint/no-use-before-define
|
|
43826
43913
|
error.message = `File does not exist: ${error.path}\n${error.message}`;
|
|
43827
43914
|
}
|
|
43828
43915
|
else if (FileSystem.isFolderDoesNotExistError(error)) {
|
|
43829
|
-
// eslint-disable-line @typescript-eslint/no-use-before-define
|
|
43830
43916
|
error.message = `Folder does not exist: ${error.path}\n${error.message}`;
|
|
43831
43917
|
}
|
|
43832
43918
|
else if (FileSystem.isExistError(error)) {
|
|
43833
43919
|
// Oddly, the typing does not include the `dest` property even though the documentation
|
|
43834
43920
|
// indicates it is there: https://nodejs.org/docs/latest-v10.x/api/errors.html#errors_error_dest
|
|
43835
43921
|
const extendedError = error;
|
|
43836
|
-
// eslint-disable-line @typescript-eslint/no-use-before-define
|
|
43837
43922
|
error.message = `File or folder already exists: ${extendedError.dest}\n${error.message}`;
|
|
43838
43923
|
}
|
|
43839
43924
|
else if (FileSystem.isUnlinkNotPermittedError(error)) {
|
|
43840
|
-
// eslint-disable-line @typescript-eslint/no-use-before-define
|
|
43841
43925
|
error.message = `File or folder could not be deleted: ${error.path}\n${error.message}`;
|
|
43842
43926
|
}
|
|
43843
43927
|
else if (FileSystem.isDirectoryError(error)) {
|
|
43844
|
-
// eslint-disable-line @typescript-eslint/no-use-before-define
|
|
43845
43928
|
error.message = `Target is a folder, not a file: ${error.path}\n${error.message}`;
|
|
43846
43929
|
}
|
|
43847
43930
|
else if (FileSystem.isNotDirectoryError(error)) {
|
|
43848
|
-
// eslint-disable-line @typescript-eslint/no-use-before-define
|
|
43849
43931
|
error.message = `Target is not a folder: ${error.path}\n${error.message}`;
|
|
43850
43932
|
}
|
|
43851
43933
|
}
|
|
@@ -48630,9 +48712,7 @@ output, platform = OS_PLATFORM) {
|
|
|
48630
48712
|
const NAME_GROUP = 'name';
|
|
48631
48713
|
const PROCESS_ID_GROUP = 'pid';
|
|
48632
48714
|
const PARENT_PROCESS_ID_GROUP = 'ppid';
|
|
48633
|
-
// eslint-disable-next-line @rushstack/security/no-unsafe-regexp
|
|
48634
48715
|
const PROCESS_LIST_ENTRY_REGEX_WIN32 = new RegExp(`^(?<${NAME_GROUP}>.+?)\\s+(?<${PARENT_PROCESS_ID_GROUP}>\\d+)\\s+(?<${PROCESS_ID_GROUP}>\\d+)\\s*$`);
|
|
48635
|
-
// eslint-disable-next-line @rushstack/security/no-unsafe-regexp
|
|
48636
48716
|
const PROCESS_LIST_ENTRY_REGEX_UNIX = new RegExp(`^\\s*(?<${PARENT_PROCESS_ID_GROUP}>\\d+)\\s+(?<${PROCESS_ID_GROUP}>\\d+)\\s+(?<${NAME_GROUP}>.+?)\\s*$`);
|
|
48637
48717
|
function parseProcessInfoEntry(line, existingProcessInfoById, platform) {
|
|
48638
48718
|
const processListEntryRegex = platform === 'win32' ? PROCESS_LIST_ENTRY_REGEX_WIN32 : PROCESS_LIST_ENTRY_REGEX_UNIX;
|
|
@@ -48899,7 +48979,6 @@ class Executable {
|
|
|
48899
48979
|
};
|
|
48900
48980
|
return result;
|
|
48901
48981
|
}
|
|
48902
|
-
/* eslint-enable @rushstack/no-new-null */
|
|
48903
48982
|
/**
|
|
48904
48983
|
* Get the list of processes currently running on the system, keyed by the process ID.
|
|
48905
48984
|
*
|
|
@@ -52840,6 +52919,28 @@ var lift =
|
|
|
52840
52919
|
|
|
52841
52920
|
/***/ }),
|
|
52842
52921
|
|
|
52922
|
+
/***/ 758523:
|
|
52923
|
+
/*!***********************************************!*\
|
|
52924
|
+
!*** ../ts-command-line/lib/escapeSprintf.js ***!
|
|
52925
|
+
\***********************************************/
|
|
52926
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
52927
|
+
|
|
52928
|
+
"use strict";
|
|
52929
|
+
|
|
52930
|
+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
52931
|
+
// See LICENSE in the project root for license information.
|
|
52932
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
52933
|
+
exports.escapeSprintf = escapeSprintf;
|
|
52934
|
+
function escapeSprintf(input) {
|
|
52935
|
+
// Escape sprintf-style escape characters
|
|
52936
|
+
// The primary special character in sprintf format strings is '%'
|
|
52937
|
+
// which introduces format specifiers like %s, %d, %f, etc.
|
|
52938
|
+
return input.replace(/%/g, '%%');
|
|
52939
|
+
}
|
|
52940
|
+
//# sourceMappingURL=escapeSprintf.js.map
|
|
52941
|
+
|
|
52942
|
+
/***/ }),
|
|
52943
|
+
|
|
52843
52944
|
/***/ 759627:
|
|
52844
52945
|
/*!*******************************************************************************************************!*\
|
|
52845
52946
|
!*** ../../common/temp/default/node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/lib/type/map.js ***!
|
|
@@ -67612,7 +67713,6 @@ class Async {
|
|
|
67612
67713
|
*/
|
|
67613
67714
|
static async runWithRetriesAsync({ action, maxRetries, retryDelayMs = 0 }) {
|
|
67614
67715
|
let retryCount = 0;
|
|
67615
|
-
// eslint-disable-next-line no-constant-condition
|
|
67616
67716
|
while (true) {
|
|
67617
67717
|
try {
|
|
67618
67718
|
return await action(retryCount);
|
|
@@ -67645,6 +67745,26 @@ class Async {
|
|
|
67645
67745
|
static getSignal() {
|
|
67646
67746
|
return getSignal();
|
|
67647
67747
|
}
|
|
67748
|
+
/**
|
|
67749
|
+
* Runs a promise with a timeout. If the promise does not resolve within the specified timeout,
|
|
67750
|
+
* it will reject with an error.
|
|
67751
|
+
* @remarks If the action is completely synchronous, runWithTimeoutAsync doesn't do anything meaningful.
|
|
67752
|
+
*/
|
|
67753
|
+
static async runWithTimeoutAsync({ action, timeoutMs, timeoutMessage = 'Operation timed out' }) {
|
|
67754
|
+
let timeoutHandle;
|
|
67755
|
+
const promise = Promise.resolve(action());
|
|
67756
|
+
const timeoutPromise = new Promise((resolve, reject) => {
|
|
67757
|
+
timeoutHandle = setTimeout(() => reject(new Error(timeoutMessage)), timeoutMs);
|
|
67758
|
+
});
|
|
67759
|
+
try {
|
|
67760
|
+
return Promise.race([promise, timeoutPromise]);
|
|
67761
|
+
}
|
|
67762
|
+
finally {
|
|
67763
|
+
if (timeoutHandle) {
|
|
67764
|
+
clearTimeout(timeoutHandle);
|
|
67765
|
+
}
|
|
67766
|
+
}
|
|
67767
|
+
}
|
|
67648
67768
|
}
|
|
67649
67769
|
exports.Async = Async;
|
|
67650
67770
|
/**
|
|
@@ -71537,6 +71657,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
71537
71657
|
exports.CommandLineAction = void 0;
|
|
71538
71658
|
const CommandLineParameterProvider_1 = __webpack_require__(/*! ./CommandLineParameterProvider */ 158154);
|
|
71539
71659
|
const CommandLineParserExitError_1 = __webpack_require__(/*! ./CommandLineParserExitError */ 387895);
|
|
71660
|
+
const escapeSprintf_1 = __webpack_require__(/*! ../escapeSprintf */ 758523);
|
|
71540
71661
|
/**
|
|
71541
71662
|
* Example: "do-something"
|
|
71542
71663
|
*/
|
|
@@ -71572,8 +71693,8 @@ class CommandLineAction extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
71572
71693
|
*/
|
|
71573
71694
|
_buildParser(actionsSubParser) {
|
|
71574
71695
|
this._argumentParser = actionsSubParser.addParser(this.actionName, {
|
|
71575
|
-
help: this.summary,
|
|
71576
|
-
description: this.documentation
|
|
71696
|
+
help: (0, escapeSprintf_1.escapeSprintf)(this.summary),
|
|
71697
|
+
description: (0, escapeSprintf_1.escapeSprintf)(this.documentation)
|
|
71577
71698
|
});
|
|
71578
71699
|
// Monkey-patch the error handling for the action parser
|
|
71579
71700
|
this._argumentParser.exit = (status, message) => {
|