@pnpm/plugin-commands-listing 8.0.14 → 9.0.0

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/lib/list.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /// <reference types="node" />
4
4
  import { type Config } from '@pnpm/config';
5
5
  import { type IncludedDependencies } from '@pnpm/types';
6
- export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key" | "color" | "offline" | "global" | "depth" | "dev" | "only" | "production" | "registry" | "tag" | "force" | "user-agent" | "ca" | "cert" | "save" | "loglevel" | "globalconfig" | "userconfig" | "proxy" | "ignore-scripts" | "local-address" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "node-version" | "unsafe-perm" | "prefer-offline" | "https-proxy" | "no-proxy" | "strict-ssl" | "package-lock", any>> & {
6
+ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "proxy" | "color" | "global" | "save" | "production" | "force" | "depth" | "offline" | "registry" | "loglevel" | "only" | "dev" | "cert" | "key" | "ca" | "tag" | "globalconfig" | "userconfig" | "dry-run" | "ignore-scripts" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "node-version" | "unsafe-perm" | "prefer-offline" | "https-proxy" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock" | "node-options", any>> & {
7
7
  access: (string | null)[];
8
8
  'allow-same-version': BooleanConstructor;
9
9
  'always-auth': BooleanConstructor;
@@ -123,19 +123,19 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key"
123
123
  versions: BooleanConstructor;
124
124
  viewer: StringConstructor;
125
125
  _exit: BooleanConstructor;
126
- }, "long" | "optional" | "json" | "global" | "depth" | "dev" | "only" | "parseable" | "production">;
126
+ }, "optional" | "global" | "production" | "depth" | "only" | "dev" | "json" | "long" | "parseable">;
127
127
  export declare const cliOptionsTypes: () => {
128
128
  'only-projects': BooleanConstructor;
129
129
  recursive: BooleanConstructor;
130
- long: BooleanConstructor;
131
130
  optional: any;
132
- json: BooleanConstructor;
133
131
  global: any;
132
+ production: any;
134
133
  depth: any;
135
- dev: any;
136
134
  only: any;
135
+ dev: any;
136
+ json: BooleanConstructor;
137
+ long: BooleanConstructor;
137
138
  parseable: BooleanConstructor;
138
- production: any;
139
139
  };
140
140
  export declare const shorthands: {
141
141
  D: string;
package/lib/ll.d.ts CHANGED
@@ -4,15 +4,15 @@ export declare const rcOptionsTypes: typeof list.rcOptionsTypes;
4
4
  export declare function cliOptionsTypes(): Omit<{
5
5
  'only-projects': BooleanConstructor;
6
6
  recursive: BooleanConstructor;
7
- long: BooleanConstructor;
8
7
  optional: any;
9
- json: BooleanConstructor;
10
8
  global: any;
9
+ production: any;
11
10
  depth: any;
12
- dev: any;
13
11
  only: any;
12
+ dev: any;
13
+ json: BooleanConstructor;
14
+ long: BooleanConstructor;
14
15
  parseable: BooleanConstructor;
15
- production: any;
16
16
  }, "long">;
17
17
  export declare const help: typeof list.help;
18
18
  export declare function handler(opts: list.ListCommandOptions, params: string[]): Promise<string>;
package/lib/recursive.js CHANGED
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.listRecursive = void 0;
7
+ const assert_1 = __importDefault(require("assert"));
8
+ const util_1 = __importDefault(require("util"));
4
9
  const logger_1 = require("@pnpm/logger");
5
10
  const list_1 = require("./list");
6
11
  async function listRecursive(pkgs, params, opts) {
@@ -20,10 +25,13 @@ async function listRecursive(pkgs, params, opts) {
20
25
  lockfileDir: opts.lockfileDir ?? dir,
21
26
  });
22
27
  }
23
- catch (err) { // eslint-disable-line
24
- logger_1.logger.info(err);
25
- err['prefix'] = dir;
26
- throw err;
28
+ catch (err) {
29
+ (0, assert_1.default)(util_1.default.types.isNativeError(err));
30
+ const errWithPrefix = Object.assign(err, {
31
+ prefix: dir,
32
+ });
33
+ logger_1.logger.info(errWithPrefix);
34
+ throw errWithPrefix;
27
35
  }
28
36
  }))).filter(Boolean);
29
37
  if (outputs.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"recursive.js","sourceRoot":"","sources":["../src/recursive.ts"],"names":[],"mappings":";;;AACA,yCAAqC;AAErC,iCAA+B;AAExB,KAAK,UAAU,aAAa,CACjC,IAAe,EACf,MAAgB,EAChB,IAMC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,CAAA;IAC7B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,OAAO,IAAA,aAAM,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE;YAChD,GAAG,IAAI;YACP,sBAAsB,EAAE,KAAK,KAAK,CAAC,CAAC;YACpC,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAA;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QAC5D,IAAI,CAAC;YACH,OAAO,MAAM,IAAA,aAAM,EAAC,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE;gBACjC,GAAG,IAAI;gBACP,sBAAsB,EAAE,KAAK,KAAK,CAAC,CAAC;gBACpC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG;aACrC,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,GAAQ,EAAE,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CAAC,GAAG,CAAC,EAAE,MAAM,EAAE;gBACjC,GAAG,IAAI;gBACP,sBAAsB,EAAE,KAAK,KAAK,CAAC,CAAC;gBACpC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG;aACrC,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,IAAA,gBAAM,EAAC,cAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAA;YACrC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE;gBACvC,MAAM,EAAE,GAAG;aACZ,CAAC,CAAA;YACF,eAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;YAC1B,MAAM,aAAa,CAAA;QACrB,CAAC;IACH,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IACpB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAA;IAEnC,MAAM,MAAM,GAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;IACtE,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;AAC7B,CAAC;AAvCD,sCAuCC"}
package/lib/why.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
4
  import { type ListCommandOptions } from './list';
5
- export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key" | "color" | "offline" | "global" | "depth" | "dev" | "only" | "production" | "registry" | "tag" | "force" | "user-agent" | "ca" | "cert" | "save" | "loglevel" | "globalconfig" | "userconfig" | "proxy" | "ignore-scripts" | "local-address" | "dry-run" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "node-version" | "unsafe-perm" | "prefer-offline" | "https-proxy" | "no-proxy" | "strict-ssl" | "package-lock", any>> & {
5
+ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "proxy" | "color" | "global" | "save" | "production" | "force" | "depth" | "offline" | "registry" | "loglevel" | "only" | "dev" | "cert" | "key" | "ca" | "tag" | "globalconfig" | "userconfig" | "dry-run" | "ignore-scripts" | "save-prod" | "save-dev" | "save-optional" | "script-shell" | "fetch-retries" | "fetch-retry-factor" | "fetch-retry-mintimeout" | "fetch-retry-maxtimeout" | "save-exact" | "save-prefix" | "scripts-prepend-node-path" | "engine-strict" | "node-version" | "unsafe-perm" | "prefer-offline" | "https-proxy" | "local-address" | "no-proxy" | "strict-ssl" | "user-agent" | "package-lock" | "node-options", any>> & {
6
6
  access: (string | null)[];
7
7
  'allow-same-version': BooleanConstructor;
8
8
  'always-auth': BooleanConstructor;
@@ -122,18 +122,18 @@ export declare function rcOptionsTypes(): Pick<Partial<Record<"optional" | "key"
122
122
  versions: BooleanConstructor;
123
123
  viewer: StringConstructor;
124
124
  _exit: BooleanConstructor;
125
- }, "long" | "optional" | "json" | "global" | "depth" | "dev" | "only" | "parseable" | "production">;
125
+ }, "optional" | "global" | "production" | "depth" | "only" | "dev" | "json" | "long" | "parseable">;
126
126
  export declare const cliOptionsTypes: () => {
127
127
  recursive: BooleanConstructor;
128
- long: BooleanConstructor;
129
128
  optional: any;
130
- json: BooleanConstructor;
131
129
  global: any;
130
+ production: any;
132
131
  depth: any;
133
- dev: any;
134
132
  only: any;
133
+ dev: any;
134
+ json: BooleanConstructor;
135
+ long: BooleanConstructor;
135
136
  parseable: BooleanConstructor;
136
- production: any;
137
137
  };
138
138
  export declare const shorthands: {
139
139
  D: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/plugin-commands-listing",
3
- "version": "8.0.14",
3
+ "version": "9.0.0",
4
4
  "description": "The list and why commands of pnpm",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -9,11 +9,11 @@
9
9
  "!*.map"
10
10
  ],
11
11
  "engines": {
12
- "node": ">=16.14"
12
+ "node": ">=18.12"
13
13
  },
14
14
  "repository": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-listing",
15
15
  "keywords": [
16
- "pnpm8",
16
+ "pnpm9",
17
17
  "pnpm"
18
18
  ],
19
19
  "license": "MIT",
@@ -22,26 +22,26 @@
22
22
  },
23
23
  "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/plugin-commands-listing#readme",
24
24
  "devDependencies": {
25
- "@pnpm/registry-mock": "3.20.0",
25
+ "@pnpm/registry-mock": "3.29.0",
26
26
  "@types/ramda": "0.28.20",
27
27
  "execa": "npm:safe-execa@0.1.2",
28
28
  "strip-ansi": "^6.0.1",
29
29
  "write-yaml-file": "^5.0.0",
30
- "@pnpm/filter-workspace-packages": "7.2.13",
31
- "@pnpm/constants": "7.1.1",
32
- "@pnpm/plugin-commands-listing": "8.0.14",
33
- "@pnpm/prepare": "0.0.90",
34
- "@pnpm/plugin-commands-installation": "14.2.6"
30
+ "@pnpm/constants": "8.0.0",
31
+ "@pnpm/filter-workspace-packages": "8.0.0",
32
+ "@pnpm/plugin-commands-listing": "9.0.0",
33
+ "@pnpm/plugin-commands-installation": "15.0.0",
34
+ "@pnpm/prepare": "0.0.90"
35
35
  },
36
36
  "dependencies": {
37
37
  "ramda": "npm:@pnpm/ramda@0.28.1",
38
38
  "render-help": "^1.0.3",
39
- "@pnpm/cli-utils": "2.1.11",
40
- "@pnpm/config": "20.4.3",
41
- "@pnpm/error": "5.0.3",
42
- "@pnpm/list": "9.1.12",
43
- "@pnpm/types": "9.4.2",
44
- "@pnpm/common-cli-options-help": "1.1.0"
39
+ "@pnpm/cli-utils": "3.0.0",
40
+ "@pnpm/common-cli-options-help": "2.0.0",
41
+ "@pnpm/config": "21.0.0",
42
+ "@pnpm/error": "6.0.0",
43
+ "@pnpm/list": "10.0.0",
44
+ "@pnpm/types": "10.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@pnpm/logger": "^5.0.0"