@pnpm/releasing.commands 1100.5.3 → 1100.5.4
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PnpmError } from '@pnpm/error';
|
|
1
|
+
import { PnpmError, redactUrlCredentials } from '@pnpm/error';
|
|
2
2
|
import npa from '@pnpm/npm-package-arg';
|
|
3
3
|
import { displayError } from '../displayError.js';
|
|
4
4
|
import { SHARED_CONTEXT } from '../utils/shared-context.js';
|
|
@@ -58,10 +58,11 @@ export class AuthTokenFetchError extends AuthTokenError {
|
|
|
58
58
|
packageName;
|
|
59
59
|
registry;
|
|
60
60
|
constructor(error, packageName, registry) {
|
|
61
|
-
|
|
61
|
+
const redactedRegistry = redactUrlCredentials(registry);
|
|
62
|
+
super('AUTH_TOKEN_FETCH', `Failed to fetch authToken for package ${packageName} from registry ${redactedRegistry}: ${displayError(error)}`);
|
|
62
63
|
this.errorSource = error;
|
|
63
64
|
this.packageName = packageName;
|
|
64
|
-
this.registry =
|
|
65
|
+
this.registry = redactedRegistry;
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
export class AuthTokenExchangeError extends AuthTokenError {
|
|
@@ -86,10 +87,11 @@ export class AuthTokenMalformedJsonError extends AuthTokenError {
|
|
|
86
87
|
packageName;
|
|
87
88
|
registry;
|
|
88
89
|
constructor(malformedJsonResponse, packageName, registry) {
|
|
89
|
-
|
|
90
|
+
const redactedRegistry = redactUrlCredentials(registry);
|
|
91
|
+
super('AUTH_TOKEN_MALFORMED_JSON', `Failed to fetch authToken for package ${packageName} from registry ${redactedRegistry} due to malformed JSON response`);
|
|
90
92
|
this.malformedJsonResponse = malformedJsonResponse;
|
|
91
93
|
this.packageName = packageName;
|
|
92
|
-
this.registry =
|
|
94
|
+
this.registry = redactedRegistry;
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
//# sourceMappingURL=authToken.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PnpmError } from '@pnpm/error';
|
|
1
|
+
import { PnpmError, redactUrlCredentials } from '@pnpm/error';
|
|
2
2
|
import npa from '@pnpm/npm-package-arg';
|
|
3
3
|
import { SHARED_CONTEXT } from '../utils/shared-context.js';
|
|
4
4
|
/**
|
|
@@ -72,11 +72,12 @@ export class ProvenanceFailedToFetchVisibilityError extends ProvenanceError {
|
|
|
72
72
|
else if (errorResponse?.message) {
|
|
73
73
|
message = errorResponse.message;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
const redactedRegistry = redactUrlCredentials(registry);
|
|
76
|
+
super('PROVENANCE_FAILED_TO_FETCH_VISIBILITY', `Failed to fetch visibility for package ${packageName} from registry ${redactedRegistry} due to ${message} (status code ${status})`);
|
|
76
77
|
this.errorResponse = errorResponse;
|
|
77
78
|
this.status = status;
|
|
78
79
|
this.packageName = packageName;
|
|
79
|
-
this.registry =
|
|
80
|
+
this.registry = redactedRegistry;
|
|
80
81
|
}
|
|
81
82
|
static async createErrorFromFetchResponse(response, packageName, registry) {
|
|
82
83
|
let errorResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
|
-
import { PnpmError } from '@pnpm/error';
|
|
2
|
+
import { PnpmError, redactUrlCredentials } from '@pnpm/error';
|
|
3
3
|
import { globalInfo, globalWarn } from '@pnpm/logger';
|
|
4
4
|
import { createDispatchedFetch } from '@pnpm/network.fetch';
|
|
5
5
|
import { DEFAULT_REGISTRY_SCOPE } from '@pnpm/types';
|
|
@@ -20,7 +20,8 @@ export async function publishPackedPkg(packResult, opts) {
|
|
|
20
20
|
const { name, version } = publishedManifest;
|
|
21
21
|
const { registry } = publishOptions;
|
|
22
22
|
const isStage = opts.stage === true;
|
|
23
|
-
|
|
23
|
+
// Redact any `user:pass@` credentials a registry= URL may carry so they don't leak into logs.
|
|
24
|
+
globalInfo(`📦 ${name}@${version} → ${registry != null ? redactUrlCredentials(registry) : 'the default registry'}`);
|
|
24
25
|
const summary = createPublishSummary({ publishedManifest, tarballPath, contents, unpackedSize }, tarballData);
|
|
25
26
|
if (opts.dryRun) {
|
|
26
27
|
globalWarn(`Skip ${isStage ? 'staging' : 'publishing'} ${name}@${version} (dry run)`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/releasing.commands",
|
|
3
|
-
"version": "1100.5.
|
|
3
|
+
"version": "1100.5.4",
|
|
4
4
|
"description": "Commands for deploy, pack, and publish",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -53,32 +53,32 @@
|
|
|
53
53
|
"write-json-file": "^7.0.0",
|
|
54
54
|
"write-yaml-file": "^6.0.0",
|
|
55
55
|
"@pnpm/bins.resolver": "1100.0.8",
|
|
56
|
+
"@pnpm/cli.common-cli-options-help": "1100.0.2",
|
|
56
57
|
"@pnpm/config.pick-registry-for-package": "1100.0.9",
|
|
57
|
-
"@pnpm/
|
|
58
|
+
"@pnpm/cli.utils": "1101.0.13",
|
|
59
|
+
"@pnpm/config.reader": "1101.11.1",
|
|
58
60
|
"@pnpm/constants": "1100.0.0",
|
|
59
|
-
"@pnpm/cli.common-cli-options-help": "1100.0.2",
|
|
60
61
|
"@pnpm/deps.path": "1100.0.8",
|
|
61
|
-
"@pnpm/
|
|
62
|
-
"@pnpm/engine.runtime.
|
|
62
|
+
"@pnpm/engine.runtime.commands": "1100.1.9",
|
|
63
|
+
"@pnpm/engine.runtime.node-resolver": "1101.1.11",
|
|
63
64
|
"@pnpm/error": "1100.0.1",
|
|
64
|
-
"@pnpm/engine.runtime.node-resolver": "1101.1.10",
|
|
65
65
|
"@pnpm/exec.lifecycle": "1100.1.2",
|
|
66
|
-
"@pnpm/fetching.directory-fetcher": "1100.0.19",
|
|
67
|
-
"@pnpm/cli.utils": "1101.0.13",
|
|
68
66
|
"@pnpm/exec.pnpm-cli-runner": "1100.0.1",
|
|
67
|
+
"@pnpm/fetching.directory-fetcher": "1100.0.19",
|
|
68
|
+
"@pnpm/catalogs.types": "1100.0.0",
|
|
69
69
|
"@pnpm/fs.indexed-pkg-importer": "1100.0.17",
|
|
70
70
|
"@pnpm/fs.packlist": "1100.0.1",
|
|
71
|
-
"@pnpm/installing.client": "1100.2.11",
|
|
72
|
-
"@pnpm/installing.commands": "1100.10.2",
|
|
73
71
|
"@pnpm/fs.is-empty-dir-or-nothing": "1100.0.0",
|
|
74
|
-
"@pnpm/
|
|
75
|
-
"@pnpm/
|
|
72
|
+
"@pnpm/installing.client": "1100.2.12",
|
|
73
|
+
"@pnpm/installing.commands": "1100.10.3",
|
|
76
74
|
"@pnpm/lockfile.types": "1100.0.13",
|
|
75
|
+
"@pnpm/lockfile.fs": "1100.1.9",
|
|
77
76
|
"@pnpm/network.auth-header": "1101.1.3",
|
|
77
|
+
"@pnpm/network.fetch": "1100.1.4",
|
|
78
78
|
"@pnpm/network.git-utils": "1100.0.2",
|
|
79
|
-
"@pnpm/releasing.exportable-manifest": "1100.1.9",
|
|
80
|
-
"@pnpm/resolving.resolver-base": "1100.5.1",
|
|
81
79
|
"@pnpm/network.web-auth": "1101.2.0",
|
|
80
|
+
"@pnpm/resolving.resolver-base": "1100.5.1",
|
|
81
|
+
"@pnpm/releasing.exportable-manifest": "1100.1.9",
|
|
82
82
|
"@pnpm/types": "1101.3.2",
|
|
83
83
|
"@pnpm/workspace.projects-sorter": "1100.0.8"
|
|
84
84
|
},
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
"@pnpm/assert-project": "1100.0.18",
|
|
107
107
|
"@pnpm/catalogs.config": "1100.0.2",
|
|
108
108
|
"@pnpm/hooks.pnpmfile": "1100.0.17",
|
|
109
|
-
"@pnpm/prepare": "1100.0.18",
|
|
110
|
-
"@pnpm/releasing.commands": "1100.5.3",
|
|
111
109
|
"@pnpm/logger": "1100.0.0",
|
|
112
|
-
"@pnpm/
|
|
110
|
+
"@pnpm/releasing.commands": "1100.5.4",
|
|
111
|
+
"@pnpm/prepare": "1100.0.18",
|
|
113
112
|
"@pnpm/test-ipc-server": "1100.0.0",
|
|
114
|
-
"@pnpm/
|
|
113
|
+
"@pnpm/test-fixtures": "1100.0.0",
|
|
115
114
|
"@pnpm/testing.registry-mock": "1100.0.8",
|
|
116
|
-
"@pnpm/
|
|
115
|
+
"@pnpm/testing.command-defaults": "1100.0.8",
|
|
116
|
+
"@pnpm/workspace.projects-filter": "1100.0.25"
|
|
117
117
|
},
|
|
118
118
|
"engines": {
|
|
119
119
|
"node": ">=22.13"
|