@rushstack/package-extractor 0.11.6 → 0.11.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/CHANGELOG.json +54 -0
- package/CHANGELOG.md +11 -1
- package/dist/scripts/create-links.js +67 -30
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.11.8",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.11.8",
|
|
7
|
+
"date": "Sat, 06 Dec 2025 01:12:28 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/node-core-library\" to `5.19.1`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@rushstack/terminal\" to `0.19.5`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.1.5`"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.2.7`"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `1.1.7`"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.118`"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"version": "0.11.7",
|
|
33
|
+
"tag": "@rushstack/package-extractor_v0.11.7",
|
|
34
|
+
"date": "Fri, 21 Nov 2025 16:13:56 GMT",
|
|
35
|
+
"comments": {
|
|
36
|
+
"dependency": [
|
|
37
|
+
{
|
|
38
|
+
"comment": "Updating dependency \"@rushstack/node-core-library\" to `5.19.0`"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"comment": "Updating dependency \"@rushstack/terminal\" to `0.19.4`"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.1.4`"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.2.6`"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `1.1.6`"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.117`"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
4
58
|
{
|
|
5
59
|
"version": "0.11.6",
|
|
6
60
|
"tag": "@rushstack/package-extractor_v0.11.6",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 06 Dec 2025 01:12:28 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.11.8
|
|
6
|
+
Sat, 06 Dec 2025 01:12:28 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.11.7
|
|
11
|
+
Fri, 21 Nov 2025 16:13:56 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 0.11.6
|
|
6
16
|
Wed, 12 Nov 2025 01:12:56 GMT
|
|
@@ -49132,18 +49132,17 @@ output, platform = OS_PLATFORM) {
|
|
|
49132
49132
|
return processInfoById;
|
|
49133
49133
|
}
|
|
49134
49134
|
// win32 format:
|
|
49135
|
-
//
|
|
49136
|
-
// process name
|
|
49135
|
+
// PPID PID NAME
|
|
49136
|
+
// 51234 56784 process name
|
|
49137
49137
|
// unix format:
|
|
49138
49138
|
// PPID PID COMMAND
|
|
49139
49139
|
// 51234 56784 process name
|
|
49140
49140
|
const NAME_GROUP = 'name';
|
|
49141
49141
|
const PROCESS_ID_GROUP = 'pid';
|
|
49142
49142
|
const PARENT_PROCESS_ID_GROUP = 'ppid';
|
|
49143
|
-
const
|
|
49144
|
-
const PROCESS_LIST_ENTRY_REGEX_UNIX = new RegExp(`^\\s*(?<${PARENT_PROCESS_ID_GROUP}>\\d+)\\s+(?<${PROCESS_ID_GROUP}>\\d+)\\s+(?<${NAME_GROUP}>.+?)\\s*$`);
|
|
49143
|
+
const PROCESS_LIST_ENTRY_REGEX = new RegExp(`^\\s*(?<${PARENT_PROCESS_ID_GROUP}>\\d+)\\s+(?<${PROCESS_ID_GROUP}>\\d+)\\s+(?<${NAME_GROUP}>.+?)\\s*$`);
|
|
49145
49144
|
function parseProcessInfoEntry(line, existingProcessInfoById, platform) {
|
|
49146
|
-
const processListEntryRegex =
|
|
49145
|
+
const processListEntryRegex = PROCESS_LIST_ENTRY_REGEX;
|
|
49147
49146
|
const match = line.match(processListEntryRegex);
|
|
49148
49147
|
if (!(match === null || match === void 0 ? void 0 : match.groups)) {
|
|
49149
49148
|
throw new InternalError_1.InternalError(`Invalid process list entry: ${line}`);
|
|
@@ -49201,16 +49200,21 @@ function getProcessListProcessOptions() {
|
|
|
49201
49200
|
let command;
|
|
49202
49201
|
let args;
|
|
49203
49202
|
if (OS_PLATFORM === 'win32') {
|
|
49204
|
-
command = '
|
|
49205
|
-
// Order of declared properties
|
|
49206
|
-
|
|
49203
|
+
command = 'powershell.exe';
|
|
49204
|
+
// Order of declared properties sets the order of the output.
|
|
49205
|
+
// Put name last to simplify parsing, since it can contain spaces.
|
|
49206
|
+
args = [
|
|
49207
|
+
'-NoProfile',
|
|
49208
|
+
'-Command',
|
|
49209
|
+
`'PPID PID Name'; Get-CimInstance Win32_Process | % { '{0} {1} {2}' -f $_.ParentProcessId, $_.ProcessId, $_.Name }`
|
|
49210
|
+
];
|
|
49207
49211
|
}
|
|
49208
49212
|
else {
|
|
49209
49213
|
command = 'ps';
|
|
49210
49214
|
// -A: Select all processes
|
|
49211
49215
|
// -w: Wide format
|
|
49212
49216
|
// -o: User-defined format
|
|
49213
|
-
// Order of declared properties
|
|
49217
|
+
// Order of declared properties sets the order of the output. We will
|
|
49214
49218
|
// need to request the "comm" property last in order to ensure that the
|
|
49215
49219
|
// process names are not truncated on certain platforms
|
|
49216
49220
|
args = ['-Awo', 'ppid,pid,comm'];
|
|
@@ -49420,7 +49424,7 @@ class Executable {
|
|
|
49420
49424
|
* Get the list of processes currently running on the system, keyed by the process ID.
|
|
49421
49425
|
*
|
|
49422
49426
|
* @remarks The underlying implementation depends on the operating system:
|
|
49423
|
-
* - On Windows, this uses
|
|
49427
|
+
* - On Windows, this uses `powershell.exe` and the `Get-CimInstance` cmdlet.
|
|
49424
49428
|
* - On Unix, this uses the `ps` utility.
|
|
49425
49429
|
*/
|
|
49426
49430
|
static async getProcessInfoByIdAsync() {
|
|
@@ -49457,7 +49461,7 @@ class Executable {
|
|
|
49457
49461
|
* with the same name will be grouped.
|
|
49458
49462
|
*
|
|
49459
49463
|
* @remarks The underlying implementation depends on the operating system:
|
|
49460
|
-
* - On Windows, this uses
|
|
49464
|
+
* - On Windows, this uses `powershell.exe` and the `Get-CimInstance` cmdlet.
|
|
49461
49465
|
* - On Unix, this uses the `ps` utility.
|
|
49462
49466
|
*/
|
|
49463
49467
|
static async getProcessInfoByNameAsync() {
|
|
@@ -69841,16 +69845,61 @@ module.exports = {
|
|
|
69841
69845
|
/*!**********************************************!*\
|
|
69842
69846
|
!*** ../node-core-library/lib/FileWriter.js ***!
|
|
69843
69847
|
\**********************************************/
|
|
69844
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
69848
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
69845
69849
|
|
|
69846
69850
|
"use strict";
|
|
69847
69851
|
|
|
69848
69852
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
69849
69853
|
// See LICENSE in the project root for license information.
|
|
69854
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
69855
|
+
if (k2 === undefined) k2 = k;
|
|
69856
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
69857
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
69858
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
69859
|
+
}
|
|
69860
|
+
Object.defineProperty(o, k2, desc);
|
|
69861
|
+
}) : (function(o, m, k, k2) {
|
|
69862
|
+
if (k2 === undefined) k2 = k;
|
|
69863
|
+
o[k2] = m[k];
|
|
69864
|
+
}));
|
|
69865
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
69866
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
69867
|
+
}) : function(o, v) {
|
|
69868
|
+
o["default"] = v;
|
|
69869
|
+
});
|
|
69870
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
69871
|
+
var ownKeys = function(o) {
|
|
69872
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
69873
|
+
var ar = [];
|
|
69874
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
69875
|
+
return ar;
|
|
69876
|
+
};
|
|
69877
|
+
return ownKeys(o);
|
|
69878
|
+
};
|
|
69879
|
+
return function (mod) {
|
|
69880
|
+
if (mod && mod.__esModule) return mod;
|
|
69881
|
+
var result = {};
|
|
69882
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
69883
|
+
__setModuleDefault(result, mod);
|
|
69884
|
+
return result;
|
|
69885
|
+
};
|
|
69886
|
+
})();
|
|
69850
69887
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
69851
69888
|
exports.FileWriter = void 0;
|
|
69852
|
-
const
|
|
69853
|
-
|
|
69889
|
+
const fs = __importStar(__webpack_require__(/*! node:fs */ 973024));
|
|
69890
|
+
/**
|
|
69891
|
+
* Helper function to convert the file writer array to a Node.js style string (e.g. "wx" or "a").
|
|
69892
|
+
* @param flags - The flags that should be converted.
|
|
69893
|
+
*/
|
|
69894
|
+
function convertFlagsForNode(flags) {
|
|
69895
|
+
flags = {
|
|
69896
|
+
append: false,
|
|
69897
|
+
exclusive: false,
|
|
69898
|
+
...flags
|
|
69899
|
+
};
|
|
69900
|
+
const result = `${flags.append ? 'a' : 'w'}${flags.exclusive ? 'x' : ''}`;
|
|
69901
|
+
return result;
|
|
69902
|
+
}
|
|
69854
69903
|
/**
|
|
69855
69904
|
* API for interacting with file handles.
|
|
69856
69905
|
* @public
|
|
@@ -69869,19 +69918,7 @@ class FileWriter {
|
|
|
69869
69918
|
* @param flags - The flags for opening the handle
|
|
69870
69919
|
*/
|
|
69871
69920
|
static open(filePath, flags) {
|
|
69872
|
-
return new FileWriter(
|
|
69873
|
-
}
|
|
69874
|
-
/**
|
|
69875
|
-
* Helper function to convert the file writer array to a Node.js style string (e.g. "wx" or "a").
|
|
69876
|
-
* @param flags - The flags that should be converted.
|
|
69877
|
-
*/
|
|
69878
|
-
static _convertFlagsForNode(flags) {
|
|
69879
|
-
flags = {
|
|
69880
|
-
append: false,
|
|
69881
|
-
exclusive: false,
|
|
69882
|
-
...flags
|
|
69883
|
-
};
|
|
69884
|
-
return [flags.append ? 'a' : 'w', flags.exclusive ? 'x' : ''].join('');
|
|
69921
|
+
return new FileWriter(fs.openSync(filePath, convertFlagsForNode(flags)), filePath);
|
|
69885
69922
|
}
|
|
69886
69923
|
/**
|
|
69887
69924
|
* Writes some text to the given file handle. Throws if the file handle has been closed.
|
|
@@ -69892,7 +69929,7 @@ class FileWriter {
|
|
|
69892
69929
|
if (!this._fileDescriptor) {
|
|
69893
69930
|
throw new Error(`Cannot write to file, file descriptor has already been released.`);
|
|
69894
69931
|
}
|
|
69895
|
-
|
|
69932
|
+
fs.writeSync(this._fileDescriptor, text);
|
|
69896
69933
|
}
|
|
69897
69934
|
/**
|
|
69898
69935
|
* Closes the file handle permanently. No operations can be made on this file handle after calling this.
|
|
@@ -69905,7 +69942,7 @@ class FileWriter {
|
|
|
69905
69942
|
const fd = this._fileDescriptor;
|
|
69906
69943
|
if (fd) {
|
|
69907
69944
|
this._fileDescriptor = undefined;
|
|
69908
|
-
|
|
69945
|
+
fs.closeSync(fd);
|
|
69909
69946
|
}
|
|
69910
69947
|
}
|
|
69911
69948
|
/**
|
|
@@ -69916,7 +69953,7 @@ class FileWriter {
|
|
|
69916
69953
|
if (!this._fileDescriptor) {
|
|
69917
69954
|
throw new Error(`Cannot get file statistics, file descriptor has already been released.`);
|
|
69918
69955
|
}
|
|
69919
|
-
return
|
|
69956
|
+
return fs.fstatSync(this._fileDescriptor);
|
|
69920
69957
|
}
|
|
69921
69958
|
}
|
|
69922
69959
|
exports.FileWriter = FileWriter;
|