unipm 1.1.34 → 1.1.35

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/bin.mjs CHANGED
@@ -4,7 +4,7 @@ if (!process.execArgv.some((e) => e.startsWith('--inspect'))) {
4
4
  }
5
5
 
6
6
  Error.stackTraceLimit = Number.POSITIVE_INFINITY;
7
- process.on('uncaughtException', (error, origin) => {
7
+ process.on('uncaughtException', (error, _origin) => {
8
8
  console.error('[uncaughtException] %s', error.stack || error.message || error);
9
9
  });
10
10
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unipm",
3
3
  "type": "module",
4
- "version": "1.1.34",
4
+ "version": "1.1.35",
5
5
  "exports": {
6
6
  "./package.json": "./package.json"
7
7
  },
@@ -15,17 +15,17 @@
15
15
  "json5": "^2.2.3",
16
16
  "pacote": "^21.0.0",
17
17
  "source-map-support": "^0.5.21",
18
- "@idlebox/node": "^1.4.8",
19
- "@idlebox/common": "^1.4.16",
20
- "@idlebox/json-edit": "^0.0.3"
18
+ "@idlebox/common": "^1.4.17",
19
+ "@idlebox/node": "^1.4.10",
20
+ "@idlebox/json-edit": "^0.0.4"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@rushstack/heft": "^0.74.0",
24
24
  "@types/node": "^24.0.14",
25
25
  "@types/pacote": "^11.1.8",
26
- "@mpis/run": "^0.0.4",
27
26
  "@internal/local-rig": "^1.0.1",
28
- "@build-script/single-dog-asset": "^1.0.37"
27
+ "@mpis/run": "^0.0.5",
28
+ "@build-script/single-dog-asset": "^1.0.38"
29
29
  },
30
30
  "monorepo": true,
31
31
  "license": "MIT",
@@ -1,9 +1,5 @@
1
1
  import { createInterface } from 'node:readline';
2
- import {
3
- getPackageManagerByName,
4
- KNOWN_PACKAGE_MANAGER_NAMES,
5
- KNOWN_PACKAGE_MANAGERS,
6
- } from './getPackageManagerByName.js';
2
+ import { getPackageManagerByName, KNOWN_PACKAGE_MANAGER_NAMES, KNOWN_PACKAGE_MANAGERS } from './getPackageManagerByName.js';
7
3
  import type { PackageManager } from './packageManager.js';
8
4
 
9
5
  export interface IGetPackageManagerOptions {
@@ -21,7 +17,7 @@ export async function getPackageManager(_options?: Partial<IGetPackageManagerOpt
21
17
  default: 'auto',
22
18
  ask: true,
23
19
  },
24
- _options || {}
20
+ _options || {},
25
21
  );
26
22
 
27
23
  if (options.packageJson) {
@@ -67,7 +63,7 @@ export async function getPackageManager(_options?: Partial<IGetPackageManagerOpt
67
63
  return pm.exists().then((found) => {
68
64
  return found ? pm : undefined;
69
65
  });
70
- })
66
+ }),
71
67
  )
72
68
  ).filter((e) => !!e) as PackageManager[];
73
69
 
@@ -38,7 +38,7 @@ export abstract class PackageManager {
38
38
  (e) => {
39
39
  console.error('Exception of detect() package manager %s\n%s', this.friendlyName, e.stack);
40
40
  return undefined;
41
- }
41
+ },
42
42
  );
43
43
  }
44
44
 
@@ -60,11 +60,7 @@ export abstract class PackageManager {
60
60
  }
61
61
 
62
62
  /** spawn package manager binary, mute output */
63
- protected async _invokeErrorLater(
64
- cmd: string,
65
- args: string[],
66
- spawnOptions: Omit<ExecaOptions, 'stdio' | 'encoding'> = {}
67
- ): Promise<void> {
63
+ protected async _invokeErrorLater(cmd: string, args: string[], spawnOptions: Omit<ExecaOptions, 'stdio' | 'encoding'> = {}): Promise<void> {
68
64
  const p = this.__invoke(cmd, args, {
69
65
  ...spawnOptions,
70
66
  stdio: ['ignore', 'pipe', 'pipe'],