pnpm 7.9.2 → 7.9.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.
|
@@ -7,11 +7,11 @@ included:
|
|
|
7
7
|
injectedDeps: {}
|
|
8
8
|
layoutVersion: 5
|
|
9
9
|
nodeLinker: hoisted
|
|
10
|
-
packageManager: pnpm@7.9.
|
|
10
|
+
packageManager: pnpm@7.9.4-0
|
|
11
11
|
pendingBuilds:
|
|
12
12
|
- /node-gyp/9.1.0
|
|
13
13
|
- /encoding/0.1.13
|
|
14
|
-
prunedAt:
|
|
14
|
+
prunedAt: Tue, 23 Aug 2022 00:46:24 GMT
|
|
15
15
|
publicHoistPattern:
|
|
16
16
|
- '*eslint*'
|
|
17
17
|
- '*prettier*'
|
|
@@ -399,7 +399,7 @@ packages:
|
|
|
399
399
|
lru-cache: 7.14.0
|
|
400
400
|
minipass: 3.3.4
|
|
401
401
|
minipass-collect: 1.0.2
|
|
402
|
-
minipass-fetch: 2.1.
|
|
402
|
+
minipass-fetch: 2.1.2
|
|
403
403
|
minipass-flush: 1.0.5
|
|
404
404
|
minipass-pipeline: 1.2.4
|
|
405
405
|
negotiator: 0.6.3
|
|
@@ -435,8 +435,8 @@ packages:
|
|
|
435
435
|
dev: false
|
|
436
436
|
optional: true
|
|
437
437
|
|
|
438
|
-
/minipass-fetch/2.1.
|
|
439
|
-
resolution: {integrity: sha512-
|
|
438
|
+
/minipass-fetch/2.1.2:
|
|
439
|
+
resolution: {integrity: sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==}
|
|
440
440
|
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
441
441
|
dependencies:
|
|
442
442
|
minipass: 3.3.4
|
|
@@ -10,7 +10,9 @@ const FetchError = require('./fetch-error.js')
|
|
|
10
10
|
let convert
|
|
11
11
|
try {
|
|
12
12
|
convert = require('encoding').convert
|
|
13
|
-
} catch (e) {
|
|
13
|
+
} catch (e) {
|
|
14
|
+
// defer error until textConverted is called
|
|
15
|
+
}
|
|
14
16
|
|
|
15
17
|
const INTERNALS = Symbol('Body internals')
|
|
16
18
|
const CONSUME_BODY = Symbol('consumeBody')
|
|
@@ -69,16 +71,16 @@ class Body {
|
|
|
69
71
|
))
|
|
70
72
|
}
|
|
71
73
|
|
|
72
|
-
json () {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
74
|
+
async json () {
|
|
75
|
+
const buf = await this[CONSUME_BODY]()
|
|
76
|
+
try {
|
|
77
|
+
return JSON.parse(buf.toString())
|
|
78
|
+
} catch (er) {
|
|
79
|
+
throw new FetchError(
|
|
80
|
+
`invalid json response body at ${this.url} reason: ${er.message}`,
|
|
81
|
+
'invalid-json'
|
|
82
|
+
)
|
|
83
|
+
}
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
text () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "minipass-fetch",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "An implementation of window.fetch in Node.js using Minipass streams",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@npmcli/eslint-config": "^3.0.1",
|
|
26
|
-
"@npmcli/template-oss": "3.
|
|
26
|
+
"@npmcli/template-oss": "3.5.0",
|
|
27
27
|
"@ungap/url-search-params": "^0.2.2",
|
|
28
28
|
"abort-controller": "^3.0.0",
|
|
29
29
|
"abortcontroller-polyfill": "~1.7.3",
|
|
30
|
+
"encoding": "^0.1.13",
|
|
30
31
|
"form-data": "^4.0.0",
|
|
31
32
|
"nock": "^13.2.4",
|
|
32
33
|
"parted": "^0.1.1",
|
|
@@ -61,6 +62,6 @@
|
|
|
61
62
|
"author": "GitHub Inc.",
|
|
62
63
|
"templateOSS": {
|
|
63
64
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
64
|
-
"version": "3.
|
|
65
|
+
"version": "3.5.0"
|
|
65
66
|
}
|
|
66
67
|
}
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3206,7 +3206,7 @@ var require_lib4 = __commonJS({
|
|
|
3206
3206
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3207
3207
|
var defaultManifest = {
|
|
3208
3208
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3209
|
-
version: "7.9.
|
|
3209
|
+
version: "7.9.4" != null && true ? "7.9.4" : "0.0.0"
|
|
3210
3210
|
};
|
|
3211
3211
|
var pkgJson;
|
|
3212
3212
|
if (require.main == null) {
|
|
@@ -72668,7 +72668,8 @@ var require_lib36 = __commonJS({
|
|
|
72668
72668
|
return {
|
|
72669
72669
|
addFilesFromDir: addFilesFromDir_1.default.bind(null, { addBuffer, addStream }),
|
|
72670
72670
|
addFilesFromTarball: addFilesFromTarball_1.default.bind(null, addStream, ignore ?? null),
|
|
72671
|
-
getFilePathInCafs: getFilePathInCafs_1.default.bind(null, cafsDir)
|
|
72671
|
+
getFilePathInCafs: getFilePathInCafs_1.default.bind(null, cafsDir),
|
|
72672
|
+
getFilePathByModeInCafs: getFilePathInCafs_1.getFilePathByModeInCafs.bind(null, cafsDir)
|
|
72672
72673
|
};
|
|
72673
72674
|
}
|
|
72674
72675
|
exports2.default = createCafs;
|
|
@@ -83542,7 +83543,13 @@ var require_normalizeArch = __commonJS({
|
|
|
83542
83543
|
"../node.fetcher/lib/normalizeArch.js"(exports2) {
|
|
83543
83544
|
"use strict";
|
|
83544
83545
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
83545
|
-
function getNormalizedArch(platform, arch) {
|
|
83546
|
+
function getNormalizedArch(platform, arch, nodeVersion) {
|
|
83547
|
+
if (nodeVersion) {
|
|
83548
|
+
const nodeMajorVersion = +nodeVersion.split(".")[0];
|
|
83549
|
+
if (platform === "darwin" && arch === "arm64" && nodeMajorVersion < 16) {
|
|
83550
|
+
return "x64";
|
|
83551
|
+
}
|
|
83552
|
+
}
|
|
83546
83553
|
if (platform === "win32" && arch === "ia32") {
|
|
83547
83554
|
return "x86";
|
|
83548
83555
|
}
|
|
@@ -83567,7 +83574,7 @@ var require_getNodeTarball = __commonJS({
|
|
|
83567
83574
|
var normalizeArch_1 = __importDefault(require_normalizeArch());
|
|
83568
83575
|
function getNodeTarball(nodeVersion, nodeMirror, processPlatform, processArch) {
|
|
83569
83576
|
const platform = processPlatform === "win32" ? "win" : processPlatform;
|
|
83570
|
-
const arch = (0, normalizeArch_1.default)(processPlatform, processArch);
|
|
83577
|
+
const arch = (0, normalizeArch_1.default)(processPlatform, processArch, nodeVersion);
|
|
83571
83578
|
const extension = platform === "win" ? "zip" : "tar.gz";
|
|
83572
83579
|
const pkgName = `node-v${nodeVersion}-${platform}-${arch}`;
|
|
83573
83580
|
return {
|
|
@@ -85440,6 +85447,7 @@ var require_node3 = __commonJS({
|
|
|
85440
85447
|
var fs_1 = __importDefault(require("fs"));
|
|
85441
85448
|
var path_1 = __importDefault(require("path"));
|
|
85442
85449
|
var fetch_1 = require_lib31();
|
|
85450
|
+
var logger_1 = require_lib6();
|
|
85443
85451
|
var node_fetcher_1 = require_lib43();
|
|
85444
85452
|
var store_path_1 = __importDefault(require_lib44());
|
|
85445
85453
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
@@ -85484,6 +85492,7 @@ var require_node3 = __commonJS({
|
|
|
85484
85492
|
pnpmHomeDir: opts.pnpmHomeDir
|
|
85485
85493
|
});
|
|
85486
85494
|
const cafsDir = path_1.default.join(storeDir, "files");
|
|
85495
|
+
(0, logger_1.globalInfo)(`Fetching Node.js ${opts.useNodeVersion} ...`);
|
|
85487
85496
|
await (0, node_fetcher_1.fetchNode)(fetch, opts.useNodeVersion, versionDir, {
|
|
85488
85497
|
...opts,
|
|
85489
85498
|
cafsDir,
|
|
@@ -122914,11 +122923,7 @@ var require_filterLockfileByImportersAndEngine = __commonJS({
|
|
|
122914
122923
|
const nextRelDepPaths = Object.entries({
|
|
122915
122924
|
...pkgSnapshot.dependencies,
|
|
122916
122925
|
...opts.include.optionalDependencies ? pkgSnapshot.optionalDependencies : {}
|
|
122917
|
-
}).map(([pkgName, ref]) =>
|
|
122918
|
-
if (pkgSnapshot.peerDependencies?.[pkgName])
|
|
122919
|
-
return null;
|
|
122920
|
-
return dp.refToRelative(ref, pkgName);
|
|
122921
|
-
}).filter((nodeId) => nodeId !== null);
|
|
122926
|
+
}).map(([pkgName, ref]) => dp.refToRelative(ref, pkgName)).filter((nodeId) => nodeId !== null);
|
|
122922
122927
|
pkgAllDeps(ctx, nextRelDepPaths, installable, opts);
|
|
122923
122928
|
}
|
|
122924
122929
|
}
|
|
@@ -135328,6 +135333,18 @@ var require_install = __commonJS({
|
|
|
135328
135333
|
pruneVirtualStore,
|
|
135329
135334
|
wantedLockfile: maybeOpts.ignorePackageManifest ? void 0 : ctx.wantedLockfile
|
|
135330
135335
|
});
|
|
135336
|
+
if (opts.useLockfile && opts.saveLockfile && opts.mergeGitBranchLockfiles) {
|
|
135337
|
+
await (0, lockfile_file_1.writeLockfiles)({
|
|
135338
|
+
currentLockfile: ctx.currentLockfile,
|
|
135339
|
+
currentLockfileDir: ctx.virtualStoreDir,
|
|
135340
|
+
wantedLockfile: ctx.wantedLockfile,
|
|
135341
|
+
wantedLockfileDir: ctx.lockfileDir,
|
|
135342
|
+
forceSharedFormat: opts.forceSharedLockfile,
|
|
135343
|
+
useInlineSpecifiersFormat: opts.useInlineSpecifiersLockfileFormat,
|
|
135344
|
+
useGitBranchLockfile: opts.useGitBranchLockfile,
|
|
135345
|
+
mergeGitBranchLockfiles: opts.mergeGitBranchLockfiles
|
|
135346
|
+
});
|
|
135347
|
+
}
|
|
135331
135348
|
return projects;
|
|
135332
135349
|
} catch (error) {
|
|
135333
135350
|
if (frozenLockfile || error.code !== "ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY" && !BROKEN_LOCKFILE_INTEGRITY_ERRORS.has(error.code))
|
|
@@ -198829,7 +198846,6 @@ var require_main2 = __commonJS({
|
|
|
198829
198846
|
var isEmpty_1 = __importDefault(require_isEmpty2());
|
|
198830
198847
|
var strip_ansi_1 = __importDefault(require_strip_ansi());
|
|
198831
198848
|
var which_1 = __importDefault(require_which2());
|
|
198832
|
-
process.once("SIGINT", () => process.exit(0)).once("SIGTERM", () => process.exit(0));
|
|
198833
198849
|
(0, loud_rejection_1.default)();
|
|
198834
198850
|
var DEPRECATED_OPTIONS = /* @__PURE__ */ new Set([
|
|
198835
198851
|
"independent-leaves",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pnpm",
|
|
3
3
|
"description": "Fast, disk space efficient package manager",
|
|
4
|
-
"version": "7.9.
|
|
4
|
+
"version": "7.9.4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@pnpm/prepare": "workspace:*",
|
|
57
57
|
"@pnpm/read-package-json": "workspace:*",
|
|
58
58
|
"@pnpm/read-project-manifest": "workspace:*",
|
|
59
|
-
"@pnpm/registry-mock": "3.0.0-
|
|
59
|
+
"@pnpm/registry-mock": "3.0.0-2",
|
|
60
60
|
"@pnpm/run-npm": "workspace:*",
|
|
61
61
|
"@pnpm/tabtab": "^0.1.2",
|
|
62
62
|
"@pnpm/types": "workspace:*",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"cross-var-no-babel": "^1.2.0",
|
|
76
76
|
"deep-require-cwd": "1.0.0",
|
|
77
77
|
"delay": "^5.0.0",
|
|
78
|
+
"dependency-path": "workspace:*",
|
|
78
79
|
"dir-is-case-sensitive": "^2.0.0",
|
|
79
80
|
"esbuild": "^0.15.2",
|
|
80
81
|
"execa": "npm:safe-execa@^0.1.2",
|