pnpm 6.32.1 → 6.32.2
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/dist/node_modules/.modules.yaml +1 -1
- package/dist/pnpm.cjs +208 -203
- package/dist/pnpx.cjs +31 -7
- package/package.json +22 -22
package/dist/pnpm.cjs
CHANGED
|
@@ -3170,7 +3170,7 @@ var require_lib4 = __commonJS({
|
|
|
3170
3170
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3171
3171
|
var defaultManifest = {
|
|
3172
3172
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3173
|
-
version: "6.32.
|
|
3173
|
+
version: "6.32.2" != null && true ? "6.32.2" : "0.0.0"
|
|
3174
3174
|
};
|
|
3175
3175
|
var pkgJson;
|
|
3176
3176
|
if (require.main == null) {
|
|
@@ -12752,7 +12752,8 @@ var require_lib8 = __commonJS({
|
|
|
12752
12752
|
"../error/lib/index.js"(exports2) {
|
|
12753
12753
|
"use strict";
|
|
12754
12754
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12755
|
-
exports2.FetchError = void 0;
|
|
12755
|
+
exports2.LockfileMissingDependencyError = exports2.FetchError = void 0;
|
|
12756
|
+
var constants_1 = require_lib7();
|
|
12756
12757
|
var PnpmError = class extends Error {
|
|
12757
12758
|
constructor(code, message2, opts) {
|
|
12758
12759
|
super(message2);
|
|
@@ -12786,6 +12787,15 @@ var require_lib8 = __commonJS({
|
|
|
12786
12787
|
const [authType, token] = authHeaderValue.split(" ");
|
|
12787
12788
|
return `${authType} ${token.substring(0, 4)}[hidden]`;
|
|
12788
12789
|
}
|
|
12790
|
+
var LockfileMissingDependencyError = class extends PnpmError {
|
|
12791
|
+
constructor(depPath) {
|
|
12792
|
+
const message2 = `Broken lockfile: no entry for '${depPath}' in ${constants_1.WANTED_LOCKFILE}`;
|
|
12793
|
+
super("LOCKFILE_MISSING_DEPENDENCY", message2, {
|
|
12794
|
+
hint: "This issue is probably caused by a badly resolved merge conflict.\nTo fix the lockfile, run 'pnpm install --no-frozen-lockfile'."
|
|
12795
|
+
});
|
|
12796
|
+
}
|
|
12797
|
+
};
|
|
12798
|
+
exports2.LockfileMissingDependencyError = LockfileMissingDependencyError;
|
|
12789
12799
|
}
|
|
12790
12800
|
});
|
|
12791
12801
|
|
|
@@ -53448,9 +53458,9 @@ var require_depd = __commonJS({
|
|
|
53448
53458
|
}
|
|
53449
53459
|
});
|
|
53450
53460
|
|
|
53451
|
-
// ../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53461
|
+
// ../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/constants.js
|
|
53452
53462
|
var require_constants7 = __commonJS({
|
|
53453
|
-
"../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53463
|
+
"../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/constants.js"(exports2, module2) {
|
|
53454
53464
|
"use strict";
|
|
53455
53465
|
module2.exports = {
|
|
53456
53466
|
CURRENT_ID: Symbol("agentkeepalive#currentId"),
|
|
@@ -53465,9 +53475,9 @@ var require_constants7 = __commonJS({
|
|
|
53465
53475
|
}
|
|
53466
53476
|
});
|
|
53467
53477
|
|
|
53468
|
-
// ../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53478
|
+
// ../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/agent.js
|
|
53469
53479
|
var require_agent = __commonJS({
|
|
53470
|
-
"../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53480
|
+
"../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/agent.js"(exports2, module2) {
|
|
53471
53481
|
"use strict";
|
|
53472
53482
|
var OriginalAgent = require("http").Agent;
|
|
53473
53483
|
var ms = require_humanize_ms();
|
|
@@ -53743,9 +53753,9 @@ var require_agent = __commonJS({
|
|
|
53743
53753
|
}
|
|
53744
53754
|
});
|
|
53745
53755
|
|
|
53746
|
-
// ../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53756
|
+
// ../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/https_agent.js
|
|
53747
53757
|
var require_https_agent = __commonJS({
|
|
53748
|
-
"../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53758
|
+
"../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/lib/https_agent.js"(exports2, module2) {
|
|
53749
53759
|
"use strict";
|
|
53750
53760
|
var OriginalHttpsAgent = require("https").Agent;
|
|
53751
53761
|
var HttpAgent = require_agent();
|
|
@@ -53788,9 +53798,9 @@ var require_https_agent = __commonJS({
|
|
|
53788
53798
|
}
|
|
53789
53799
|
});
|
|
53790
53800
|
|
|
53791
|
-
// ../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53801
|
+
// ../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/index.js
|
|
53792
53802
|
var require_agentkeepalive = __commonJS({
|
|
53793
|
-
"../../node_modules/.pnpm/agentkeepalive@4.2.
|
|
53803
|
+
"../../node_modules/.pnpm/agentkeepalive@4.2.1/node_modules/agentkeepalive/index.js"(exports2, module2) {
|
|
53794
53804
|
"use strict";
|
|
53795
53805
|
module2.exports = require_agent();
|
|
53796
53806
|
module2.exports.HttpsAgent = require_https_agent();
|
|
@@ -74516,15 +74526,17 @@ var require_packageRequester = __commonJS({
|
|
|
74516
74526
|
}
|
|
74517
74527
|
};
|
|
74518
74528
|
}
|
|
74529
|
+
const pkg = (0, pick_1.default)(["name", "version"], manifest !== null && manifest !== void 0 ? manifest : {});
|
|
74519
74530
|
const fetchResult = ctx.fetchPackageToStore({
|
|
74520
74531
|
fetchRawManifest: true,
|
|
74521
74532
|
force: forceFetch,
|
|
74522
74533
|
lockfileDir: options.lockfileDir,
|
|
74523
74534
|
pkg: {
|
|
74524
|
-
...
|
|
74535
|
+
...pkg,
|
|
74525
74536
|
id,
|
|
74526
74537
|
resolution
|
|
74527
|
-
}
|
|
74538
|
+
},
|
|
74539
|
+
expectedPkg: ((_f = options.expectedPkg) === null || _f === void 0 ? void 0 : _f.name) != null ? options.expectedPkg : pkg
|
|
74528
74540
|
});
|
|
74529
74541
|
return {
|
|
74530
74542
|
body: {
|
|
@@ -74545,6 +74557,9 @@ var require_packageRequester = __commonJS({
|
|
|
74545
74557
|
};
|
|
74546
74558
|
}
|
|
74547
74559
|
function fetchToStore(ctx, opts) {
|
|
74560
|
+
if (!opts.pkg.name) {
|
|
74561
|
+
opts.fetchRawManifest = true;
|
|
74562
|
+
}
|
|
74548
74563
|
const targetRelative = (0, dependency_path_1.depPathToFilename)(opts.pkg.id, opts.lockfileDir);
|
|
74549
74564
|
const target = path_1.default.join(ctx.storeDir, targetRelative);
|
|
74550
74565
|
if (!ctx.fetchingLocker.has(opts.pkg.id)) {
|
|
@@ -74616,6 +74631,7 @@ var require_packageRequester = __commonJS({
|
|
|
74616
74631
|
}
|
|
74617
74632
|
}
|
|
74618
74633
|
async function doFetchToStore(filesIndexFile, bundledManifest, files, finishing) {
|
|
74634
|
+
var _a, _b;
|
|
74619
74635
|
try {
|
|
74620
74636
|
const isLocalTarballDep = opts.pkg.id.startsWith("file:");
|
|
74621
74637
|
const isLocalPkg = opts.pkg.resolution.type === "directory";
|
|
@@ -74627,8 +74643,8 @@ var require_packageRequester = __commonJS({
|
|
|
74627
74643
|
}
|
|
74628
74644
|
if ((pkgFilesIndex === null || pkgFilesIndex === void 0 ? void 0 : pkgFilesIndex.files) != null) {
|
|
74629
74645
|
const manifest = opts.fetchRawManifest ? (0, safeDeferredPromise_1.default)() : void 0;
|
|
74630
|
-
if (pkgFilesIndex.name != null && opts.
|
|
74631
|
-
throw new error_1.default("UNEXPECTED_PKG_CONTENT_IN_STORE", `Package name mismatch found while reading ${JSON.stringify(opts.pkg.resolution)} from the store. This means that the lockfile is broken. Expected package: ${opts.
|
|
74646
|
+
if (pkgFilesIndex.name != null && ((_a = opts.expectedPkg) === null || _a === void 0 ? void 0 : _a.name) != null && pkgFilesIndex.name.toLowerCase() !== opts.expectedPkg.name.toLowerCase() || pkgFilesIndex.version != null && ((_b = opts.expectedPkg) === null || _b === void 0 ? void 0 : _b.version) != null && !(0, equalOrSemverEqual_1.default)(pkgFilesIndex.version, opts.expectedPkg.version)) {
|
|
74647
|
+
throw new error_1.default("UNEXPECTED_PKG_CONTENT_IN_STORE", `Package name mismatch found while reading ${JSON.stringify(opts.pkg.resolution)} from the store. This means that the lockfile is broken. Expected package: ${opts.expectedPkg.name}@${opts.expectedPkg.version}. Actual package in the store by the given integrity: ${pkgFilesIndex.name}@${pkgFilesIndex.version}.`);
|
|
74632
74648
|
}
|
|
74633
74649
|
const verified = await ctx.checkFilesIntegrity(pkgFilesIndex.files, manifest);
|
|
74634
74650
|
if (verified) {
|
|
@@ -74686,11 +74702,17 @@ var require_packageRequester = __commonJS({
|
|
|
74686
74702
|
size: filesIndex[filename].size
|
|
74687
74703
|
};
|
|
74688
74704
|
}));
|
|
74689
|
-
|
|
74690
|
-
|
|
74691
|
-
|
|
74692
|
-
|
|
74693
|
-
|
|
74705
|
+
if (opts.pkg.name && opts.pkg.version) {
|
|
74706
|
+
await writeFilesIndexFile(filesIndexFile, {
|
|
74707
|
+
pkg: opts.pkg,
|
|
74708
|
+
files: integrity
|
|
74709
|
+
});
|
|
74710
|
+
} else {
|
|
74711
|
+
bundledManifest.promise.then((manifest) => writeFilesIndexFile(filesIndexFile, {
|
|
74712
|
+
pkg: manifest,
|
|
74713
|
+
files: integrity
|
|
74714
|
+
})).catch();
|
|
74715
|
+
}
|
|
74694
74716
|
filesResult = {
|
|
74695
74717
|
fromStore: false,
|
|
74696
74718
|
filesIndex: integrity
|
|
@@ -74717,6 +74739,13 @@ var require_packageRequester = __commonJS({
|
|
|
74717
74739
|
}
|
|
74718
74740
|
}
|
|
74719
74741
|
}
|
|
74742
|
+
async function writeFilesIndexFile(filesIndexFile, { pkg, files }) {
|
|
74743
|
+
await writeJsonFile(filesIndexFile, {
|
|
74744
|
+
name: pkg.name,
|
|
74745
|
+
version: pkg.version,
|
|
74746
|
+
files
|
|
74747
|
+
});
|
|
74748
|
+
}
|
|
74720
74749
|
async function writeJsonFile(filePath, data) {
|
|
74721
74750
|
const targetDir = path_1.default.dirname(filePath);
|
|
74722
74751
|
await fs_1.promises.mkdir(targetDir, { recursive: true });
|
|
@@ -92643,9 +92672,9 @@ var require_tslib = __commonJS({
|
|
|
92643
92672
|
}
|
|
92644
92673
|
});
|
|
92645
92674
|
|
|
92646
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
92675
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/constants.js
|
|
92647
92676
|
var require_constants10 = __commonJS({
|
|
92648
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
92677
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/constants.js"(exports2) {
|
|
92649
92678
|
"use strict";
|
|
92650
92679
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
92651
92680
|
exports2.SAFE_TIME = exports2.S_IFLNK = exports2.S_IFREG = exports2.S_IFDIR = exports2.S_IFMT = void 0;
|
|
@@ -92657,9 +92686,9 @@ var require_constants10 = __commonJS({
|
|
|
92657
92686
|
}
|
|
92658
92687
|
});
|
|
92659
92688
|
|
|
92660
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
92689
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/statUtils.js
|
|
92661
92690
|
var require_statUtils = __commonJS({
|
|
92662
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
92691
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/statUtils.js"(exports2) {
|
|
92663
92692
|
"use strict";
|
|
92664
92693
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
92665
92694
|
exports2.areStatsEqual = exports2.convertToBigIntStats = exports2.clearStats = exports2.makeEmptyStats = exports2.makeDefaultStats = exports2.BigIntStatsEntry = exports2.StatEntry = exports2.DirEntry = exports2.DEFAULT_MODE = void 0;
|
|
@@ -92889,9 +92918,9 @@ var require_statUtils = __commonJS({
|
|
|
92889
92918
|
}
|
|
92890
92919
|
});
|
|
92891
92920
|
|
|
92892
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
92921
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/path.js
|
|
92893
92922
|
var require_path4 = __commonJS({
|
|
92894
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
92923
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/path.js"(exports2) {
|
|
92895
92924
|
"use strict";
|
|
92896
92925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
92897
92926
|
exports2.toFilename = exports2.convertPath = exports2.ppath = exports2.npath = exports2.Filename = exports2.PortablePath = void 0;
|
|
@@ -92984,9 +93013,9 @@ var require_path4 = __commonJS({
|
|
|
92984
93013
|
}
|
|
92985
93014
|
});
|
|
92986
93015
|
|
|
92987
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93016
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.js
|
|
92988
93017
|
var require_copyPromise = __commonJS({
|
|
92989
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93018
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.js"(exports2) {
|
|
92990
93019
|
"use strict";
|
|
92991
93020
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
92992
93021
|
exports2.copyPromise = exports2.LinkStrategy = void 0;
|
|
@@ -93005,8 +93034,8 @@ var require_copyPromise = __commonJS({
|
|
|
93005
93034
|
const normalizedSource = sourceFs.pathUtils.normalize(source);
|
|
93006
93035
|
const prelayout = [];
|
|
93007
93036
|
const postlayout = [];
|
|
93008
|
-
const
|
|
93009
|
-
await destinationFs.mkdirpPromise(destinationFs.pathUtils.dirname(destination), { utimes: [
|
|
93037
|
+
const { atime, mtime } = opts.stableTime ? { atime: defaultTime, mtime: defaultTime } : await sourceFs.lstatPromise(normalizedSource);
|
|
93038
|
+
await destinationFs.mkdirpPromise(destinationFs.pathUtils.dirname(destination), { utimes: [atime, mtime] });
|
|
93010
93039
|
const updateTime = typeof destinationFs.lutimesPromise === `function` ? destinationFs.lutimesPromise.bind(destinationFs) : destinationFs.utimesPromise.bind(destinationFs);
|
|
93011
93040
|
await copyImpl(prelayout, postlayout, updateTime, destinationFs, normalizedDestination, sourceFs, normalizedSource, { ...opts, didParentExist: true });
|
|
93012
93041
|
for (const operation of prelayout)
|
|
@@ -93020,7 +93049,7 @@ var require_copyPromise = __commonJS({
|
|
|
93020
93049
|
var _a, _b;
|
|
93021
93050
|
const destinationStat = opts.didParentExist ? await maybeLStat(destinationFs, destination) : null;
|
|
93022
93051
|
const sourceStat = await sourceFs.lstatPromise(source);
|
|
93023
|
-
const
|
|
93052
|
+
const { atime, mtime } = opts.stableTime ? { atime: defaultTime, mtime: defaultTime } : sourceStat;
|
|
93024
93053
|
let updated;
|
|
93025
93054
|
switch (true) {
|
|
93026
93055
|
case sourceStat.isDirectory():
|
|
@@ -93044,8 +93073,8 @@ var require_copyPromise = __commonJS({
|
|
|
93044
93073
|
}
|
|
93045
93074
|
break;
|
|
93046
93075
|
}
|
|
93047
|
-
if (updated || ((_a = destinationStat === null || destinationStat === void 0 ? void 0 : destinationStat.mtime) === null || _a === void 0 ? void 0 : _a.getTime()) !==
|
|
93048
|
-
postlayout.push(() => updateTime(destination,
|
|
93076
|
+
if (updated || ((_a = destinationStat === null || destinationStat === void 0 ? void 0 : destinationStat.mtime) === null || _a === void 0 ? void 0 : _a.getTime()) !== mtime.getTime() || ((_b = destinationStat === null || destinationStat === void 0 ? void 0 : destinationStat.atime) === null || _b === void 0 ? void 0 : _b.getTime()) !== atime.getTime()) {
|
|
93077
|
+
postlayout.push(() => updateTime(destination, atime, mtime));
|
|
93049
93078
|
updated = true;
|
|
93050
93079
|
}
|
|
93051
93080
|
if (destinationStat === null || (destinationStat.mode & 511) !== (sourceStat.mode & 511)) {
|
|
@@ -93167,9 +93196,9 @@ var require_copyPromise = __commonJS({
|
|
|
93167
93196
|
}
|
|
93168
93197
|
});
|
|
93169
93198
|
|
|
93170
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93199
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/errors.js
|
|
93171
93200
|
var require_errors4 = __commonJS({
|
|
93172
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93201
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/errors.js"(exports2) {
|
|
93173
93202
|
"use strict";
|
|
93174
93203
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93175
93204
|
exports2.LibzipError = exports2.ERR_DIR_CLOSED = exports2.EOPNOTSUPP = exports2.ENOTEMPTY = exports2.EROFS = exports2.EEXIST = exports2.EISDIR = exports2.ENOTDIR = exports2.ENOENT = exports2.EBADF = exports2.EINVAL = exports2.ENOSYS = exports2.EBUSY = void 0;
|
|
@@ -93235,9 +93264,9 @@ var require_errors4 = __commonJS({
|
|
|
93235
93264
|
}
|
|
93236
93265
|
});
|
|
93237
93266
|
|
|
93238
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93267
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/opendir.js
|
|
93239
93268
|
var require_opendir = __commonJS({
|
|
93240
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93269
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/opendir.js"(exports2) {
|
|
93241
93270
|
"use strict";
|
|
93242
93271
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93243
93272
|
exports2.opendir = exports2.CustomDir = void 0;
|
|
@@ -93304,9 +93333,9 @@ var require_opendir = __commonJS({
|
|
|
93304
93333
|
}
|
|
93305
93334
|
});
|
|
93306
93335
|
|
|
93307
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93336
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/FakeFS.js
|
|
93308
93337
|
var require_FakeFS = __commonJS({
|
|
93309
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93338
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/FakeFS.js"(exports2) {
|
|
93310
93339
|
"use strict";
|
|
93311
93340
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93312
93341
|
exports2.normalizeLineEndings = exports2.BasePortableFakeFS = exports2.FakeFS = void 0;
|
|
@@ -93354,24 +93383,18 @@ var require_FakeFS = __commonJS({
|
|
|
93354
93383
|
return this.removePromise(this.pathUtils.resolve(p, entry));
|
|
93355
93384
|
}));
|
|
93356
93385
|
}
|
|
93357
|
-
let t = 0;
|
|
93358
|
-
do {
|
|
93386
|
+
for (let t = 0; t <= maxRetries; t++) {
|
|
93359
93387
|
try {
|
|
93360
93388
|
await this.rmdirPromise(p);
|
|
93361
93389
|
break;
|
|
93362
93390
|
} catch (error) {
|
|
93363
|
-
if (error.code
|
|
93364
|
-
if (maxRetries === 0) {
|
|
93365
|
-
break;
|
|
93366
|
-
} else {
|
|
93367
|
-
await new Promise((resolve) => setTimeout(resolve, t * 100));
|
|
93368
|
-
continue;
|
|
93369
|
-
}
|
|
93370
|
-
} else {
|
|
93391
|
+
if (error.code !== `EBUSY` && error.code !== `ENOTEMPTY`) {
|
|
93371
93392
|
throw error;
|
|
93393
|
+
} else if (t < maxRetries) {
|
|
93394
|
+
await new Promise((resolve) => setTimeout(resolve, t * 100));
|
|
93372
93395
|
}
|
|
93373
93396
|
}
|
|
93374
|
-
}
|
|
93397
|
+
}
|
|
93375
93398
|
} else {
|
|
93376
93399
|
await this.unlinkPromise(p);
|
|
93377
93400
|
}
|
|
@@ -93690,9 +93713,9 @@ var require_FakeFS = __commonJS({
|
|
|
93690
93713
|
}
|
|
93691
93714
|
});
|
|
93692
93715
|
|
|
93693
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93716
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/NodeFS.js
|
|
93694
93717
|
var require_NodeFS = __commonJS({
|
|
93695
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
93718
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/NodeFS.js"(exports2) {
|
|
93696
93719
|
"use strict";
|
|
93697
93720
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93698
93721
|
exports2.NodeFS = void 0;
|
|
@@ -94063,9 +94086,9 @@ var require_NodeFS = __commonJS({
|
|
|
94063
94086
|
}
|
|
94064
94087
|
});
|
|
94065
94088
|
|
|
94066
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
94089
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.js
|
|
94067
94090
|
var require_CustomStatWatcher = __commonJS({
|
|
94068
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
94091
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.js"(exports2) {
|
|
94069
94092
|
"use strict";
|
|
94070
94093
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
94071
94094
|
exports2.CustomStatWatcher = exports2.assertStatus = exports2.Status = exports2.Event = void 0;
|
|
@@ -94177,9 +94200,9 @@ var require_CustomStatWatcher = __commonJS({
|
|
|
94177
94200
|
}
|
|
94178
94201
|
});
|
|
94179
94202
|
|
|
94180
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
94203
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile.js
|
|
94181
94204
|
var require_watchFile = __commonJS({
|
|
94182
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
94205
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile.js"(exports2) {
|
|
94183
94206
|
"use strict";
|
|
94184
94207
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
94185
94208
|
exports2.unwatchAllFiles = exports2.unwatchFile = exports2.watchFile = void 0;
|
|
@@ -94251,9 +94274,9 @@ var require_watchFile = __commonJS({
|
|
|
94251
94274
|
}
|
|
94252
94275
|
});
|
|
94253
94276
|
|
|
94254
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
94277
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/ZipFS.js
|
|
94255
94278
|
var require_ZipFS = __commonJS({
|
|
94256
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
94279
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/ZipFS.js"(exports2) {
|
|
94257
94280
|
"use strict";
|
|
94258
94281
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
94259
94282
|
exports2.ZipFS = exports2.makeEmptyArchive = exports2.DEFAULT_COMPRESSION_LEVEL = void 0;
|
|
@@ -94532,11 +94555,7 @@ var require_ZipFS = __commonJS({
|
|
|
94532
94555
|
const entry = this.fds.get(fd);
|
|
94533
94556
|
if (typeof entry === `undefined`)
|
|
94534
94557
|
throw errors.EBADF(`read`);
|
|
94535
|
-
|
|
94536
|
-
if (position === -1 || position === null)
|
|
94537
|
-
realPosition = entry.cursor;
|
|
94538
|
-
else
|
|
94539
|
-
realPosition = position;
|
|
94558
|
+
const realPosition = position === -1 || position === null ? entry.cursor : position;
|
|
94540
94559
|
const source = this.readFileSync(entry.p);
|
|
94541
94560
|
source.copy(buffer, offset, realPosition, realPosition + length);
|
|
94542
94561
|
const bytesRead = Math.max(0, Math.min(source.length - realPosition, length));
|
|
@@ -94767,14 +94786,14 @@ var require_ZipFS = __commonJS({
|
|
|
94767
94786
|
return this.libzip.getValue(this.libzip.uint32S, `i32`) >>> 16;
|
|
94768
94787
|
}
|
|
94769
94788
|
registerListing(p) {
|
|
94770
|
-
|
|
94771
|
-
if (
|
|
94772
|
-
return
|
|
94789
|
+
const existingListing = this.listings.get(p);
|
|
94790
|
+
if (existingListing)
|
|
94791
|
+
return existingListing;
|
|
94773
94792
|
const parentListing = this.registerListing(path_1.ppath.dirname(p));
|
|
94774
|
-
listing = /* @__PURE__ */ new Set();
|
|
94775
94793
|
parentListing.add(path_1.ppath.basename(p));
|
|
94776
|
-
|
|
94777
|
-
|
|
94794
|
+
const newListing = /* @__PURE__ */ new Set();
|
|
94795
|
+
this.listings.set(p, newListing);
|
|
94796
|
+
return newListing;
|
|
94778
94797
|
}
|
|
94779
94798
|
registerEntry(p, index) {
|
|
94780
94799
|
const parentListing = this.registerListing(path_1.ppath.dirname(p));
|
|
@@ -94880,11 +94899,7 @@ var require_ZipFS = __commonJS({
|
|
|
94880
94899
|
if (newIndex === -1)
|
|
94881
94900
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|
94882
94901
|
if (this.level !== `mixed`) {
|
|
94883
|
-
|
|
94884
|
-
if (this.level === 0)
|
|
94885
|
-
method = this.libzip.ZIP_CM_STORE;
|
|
94886
|
-
else
|
|
94887
|
-
method = this.libzip.ZIP_CM_DEFLATE;
|
|
94902
|
+
const method = this.level === 0 ? this.libzip.ZIP_CM_STORE : this.libzip.ZIP_CM_DEFLATE;
|
|
94888
94903
|
const rc = this.libzip.file.setCompression(this.zip, newIndex, 0, method, this.level);
|
|
94889
94904
|
if (rc === -1) {
|
|
94890
94905
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|
@@ -95348,9 +95363,9 @@ var require_ZipFS = __commonJS({
|
|
|
95348
95363
|
}
|
|
95349
95364
|
});
|
|
95350
95365
|
|
|
95351
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95366
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js
|
|
95352
95367
|
var require_ProxiedFS = __commonJS({
|
|
95353
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95368
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js"(exports2) {
|
|
95354
95369
|
"use strict";
|
|
95355
95370
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95356
95371
|
exports2.ProxiedFS = void 0;
|
|
@@ -95580,9 +95595,9 @@ var require_ProxiedFS = __commonJS({
|
|
|
95580
95595
|
}
|
|
95581
95596
|
});
|
|
95582
95597
|
|
|
95583
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95598
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/AliasFS.js
|
|
95584
95599
|
var require_AliasFS = __commonJS({
|
|
95585
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95600
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/AliasFS.js"(exports2) {
|
|
95586
95601
|
"use strict";
|
|
95587
95602
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95588
95603
|
exports2.AliasFS = void 0;
|
|
@@ -95610,9 +95625,9 @@ var require_AliasFS = __commonJS({
|
|
|
95610
95625
|
}
|
|
95611
95626
|
});
|
|
95612
95627
|
|
|
95613
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95628
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/CwdFS.js
|
|
95614
95629
|
var require_CwdFS = __commonJS({
|
|
95615
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95630
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/CwdFS.js"(exports2) {
|
|
95616
95631
|
"use strict";
|
|
95617
95632
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95618
95633
|
exports2.CwdFS = void 0;
|
|
@@ -95650,9 +95665,9 @@ var require_CwdFS = __commonJS({
|
|
|
95650
95665
|
}
|
|
95651
95666
|
});
|
|
95652
95667
|
|
|
95653
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95668
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/JailFS.js
|
|
95654
95669
|
var require_JailFS = __commonJS({
|
|
95655
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95670
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/JailFS.js"(exports2) {
|
|
95656
95671
|
"use strict";
|
|
95657
95672
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95658
95673
|
exports2.JailFS = void 0;
|
|
@@ -95691,9 +95706,9 @@ var require_JailFS = __commonJS({
|
|
|
95691
95706
|
}
|
|
95692
95707
|
});
|
|
95693
95708
|
|
|
95694
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95709
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/LazyFS.js
|
|
95695
95710
|
var require_LazyFS = __commonJS({
|
|
95696
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95711
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/LazyFS.js"(exports2) {
|
|
95697
95712
|
"use strict";
|
|
95698
95713
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95699
95714
|
exports2.LazyFS = void 0;
|
|
@@ -95723,9 +95738,9 @@ var require_LazyFS = __commonJS({
|
|
|
95723
95738
|
}
|
|
95724
95739
|
});
|
|
95725
95740
|
|
|
95726
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95741
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/NoFS.js
|
|
95727
95742
|
var require_NoFS = __commonJS({
|
|
95728
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95743
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/NoFS.js"(exports2) {
|
|
95729
95744
|
"use strict";
|
|
95730
95745
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95731
95746
|
exports2.NoFS = void 0;
|
|
@@ -95928,9 +95943,9 @@ var require_NoFS = __commonJS({
|
|
|
95928
95943
|
}
|
|
95929
95944
|
});
|
|
95930
95945
|
|
|
95931
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95946
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/PosixFS.js
|
|
95932
95947
|
var require_PosixFS = __commonJS({
|
|
95933
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95948
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/PosixFS.js"(exports2) {
|
|
95934
95949
|
"use strict";
|
|
95935
95950
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95936
95951
|
exports2.PosixFS = void 0;
|
|
@@ -95952,9 +95967,9 @@ var require_PosixFS = __commonJS({
|
|
|
95952
95967
|
}
|
|
95953
95968
|
});
|
|
95954
95969
|
|
|
95955
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95970
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/VirtualFS.js
|
|
95956
95971
|
var require_VirtualFS = __commonJS({
|
|
95957
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
95972
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/VirtualFS.js"(exports2) {
|
|
95958
95973
|
"use strict";
|
|
95959
95974
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95960
95975
|
exports2.VirtualFS = void 0;
|
|
@@ -96039,9 +96054,9 @@ var require_VirtualFS = __commonJS({
|
|
|
96039
96054
|
}
|
|
96040
96055
|
});
|
|
96041
96056
|
|
|
96042
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
96057
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js
|
|
96043
96058
|
var require_ZipOpenFS = __commonJS({
|
|
96044
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
96059
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/ZipOpenFS.js"(exports2) {
|
|
96045
96060
|
"use strict";
|
|
96046
96061
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
96047
96062
|
exports2.ZipOpenFS = exports2.getArchivePart = void 0;
|
|
@@ -96856,9 +96871,9 @@ var require_ZipOpenFS = __commonJS({
|
|
|
96856
96871
|
}
|
|
96857
96872
|
});
|
|
96858
96873
|
|
|
96859
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
96874
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/URLFS.js
|
|
96860
96875
|
var require_URLFS = __commonJS({
|
|
96861
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
96876
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/URLFS.js"(exports2) {
|
|
96862
96877
|
"use strict";
|
|
96863
96878
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
96864
96879
|
exports2.URLFS = void 0;
|
|
@@ -96883,9 +96898,9 @@ var require_URLFS = __commonJS({
|
|
|
96883
96898
|
}
|
|
96884
96899
|
});
|
|
96885
96900
|
|
|
96886
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
96901
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/patchFs.js
|
|
96887
96902
|
var require_patchFs = __commonJS({
|
|
96888
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
96903
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/patchFs.js"(exports2) {
|
|
96889
96904
|
"use strict";
|
|
96890
96905
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
96891
96906
|
exports2.extendFs = exports2.patchFs = void 0;
|
|
@@ -97141,9 +97156,9 @@ var require_patchFs = __commonJS({
|
|
|
97141
97156
|
}
|
|
97142
97157
|
});
|
|
97143
97158
|
|
|
97144
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
97159
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/xfs.js
|
|
97145
97160
|
var require_xfs = __commonJS({
|
|
97146
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
97161
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/xfs.js"(exports2) {
|
|
97147
97162
|
"use strict";
|
|
97148
97163
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
97149
97164
|
exports2.xfs = void 0;
|
|
@@ -97152,30 +97167,34 @@ var require_xfs = __commonJS({
|
|
|
97152
97167
|
var NodeFS_1 = require_NodeFS();
|
|
97153
97168
|
var path_1 = require_path4();
|
|
97154
97169
|
function getTempName(prefix) {
|
|
97155
|
-
const tmpdir = path_1.npath.toPortablePath(os_1.default.tmpdir());
|
|
97156
97170
|
const hash = Math.ceil(Math.random() * 4294967296).toString(16).padStart(8, `0`);
|
|
97157
|
-
return
|
|
97171
|
+
return `${prefix}${hash}`;
|
|
97158
97172
|
}
|
|
97159
97173
|
var tmpdirs = /* @__PURE__ */ new Set();
|
|
97160
|
-
var
|
|
97161
|
-
function
|
|
97162
|
-
if (
|
|
97163
|
-
return;
|
|
97164
|
-
|
|
97174
|
+
var tmpEnv = null;
|
|
97175
|
+
function initTmpEnv() {
|
|
97176
|
+
if (tmpEnv)
|
|
97177
|
+
return tmpEnv;
|
|
97178
|
+
const tmpdir = path_1.npath.toPortablePath(os_1.default.tmpdir());
|
|
97179
|
+
const realTmpdir = exports2.xfs.realpathSync(tmpdir);
|
|
97165
97180
|
process.once(`exit`, () => {
|
|
97166
97181
|
exports2.xfs.rmtempSync();
|
|
97167
97182
|
});
|
|
97183
|
+
return tmpEnv = {
|
|
97184
|
+
tmpdir,
|
|
97185
|
+
realTmpdir
|
|
97186
|
+
};
|
|
97168
97187
|
}
|
|
97169
97188
|
exports2.xfs = Object.assign(new NodeFS_1.NodeFS(), {
|
|
97170
97189
|
detachTemp(p) {
|
|
97171
97190
|
tmpdirs.delete(p);
|
|
97172
97191
|
},
|
|
97173
97192
|
mktempSync(cb) {
|
|
97174
|
-
|
|
97193
|
+
const { tmpdir, realTmpdir } = initTmpEnv();
|
|
97175
97194
|
while (true) {
|
|
97176
|
-
const
|
|
97195
|
+
const name = getTempName(`xfs-`);
|
|
97177
97196
|
try {
|
|
97178
|
-
this.mkdirSync(
|
|
97197
|
+
this.mkdirSync(path_1.ppath.join(tmpdir, name));
|
|
97179
97198
|
} catch (error) {
|
|
97180
97199
|
if (error.code === `EEXIST`) {
|
|
97181
97200
|
continue;
|
|
@@ -97183,31 +97202,29 @@ var require_xfs = __commonJS({
|
|
|
97183
97202
|
throw error;
|
|
97184
97203
|
}
|
|
97185
97204
|
}
|
|
97186
|
-
const realP =
|
|
97205
|
+
const realP = path_1.ppath.join(realTmpdir, name);
|
|
97187
97206
|
tmpdirs.add(realP);
|
|
97188
|
-
if (typeof cb
|
|
97189
|
-
|
|
97190
|
-
|
|
97191
|
-
|
|
97192
|
-
|
|
97193
|
-
|
|
97194
|
-
|
|
97195
|
-
|
|
97196
|
-
|
|
97197
|
-
|
|
97207
|
+
if (typeof cb === `undefined`)
|
|
97208
|
+
return realP;
|
|
97209
|
+
try {
|
|
97210
|
+
return cb(realP);
|
|
97211
|
+
} finally {
|
|
97212
|
+
if (tmpdirs.has(realP)) {
|
|
97213
|
+
tmpdirs.delete(realP);
|
|
97214
|
+
try {
|
|
97215
|
+
this.removeSync(realP);
|
|
97216
|
+
} catch {
|
|
97198
97217
|
}
|
|
97199
97218
|
}
|
|
97200
|
-
} else {
|
|
97201
|
-
return realP;
|
|
97202
97219
|
}
|
|
97203
97220
|
}
|
|
97204
97221
|
},
|
|
97205
97222
|
async mktempPromise(cb) {
|
|
97206
|
-
|
|
97223
|
+
const { tmpdir, realTmpdir } = initTmpEnv();
|
|
97207
97224
|
while (true) {
|
|
97208
|
-
const
|
|
97225
|
+
const name = getTempName(`xfs-`);
|
|
97209
97226
|
try {
|
|
97210
|
-
await this.mkdirPromise(
|
|
97227
|
+
await this.mkdirPromise(path_1.ppath.join(tmpdir, name));
|
|
97211
97228
|
} catch (error) {
|
|
97212
97229
|
if (error.code === `EEXIST`) {
|
|
97213
97230
|
continue;
|
|
@@ -97215,22 +97232,20 @@ var require_xfs = __commonJS({
|
|
|
97215
97232
|
throw error;
|
|
97216
97233
|
}
|
|
97217
97234
|
}
|
|
97218
|
-
const realP =
|
|
97235
|
+
const realP = path_1.ppath.join(realTmpdir, name);
|
|
97219
97236
|
tmpdirs.add(realP);
|
|
97220
|
-
if (typeof cb
|
|
97221
|
-
|
|
97222
|
-
|
|
97223
|
-
|
|
97224
|
-
|
|
97225
|
-
|
|
97226
|
-
|
|
97227
|
-
|
|
97228
|
-
|
|
97229
|
-
|
|
97237
|
+
if (typeof cb === `undefined`)
|
|
97238
|
+
return realP;
|
|
97239
|
+
try {
|
|
97240
|
+
return await cb(realP);
|
|
97241
|
+
} finally {
|
|
97242
|
+
if (tmpdirs.has(realP)) {
|
|
97243
|
+
tmpdirs.delete(realP);
|
|
97244
|
+
try {
|
|
97245
|
+
await this.removePromise(realP);
|
|
97246
|
+
} catch {
|
|
97230
97247
|
}
|
|
97231
97248
|
}
|
|
97232
|
-
} else {
|
|
97233
|
-
return realP;
|
|
97234
97249
|
}
|
|
97235
97250
|
}
|
|
97236
97251
|
},
|
|
@@ -97256,9 +97271,9 @@ var require_xfs = __commonJS({
|
|
|
97256
97271
|
}
|
|
97257
97272
|
});
|
|
97258
97273
|
|
|
97259
|
-
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
97274
|
+
// ../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/index.js
|
|
97260
97275
|
var require_lib68 = __commonJS({
|
|
97261
|
-
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1
|
|
97276
|
+
"../../node_modules/.pnpm/@yarnpkg+fslib@2.6.1/node_modules/@yarnpkg/fslib/lib/index.js"(exports2) {
|
|
97262
97277
|
"use strict";
|
|
97263
97278
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
97264
97279
|
exports2.xfs = exports2.extendFs = exports2.patchFs = exports2.ZipOpenFS = exports2.ZipFS = exports2.VirtualFS = exports2.ProxiedFS = exports2.PosixFS = exports2.NodeFS = exports2.NoFS = exports2.LazyFS = exports2.JailFS = exports2.CwdFS = exports2.FakeFS = exports2.AliasFS = exports2.toFilename = exports2.ppath = exports2.npath = exports2.Filename = exports2.PortablePath = exports2.DEFAULT_COMPRESSION_LEVEL = exports2.normalizeLineEndings = exports2.statUtils = exports2.opendir = exports2.LinkStrategy = exports2.constants = void 0;
|
|
@@ -97362,9 +97377,9 @@ var require_lib68 = __commonJS({
|
|
|
97362
97377
|
}
|
|
97363
97378
|
});
|
|
97364
97379
|
|
|
97365
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
97380
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/grammars/shell.js
|
|
97366
97381
|
var require_shell = __commonJS({
|
|
97367
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
97382
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/grammars/shell.js"(exports2, module2) {
|
|
97368
97383
|
"use strict";
|
|
97369
97384
|
function peg$subclass(child, parent) {
|
|
97370
97385
|
function ctor() {
|
|
@@ -100880,9 +100895,9 @@ var require_shell = __commonJS({
|
|
|
100880
100895
|
}
|
|
100881
100896
|
});
|
|
100882
100897
|
|
|
100883
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
100898
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/shell.js
|
|
100884
100899
|
var require_shell2 = __commonJS({
|
|
100885
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
100900
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/shell.js"(exports2) {
|
|
100886
100901
|
"use strict";
|
|
100887
100902
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
100888
100903
|
exports2.stringifyShell = exports2.stringifyArithmeticExpression = exports2.stringifyArgumentSegment = exports2.stringifyValueArgument = exports2.stringifyRedirectArgument = exports2.stringifyArgument = exports2.stringifyEnvSegment = exports2.stringifyCommand = exports2.stringifyCommandChainThen = exports2.stringifyCommandChain = exports2.stringifyCommandLineThen = exports2.stringifyCommandLine = exports2.stringifyShellLine = exports2.parseShell = void 0;
|
|
@@ -101011,9 +101026,9 @@ var require_shell2 = __commonJS({
|
|
|
101011
101026
|
}
|
|
101012
101027
|
});
|
|
101013
101028
|
|
|
101014
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
101029
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/grammars/resolution.js
|
|
101015
101030
|
var require_resolution = __commonJS({
|
|
101016
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
101031
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/grammars/resolution.js"(exports2, module2) {
|
|
101017
101032
|
"use strict";
|
|
101018
101033
|
function peg$subclass(child, parent) {
|
|
101019
101034
|
function ctor() {
|
|
@@ -101442,9 +101457,9 @@ var require_resolution = __commonJS({
|
|
|
101442
101457
|
}
|
|
101443
101458
|
});
|
|
101444
101459
|
|
|
101445
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
101460
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/resolution.js
|
|
101446
101461
|
var require_resolution2 = __commonJS({
|
|
101447
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
101462
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/resolution.js"(exports2) {
|
|
101448
101463
|
"use strict";
|
|
101449
101464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
101450
101465
|
exports2.stringifyResolution = exports2.parseResolution = void 0;
|
|
@@ -101479,9 +101494,9 @@ var require_resolution2 = __commonJS({
|
|
|
101479
101494
|
}
|
|
101480
101495
|
});
|
|
101481
101496
|
|
|
101482
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
101497
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/grammars/syml.js
|
|
101483
101498
|
var require_syml = __commonJS({
|
|
101484
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
101499
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/grammars/syml.js"(exports2, module2) {
|
|
101485
101500
|
"use strict";
|
|
101486
101501
|
function peg$subclass(child, parent) {
|
|
101487
101502
|
function ctor() {
|
|
@@ -103278,9 +103293,9 @@ var require_syml = __commonJS({
|
|
|
103278
103293
|
}
|
|
103279
103294
|
});
|
|
103280
103295
|
|
|
103281
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
103296
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/syml.js
|
|
103282
103297
|
var require_syml2 = __commonJS({
|
|
103283
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
103298
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/syml.js"(exports2) {
|
|
103284
103299
|
"use strict";
|
|
103285
103300
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103286
103301
|
exports2.parseSyml = exports2.stringifySyml = exports2.PreserveOrdering = void 0;
|
|
@@ -103422,9 +103437,9 @@ ${fields}`;
|
|
|
103422
103437
|
}
|
|
103423
103438
|
});
|
|
103424
103439
|
|
|
103425
|
-
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
103440
|
+
// ../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/index.js
|
|
103426
103441
|
var require_lib69 = __commonJS({
|
|
103427
|
-
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0
|
|
103442
|
+
"../../node_modules/.pnpm/@yarnpkg+parsers@2.5.0/node_modules/@yarnpkg/parsers/lib/index.js"(exports2) {
|
|
103428
103443
|
"use strict";
|
|
103429
103444
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103430
103445
|
exports2.stringifySyml = exports2.parseSyml = exports2.stringifyResolution = exports2.parseResolution = exports2.stringifyValueArgument = exports2.stringifyShellLine = exports2.stringifyRedirectArgument = exports2.stringifyEnvSegment = exports2.stringifyCommandLineThen = exports2.stringifyCommandLine = exports2.stringifyCommandChainThen = exports2.stringifyCommandChain = exports2.stringifyCommand = exports2.stringifyArithmeticExpression = exports2.stringifyArgumentSegment = exports2.stringifyArgument = exports2.stringifyShell = exports2.parseShell = void 0;
|
|
@@ -109537,28 +109552,6 @@ var require_filterLockfile = __commonJS({
|
|
|
109537
109552
|
}
|
|
109538
109553
|
});
|
|
109539
109554
|
|
|
109540
|
-
// ../filter-lockfile/lib/LockfileMissingDependencyError.js
|
|
109541
|
-
var require_LockfileMissingDependencyError = __commonJS({
|
|
109542
|
-
"../filter-lockfile/lib/LockfileMissingDependencyError.js"(exports2) {
|
|
109543
|
-
"use strict";
|
|
109544
|
-
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
109545
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
109546
|
-
};
|
|
109547
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109548
|
-
var constants_1 = require_lib7();
|
|
109549
|
-
var error_1 = __importDefault(require_lib8());
|
|
109550
|
-
var LockfileMissingDependencyError = class extends error_1.default {
|
|
109551
|
-
constructor(depPath) {
|
|
109552
|
-
const message2 = `Broken lockfile: no entry for '${depPath}' in ${constants_1.WANTED_LOCKFILE}`;
|
|
109553
|
-
super("LOCKFILE_MISSING_DEPENDENCY", message2, {
|
|
109554
|
-
hint: "This issue is probably caused by a badly resolved merge conflict.\nTo fix the lockfile, run 'pnpm install --no-frozen-lockfile'."
|
|
109555
|
-
});
|
|
109556
|
-
}
|
|
109557
|
-
};
|
|
109558
|
-
exports2.default = LockfileMissingDependencyError;
|
|
109559
|
-
}
|
|
109560
|
-
});
|
|
109561
|
-
|
|
109562
109555
|
// ../filter-lockfile/lib/filterLockfileByImporters.js
|
|
109563
109556
|
var require_filterLockfileByImporters = __commonJS({
|
|
109564
109557
|
"../filter-lockfile/lib/filterLockfileByImporters.js"(exports2) {
|
|
@@ -109568,10 +109561,10 @@ var require_filterLockfileByImporters = __commonJS({
|
|
|
109568
109561
|
};
|
|
109569
109562
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109570
109563
|
var constants_1 = require_lib7();
|
|
109564
|
+
var error_1 = require_lib8();
|
|
109571
109565
|
var lockfile_walker_1 = __importDefault(require_lib58());
|
|
109572
109566
|
var logger_1 = __importDefault(require_lib6());
|
|
109573
109567
|
var filterImporter_1 = __importDefault(require_filterImporter());
|
|
109574
|
-
var LockfileMissingDependencyError_1 = __importDefault(require_LockfileMissingDependencyError());
|
|
109575
109568
|
var logger = (0, logger_1.default)("lockfile");
|
|
109576
109569
|
function filterByImporters(lockfile, importerIds, opts) {
|
|
109577
109570
|
const packages = {};
|
|
@@ -109598,7 +109591,7 @@ var require_filterLockfileByImporters = __commonJS({
|
|
|
109598
109591
|
}
|
|
109599
109592
|
for (const depPath of step.missing) {
|
|
109600
109593
|
if (opts.failOnMissingDependencies) {
|
|
109601
|
-
throw new
|
|
109594
|
+
throw new error_1.LockfileMissingDependencyError(depPath);
|
|
109602
109595
|
}
|
|
109603
109596
|
logger.debug(`No entry for "${depPath}" in ${constants_1.WANTED_LOCKFILE}`);
|
|
109604
109597
|
}
|
|
@@ -109647,13 +109640,13 @@ var require_filterLockfileByImportersAndEngine = __commonJS({
|
|
|
109647
109640
|
};
|
|
109648
109641
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
109649
109642
|
var constants_1 = require_lib7();
|
|
109643
|
+
var error_1 = require_lib8();
|
|
109650
109644
|
var lockfile_utils_1 = require_lib57();
|
|
109651
109645
|
var logger_1 = __importDefault(require_lib6());
|
|
109652
109646
|
var package_is_installable_1 = __importDefault(require_lib20());
|
|
109653
109647
|
var dp = __importStar2(require_lib35());
|
|
109654
109648
|
var unnest_1 = __importDefault(require_unnest());
|
|
109655
109649
|
var filterImporter_1 = __importDefault(require_filterImporter());
|
|
109656
|
-
var LockfileMissingDependencyError_1 = __importDefault(require_LockfileMissingDependencyError());
|
|
109657
109650
|
var logger = (0, logger_1.default)("lockfile");
|
|
109658
109651
|
function filterByImportersAndEngine(lockfile, importerIds, opts) {
|
|
109659
109652
|
const importerDeps = importerIds.map((importerId) => lockfile.importers[importerId]).map((importer) => ({
|
|
@@ -109704,7 +109697,7 @@ var require_filterLockfileByImportersAndEngine = __commonJS({
|
|
|
109704
109697
|
const pkgSnapshot = ctx.pkgSnapshots[depPath];
|
|
109705
109698
|
if (!pkgSnapshot && !depPath.startsWith("link:")) {
|
|
109706
109699
|
if (opts.failOnMissingDependencies) {
|
|
109707
|
-
throw new
|
|
109700
|
+
throw new error_1.LockfileMissingDependencyError(depPath);
|
|
109708
109701
|
}
|
|
109709
109702
|
logger.debug(`No entry for "${depPath}" in ${constants_1.WANTED_LOCKFILE}`);
|
|
109710
109703
|
continue;
|
|
@@ -113960,10 +113953,12 @@ var require_lockfileToDepGraph = __commonJS({
|
|
|
113960
113953
|
force: false,
|
|
113961
113954
|
lockfileDir: opts.lockfileDir,
|
|
113962
113955
|
pkg: {
|
|
113963
|
-
name: pkgName,
|
|
113964
|
-
version: pkgVersion,
|
|
113965
113956
|
id: packageId,
|
|
113966
113957
|
resolution
|
|
113958
|
+
},
|
|
113959
|
+
expectedPkg: {
|
|
113960
|
+
name: pkgName,
|
|
113961
|
+
version: pkgVersion
|
|
113967
113962
|
}
|
|
113968
113963
|
});
|
|
113969
113964
|
if (fetchResponse instanceof Promise)
|
|
@@ -114805,6 +114800,7 @@ var require_lib91 = __commonJS({
|
|
|
114805
114800
|
return result2;
|
|
114806
114801
|
};
|
|
114807
114802
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
114803
|
+
var error_1 = require_lib8();
|
|
114808
114804
|
var lockfile_utils_1 = require_lib57();
|
|
114809
114805
|
var dp = __importStar2(require_lib35());
|
|
114810
114806
|
var hoist_1 = require_hoist();
|
|
@@ -114867,6 +114863,9 @@ var require_lib91 = __commonJS({
|
|
|
114867
114863
|
let node = nodes.get(key);
|
|
114868
114864
|
if (!node) {
|
|
114869
114865
|
const pkgSnapshot = lockfile.packages[depPath];
|
|
114866
|
+
if (!pkgSnapshot) {
|
|
114867
|
+
throw new error_1.LockfileMissingDependencyError(depPath);
|
|
114868
|
+
}
|
|
114870
114869
|
const pkgName = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot).name;
|
|
114871
114870
|
node = {
|
|
114872
114871
|
name: alias,
|
|
@@ -115044,10 +115043,12 @@ var require_lockfileToHoistedDepGraph = __commonJS({
|
|
|
115044
115043
|
force: false,
|
|
115045
115044
|
lockfileDir: opts.lockfileDir,
|
|
115046
115045
|
pkg: {
|
|
115047
|
-
name: pkgName,
|
|
115048
|
-
version: pkgVersion,
|
|
115049
115046
|
id: packageId,
|
|
115050
115047
|
resolution
|
|
115048
|
+
},
|
|
115049
|
+
expectedPkg: {
|
|
115050
|
+
name: pkgName,
|
|
115051
|
+
version: pkgVersion
|
|
115051
115052
|
}
|
|
115052
115053
|
});
|
|
115053
115054
|
if (fetchResponse instanceof Promise)
|
|
@@ -116087,11 +116088,10 @@ var require_resolveDependencies = __commonJS({
|
|
|
116087
116088
|
pkgResponse = await ctx.storeController.requestPackage(wantedDependency, {
|
|
116088
116089
|
alwaysTryWorkspacePackages: ctx.linkWorkspacePackagesDepth >= options.currentDepth,
|
|
116089
116090
|
currentPkg: currentPkg ? {
|
|
116090
|
-
name: currentPkg.name,
|
|
116091
|
-
version: currentPkg.version,
|
|
116092
116091
|
id: currentPkg.pkgId,
|
|
116093
116092
|
resolution: currentPkg.resolution
|
|
116094
116093
|
} : void 0,
|
|
116094
|
+
expectedPkg: currentPkg,
|
|
116095
116095
|
defaultTag: ctx.defaultTag,
|
|
116096
116096
|
downloadPriority: -options.currentDepth,
|
|
116097
116097
|
lockfileDir: ctx.lockfileDir,
|
|
@@ -121441,7 +121441,7 @@ var require_recursive2 = __commonJS({
|
|
|
121441
121441
|
const updateMatch = cmdFullName === "update" && params.length > 0 ? createMatcher(params) : null;
|
|
121442
121442
|
if (opts.lockfileDir && ["add", "install", "remove", "update", "import"].includes(cmdFullName)) {
|
|
121443
121443
|
let importers = await getImporters();
|
|
121444
|
-
const calculatedRepositoryRoot = calculateRepositoryRoot(opts.workspaceDir, importers.map((x) => x.rootDir));
|
|
121444
|
+
const calculatedRepositoryRoot = await fs_1.promises.realpath(calculateRepositoryRoot(opts.workspaceDir, importers.map((x) => x.rootDir)));
|
|
121445
121445
|
const isFromWorkspace = is_subdir_1.default.bind(null, calculatedRepositoryRoot);
|
|
121446
121446
|
importers = await (0, p_filter_1.default)(importers, async ({ rootDir }) => isFromWorkspace(await fs_1.promises.realpath(rootDir)));
|
|
121447
121447
|
if (importers.length === 0)
|
|
@@ -146460,9 +146460,9 @@ var require_execUtils = __commonJS({
|
|
|
146460
146460
|
}
|
|
146461
146461
|
});
|
|
146462
146462
|
|
|
146463
|
-
// ../../node_modules/.pnpm/@sindresorhus+is@4.
|
|
146463
|
+
// ../../node_modules/.pnpm/@sindresorhus+is@4.6.0/node_modules/@sindresorhus/is/dist/index.js
|
|
146464
146464
|
var require_dist13 = __commonJS({
|
|
146465
|
-
"../../node_modules/.pnpm/@sindresorhus+is@4.
|
|
146465
|
+
"../../node_modules/.pnpm/@sindresorhus+is@4.6.0/node_modules/@sindresorhus/is/dist/index.js"(exports2, module2) {
|
|
146466
146466
|
"use strict";
|
|
146467
146467
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
146468
146468
|
var typedArrayTypeNames = [
|
|
@@ -146491,6 +146491,7 @@ var require_dist13 = __commonJS({
|
|
|
146491
146491
|
"Observable",
|
|
146492
146492
|
"Array",
|
|
146493
146493
|
"Buffer",
|
|
146494
|
+
"Blob",
|
|
146494
146495
|
"Object",
|
|
146495
146496
|
"RegExp",
|
|
146496
146497
|
"Date",
|
|
@@ -146602,6 +146603,7 @@ var require_dist13 = __commonJS({
|
|
|
146602
146603
|
var _a, _b, _c, _d;
|
|
146603
146604
|
return (_d = (_c = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.isBuffer) === null || _c === void 0 ? void 0 : _c.call(_b, value)) !== null && _d !== void 0 ? _d : false;
|
|
146604
146605
|
};
|
|
146606
|
+
is.blob = (value) => isObjectOfType("Blob")(value);
|
|
146605
146607
|
is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);
|
|
146606
146608
|
is.object = (value) => !is.null_(value) && (typeof value === "object" || is.function_(value));
|
|
146607
146609
|
is.iterable = (value) => {
|
|
@@ -146719,9 +146721,10 @@ var require_dist13 = __commonJS({
|
|
|
146719
146721
|
is.emptyArray = (value) => is.array(value) && value.length === 0;
|
|
146720
146722
|
is.nonEmptyArray = (value) => is.array(value) && value.length > 0;
|
|
146721
146723
|
is.emptyString = (value) => is.string(value) && value.length === 0;
|
|
146722
|
-
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
146723
146724
|
var isWhiteSpaceString = (value) => is.string(value) && !/\S/.test(value);
|
|
146724
146725
|
is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value);
|
|
146726
|
+
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
146727
|
+
is.nonEmptyStringAndNotWhitespace = (value) => is.string(value) && !is.emptyStringOrWhitespace(value);
|
|
146725
146728
|
is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0;
|
|
146726
146729
|
is.nonEmptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length > 0;
|
|
146727
146730
|
is.emptySet = (value) => is.set(value) && value.size === 0;
|
|
@@ -146773,6 +146776,7 @@ var require_dist13 = __commonJS({
|
|
|
146773
146776
|
}
|
|
146774
146777
|
},
|
|
146775
146778
|
buffer: (value) => assertType(is.buffer(value), "Buffer", value),
|
|
146779
|
+
blob: (value) => assertType(is.blob(value), "Blob", value),
|
|
146776
146780
|
nullOrUndefined: (value) => assertType(is.nullOrUndefined(value), "null or undefined", value),
|
|
146777
146781
|
object: (value) => assertType(is.object(value), "Object", value),
|
|
146778
146782
|
iterable: (value) => assertType(is.iterable(value), "Iterable", value),
|
|
@@ -146825,8 +146829,9 @@ var require_dist13 = __commonJS({
|
|
|
146825
146829
|
emptyArray: (value) => assertType(is.emptyArray(value), "empty array", value),
|
|
146826
146830
|
nonEmptyArray: (value) => assertType(is.nonEmptyArray(value), "non-empty array", value),
|
|
146827
146831
|
emptyString: (value) => assertType(is.emptyString(value), "empty string", value),
|
|
146828
|
-
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string", value),
|
|
146829
146832
|
emptyStringOrWhitespace: (value) => assertType(is.emptyStringOrWhitespace(value), "empty string or whitespace", value),
|
|
146833
|
+
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string", value),
|
|
146834
|
+
nonEmptyStringAndNotWhitespace: (value) => assertType(is.nonEmptyStringAndNotWhitespace(value), "non-empty string and not whitespace", value),
|
|
146830
146835
|
emptyObject: (value) => assertType(is.emptyObject(value), "empty object", value),
|
|
146831
146836
|
nonEmptyObject: (value) => assertType(is.nonEmptyObject(value), "non-empty object", value),
|
|
146832
146837
|
emptySet: (value) => assertType(is.emptySet(value), "empty set", value),
|
|
@@ -152947,9 +152952,9 @@ var require_httpUtils = __commonJS({
|
|
|
152947
152952
|
}
|
|
152948
152953
|
});
|
|
152949
152954
|
|
|
152950
|
-
// ../../node_modules/.pnpm/@yarnpkg+libzip@2.2.
|
|
152955
|
+
// ../../node_modules/.pnpm/@yarnpkg+libzip@2.2.4/node_modules/@yarnpkg/libzip/lib/libzipSync.js
|
|
152951
152956
|
var require_libzipSync = __commonJS({
|
|
152952
|
-
"../../node_modules/.pnpm/@yarnpkg+libzip@2.2.
|
|
152957
|
+
"../../node_modules/.pnpm/@yarnpkg+libzip@2.2.4/node_modules/@yarnpkg/libzip/lib/libzipSync.js"(exports2, module2) {
|
|
152953
152958
|
var frozenFs = Object.assign({}, require("fs"));
|
|
152954
152959
|
var createModule = function() {
|
|
152955
152960
|
var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : void 0;
|
|
@@ -157085,9 +157090,9 @@ var require_libzipSync = __commonJS({
|
|
|
157085
157090
|
}
|
|
157086
157091
|
});
|
|
157087
157092
|
|
|
157088
|
-
// ../../node_modules/.pnpm/@yarnpkg+libzip@2.2.
|
|
157093
|
+
// ../../node_modules/.pnpm/@yarnpkg+libzip@2.2.4/node_modules/@yarnpkg/libzip/lib/makeInterface.js
|
|
157089
157094
|
var require_makeInterface = __commonJS({
|
|
157090
|
-
"../../node_modules/.pnpm/@yarnpkg+libzip@2.2.
|
|
157095
|
+
"../../node_modules/.pnpm/@yarnpkg+libzip@2.2.4/node_modules/@yarnpkg/libzip/lib/makeInterface.js"(exports2) {
|
|
157091
157096
|
"use strict";
|
|
157092
157097
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157093
157098
|
exports2.makeInterface = exports2.Errors = void 0;
|
|
@@ -157245,9 +157250,9 @@ var require_makeInterface = __commonJS({
|
|
|
157245
157250
|
}
|
|
157246
157251
|
});
|
|
157247
157252
|
|
|
157248
|
-
// ../../node_modules/.pnpm/@yarnpkg+libzip@2.2.
|
|
157253
|
+
// ../../node_modules/.pnpm/@yarnpkg+libzip@2.2.4/node_modules/@yarnpkg/libzip/lib/sync.js
|
|
157249
157254
|
var require_sync8 = __commonJS({
|
|
157250
|
-
"../../node_modules/.pnpm/@yarnpkg+libzip@2.2.
|
|
157255
|
+
"../../node_modules/.pnpm/@yarnpkg+libzip@2.2.4/node_modules/@yarnpkg/libzip/lib/sync.js"(exports2) {
|
|
157251
157256
|
"use strict";
|
|
157252
157257
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157253
157258
|
exports2.getLibzipPromise = exports2.getLibzipSync = void 0;
|
|
@@ -157268,9 +157273,9 @@ var require_sync8 = __commonJS({
|
|
|
157268
157273
|
}
|
|
157269
157274
|
});
|
|
157270
157275
|
|
|
157271
|
-
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157276
|
+
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/errors.js
|
|
157272
157277
|
var require_errors8 = __commonJS({
|
|
157273
|
-
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157278
|
+
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/errors.js"(exports2) {
|
|
157274
157279
|
"use strict";
|
|
157275
157280
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157276
157281
|
exports2.ShellError = void 0;
|
|
@@ -157284,9 +157289,9 @@ var require_errors8 = __commonJS({
|
|
|
157284
157289
|
}
|
|
157285
157290
|
});
|
|
157286
157291
|
|
|
157287
|
-
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157292
|
+
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/globUtils.js
|
|
157288
157293
|
var require_globUtils2 = __commonJS({
|
|
157289
|
-
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157294
|
+
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/globUtils.js"(exports2) {
|
|
157290
157295
|
"use strict";
|
|
157291
157296
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157292
157297
|
exports2.isBraceExpansion = exports2.match = exports2.isGlobPattern = exports2.fastGlobOptions = exports2.micromatchOptions = void 0;
|
|
@@ -157328,9 +157333,9 @@ var require_globUtils2 = __commonJS({
|
|
|
157328
157333
|
}
|
|
157329
157334
|
});
|
|
157330
157335
|
|
|
157331
|
-
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157336
|
+
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/pipe.js
|
|
157332
157337
|
var require_pipe5 = __commonJS({
|
|
157333
|
-
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157338
|
+
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/pipe.js"(exports2) {
|
|
157334
157339
|
"use strict";
|
|
157335
157340
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157336
157341
|
exports2.createOutputStreamsWithPrefix = exports2.start = exports2.Handle = exports2.ProtectedStream = exports2.makeBuiltin = exports2.makeProcess = exports2.Pipe = void 0;
|
|
@@ -157600,9 +157605,9 @@ var require_pipe5 = __commonJS({
|
|
|
157600
157605
|
}
|
|
157601
157606
|
});
|
|
157602
157607
|
|
|
157603
|
-
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157608
|
+
// ../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/index.js
|
|
157604
157609
|
var require_lib105 = __commonJS({
|
|
157605
|
-
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0
|
|
157610
|
+
"../../node_modules/.pnpm/@yarnpkg+shell@3.2.0/node_modules/@yarnpkg/shell/lib/index.js"(exports2) {
|
|
157606
157611
|
"use strict";
|
|
157607
157612
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157608
157613
|
exports2.execute = exports2.ShellError = exports2.globUtils = void 0;
|
package/dist/pnpx.cjs
CHANGED
|
@@ -3177,12 +3177,27 @@ var require_lib4 = __commonJS({
|
|
|
3177
3177
|
}
|
|
3178
3178
|
});
|
|
3179
3179
|
|
|
3180
|
-
// ../
|
|
3180
|
+
// ../constants/lib/index.js
|
|
3181
3181
|
var require_lib5 = __commonJS({
|
|
3182
|
+
"../constants/lib/index.js"(exports2) {
|
|
3183
|
+
"use strict";
|
|
3184
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3185
|
+
exports2.WORKSPACE_MANIFEST_FILENAME = exports2.LAYOUT_VERSION = exports2.ENGINE_NAME = exports2.LOCKFILE_VERSION = exports2.WANTED_LOCKFILE = void 0;
|
|
3186
|
+
exports2.WANTED_LOCKFILE = "pnpm-lock.yaml";
|
|
3187
|
+
exports2.LOCKFILE_VERSION = 5.3;
|
|
3188
|
+
exports2.ENGINE_NAME = `${process.platform}-${process.arch}-node-${process.version.split(".")[0]}`;
|
|
3189
|
+
exports2.LAYOUT_VERSION = 5;
|
|
3190
|
+
exports2.WORKSPACE_MANIFEST_FILENAME = "pnpm-workspace.yaml";
|
|
3191
|
+
}
|
|
3192
|
+
});
|
|
3193
|
+
|
|
3194
|
+
// ../error/lib/index.js
|
|
3195
|
+
var require_lib6 = __commonJS({
|
|
3182
3196
|
"../error/lib/index.js"(exports2) {
|
|
3183
3197
|
"use strict";
|
|
3184
3198
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3185
|
-
exports2.FetchError = void 0;
|
|
3199
|
+
exports2.LockfileMissingDependencyError = exports2.FetchError = void 0;
|
|
3200
|
+
var constants_1 = require_lib5();
|
|
3186
3201
|
var PnpmError = class extends Error {
|
|
3187
3202
|
constructor(code, message, opts) {
|
|
3188
3203
|
super(message);
|
|
@@ -3216,6 +3231,15 @@ var require_lib5 = __commonJS({
|
|
|
3216
3231
|
const [authType, token] = authHeaderValue.split(" ");
|
|
3217
3232
|
return `${authType} ${token.substring(0, 4)}[hidden]`;
|
|
3218
3233
|
}
|
|
3234
|
+
var LockfileMissingDependencyError = class extends PnpmError {
|
|
3235
|
+
constructor(depPath) {
|
|
3236
|
+
const message = `Broken lockfile: no entry for '${depPath}' in ${constants_1.WANTED_LOCKFILE}`;
|
|
3237
|
+
super("LOCKFILE_MISSING_DEPENDENCY", message, {
|
|
3238
|
+
hint: "This issue is probably caused by a badly resolved merge conflict.\nTo fix the lockfile, run 'pnpm install --no-frozen-lockfile'."
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
3241
|
+
};
|
|
3242
|
+
exports2.LockfileMissingDependencyError = LockfileMissingDependencyError;
|
|
3219
3243
|
}
|
|
3220
3244
|
});
|
|
3221
3245
|
|
|
@@ -3529,7 +3553,7 @@ var require_find_up = __commonJS({
|
|
|
3529
3553
|
});
|
|
3530
3554
|
|
|
3531
3555
|
// ../find-workspace-dir/lib/index.js
|
|
3532
|
-
var
|
|
3556
|
+
var require_lib7 = __commonJS({
|
|
3533
3557
|
"../find-workspace-dir/lib/index.js"(exports2) {
|
|
3534
3558
|
"use strict";
|
|
3535
3559
|
var __importDefault2 = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -3537,7 +3561,7 @@ var require_lib6 = __commonJS({
|
|
|
3537
3561
|
};
|
|
3538
3562
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3539
3563
|
var path_12 = __importDefault2(require("path"));
|
|
3540
|
-
var error_1 = __importDefault2(
|
|
3564
|
+
var error_1 = __importDefault2(require_lib6());
|
|
3541
3565
|
var find_up_1 = __importDefault2(require_find_up());
|
|
3542
3566
|
var WORKSPACE_DIR_ENV_VAR = "NPM_CONFIG_WORKSPACE_DIR";
|
|
3543
3567
|
var WORKSPACE_MANIFEST_FILENAME = "pnpm-workspace.yaml";
|
|
@@ -6582,7 +6606,7 @@ var require_touch = __commonJS({
|
|
|
6582
6606
|
});
|
|
6583
6607
|
|
|
6584
6608
|
// ../../node_modules/.pnpm/@pnpm+store-path@5.0.0/node_modules/@pnpm/store-path/lib/index.js
|
|
6585
|
-
var
|
|
6609
|
+
var require_lib8 = __commonJS({
|
|
6586
6610
|
"../../node_modules/.pnpm/@pnpm+store-path@5.0.0/node_modules/@pnpm/store-path/lib/index.js"(exports2) {
|
|
6587
6611
|
"use strict";
|
|
6588
6612
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -21161,8 +21185,8 @@ var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
|
21161
21185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21162
21186
|
var path_1 = __importDefault(require("path"));
|
|
21163
21187
|
var cli_meta_1 = __importDefault(require_lib4());
|
|
21164
|
-
var find_workspace_dir_1 = __importDefault(
|
|
21165
|
-
var store_path_1 = __importDefault(
|
|
21188
|
+
var find_workspace_dir_1 = __importDefault(require_lib7());
|
|
21189
|
+
var store_path_1 = __importDefault(require_lib8());
|
|
21166
21190
|
var index_1 = __importDefault(require_libnpx());
|
|
21167
21191
|
var path_name_1 = __importDefault(require_path_name());
|
|
21168
21192
|
var PNPM_PATH = path_1.default.join(__dirname, "pnpm.cjs");
|
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": "6.32.
|
|
4
|
+
"version": "6.32.2",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -22,38 +22,38 @@
|
|
|
22
22
|
"@pnpm/assert-project": "workspace:*",
|
|
23
23
|
"@pnpm/byline": "^1.0.0",
|
|
24
24
|
"@pnpm/cli-meta": "workspace:2.0.2",
|
|
25
|
-
"@pnpm/cli-utils": "workspace:0.6.
|
|
26
|
-
"@pnpm/client": "workspace:6.1.
|
|
25
|
+
"@pnpm/cli-utils": "workspace:0.6.50",
|
|
26
|
+
"@pnpm/client": "workspace:6.1.3",
|
|
27
27
|
"@pnpm/command": "workspace:2.0.0",
|
|
28
28
|
"@pnpm/common-cli-options-help": "workspace:0.8.0",
|
|
29
|
-
"@pnpm/config": "workspace:13.13.
|
|
29
|
+
"@pnpm/config": "workspace:13.13.2",
|
|
30
30
|
"@pnpm/constants": "workspace:5.0.0",
|
|
31
31
|
"@pnpm/core-loggers": "workspace:6.1.4",
|
|
32
|
-
"@pnpm/default-reporter": "workspace:8.5.
|
|
32
|
+
"@pnpm/default-reporter": "workspace:8.5.13",
|
|
33
33
|
"@pnpm/file-reporter": "workspace:2.0.0",
|
|
34
|
-
"@pnpm/filter-workspace-packages": "workspace:4.4.
|
|
35
|
-
"@pnpm/find-workspace-dir": "workspace:3.0.
|
|
36
|
-
"@pnpm/find-workspace-packages": "workspace:3.1.
|
|
34
|
+
"@pnpm/filter-workspace-packages": "workspace:4.4.22",
|
|
35
|
+
"@pnpm/find-workspace-dir": "workspace:3.0.2",
|
|
36
|
+
"@pnpm/find-workspace-packages": "workspace:3.1.42",
|
|
37
37
|
"@pnpm/lockfile-types": "workspace:3.2.0",
|
|
38
38
|
"@pnpm/logger": "^4.0.0",
|
|
39
39
|
"@pnpm/modules-yaml": "workspace:9.1.1",
|
|
40
40
|
"@pnpm/nopt": "^0.2.1",
|
|
41
|
-
"@pnpm/parse-cli-args": "workspace:4.4.
|
|
41
|
+
"@pnpm/parse-cli-args": "workspace:4.4.1",
|
|
42
42
|
"@pnpm/pick-registry-for-package": "workspace:2.0.11",
|
|
43
|
-
"@pnpm/plugin-commands-audit": "workspace:5.1.
|
|
44
|
-
"@pnpm/plugin-commands-env": "workspace:1.4.
|
|
45
|
-
"@pnpm/plugin-commands-installation": "workspace:8.4.
|
|
46
|
-
"@pnpm/plugin-commands-listing": "workspace:4.1.
|
|
47
|
-
"@pnpm/plugin-commands-outdated": "workspace:5.1.
|
|
48
|
-
"@pnpm/plugin-commands-publishing": "workspace:4.5.
|
|
49
|
-
"@pnpm/plugin-commands-rebuild": "workspace:5.4.
|
|
50
|
-
"@pnpm/plugin-commands-script-runners": "workspace:4.6.
|
|
51
|
-
"@pnpm/plugin-commands-server": "workspace:3.0.
|
|
52
|
-
"@pnpm/plugin-commands-setup": "workspace:1.1.
|
|
53
|
-
"@pnpm/plugin-commands-store": "workspace:4.1.
|
|
43
|
+
"@pnpm/plugin-commands-audit": "workspace:5.1.42",
|
|
44
|
+
"@pnpm/plugin-commands-env": "workspace:1.4.14",
|
|
45
|
+
"@pnpm/plugin-commands-installation": "workspace:8.4.3",
|
|
46
|
+
"@pnpm/plugin-commands-listing": "workspace:4.1.11",
|
|
47
|
+
"@pnpm/plugin-commands-outdated": "workspace:5.1.10",
|
|
48
|
+
"@pnpm/plugin-commands-publishing": "workspace:4.5.2",
|
|
49
|
+
"@pnpm/plugin-commands-rebuild": "workspace:5.4.14",
|
|
50
|
+
"@pnpm/plugin-commands-script-runners": "workspace:4.6.2",
|
|
51
|
+
"@pnpm/plugin-commands-server": "workspace:3.0.70",
|
|
52
|
+
"@pnpm/plugin-commands-setup": "workspace:1.1.35",
|
|
53
|
+
"@pnpm/plugin-commands-store": "workspace:4.1.13",
|
|
54
54
|
"@pnpm/prepare": "workspace:*",
|
|
55
|
-
"@pnpm/read-package-json": "workspace:5.0.
|
|
56
|
-
"@pnpm/read-project-manifest": "workspace:2.0.
|
|
55
|
+
"@pnpm/read-package-json": "workspace:5.0.12",
|
|
56
|
+
"@pnpm/read-project-manifest": "workspace:2.0.13",
|
|
57
57
|
"@pnpm/registry-mock": "2.12.1",
|
|
58
58
|
"@pnpm/run-npm": "workspace:3.1.0",
|
|
59
59
|
"@pnpm/store-path": "^5.0.0",
|