pnpm 8.1.0 → 8.1.1
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/LICENSE +1 -1
- package/README.md +11 -0
- package/dist/node_modules/.modules.yaml +1 -1
- package/dist/pnpm.cjs +107 -65
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2015-2016 Rico Sta. Cruz and other contributors
|
|
4
|
-
Copyright (c) 2016-
|
|
4
|
+
Copyright (c) 2016-2023 Zoltan Kochan and other contributors
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -84,6 +84,8 @@ To quote the [Rush](https://rushjs.io/) team:
|
|
|
84
84
|
</picture>
|
|
85
85
|
</a>
|
|
86
86
|
</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
87
89
|
<td align="center" valign="middle">
|
|
88
90
|
<a href="https://depot.dev/?utm_source=pnpm&utm_medium=readme" target="_blank">
|
|
89
91
|
<picture>
|
|
@@ -93,6 +95,15 @@ To quote the [Rush](https://rushjs.io/) team:
|
|
|
93
95
|
</picture>
|
|
94
96
|
</a>
|
|
95
97
|
</td>
|
|
98
|
+
<td align="center" valign="middle">
|
|
99
|
+
<a href="https://moonrepo.dev/?utm_source=pnpm&utm_medium=readme" target="_blank">
|
|
100
|
+
<picture>
|
|
101
|
+
<source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/moonrepo.svg" />
|
|
102
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/moonrepo_light.svg" />
|
|
103
|
+
<img src="https://pnpm.io/img/users/moonrepo.svg" width="200" />
|
|
104
|
+
</picture>
|
|
105
|
+
</a>
|
|
106
|
+
</td>
|
|
96
107
|
</tr>
|
|
97
108
|
</tbody>
|
|
98
109
|
</table>
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3249,7 +3249,7 @@ var require_lib4 = __commonJS({
|
|
|
3249
3249
|
var load_json_file_1 = __importDefault3(require_load_json_file());
|
|
3250
3250
|
var defaultManifest = {
|
|
3251
3251
|
name: true ? "pnpm" : "pnpm",
|
|
3252
|
-
version: true ? "8.1.
|
|
3252
|
+
version: true ? "8.1.1" : "0.0.0"
|
|
3253
3253
|
};
|
|
3254
3254
|
var pkgJson;
|
|
3255
3255
|
if (require.main == null) {
|
|
@@ -41366,8 +41366,8 @@ You can run ${highlight("pnpm install --force")} to refetch the modified package
|
|
|
41366
41366
|
};
|
|
41367
41367
|
}
|
|
41368
41368
|
function formatRecursiveCommandSummary(msg) {
|
|
41369
|
-
const output = constants_1.EOL + `Summary: ${chalk_1.default.red(`${msg.
|
|
41370
|
-
return
|
|
41369
|
+
const output = constants_1.EOL + `Summary: ${chalk_1.default.red(`${msg.failures.length} fails`)}, ${msg.passes} passes` + constants_1.EOL + constants_1.EOL + msg.failures.map(({ message: message2, prefix }) => {
|
|
41370
|
+
return prefix + ":" + constants_1.EOL + formatErrorSummary(message2);
|
|
41371
41371
|
}).join(constants_1.EOL + constants_1.EOL);
|
|
41372
41372
|
return {
|
|
41373
41373
|
title: "",
|
|
@@ -83452,9 +83452,9 @@ var require_localTarballFetcher = __commonJS({
|
|
|
83452
83452
|
}
|
|
83453
83453
|
});
|
|
83454
83454
|
|
|
83455
|
-
// ../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.
|
|
83455
|
+
// ../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.1_typanion@3.12.1/node_modules/@pnpm/npm-lifecycle/lib/spawn.js
|
|
83456
83456
|
var require_spawn = __commonJS({
|
|
83457
|
-
"../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.
|
|
83457
|
+
"../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.1_typanion@3.12.1/node_modules/@pnpm/npm-lifecycle/lib/spawn.js"(exports2, module2) {
|
|
83458
83458
|
"use strict";
|
|
83459
83459
|
module2.exports = spawn;
|
|
83460
83460
|
var _spawn = require("child_process").spawn;
|
|
@@ -97760,9 +97760,9 @@ var require_source2 = __commonJS({
|
|
|
97760
97760
|
}
|
|
97761
97761
|
});
|
|
97762
97762
|
|
|
97763
|
-
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
97763
|
+
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/errors.js
|
|
97764
97764
|
var require_errors3 = __commonJS({
|
|
97765
|
-
"../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
97765
|
+
"../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/errors.js"(exports2) {
|
|
97766
97766
|
"use strict";
|
|
97767
97767
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
97768
97768
|
exports2.ShellError = void 0;
|
|
@@ -97776,17 +97776,17 @@ var require_errors3 = __commonJS({
|
|
|
97776
97776
|
}
|
|
97777
97777
|
});
|
|
97778
97778
|
|
|
97779
|
-
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
97779
|
+
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/globUtils.js
|
|
97780
97780
|
var require_globUtils = __commonJS({
|
|
97781
|
-
"../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
97781
|
+
"../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/globUtils.js"(exports2) {
|
|
97782
97782
|
"use strict";
|
|
97783
97783
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
97784
97784
|
exports2.isBraceExpansion = exports2.match = exports2.isGlobPattern = exports2.fastGlobOptions = exports2.micromatchOptions = void 0;
|
|
97785
97785
|
var tslib_12 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
97786
97786
|
var fslib_12 = require_lib49();
|
|
97787
|
-
var fast_glob_1 =
|
|
97788
|
-
var fs_1 =
|
|
97789
|
-
var micromatch_12 =
|
|
97787
|
+
var fast_glob_1 = tslib_12.__importDefault(require_out4());
|
|
97788
|
+
var fs_1 = tslib_12.__importDefault(require("fs"));
|
|
97789
|
+
var micromatch_12 = tslib_12.__importDefault(require_micromatch());
|
|
97790
97790
|
exports2.micromatchOptions = {
|
|
97791
97791
|
// This is required because we don't want ")/*" to be a valid shell glob pattern.
|
|
97792
97792
|
strictBrackets: true
|
|
@@ -97821,14 +97821,14 @@ var require_globUtils = __commonJS({
|
|
|
97821
97821
|
}
|
|
97822
97822
|
});
|
|
97823
97823
|
|
|
97824
|
-
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
97824
|
+
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/pipe.js
|
|
97825
97825
|
var require_pipe2 = __commonJS({
|
|
97826
|
-
"../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
97826
|
+
"../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/pipe.js"(exports2) {
|
|
97827
97827
|
"use strict";
|
|
97828
97828
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
97829
97829
|
exports2.createOutputStreamsWithPrefix = exports2.start = exports2.Handle = exports2.ProtectedStream = exports2.makeBuiltin = exports2.makeProcess = exports2.Pipe = void 0;
|
|
97830
97830
|
var tslib_12 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
97831
|
-
var cross_spawn_1 =
|
|
97831
|
+
var cross_spawn_1 = tslib_12.__importDefault(require_cross_spawn());
|
|
97832
97832
|
var stream_12 = require("stream");
|
|
97833
97833
|
var string_decoder_1 = require("string_decoder");
|
|
97834
97834
|
var Pipe;
|
|
@@ -97899,7 +97899,7 @@ var require_pipe2 = __commonJS({
|
|
|
97899
97899
|
break;
|
|
97900
97900
|
}
|
|
97901
97901
|
});
|
|
97902
|
-
child.on(`
|
|
97902
|
+
child.on(`close`, (code) => {
|
|
97903
97903
|
activeChildren.delete(child);
|
|
97904
97904
|
if (activeChildren.size === 0) {
|
|
97905
97905
|
process.off(`SIGINT`, sigintHandler);
|
|
@@ -97964,6 +97964,13 @@ var require_pipe2 = __commonJS({
|
|
|
97964
97964
|
}
|
|
97965
97965
|
};
|
|
97966
97966
|
var Handle = class {
|
|
97967
|
+
static start(implementation, { stdin, stdout, stderr }) {
|
|
97968
|
+
const chain = new Handle(null, implementation);
|
|
97969
|
+
chain.stdin = stdin;
|
|
97970
|
+
chain.stdout = stdout;
|
|
97971
|
+
chain.stderr = stderr;
|
|
97972
|
+
return chain;
|
|
97973
|
+
}
|
|
97967
97974
|
constructor(ancestor, implementation) {
|
|
97968
97975
|
this.stdin = null;
|
|
97969
97976
|
this.stdout = null;
|
|
@@ -97972,13 +97979,6 @@ var require_pipe2 = __commonJS({
|
|
|
97972
97979
|
this.ancestor = ancestor;
|
|
97973
97980
|
this.implementation = implementation;
|
|
97974
97981
|
}
|
|
97975
|
-
static start(implementation, { stdin, stdout, stderr }) {
|
|
97976
|
-
const chain = new Handle(null, implementation);
|
|
97977
|
-
chain.stdin = stdin;
|
|
97978
|
-
chain.stdout = stdout;
|
|
97979
|
-
chain.stderr = stderr;
|
|
97980
|
-
return chain;
|
|
97981
|
-
}
|
|
97982
97982
|
pipeTo(implementation, source = Pipe.STDOUT) {
|
|
97983
97983
|
const next = new Handle(this, implementation);
|
|
97984
97984
|
const pipe = new PipeStream();
|
|
@@ -98057,8 +98057,8 @@ var require_pipe2 = __commonJS({
|
|
|
98057
98057
|
lineIndex = chunkStr.indexOf(`
|
|
98058
98058
|
`);
|
|
98059
98059
|
if (lineIndex !== -1) {
|
|
98060
|
-
const line = buffer + chunkStr.
|
|
98061
|
-
chunkStr = chunkStr.
|
|
98060
|
+
const line = buffer + chunkStr.substring(0, lineIndex);
|
|
98061
|
+
chunkStr = chunkStr.substring(lineIndex + 1);
|
|
98062
98062
|
buffer = ``;
|
|
98063
98063
|
if (prefix !== null) {
|
|
98064
98064
|
reportFn(`${prefix} ${line}`);
|
|
@@ -98093,16 +98093,16 @@ var require_pipe2 = __commonJS({
|
|
|
98093
98093
|
}
|
|
98094
98094
|
});
|
|
98095
98095
|
|
|
98096
|
-
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
98096
|
+
// ../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/index.js
|
|
98097
98097
|
var require_lib51 = __commonJS({
|
|
98098
|
-
"../node_modules/.pnpm/@yarnpkg+shell@3.2.
|
|
98098
|
+
"../node_modules/.pnpm/@yarnpkg+shell@3.2.5_typanion@3.12.1/node_modules/@yarnpkg/shell/lib/index.js"(exports2) {
|
|
98099
98099
|
"use strict";
|
|
98100
98100
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
98101
98101
|
exports2.execute = exports2.ShellError = exports2.globUtils = void 0;
|
|
98102
98102
|
var tslib_12 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
98103
98103
|
var fslib_12 = require_lib49();
|
|
98104
98104
|
var parsers_1 = require_lib50();
|
|
98105
|
-
var chalk_1 =
|
|
98105
|
+
var chalk_1 = tslib_12.__importDefault(require_source2());
|
|
98106
98106
|
var os_1 = require("os");
|
|
98107
98107
|
var stream_12 = require("stream");
|
|
98108
98108
|
var util_1 = require("util");
|
|
@@ -98110,7 +98110,7 @@ var require_lib51 = __commonJS({
|
|
|
98110
98110
|
Object.defineProperty(exports2, "ShellError", { enumerable: true, get: function() {
|
|
98111
98111
|
return errors_1.ShellError;
|
|
98112
98112
|
} });
|
|
98113
|
-
var globUtils =
|
|
98113
|
+
var globUtils = tslib_12.__importStar(require_globUtils());
|
|
98114
98114
|
exports2.globUtils = globUtils;
|
|
98115
98115
|
var pipe_1 = require_pipe2();
|
|
98116
98116
|
var pipe_2 = require_pipe2();
|
|
@@ -98447,29 +98447,32 @@ var require_lib51 = __commonJS({
|
|
|
98447
98447
|
{
|
|
98448
98448
|
const argIndex = parseInt(segment.name, 10);
|
|
98449
98449
|
let raw;
|
|
98450
|
-
|
|
98450
|
+
const isArgument = Number.isFinite(argIndex);
|
|
98451
|
+
if (isArgument) {
|
|
98451
98452
|
if (argIndex >= 0 && argIndex < opts.args.length) {
|
|
98452
98453
|
raw = opts.args[argIndex];
|
|
98453
|
-
} else if (segment.defaultValue) {
|
|
98454
|
-
raw = (await interpolateArguments(segment.defaultValue, opts, state)).join(` `);
|
|
98455
|
-
} else if (segment.alternativeValue) {
|
|
98456
|
-
raw = (await interpolateArguments(segment.alternativeValue, opts, state)).join(` `);
|
|
98457
|
-
} else {
|
|
98458
|
-
throw new errors_1.ShellError(`Unbound argument #${argIndex}`);
|
|
98459
98454
|
}
|
|
98460
98455
|
} else {
|
|
98461
98456
|
if (Object.prototype.hasOwnProperty.call(state.variables, segment.name)) {
|
|
98462
98457
|
raw = state.variables[segment.name];
|
|
98463
98458
|
} else if (Object.prototype.hasOwnProperty.call(state.environment, segment.name)) {
|
|
98464
98459
|
raw = state.environment[segment.name];
|
|
98465
|
-
} else if (segment.defaultValue) {
|
|
98466
|
-
raw = (await interpolateArguments(segment.defaultValue, opts, state)).join(` `);
|
|
98467
|
-
} else {
|
|
98468
|
-
throw new errors_1.ShellError(`Unbound variable "${segment.name}"`);
|
|
98469
98460
|
}
|
|
98470
98461
|
}
|
|
98471
|
-
if (typeof raw !== `undefined` && segment.alternativeValue)
|
|
98462
|
+
if (typeof raw !== `undefined` && segment.alternativeValue) {
|
|
98472
98463
|
raw = (await interpolateArguments(segment.alternativeValue, opts, state)).join(` `);
|
|
98464
|
+
} else if (typeof raw === `undefined`) {
|
|
98465
|
+
if (segment.defaultValue) {
|
|
98466
|
+
raw = (await interpolateArguments(segment.defaultValue, opts, state)).join(` `);
|
|
98467
|
+
} else if (segment.alternativeValue) {
|
|
98468
|
+
raw = ``;
|
|
98469
|
+
}
|
|
98470
|
+
}
|
|
98471
|
+
if (typeof raw === `undefined`) {
|
|
98472
|
+
if (isArgument)
|
|
98473
|
+
throw new errors_1.ShellError(`Unbound argument #${argIndex}`);
|
|
98474
|
+
throw new errors_1.ShellError(`Unbound variable "${segment.name}"`);
|
|
98475
|
+
}
|
|
98473
98476
|
if (segment.quoted) {
|
|
98474
98477
|
push(raw);
|
|
98475
98478
|
} else {
|
|
@@ -99351,9 +99354,9 @@ var require_resolve_from = __commonJS({
|
|
|
99351
99354
|
}
|
|
99352
99355
|
});
|
|
99353
99356
|
|
|
99354
|
-
// ../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.
|
|
99357
|
+
// ../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.1_typanion@3.12.1/node_modules/@pnpm/npm-lifecycle/lib/extendPath.js
|
|
99355
99358
|
var require_extendPath = __commonJS({
|
|
99356
|
-
"../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.
|
|
99359
|
+
"../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.1_typanion@3.12.1/node_modules/@pnpm/npm-lifecycle/lib/extendPath.js"(exports2, module2) {
|
|
99357
99360
|
var path2 = require("path");
|
|
99358
99361
|
var which = require_which2();
|
|
99359
99362
|
module2.exports = (wd, originalPath, nodeGyp, opts) => {
|
|
@@ -99404,9 +99407,9 @@ var require_extendPath = __commonJS({
|
|
|
99404
99407
|
}
|
|
99405
99408
|
});
|
|
99406
99409
|
|
|
99407
|
-
// ../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.
|
|
99410
|
+
// ../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.1_typanion@3.12.1/node_modules/@pnpm/npm-lifecycle/index.js
|
|
99408
99411
|
var require_npm_lifecycle = __commonJS({
|
|
99409
|
-
"../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.
|
|
99412
|
+
"../node_modules/.pnpm/@pnpm+npm-lifecycle@2.0.1_typanion@3.12.1/node_modules/@pnpm/npm-lifecycle/index.js"(exports2, module2) {
|
|
99410
99413
|
"use strict";
|
|
99411
99414
|
exports2 = module2.exports = lifecycle;
|
|
99412
99415
|
exports2.makeEnv = makeEnv;
|
|
@@ -112055,6 +112058,26 @@ var require_pickPackageFromMeta = __commonJS({
|
|
|
112055
112058
|
}
|
|
112056
112059
|
}
|
|
112057
112060
|
exports2.pickPackageFromMeta = pickPackageFromMeta;
|
|
112061
|
+
var semverRangeCache = /* @__PURE__ */ new Map();
|
|
112062
|
+
function semverSatisfiesLoose(version2, range) {
|
|
112063
|
+
let semverRange = semverRangeCache.get(range);
|
|
112064
|
+
if (semverRange === void 0) {
|
|
112065
|
+
try {
|
|
112066
|
+
semverRange = new semver_12.default.Range(range, true);
|
|
112067
|
+
} catch {
|
|
112068
|
+
semverRange = null;
|
|
112069
|
+
}
|
|
112070
|
+
semverRangeCache.set(range, semverRange);
|
|
112071
|
+
}
|
|
112072
|
+
if (semverRange) {
|
|
112073
|
+
try {
|
|
112074
|
+
return semverRange.test(new semver_12.default.SemVer(version2, true));
|
|
112075
|
+
} catch {
|
|
112076
|
+
return false;
|
|
112077
|
+
}
|
|
112078
|
+
}
|
|
112079
|
+
return false;
|
|
112080
|
+
}
|
|
112058
112081
|
function pickLowestVersionByVersionRange(meta, versionRange, preferredVerSels) {
|
|
112059
112082
|
if (preferredVerSels != null && Object.keys(preferredVerSels).length > 0) {
|
|
112060
112083
|
const prioritizedPreferredVersions = prioritizePreferredVersions(meta, versionRange, preferredVerSels);
|
|
@@ -112076,7 +112099,7 @@ var require_pickPackageFromMeta = __commonJS({
|
|
|
112076
112099
|
if (preferredVerSels != null && Object.keys(preferredVerSels).length > 0) {
|
|
112077
112100
|
const prioritizedPreferredVersions = prioritizePreferredVersions(meta, versionRange, preferredVerSels);
|
|
112078
112101
|
for (const preferredVersions of prioritizedPreferredVersions) {
|
|
112079
|
-
if (preferredVersions.includes(latest) &&
|
|
112102
|
+
if (preferredVersions.includes(latest) && semverSatisfiesLoose(latest, versionRange)) {
|
|
112080
112103
|
return latest;
|
|
112081
112104
|
}
|
|
112082
112105
|
const preferredVersion = semver_12.default.maxSatisfying(preferredVersions, versionRange, true);
|
|
@@ -112092,7 +112115,7 @@ var require_pickPackageFromMeta = __commonJS({
|
|
|
112092
112115
|
latest = void 0;
|
|
112093
112116
|
}
|
|
112094
112117
|
}
|
|
112095
|
-
if (latest && (versionRange === "*" ||
|
|
112118
|
+
if (latest && (versionRange === "*" || semverSatisfiesLoose(latest, versionRange))) {
|
|
112096
112119
|
return latest;
|
|
112097
112120
|
}
|
|
112098
112121
|
const maxVersion = semver_12.default.maxSatisfying(versions, versionRange, true);
|
|
@@ -112120,7 +112143,7 @@ var require_pickPackageFromMeta = __commonJS({
|
|
|
112120
112143
|
case "range": {
|
|
112121
112144
|
const versions = Object.keys(meta.versions);
|
|
112122
112145
|
for (const version2 of versions) {
|
|
112123
|
-
if (
|
|
112146
|
+
if (semverSatisfiesLoose(version2, preferredSelector)) {
|
|
112124
112147
|
versionsPrioritizer.add(version2, weight);
|
|
112125
112148
|
}
|
|
112126
112149
|
}
|
|
@@ -113447,7 +113470,7 @@ var require_lib78 = __commonJS({
|
|
|
113447
113470
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
113448
113471
|
};
|
|
113449
113472
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
113450
|
-
exports2.createPeersFolderSuffix = exports2.depPathToFilename = exports2.parse = exports2.refToRelative = exports2.relative = exports2.getRegistryByPackageName = exports2.refToAbsolute = exports2.tryGetPackageId = exports2.resolve = exports2.isAbsolute = void 0;
|
|
113473
|
+
exports2.createPeersFolderSuffix = exports2.depPathToFilename = exports2.parse = exports2.refToRelative = exports2.relative = exports2.getRegistryByPackageName = exports2.refToAbsolute = exports2.tryGetPackageId = exports2.indexOfPeersSuffix = exports2.resolve = exports2.isAbsolute = void 0;
|
|
113451
113474
|
var crypto_base32_hash_1 = require_lib77();
|
|
113452
113475
|
var encode_registry_1 = __importDefault3(require_encode_registry());
|
|
113453
113476
|
var semver_12 = __importDefault3(require_semver2());
|
|
@@ -113471,13 +113494,31 @@ var require_lib78 = __commonJS({
|
|
|
113471
113494
|
return resolutionLocation;
|
|
113472
113495
|
}
|
|
113473
113496
|
exports2.resolve = resolve;
|
|
113497
|
+
function indexOfPeersSuffix(depPath) {
|
|
113498
|
+
if (!depPath.endsWith(")"))
|
|
113499
|
+
return -1;
|
|
113500
|
+
let open = true;
|
|
113501
|
+
for (let i = depPath.length - 2; i >= 0; i--) {
|
|
113502
|
+
if (depPath[i] === "(") {
|
|
113503
|
+
open = false;
|
|
113504
|
+
} else if (depPath[i] === ")") {
|
|
113505
|
+
if (open)
|
|
113506
|
+
return -1;
|
|
113507
|
+
open = true;
|
|
113508
|
+
} else if (!open) {
|
|
113509
|
+
return i + 1;
|
|
113510
|
+
}
|
|
113511
|
+
}
|
|
113512
|
+
return -1;
|
|
113513
|
+
}
|
|
113514
|
+
exports2.indexOfPeersSuffix = indexOfPeersSuffix;
|
|
113474
113515
|
function tryGetPackageId(registries, relDepPath) {
|
|
113475
113516
|
if (relDepPath[0] !== "/") {
|
|
113476
113517
|
return null;
|
|
113477
113518
|
}
|
|
113478
|
-
const sepIndex = relDepPath
|
|
113519
|
+
const sepIndex = indexOfPeersSuffix(relDepPath);
|
|
113479
113520
|
if (sepIndex !== -1) {
|
|
113480
|
-
return resolve(registries, relDepPath.
|
|
113521
|
+
return resolve(registries, relDepPath.substring(0, sepIndex));
|
|
113481
113522
|
}
|
|
113482
113523
|
const underscoreIndex = relDepPath.indexOf("_", relDepPath.lastIndexOf("/"));
|
|
113483
113524
|
if (underscoreIndex !== -1) {
|
|
@@ -114418,7 +114459,7 @@ var require_inlineSpecifiersLockfileConverters = __commonJS({
|
|
|
114418
114459
|
return result2;
|
|
114419
114460
|
};
|
|
114420
114461
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
114421
|
-
exports2.
|
|
114462
|
+
exports2.convertLockfileV6DepPathToV5DepPath = exports2.revertFromInlineSpecifiersFormat = exports2.revertFromInlineSpecifiersFormatIfNecessary = exports2.convertToInlineSpecifiersFormat = exports2.isExperimentalInlineSpecifiersFormat = void 0;
|
|
114422
114463
|
var dp = __importStar4(require_lib78());
|
|
114423
114464
|
var InlineSpecifiersLockfile_1 = require_InlineSpecifiersLockfile();
|
|
114424
114465
|
function isExperimentalInlineSpecifiersFormat(lockfile) {
|
|
@@ -114527,7 +114568,7 @@ var require_inlineSpecifiersLockfileConverters = __commonJS({
|
|
|
114527
114568
|
if (newSnapshot.optionalDependencies != null) {
|
|
114528
114569
|
newSnapshot.optionalDependencies = mapValues(newSnapshot.optionalDependencies, convertNewRefToOldRef);
|
|
114529
114570
|
}
|
|
114530
|
-
return [
|
|
114571
|
+
return [convertLockfileV6DepPathToV5DepPath(depPath), newSnapshot];
|
|
114531
114572
|
}));
|
|
114532
114573
|
}
|
|
114533
114574
|
const newLockfile = {
|
|
@@ -114537,26 +114578,26 @@ var require_inlineSpecifiersLockfileConverters = __commonJS({
|
|
|
114537
114578
|
importers: revertedImporters
|
|
114538
114579
|
};
|
|
114539
114580
|
if (originalVersion === 6 && newLockfile.time) {
|
|
114540
|
-
newLockfile.time = Object.fromEntries(Object.entries(newLockfile.time).map(([depPath, time]) => [
|
|
114581
|
+
newLockfile.time = Object.fromEntries(Object.entries(newLockfile.time).map(([depPath, time]) => [convertLockfileV6DepPathToV5DepPath(depPath), time]));
|
|
114541
114582
|
}
|
|
114542
114583
|
return newLockfile;
|
|
114543
114584
|
}
|
|
114544
114585
|
exports2.revertFromInlineSpecifiersFormat = revertFromInlineSpecifiersFormat;
|
|
114545
|
-
function
|
|
114546
|
-
if (!
|
|
114547
|
-
return
|
|
114548
|
-
const index =
|
|
114549
|
-
if (
|
|
114550
|
-
return
|
|
114551
|
-
return `${
|
|
114552
|
-
}
|
|
114553
|
-
exports2.
|
|
114586
|
+
function convertLockfileV6DepPathToV5DepPath(newDepPath) {
|
|
114587
|
+
if (!newDepPath.includes("@", 2) || newDepPath.startsWith("file:"))
|
|
114588
|
+
return newDepPath;
|
|
114589
|
+
const index = newDepPath.indexOf("@", newDepPath.indexOf("/@") + 2);
|
|
114590
|
+
if (newDepPath.includes("(") && index > dp.indexOfPeersSuffix(newDepPath))
|
|
114591
|
+
return newDepPath;
|
|
114592
|
+
return `${newDepPath.substring(0, index)}/${newDepPath.substring(index + 1)}`;
|
|
114593
|
+
}
|
|
114594
|
+
exports2.convertLockfileV6DepPathToV5DepPath = convertLockfileV6DepPathToV5DepPath;
|
|
114554
114595
|
function convertNewRefToOldRef(oldRef) {
|
|
114555
114596
|
if (oldRef.startsWith("link:") || oldRef.startsWith("file:")) {
|
|
114556
114597
|
return oldRef;
|
|
114557
114598
|
}
|
|
114558
114599
|
if (oldRef.includes("@")) {
|
|
114559
|
-
return
|
|
114600
|
+
return convertLockfileV6DepPathToV5DepPath(oldRef);
|
|
114560
114601
|
}
|
|
114561
114602
|
return oldRef;
|
|
114562
114603
|
}
|
|
@@ -192708,7 +192749,8 @@ var require_install = __commonJS({
|
|
|
192708
192749
|
existsCurrentLockfile: ctx.existsCurrentLockfile,
|
|
192709
192750
|
existsWantedLockfile: ctx.existsWantedLockfile,
|
|
192710
192751
|
lockfileDir: ctx.lockfileDir,
|
|
192711
|
-
storeDir: ctx.storeDir
|
|
192752
|
+
storeDir: ctx.storeDir,
|
|
192753
|
+
registries: ctx.registries
|
|
192712
192754
|
});
|
|
192713
192755
|
}
|
|
192714
192756
|
const pruneVirtualStore = ctx.modulesFile?.prunedAt && opts.modulesCacheMaxAge > 0 ? cacheExpired(ctx.modulesFile.prunedAt, opts.modulesCacheMaxAge) : true;
|