@rushstack/package-extractor 0.11.6 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@rushstack/package-extractor",
3
3
  "entries": [
4
+ {
5
+ "version": "0.11.7",
6
+ "tag": "@rushstack/package-extractor_v0.11.7",
7
+ "date": "Fri, 21 Nov 2025 16:13:56 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/node-core-library\" to `5.19.0`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/terminal\" to `0.19.4`"
15
+ },
16
+ {
17
+ "comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.1.4`"
18
+ },
19
+ {
20
+ "comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.2.6`"
21
+ },
22
+ {
23
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.1.6`"
24
+ },
25
+ {
26
+ "comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.117`"
27
+ }
28
+ ]
29
+ }
30
+ },
4
31
  {
5
32
  "version": "0.11.6",
6
33
  "tag": "@rushstack/package-extractor_v0.11.6",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log - @rushstack/package-extractor
2
2
 
3
- This log was last generated on Wed, 12 Nov 2025 01:12:56 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 21 Nov 2025 16:13:56 GMT and should not be manually modified.
4
+
5
+ ## 0.11.7
6
+ Fri, 21 Nov 2025 16:13:56 GMT
7
+
8
+ _Version update only_
4
9
 
5
10
  ## 0.11.6
6
11
  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
- // Name ParentProcessId ProcessId
49136
- // process name 1234 5678
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 PROCESS_LIST_ENTRY_REGEX_WIN32 = new RegExp(`^(?<${NAME_GROUP}>.+?)\\s+(?<${PARENT_PROCESS_ID_GROUP}>\\d+)\\s+(?<${PROCESS_ID_GROUP}>\\d+)\\s*$`);
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 = platform === 'win32' ? PROCESS_LIST_ENTRY_REGEX_WIN32 : PROCESS_LIST_ENTRY_REGEX_UNIX;
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 = 'wmic.exe';
49205
- // Order of declared properties does not impact the order of the output
49206
- args = ['process', 'get', 'Name,ParentProcessId,ProcessId'];
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 impacts the order of the output. We will
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 the `wmic.exe` utility.
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 the `wmic.exe` utility.
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() {