pnpm 11.6.0 → 11.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -21
- package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +4 -4
- package/dist/node_modules/node-gyp/lib/download.js +3 -3
- package/dist/node_modules/node-gyp/package.json +1 -1
- package/dist/node_modules/semver/classes/range.js +11 -2
- package/dist/node_modules/semver/classes/semver.js +19 -2
- package/dist/node_modules/semver/package.json +2 -2
- package/dist/node_modules/tar/dist/commonjs/header.js +51 -16
- package/dist/node_modules/tar/dist/commonjs/index.min.js +3 -3
- package/dist/node_modules/tar/dist/commonjs/pack.js +4 -5
- package/dist/node_modules/tar/dist/commonjs/types.js +21 -1
- package/dist/node_modules/tar/dist/esm/header.js +51 -16
- package/dist/node_modules/tar/dist/esm/index.min.js +3 -3
- package/dist/node_modules/tar/dist/esm/pack.js +4 -5
- package/dist/node_modules/tar/dist/esm/types.js +20 -0
- package/dist/node_modules/tar/package.json +11 -10
- package/dist/pnpm.mjs +25053 -23326
- package/dist/worker.js +749 -1196
- package/package.json +2 -1
package/dist/worker.js
CHANGED
|
@@ -12,7 +12,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
12
12
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
13
|
});
|
|
14
14
|
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
-
|
|
15
|
+
try {
|
|
16
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
|
+
} catch (e) {
|
|
18
|
+
throw mod = 0, e;
|
|
19
|
+
}
|
|
16
20
|
};
|
|
17
21
|
var __copyProps = (to, from, except, desc) => {
|
|
18
22
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -83,14 +87,14 @@ var require_polyfills = __commonJS({
|
|
|
83
87
|
fs13.fstatSync = statFixSync(fs13.fstatSync);
|
|
84
88
|
fs13.lstatSync = statFixSync(fs13.lstatSync);
|
|
85
89
|
if (fs13.chmod && !fs13.lchmod) {
|
|
86
|
-
fs13.lchmod = function(
|
|
90
|
+
fs13.lchmod = function(path18, mode, cb) {
|
|
87
91
|
if (cb) process.nextTick(cb);
|
|
88
92
|
};
|
|
89
93
|
fs13.lchmodSync = function() {
|
|
90
94
|
};
|
|
91
95
|
}
|
|
92
96
|
if (fs13.chown && !fs13.lchown) {
|
|
93
|
-
fs13.lchown = function(
|
|
97
|
+
fs13.lchown = function(path18, uid, gid, cb) {
|
|
94
98
|
if (cb) process.nextTick(cb);
|
|
95
99
|
};
|
|
96
100
|
fs13.lchownSync = function() {
|
|
@@ -157,9 +161,9 @@ var require_polyfills = __commonJS({
|
|
|
157
161
|
};
|
|
158
162
|
})(fs13.readSync);
|
|
159
163
|
function patchLchmod(fs14) {
|
|
160
|
-
fs14.lchmod = function(
|
|
164
|
+
fs14.lchmod = function(path18, mode, callback) {
|
|
161
165
|
fs14.open(
|
|
162
|
-
|
|
166
|
+
path18,
|
|
163
167
|
constants2.O_WRONLY | constants2.O_SYMLINK,
|
|
164
168
|
mode,
|
|
165
169
|
function(err, fd) {
|
|
@@ -175,8 +179,8 @@ var require_polyfills = __commonJS({
|
|
|
175
179
|
}
|
|
176
180
|
);
|
|
177
181
|
};
|
|
178
|
-
fs14.lchmodSync = function(
|
|
179
|
-
var fd = fs14.openSync(
|
|
182
|
+
fs14.lchmodSync = function(path18, mode) {
|
|
183
|
+
var fd = fs14.openSync(path18, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
|
|
180
184
|
var threw = true;
|
|
181
185
|
var ret;
|
|
182
186
|
try {
|
|
@@ -197,8 +201,8 @@ var require_polyfills = __commonJS({
|
|
|
197
201
|
}
|
|
198
202
|
function patchLutimes(fs14) {
|
|
199
203
|
if (constants2.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
|
|
200
|
-
fs14.lutimes = function(
|
|
201
|
-
fs14.open(
|
|
204
|
+
fs14.lutimes = function(path18, at, mt, cb) {
|
|
205
|
+
fs14.open(path18, constants2.O_SYMLINK, function(er, fd) {
|
|
202
206
|
if (er) {
|
|
203
207
|
if (cb) cb(er);
|
|
204
208
|
return;
|
|
@@ -210,8 +214,8 @@ var require_polyfills = __commonJS({
|
|
|
210
214
|
});
|
|
211
215
|
});
|
|
212
216
|
};
|
|
213
|
-
fs14.lutimesSync = function(
|
|
214
|
-
var fd = fs14.openSync(
|
|
217
|
+
fs14.lutimesSync = function(path18, at, mt) {
|
|
218
|
+
var fd = fs14.openSync(path18, constants2.O_SYMLINK);
|
|
215
219
|
var ret;
|
|
216
220
|
var threw = true;
|
|
217
221
|
try {
|
|
@@ -329,11 +333,11 @@ var require_legacy_streams = __commonJS({
|
|
|
329
333
|
ReadStream,
|
|
330
334
|
WriteStream
|
|
331
335
|
};
|
|
332
|
-
function ReadStream(
|
|
333
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
336
|
+
function ReadStream(path18, options) {
|
|
337
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path18, options);
|
|
334
338
|
Stream.call(this);
|
|
335
339
|
var self2 = this;
|
|
336
|
-
this.path =
|
|
340
|
+
this.path = path18;
|
|
337
341
|
this.fd = null;
|
|
338
342
|
this.readable = true;
|
|
339
343
|
this.paused = false;
|
|
@@ -378,10 +382,10 @@ var require_legacy_streams = __commonJS({
|
|
|
378
382
|
self2._read();
|
|
379
383
|
});
|
|
380
384
|
}
|
|
381
|
-
function WriteStream(
|
|
382
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
385
|
+
function WriteStream(path18, options) {
|
|
386
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path18, options);
|
|
383
387
|
Stream.call(this);
|
|
384
|
-
this.path =
|
|
388
|
+
this.path = path18;
|
|
385
389
|
this.fd = null;
|
|
386
390
|
this.writable = true;
|
|
387
391
|
this.flags = "w";
|
|
@@ -524,14 +528,14 @@ var require_graceful_fs = __commonJS({
|
|
|
524
528
|
fs14.createWriteStream = createWriteStream;
|
|
525
529
|
var fs$readFile = fs14.readFile;
|
|
526
530
|
fs14.readFile = readFile;
|
|
527
|
-
function readFile(
|
|
531
|
+
function readFile(path18, options, cb) {
|
|
528
532
|
if (typeof options === "function")
|
|
529
533
|
cb = options, options = null;
|
|
530
|
-
return go$readFile(
|
|
531
|
-
function go$readFile(
|
|
532
|
-
return fs$readFile(
|
|
534
|
+
return go$readFile(path18, options, cb);
|
|
535
|
+
function go$readFile(path19, options2, cb2, startTime) {
|
|
536
|
+
return fs$readFile(path19, options2, function(err) {
|
|
533
537
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
534
|
-
enqueue([go$readFile, [
|
|
538
|
+
enqueue([go$readFile, [path19, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
535
539
|
else {
|
|
536
540
|
if (typeof cb2 === "function")
|
|
537
541
|
cb2.apply(this, arguments);
|
|
@@ -541,14 +545,14 @@ var require_graceful_fs = __commonJS({
|
|
|
541
545
|
}
|
|
542
546
|
var fs$writeFile = fs14.writeFile;
|
|
543
547
|
fs14.writeFile = writeFile2;
|
|
544
|
-
function writeFile2(
|
|
548
|
+
function writeFile2(path18, data, options, cb) {
|
|
545
549
|
if (typeof options === "function")
|
|
546
550
|
cb = options, options = null;
|
|
547
|
-
return go$writeFile(
|
|
548
|
-
function go$writeFile(
|
|
549
|
-
return fs$writeFile(
|
|
551
|
+
return go$writeFile(path18, data, options, cb);
|
|
552
|
+
function go$writeFile(path19, data2, options2, cb2, startTime) {
|
|
553
|
+
return fs$writeFile(path19, data2, options2, function(err) {
|
|
550
554
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
551
|
-
enqueue([go$writeFile, [
|
|
555
|
+
enqueue([go$writeFile, [path19, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
552
556
|
else {
|
|
553
557
|
if (typeof cb2 === "function")
|
|
554
558
|
cb2.apply(this, arguments);
|
|
@@ -559,14 +563,14 @@ var require_graceful_fs = __commonJS({
|
|
|
559
563
|
var fs$appendFile = fs14.appendFile;
|
|
560
564
|
if (fs$appendFile)
|
|
561
565
|
fs14.appendFile = appendFile;
|
|
562
|
-
function appendFile(
|
|
566
|
+
function appendFile(path18, data, options, cb) {
|
|
563
567
|
if (typeof options === "function")
|
|
564
568
|
cb = options, options = null;
|
|
565
|
-
return go$appendFile(
|
|
566
|
-
function go$appendFile(
|
|
567
|
-
return fs$appendFile(
|
|
569
|
+
return go$appendFile(path18, data, options, cb);
|
|
570
|
+
function go$appendFile(path19, data2, options2, cb2, startTime) {
|
|
571
|
+
return fs$appendFile(path19, data2, options2, function(err) {
|
|
568
572
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
569
|
-
enqueue([go$appendFile, [
|
|
573
|
+
enqueue([go$appendFile, [path19, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
570
574
|
else {
|
|
571
575
|
if (typeof cb2 === "function")
|
|
572
576
|
cb2.apply(this, arguments);
|
|
@@ -597,31 +601,31 @@ var require_graceful_fs = __commonJS({
|
|
|
597
601
|
var fs$readdir = fs14.readdir;
|
|
598
602
|
fs14.readdir = readdir;
|
|
599
603
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
600
|
-
function readdir(
|
|
604
|
+
function readdir(path18, options, cb) {
|
|
601
605
|
if (typeof options === "function")
|
|
602
606
|
cb = options, options = null;
|
|
603
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
604
|
-
return fs$readdir(
|
|
605
|
-
|
|
607
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path19, options2, cb2, startTime) {
|
|
608
|
+
return fs$readdir(path19, fs$readdirCallback(
|
|
609
|
+
path19,
|
|
606
610
|
options2,
|
|
607
611
|
cb2,
|
|
608
612
|
startTime
|
|
609
613
|
));
|
|
610
|
-
} : function go$readdir2(
|
|
611
|
-
return fs$readdir(
|
|
612
|
-
|
|
614
|
+
} : function go$readdir2(path19, options2, cb2, startTime) {
|
|
615
|
+
return fs$readdir(path19, options2, fs$readdirCallback(
|
|
616
|
+
path19,
|
|
613
617
|
options2,
|
|
614
618
|
cb2,
|
|
615
619
|
startTime
|
|
616
620
|
));
|
|
617
621
|
};
|
|
618
|
-
return go$readdir(
|
|
619
|
-
function fs$readdirCallback(
|
|
622
|
+
return go$readdir(path18, options, cb);
|
|
623
|
+
function fs$readdirCallback(path19, options2, cb2, startTime) {
|
|
620
624
|
return function(err, files) {
|
|
621
625
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
622
626
|
enqueue([
|
|
623
627
|
go$readdir,
|
|
624
|
-
[
|
|
628
|
+
[path19, options2, cb2],
|
|
625
629
|
err,
|
|
626
630
|
startTime || Date.now(),
|
|
627
631
|
Date.now()
|
|
@@ -692,7 +696,7 @@ var require_graceful_fs = __commonJS({
|
|
|
692
696
|
enumerable: true,
|
|
693
697
|
configurable: true
|
|
694
698
|
});
|
|
695
|
-
function ReadStream(
|
|
699
|
+
function ReadStream(path18, options) {
|
|
696
700
|
if (this instanceof ReadStream)
|
|
697
701
|
return fs$ReadStream.apply(this, arguments), this;
|
|
698
702
|
else
|
|
@@ -712,7 +716,7 @@ var require_graceful_fs = __commonJS({
|
|
|
712
716
|
}
|
|
713
717
|
});
|
|
714
718
|
}
|
|
715
|
-
function WriteStream(
|
|
719
|
+
function WriteStream(path18, options) {
|
|
716
720
|
if (this instanceof WriteStream)
|
|
717
721
|
return fs$WriteStream.apply(this, arguments), this;
|
|
718
722
|
else
|
|
@@ -730,22 +734,22 @@ var require_graceful_fs = __commonJS({
|
|
|
730
734
|
}
|
|
731
735
|
});
|
|
732
736
|
}
|
|
733
|
-
function createReadStream(
|
|
734
|
-
return new fs14.ReadStream(
|
|
737
|
+
function createReadStream(path18, options) {
|
|
738
|
+
return new fs14.ReadStream(path18, options);
|
|
735
739
|
}
|
|
736
|
-
function createWriteStream(
|
|
737
|
-
return new fs14.WriteStream(
|
|
740
|
+
function createWriteStream(path18, options) {
|
|
741
|
+
return new fs14.WriteStream(path18, options);
|
|
738
742
|
}
|
|
739
743
|
var fs$open = fs14.open;
|
|
740
744
|
fs14.open = open;
|
|
741
|
-
function open(
|
|
745
|
+
function open(path18, flags, mode, cb) {
|
|
742
746
|
if (typeof mode === "function")
|
|
743
747
|
cb = mode, mode = null;
|
|
744
|
-
return go$open(
|
|
745
|
-
function go$open(
|
|
746
|
-
return fs$open(
|
|
748
|
+
return go$open(path18, flags, mode, cb);
|
|
749
|
+
function go$open(path19, flags2, mode2, cb2, startTime) {
|
|
750
|
+
return fs$open(path19, flags2, mode2, function(err, fd) {
|
|
747
751
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
748
|
-
enqueue([go$open, [
|
|
752
|
+
enqueue([go$open, [path19, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
749
753
|
else {
|
|
750
754
|
if (typeof cb2 === "function")
|
|
751
755
|
cb2.apply(this, arguments);
|
|
@@ -1526,10 +1530,10 @@ var require_fs = __commonJS({
|
|
|
1526
1530
|
var require_utils = __commonJS({
|
|
1527
1531
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
1528
1532
|
"use strict";
|
|
1529
|
-
var
|
|
1533
|
+
var path18 = __require("path");
|
|
1530
1534
|
module.exports.checkPath = function checkPath(pth) {
|
|
1531
1535
|
if (process.platform === "win32") {
|
|
1532
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
1536
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path18.parse(pth).root, ""));
|
|
1533
1537
|
if (pathHasInvalidWinCharacters) {
|
|
1534
1538
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
1535
1539
|
error.code = "EINVAL";
|
|
@@ -1593,8 +1597,8 @@ var require_path_exists = __commonJS({
|
|
|
1593
1597
|
"use strict";
|
|
1594
1598
|
var u = require_universalify().fromPromise;
|
|
1595
1599
|
var fs13 = require_fs();
|
|
1596
|
-
function pathExists(
|
|
1597
|
-
return fs13.access(
|
|
1600
|
+
function pathExists(path18) {
|
|
1601
|
+
return fs13.access(path18).then(() => true).catch(() => false);
|
|
1598
1602
|
}
|
|
1599
1603
|
module.exports = {
|
|
1600
1604
|
pathExists: u(pathExists),
|
|
@@ -1609,8 +1613,8 @@ var require_utimes = __commonJS({
|
|
|
1609
1613
|
"use strict";
|
|
1610
1614
|
var fs13 = require_fs();
|
|
1611
1615
|
var u = require_universalify().fromPromise;
|
|
1612
|
-
async function utimesMillis(
|
|
1613
|
-
const fd = await fs13.open(
|
|
1616
|
+
async function utimesMillis(path18, atime, mtime) {
|
|
1617
|
+
const fd = await fs13.open(path18, "r+");
|
|
1614
1618
|
let closeErr = null;
|
|
1615
1619
|
try {
|
|
1616
1620
|
await fs13.futimes(fd, atime, mtime);
|
|
@@ -1625,8 +1629,8 @@ var require_utimes = __commonJS({
|
|
|
1625
1629
|
throw closeErr;
|
|
1626
1630
|
}
|
|
1627
1631
|
}
|
|
1628
|
-
function utimesMillisSync(
|
|
1629
|
-
const fd = fs13.openSync(
|
|
1632
|
+
function utimesMillisSync(path18, atime, mtime) {
|
|
1633
|
+
const fd = fs13.openSync(path18, "r+");
|
|
1630
1634
|
fs13.futimesSync(fd, atime, mtime);
|
|
1631
1635
|
return fs13.closeSync(fd);
|
|
1632
1636
|
}
|
|
@@ -1642,7 +1646,7 @@ var require_stat = __commonJS({
|
|
|
1642
1646
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
1643
1647
|
"use strict";
|
|
1644
1648
|
var fs13 = require_fs();
|
|
1645
|
-
var
|
|
1649
|
+
var path18 = __require("path");
|
|
1646
1650
|
var u = require_universalify().fromPromise;
|
|
1647
1651
|
function getStats(src2, dest, opts2) {
|
|
1648
1652
|
const statFunc = opts2.dereference ? (file) => fs13.stat(file, { bigint: true }) : (file) => fs13.lstat(file, { bigint: true });
|
|
@@ -1670,8 +1674,8 @@ var require_stat = __commonJS({
|
|
|
1670
1674
|
const { srcStat, destStat } = await getStats(src2, dest, opts2);
|
|
1671
1675
|
if (destStat) {
|
|
1672
1676
|
if (areIdentical(srcStat, destStat)) {
|
|
1673
|
-
const srcBaseName =
|
|
1674
|
-
const destBaseName =
|
|
1677
|
+
const srcBaseName = path18.basename(src2);
|
|
1678
|
+
const destBaseName = path18.basename(dest);
|
|
1675
1679
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1676
1680
|
return { srcStat, destStat, isChangingCase: true };
|
|
1677
1681
|
}
|
|
@@ -1693,8 +1697,8 @@ var require_stat = __commonJS({
|
|
|
1693
1697
|
const { srcStat, destStat } = getStatsSync(src2, dest, opts2);
|
|
1694
1698
|
if (destStat) {
|
|
1695
1699
|
if (areIdentical(srcStat, destStat)) {
|
|
1696
|
-
const srcBaseName =
|
|
1697
|
-
const destBaseName =
|
|
1700
|
+
const srcBaseName = path18.basename(src2);
|
|
1701
|
+
const destBaseName = path18.basename(dest);
|
|
1698
1702
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
1699
1703
|
return { srcStat, destStat, isChangingCase: true };
|
|
1700
1704
|
}
|
|
@@ -1713,9 +1717,9 @@ var require_stat = __commonJS({
|
|
|
1713
1717
|
return { srcStat, destStat };
|
|
1714
1718
|
}
|
|
1715
1719
|
async function checkParentPaths(src2, srcStat, dest, funcName) {
|
|
1716
|
-
const srcParent =
|
|
1717
|
-
const destParent =
|
|
1718
|
-
if (destParent === srcParent || destParent ===
|
|
1720
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
1721
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
1722
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
1719
1723
|
let destStat;
|
|
1720
1724
|
try {
|
|
1721
1725
|
destStat = await fs13.stat(destParent, { bigint: true });
|
|
@@ -1729,9 +1733,9 @@ var require_stat = __commonJS({
|
|
|
1729
1733
|
return checkParentPaths(src2, srcStat, destParent, funcName);
|
|
1730
1734
|
}
|
|
1731
1735
|
function checkParentPathsSync(src2, srcStat, dest, funcName) {
|
|
1732
|
-
const srcParent =
|
|
1733
|
-
const destParent =
|
|
1734
|
-
if (destParent === srcParent || destParent ===
|
|
1736
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
1737
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
1738
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
1735
1739
|
let destStat;
|
|
1736
1740
|
try {
|
|
1737
1741
|
destStat = fs13.statSync(destParent, { bigint: true });
|
|
@@ -1748,8 +1752,8 @@ var require_stat = __commonJS({
|
|
|
1748
1752
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
1749
1753
|
}
|
|
1750
1754
|
function isSrcSubdir(src2, dest) {
|
|
1751
|
-
const srcArr =
|
|
1752
|
-
const destArr =
|
|
1755
|
+
const srcArr = path18.resolve(src2).split(path18.sep).filter((i) => i);
|
|
1756
|
+
const destArr = path18.resolve(dest).split(path18.sep).filter((i) => i);
|
|
1753
1757
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
1754
1758
|
}
|
|
1755
1759
|
function errMsg(src2, dest, funcName) {
|
|
@@ -1802,7 +1806,7 @@ var require_copy = __commonJS({
|
|
|
1802
1806
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
1803
1807
|
"use strict";
|
|
1804
1808
|
var fs13 = require_fs();
|
|
1805
|
-
var
|
|
1809
|
+
var path18 = __require("path");
|
|
1806
1810
|
var { mkdirs } = require_mkdirs();
|
|
1807
1811
|
var { pathExists } = require_path_exists();
|
|
1808
1812
|
var { utimesMillis } = require_utimes();
|
|
@@ -1825,7 +1829,7 @@ var require_copy = __commonJS({
|
|
|
1825
1829
|
await stat.checkParentPaths(src2, srcStat, dest, "copy");
|
|
1826
1830
|
const include = await runFilter(src2, dest, opts2);
|
|
1827
1831
|
if (!include) return;
|
|
1828
|
-
const destParent =
|
|
1832
|
+
const destParent = path18.dirname(dest);
|
|
1829
1833
|
const dirExists = await pathExists(destParent);
|
|
1830
1834
|
if (!dirExists) {
|
|
1831
1835
|
await mkdirs(destParent);
|
|
@@ -1878,8 +1882,8 @@ var require_copy = __commonJS({
|
|
|
1878
1882
|
await fs13.mkdir(dest);
|
|
1879
1883
|
}
|
|
1880
1884
|
await asyncIteratorConcurrentProcess(await fs13.opendir(src2), async (item) => {
|
|
1881
|
-
const srcItem =
|
|
1882
|
-
const destItem =
|
|
1885
|
+
const srcItem = path18.join(src2, item.name);
|
|
1886
|
+
const destItem = path18.join(dest, item.name);
|
|
1883
1887
|
const include = await runFilter(srcItem, destItem, opts2);
|
|
1884
1888
|
if (include) {
|
|
1885
1889
|
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts2);
|
|
@@ -1893,7 +1897,7 @@ var require_copy = __commonJS({
|
|
|
1893
1897
|
async function onLink(destStat, src2, dest, opts2) {
|
|
1894
1898
|
let resolvedSrc = await fs13.readlink(src2);
|
|
1895
1899
|
if (opts2.dereference) {
|
|
1896
|
-
resolvedSrc =
|
|
1900
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
1897
1901
|
}
|
|
1898
1902
|
if (!destStat) {
|
|
1899
1903
|
return fs13.symlink(resolvedSrc, dest);
|
|
@@ -1906,7 +1910,7 @@ var require_copy = __commonJS({
|
|
|
1906
1910
|
throw e;
|
|
1907
1911
|
}
|
|
1908
1912
|
if (opts2.dereference) {
|
|
1909
|
-
resolvedDest =
|
|
1913
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
1910
1914
|
}
|
|
1911
1915
|
if (resolvedSrc !== resolvedDest) {
|
|
1912
1916
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -1928,7 +1932,7 @@ var require_copy_sync = __commonJS({
|
|
|
1928
1932
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
1929
1933
|
"use strict";
|
|
1930
1934
|
var fs13 = require_graceful_fs();
|
|
1931
|
-
var
|
|
1935
|
+
var path18 = __require("path");
|
|
1932
1936
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
1933
1937
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
1934
1938
|
var stat = require_stat();
|
|
@@ -1949,7 +1953,7 @@ var require_copy_sync = __commonJS({
|
|
|
1949
1953
|
const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts2);
|
|
1950
1954
|
stat.checkParentPathsSync(src2, srcStat, dest, "copy");
|
|
1951
1955
|
if (opts2.filter && !opts2.filter(src2, dest)) return;
|
|
1952
|
-
const destParent =
|
|
1956
|
+
const destParent = path18.dirname(dest);
|
|
1953
1957
|
if (!fs13.existsSync(destParent)) mkdirsSync(destParent);
|
|
1954
1958
|
return getStats(destStat, src2, dest, opts2);
|
|
1955
1959
|
}
|
|
@@ -2018,8 +2022,8 @@ var require_copy_sync = __commonJS({
|
|
|
2018
2022
|
}
|
|
2019
2023
|
}
|
|
2020
2024
|
function copyDirItem(item, src2, dest, opts2) {
|
|
2021
|
-
const srcItem =
|
|
2022
|
-
const destItem =
|
|
2025
|
+
const srcItem = path18.join(src2, item);
|
|
2026
|
+
const destItem = path18.join(dest, item);
|
|
2023
2027
|
if (opts2.filter && !opts2.filter(srcItem, destItem)) return;
|
|
2024
2028
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts2);
|
|
2025
2029
|
return getStats(destStat, srcItem, destItem, opts2);
|
|
@@ -2027,7 +2031,7 @@ var require_copy_sync = __commonJS({
|
|
|
2027
2031
|
function onLink(destStat, src2, dest, opts2) {
|
|
2028
2032
|
let resolvedSrc = fs13.readlinkSync(src2);
|
|
2029
2033
|
if (opts2.dereference) {
|
|
2030
|
-
resolvedSrc =
|
|
2034
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
2031
2035
|
}
|
|
2032
2036
|
if (!destStat) {
|
|
2033
2037
|
return fs13.symlinkSync(resolvedSrc, dest);
|
|
@@ -2040,7 +2044,7 @@ var require_copy_sync = __commonJS({
|
|
|
2040
2044
|
throw err;
|
|
2041
2045
|
}
|
|
2042
2046
|
if (opts2.dereference) {
|
|
2043
|
-
resolvedDest =
|
|
2047
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
2044
2048
|
}
|
|
2045
2049
|
if (resolvedSrc !== resolvedDest) {
|
|
2046
2050
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -2079,11 +2083,11 @@ var require_remove = __commonJS({
|
|
|
2079
2083
|
"use strict";
|
|
2080
2084
|
var fs13 = require_graceful_fs();
|
|
2081
2085
|
var u = require_universalify().fromCallback;
|
|
2082
|
-
function remove(
|
|
2083
|
-
fs13.rm(
|
|
2086
|
+
function remove(path18, callback) {
|
|
2087
|
+
fs13.rm(path18, { recursive: true, force: true }, callback);
|
|
2084
2088
|
}
|
|
2085
|
-
function removeSync(
|
|
2086
|
-
fs13.rmSync(
|
|
2089
|
+
function removeSync(path18) {
|
|
2090
|
+
fs13.rmSync(path18, { recursive: true, force: true });
|
|
2087
2091
|
}
|
|
2088
2092
|
module.exports = {
|
|
2089
2093
|
remove: u(remove),
|
|
@@ -2098,7 +2102,7 @@ var require_empty = __commonJS({
|
|
|
2098
2102
|
"use strict";
|
|
2099
2103
|
var u = require_universalify().fromPromise;
|
|
2100
2104
|
var fs13 = require_fs();
|
|
2101
|
-
var
|
|
2105
|
+
var path18 = __require("path");
|
|
2102
2106
|
var mkdir = require_mkdirs();
|
|
2103
2107
|
var remove = require_remove();
|
|
2104
2108
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -2108,7 +2112,7 @@ var require_empty = __commonJS({
|
|
|
2108
2112
|
} catch {
|
|
2109
2113
|
return mkdir.mkdirs(dir);
|
|
2110
2114
|
}
|
|
2111
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
2115
|
+
return Promise.all(items.map((item) => remove.remove(path18.join(dir, item))));
|
|
2112
2116
|
});
|
|
2113
2117
|
function emptyDirSync(dir) {
|
|
2114
2118
|
let items;
|
|
@@ -2118,7 +2122,7 @@ var require_empty = __commonJS({
|
|
|
2118
2122
|
return mkdir.mkdirsSync(dir);
|
|
2119
2123
|
}
|
|
2120
2124
|
items.forEach((item) => {
|
|
2121
|
-
item =
|
|
2125
|
+
item = path18.join(dir, item);
|
|
2122
2126
|
remove.removeSync(item);
|
|
2123
2127
|
});
|
|
2124
2128
|
}
|
|
@@ -2136,7 +2140,7 @@ var require_file = __commonJS({
|
|
|
2136
2140
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
2137
2141
|
"use strict";
|
|
2138
2142
|
var u = require_universalify().fromPromise;
|
|
2139
|
-
var
|
|
2143
|
+
var path18 = __require("path");
|
|
2140
2144
|
var fs13 = require_fs();
|
|
2141
2145
|
var mkdir = require_mkdirs();
|
|
2142
2146
|
async function createFile(file) {
|
|
@@ -2146,7 +2150,7 @@ var require_file = __commonJS({
|
|
|
2146
2150
|
} catch {
|
|
2147
2151
|
}
|
|
2148
2152
|
if (stats && stats.isFile()) return;
|
|
2149
|
-
const dir =
|
|
2153
|
+
const dir = path18.dirname(file);
|
|
2150
2154
|
let dirStats = null;
|
|
2151
2155
|
try {
|
|
2152
2156
|
dirStats = await fs13.stat(dir);
|
|
@@ -2172,7 +2176,7 @@ var require_file = __commonJS({
|
|
|
2172
2176
|
} catch {
|
|
2173
2177
|
}
|
|
2174
2178
|
if (stats && stats.isFile()) return;
|
|
2175
|
-
const dir =
|
|
2179
|
+
const dir = path18.dirname(file);
|
|
2176
2180
|
try {
|
|
2177
2181
|
if (!fs13.statSync(dir).isDirectory()) {
|
|
2178
2182
|
fs13.readdirSync(dir);
|
|
@@ -2195,7 +2199,7 @@ var require_link = __commonJS({
|
|
|
2195
2199
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
2196
2200
|
"use strict";
|
|
2197
2201
|
var u = require_universalify().fromPromise;
|
|
2198
|
-
var
|
|
2202
|
+
var path18 = __require("path");
|
|
2199
2203
|
var fs13 = require_fs();
|
|
2200
2204
|
var mkdir = require_mkdirs();
|
|
2201
2205
|
var { pathExists } = require_path_exists();
|
|
@@ -2214,7 +2218,7 @@ var require_link = __commonJS({
|
|
|
2214
2218
|
throw err;
|
|
2215
2219
|
}
|
|
2216
2220
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
2217
|
-
const dir =
|
|
2221
|
+
const dir = path18.dirname(dstpath);
|
|
2218
2222
|
const dirExists = await pathExists(dir);
|
|
2219
2223
|
if (!dirExists) {
|
|
2220
2224
|
await mkdir.mkdirs(dir);
|
|
@@ -2234,7 +2238,7 @@ var require_link = __commonJS({
|
|
|
2234
2238
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
2235
2239
|
throw err;
|
|
2236
2240
|
}
|
|
2237
|
-
const dir =
|
|
2241
|
+
const dir = path18.dirname(dstpath);
|
|
2238
2242
|
const dirExists = fs13.existsSync(dir);
|
|
2239
2243
|
if (dirExists) return fs13.linkSync(srcpath, dstpath);
|
|
2240
2244
|
mkdir.mkdirsSync(dir);
|
|
@@ -2251,12 +2255,12 @@ var require_link = __commonJS({
|
|
|
2251
2255
|
var require_symlink_paths = __commonJS({
|
|
2252
2256
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
2253
2257
|
"use strict";
|
|
2254
|
-
var
|
|
2258
|
+
var path18 = __require("path");
|
|
2255
2259
|
var fs13 = require_fs();
|
|
2256
2260
|
var { pathExists } = require_path_exists();
|
|
2257
2261
|
var u = require_universalify().fromPromise;
|
|
2258
2262
|
async function symlinkPaths(srcpath, dstpath) {
|
|
2259
|
-
if (
|
|
2263
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2260
2264
|
try {
|
|
2261
2265
|
await fs13.lstat(srcpath);
|
|
2262
2266
|
} catch (err) {
|
|
@@ -2268,8 +2272,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2268
2272
|
toDst: srcpath
|
|
2269
2273
|
};
|
|
2270
2274
|
}
|
|
2271
|
-
const dstdir =
|
|
2272
|
-
const relativeToDst =
|
|
2275
|
+
const dstdir = path18.dirname(dstpath);
|
|
2276
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2273
2277
|
const exists = await pathExists(relativeToDst);
|
|
2274
2278
|
if (exists) {
|
|
2275
2279
|
return {
|
|
@@ -2285,11 +2289,11 @@ var require_symlink_paths = __commonJS({
|
|
|
2285
2289
|
}
|
|
2286
2290
|
return {
|
|
2287
2291
|
toCwd: srcpath,
|
|
2288
|
-
toDst:
|
|
2292
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
2289
2293
|
};
|
|
2290
2294
|
}
|
|
2291
2295
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
2292
|
-
if (
|
|
2296
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2293
2297
|
const exists2 = fs13.existsSync(srcpath);
|
|
2294
2298
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
2295
2299
|
return {
|
|
@@ -2297,8 +2301,8 @@ var require_symlink_paths = __commonJS({
|
|
|
2297
2301
|
toDst: srcpath
|
|
2298
2302
|
};
|
|
2299
2303
|
}
|
|
2300
|
-
const dstdir =
|
|
2301
|
-
const relativeToDst =
|
|
2304
|
+
const dstdir = path18.dirname(dstpath);
|
|
2305
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2302
2306
|
const exists = fs13.existsSync(relativeToDst);
|
|
2303
2307
|
if (exists) {
|
|
2304
2308
|
return {
|
|
@@ -2310,7 +2314,7 @@ var require_symlink_paths = __commonJS({
|
|
|
2310
2314
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
2311
2315
|
return {
|
|
2312
2316
|
toCwd: srcpath,
|
|
2313
|
-
toDst:
|
|
2317
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
2314
2318
|
};
|
|
2315
2319
|
}
|
|
2316
2320
|
module.exports = {
|
|
@@ -2358,7 +2362,7 @@ var require_symlink = __commonJS({
|
|
|
2358
2362
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
2359
2363
|
"use strict";
|
|
2360
2364
|
var u = require_universalify().fromPromise;
|
|
2361
|
-
var
|
|
2365
|
+
var path18 = __require("path");
|
|
2362
2366
|
var fs13 = require_fs();
|
|
2363
2367
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
2364
2368
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -2373,11 +2377,11 @@ var require_symlink = __commonJS({
|
|
|
2373
2377
|
}
|
|
2374
2378
|
if (stats && stats.isSymbolicLink()) {
|
|
2375
2379
|
let srcStat;
|
|
2376
|
-
if (
|
|
2380
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2377
2381
|
srcStat = await fs13.stat(srcpath);
|
|
2378
2382
|
} else {
|
|
2379
|
-
const dstdir =
|
|
2380
|
-
const relativeToDst =
|
|
2383
|
+
const dstdir = path18.dirname(dstpath);
|
|
2384
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2381
2385
|
try {
|
|
2382
2386
|
srcStat = await fs13.stat(relativeToDst);
|
|
2383
2387
|
} catch {
|
|
@@ -2390,7 +2394,7 @@ var require_symlink = __commonJS({
|
|
|
2390
2394
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
2391
2395
|
srcpath = relative.toDst;
|
|
2392
2396
|
const toType = await symlinkType(relative.toCwd, type);
|
|
2393
|
-
const dir =
|
|
2397
|
+
const dir = path18.dirname(dstpath);
|
|
2394
2398
|
if (!await pathExists(dir)) {
|
|
2395
2399
|
await mkdirs(dir);
|
|
2396
2400
|
}
|
|
@@ -2404,11 +2408,11 @@ var require_symlink = __commonJS({
|
|
|
2404
2408
|
}
|
|
2405
2409
|
if (stats && stats.isSymbolicLink()) {
|
|
2406
2410
|
let srcStat;
|
|
2407
|
-
if (
|
|
2411
|
+
if (path18.isAbsolute(srcpath)) {
|
|
2408
2412
|
srcStat = fs13.statSync(srcpath);
|
|
2409
2413
|
} else {
|
|
2410
|
-
const dstdir =
|
|
2411
|
-
const relativeToDst =
|
|
2414
|
+
const dstdir = path18.dirname(dstpath);
|
|
2415
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
2412
2416
|
try {
|
|
2413
2417
|
srcStat = fs13.statSync(relativeToDst);
|
|
2414
2418
|
} catch {
|
|
@@ -2421,7 +2425,7 @@ var require_symlink = __commonJS({
|
|
|
2421
2425
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
2422
2426
|
srcpath = relative.toDst;
|
|
2423
2427
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
2424
|
-
const dir =
|
|
2428
|
+
const dir = path18.dirname(dstpath);
|
|
2425
2429
|
const exists = fs13.existsSync(dir);
|
|
2426
2430
|
if (exists) return fs13.symlinkSync(srcpath, dstpath, type);
|
|
2427
2431
|
mkdirsSync(dir);
|
|
@@ -2573,18 +2577,18 @@ var require_output_file = __commonJS({
|
|
|
2573
2577
|
"use strict";
|
|
2574
2578
|
var u = require_universalify().fromPromise;
|
|
2575
2579
|
var fs13 = require_fs();
|
|
2576
|
-
var
|
|
2580
|
+
var path18 = __require("path");
|
|
2577
2581
|
var mkdir = require_mkdirs();
|
|
2578
2582
|
var pathExists = require_path_exists().pathExists;
|
|
2579
2583
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
2580
|
-
const dir =
|
|
2584
|
+
const dir = path18.dirname(file);
|
|
2581
2585
|
if (!await pathExists(dir)) {
|
|
2582
2586
|
await mkdir.mkdirs(dir);
|
|
2583
2587
|
}
|
|
2584
2588
|
return fs13.writeFile(file, data, encoding);
|
|
2585
2589
|
}
|
|
2586
2590
|
function outputFileSync(file, ...args) {
|
|
2587
|
-
const dir =
|
|
2591
|
+
const dir = path18.dirname(file);
|
|
2588
2592
|
if (!fs13.existsSync(dir)) {
|
|
2589
2593
|
mkdir.mkdirsSync(dir);
|
|
2590
2594
|
}
|
|
@@ -2648,7 +2652,7 @@ var require_move = __commonJS({
|
|
|
2648
2652
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
2649
2653
|
"use strict";
|
|
2650
2654
|
var fs13 = require_fs();
|
|
2651
|
-
var
|
|
2655
|
+
var path18 = __require("path");
|
|
2652
2656
|
var { copy: copy2 } = require_copy2();
|
|
2653
2657
|
var { remove } = require_remove();
|
|
2654
2658
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2658,8 +2662,8 @@ var require_move = __commonJS({
|
|
|
2658
2662
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
2659
2663
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts2);
|
|
2660
2664
|
await stat.checkParentPaths(src2, srcStat, dest, "move");
|
|
2661
|
-
const destParent =
|
|
2662
|
-
const parsedParentPath =
|
|
2665
|
+
const destParent = path18.dirname(dest);
|
|
2666
|
+
const parsedParentPath = path18.parse(destParent);
|
|
2663
2667
|
if (parsedParentPath.root !== destParent) {
|
|
2664
2668
|
await mkdirp(destParent);
|
|
2665
2669
|
}
|
|
@@ -2700,7 +2704,7 @@ var require_move_sync = __commonJS({
|
|
|
2700
2704
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.4/4cb0d718f8660ad2564c0d882d89a7255b59466c803fa7e6007de96d8c5aa18b/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
2701
2705
|
"use strict";
|
|
2702
2706
|
var fs13 = require_graceful_fs();
|
|
2703
|
-
var
|
|
2707
|
+
var path18 = __require("path");
|
|
2704
2708
|
var copySync2 = require_copy2().copySync;
|
|
2705
2709
|
var removeSync = require_remove().removeSync;
|
|
2706
2710
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2710,12 +2714,12 @@ var require_move_sync = __commonJS({
|
|
|
2710
2714
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
2711
2715
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts2);
|
|
2712
2716
|
stat.checkParentPathsSync(src2, srcStat, dest, "move");
|
|
2713
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2717
|
+
if (!isParentRoot(dest)) mkdirpSync(path18.dirname(dest));
|
|
2714
2718
|
return doRename(src2, dest, overwrite, isChangingCase);
|
|
2715
2719
|
}
|
|
2716
2720
|
function isParentRoot(dest) {
|
|
2717
|
-
const parent =
|
|
2718
|
-
const parsedPath =
|
|
2721
|
+
const parent = path18.dirname(dest);
|
|
2722
|
+
const parsedPath = path18.parse(parent);
|
|
2719
2723
|
return parsedPath.root === parent;
|
|
2720
2724
|
}
|
|
2721
2725
|
function doRename(src2, dest, overwrite, isChangingCase) {
|
|
@@ -2807,6 +2811,105 @@ var require_is_windows = __commonJS({
|
|
|
2807
2811
|
}
|
|
2808
2812
|
});
|
|
2809
2813
|
|
|
2814
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/validate-npm-package-name/7.0.2/814dcb947be9900c7df1d25263921c519f02120f3fc85aa99a69894e271e5507/node_modules/validate-npm-package-name/lib/builtin-modules.json
|
|
2815
|
+
var require_builtin_modules = __commonJS({
|
|
2816
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/validate-npm-package-name/7.0.2/814dcb947be9900c7df1d25263921c519f02120f3fc85aa99a69894e271e5507/node_modules/validate-npm-package-name/lib/builtin-modules.json"(exports, module) {
|
|
2817
|
+
module.exports = ["_http_agent", "_http_client", "_http_common", "_http_incoming", "_http_outgoing", "_http_server", "_stream_duplex", "_stream_passthrough", "_stream_readable", "_stream_transform", "_stream_wrap", "_stream_writable", "_tls_common", "_tls_wrap", "assert", "assert/strict", "async_hooks", "buffer", "child_process", "cluster", "console", "constants", "crypto", "dgram", "diagnostics_channel", "dns", "dns/promises", "domain", "events", "fs", "fs/promises", "http", "http2", "https", "inspector", "inspector/promises", "module", "net", "os", "path", "path/posix", "path/win32", "perf_hooks", "process", "punycode", "querystring", "readline", "readline/promises", "repl", "stream", "stream/consumers", "stream/promises", "stream/web", "string_decoder", "sys", "timers", "timers/promises", "tls", "trace_events", "tty", "url", "util", "util/types", "v8", "vm", "wasi", "worker_threads", "zlib", "node:sea", "node:sqlite", "node:test", "node:test/reporters"];
|
|
2818
|
+
}
|
|
2819
|
+
});
|
|
2820
|
+
|
|
2821
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/validate-npm-package-name/7.0.2/814dcb947be9900c7df1d25263921c519f02120f3fc85aa99a69894e271e5507/node_modules/validate-npm-package-name/lib/index.js
|
|
2822
|
+
var require_lib2 = __commonJS({
|
|
2823
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/validate-npm-package-name/7.0.2/814dcb947be9900c7df1d25263921c519f02120f3fc85aa99a69894e271e5507/node_modules/validate-npm-package-name/lib/index.js"(exports, module) {
|
|
2824
|
+
"use strict";
|
|
2825
|
+
var builtins = require_builtin_modules();
|
|
2826
|
+
var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
2827
|
+
var exclusionList = [
|
|
2828
|
+
"node_modules",
|
|
2829
|
+
"favicon.ico"
|
|
2830
|
+
];
|
|
2831
|
+
function validate(name) {
|
|
2832
|
+
var warnings = [];
|
|
2833
|
+
var errors2 = [];
|
|
2834
|
+
if (name === null) {
|
|
2835
|
+
errors2.push("name cannot be null");
|
|
2836
|
+
return done(warnings, errors2);
|
|
2837
|
+
}
|
|
2838
|
+
if (name === void 0) {
|
|
2839
|
+
errors2.push("name cannot be undefined");
|
|
2840
|
+
return done(warnings, errors2);
|
|
2841
|
+
}
|
|
2842
|
+
if (typeof name !== "string") {
|
|
2843
|
+
errors2.push("name must be a string");
|
|
2844
|
+
return done(warnings, errors2);
|
|
2845
|
+
}
|
|
2846
|
+
if (!name.length) {
|
|
2847
|
+
errors2.push("name length must be greater than zero");
|
|
2848
|
+
}
|
|
2849
|
+
if (name.startsWith(".")) {
|
|
2850
|
+
errors2.push("name cannot start with a period");
|
|
2851
|
+
}
|
|
2852
|
+
if (name.startsWith("-")) {
|
|
2853
|
+
errors2.push("name cannot start with a hyphen");
|
|
2854
|
+
}
|
|
2855
|
+
if (name.match(/^_/)) {
|
|
2856
|
+
errors2.push("name cannot start with an underscore");
|
|
2857
|
+
}
|
|
2858
|
+
if (name.trim() !== name) {
|
|
2859
|
+
errors2.push("name cannot contain leading or trailing spaces");
|
|
2860
|
+
}
|
|
2861
|
+
exclusionList.forEach(function(excludedName) {
|
|
2862
|
+
if (name.toLowerCase() === excludedName) {
|
|
2863
|
+
errors2.push(excludedName + " is not a valid package name");
|
|
2864
|
+
}
|
|
2865
|
+
});
|
|
2866
|
+
if (builtins.includes(name.toLowerCase())) {
|
|
2867
|
+
warnings.push(name + " is a core module name");
|
|
2868
|
+
}
|
|
2869
|
+
if (name.length > 214) {
|
|
2870
|
+
warnings.push("name can no longer contain more than 214 characters");
|
|
2871
|
+
}
|
|
2872
|
+
if (name.toLowerCase() !== name) {
|
|
2873
|
+
warnings.push("name can no longer contain capital letters");
|
|
2874
|
+
}
|
|
2875
|
+
if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
|
|
2876
|
+
warnings.push(`name can no longer contain special characters ("~'!()*")`);
|
|
2877
|
+
}
|
|
2878
|
+
if (encodeURIComponent(name) !== name) {
|
|
2879
|
+
var nameMatch = name.match(scopedPackagePattern);
|
|
2880
|
+
if (nameMatch) {
|
|
2881
|
+
var user = nameMatch[1];
|
|
2882
|
+
var pkg = nameMatch[2];
|
|
2883
|
+
if (pkg.startsWith(".")) {
|
|
2884
|
+
errors2.push("name cannot start with a period");
|
|
2885
|
+
}
|
|
2886
|
+
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
2887
|
+
return done(warnings, errors2);
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
errors2.push("name can only contain URL-friendly characters");
|
|
2891
|
+
}
|
|
2892
|
+
return done(warnings, errors2);
|
|
2893
|
+
}
|
|
2894
|
+
var done = function(warnings, errors2) {
|
|
2895
|
+
var result = {
|
|
2896
|
+
validForNewPackages: errors2.length === 0 && warnings.length === 0,
|
|
2897
|
+
validForOldPackages: errors2.length === 0,
|
|
2898
|
+
warnings,
|
|
2899
|
+
errors: errors2
|
|
2900
|
+
};
|
|
2901
|
+
if (!result.warnings.length) {
|
|
2902
|
+
delete result.warnings;
|
|
2903
|
+
}
|
|
2904
|
+
if (!result.errors.length) {
|
|
2905
|
+
delete result.errors;
|
|
2906
|
+
}
|
|
2907
|
+
return result;
|
|
2908
|
+
};
|
|
2909
|
+
module.exports = validate;
|
|
2910
|
+
}
|
|
2911
|
+
});
|
|
2912
|
+
|
|
2810
2913
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-gzip/2.0.0/82a8e17050fa38e95e62aa7580ddf517da43682e2ea1a94728382ef43c644d04/node_modules/is-gzip/index.js
|
|
2811
2914
|
var require_is_gzip = __commonJS({
|
|
2812
2915
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/is-gzip/2.0.0/82a8e17050fa38e95e62aa7580ddf517da43682e2ea1a94728382ef43c644d04/node_modules/is-gzip/index.js"(exports, module) {
|
|
@@ -2820,9 +2923,9 @@ var require_is_gzip = __commonJS({
|
|
|
2820
2923
|
}
|
|
2821
2924
|
});
|
|
2822
2925
|
|
|
2823
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
2926
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/constants.js
|
|
2824
2927
|
var require_constants = __commonJS({
|
|
2825
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
2928
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/constants.js"(exports, module) {
|
|
2826
2929
|
"use strict";
|
|
2827
2930
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
2828
2931
|
var MAX_LENGTH = 256;
|
|
@@ -2852,9 +2955,9 @@ var require_constants = __commonJS({
|
|
|
2852
2955
|
}
|
|
2853
2956
|
});
|
|
2854
2957
|
|
|
2855
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
2958
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/debug.js
|
|
2856
2959
|
var require_debug = __commonJS({
|
|
2857
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
2960
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/debug.js"(exports, module) {
|
|
2858
2961
|
"use strict";
|
|
2859
2962
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
2860
2963
|
};
|
|
@@ -2862,9 +2965,9 @@ var require_debug = __commonJS({
|
|
|
2862
2965
|
}
|
|
2863
2966
|
});
|
|
2864
2967
|
|
|
2865
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
2968
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/re.js
|
|
2866
2969
|
var require_re = __commonJS({
|
|
2867
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
2970
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/re.js"(exports, module) {
|
|
2868
2971
|
"use strict";
|
|
2869
2972
|
var {
|
|
2870
2973
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
@@ -2950,9 +3053,9 @@ var require_re = __commonJS({
|
|
|
2950
3053
|
}
|
|
2951
3054
|
});
|
|
2952
3055
|
|
|
2953
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3056
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/parse-options.js
|
|
2954
3057
|
var require_parse_options = __commonJS({
|
|
2955
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3058
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
2956
3059
|
"use strict";
|
|
2957
3060
|
var looseOption = Object.freeze({ loose: true });
|
|
2958
3061
|
var emptyOpts = Object.freeze({});
|
|
@@ -2969,9 +3072,9 @@ var require_parse_options = __commonJS({
|
|
|
2969
3072
|
}
|
|
2970
3073
|
});
|
|
2971
3074
|
|
|
2972
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3075
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/identifiers.js
|
|
2973
3076
|
var require_identifiers = __commonJS({
|
|
2974
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3077
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
2975
3078
|
"use strict";
|
|
2976
3079
|
var numeric = /^[0-9]+$/;
|
|
2977
3080
|
var compareIdentifiers = (a, b) => {
|
|
@@ -2994,15 +3097,27 @@ var require_identifiers = __commonJS({
|
|
|
2994
3097
|
}
|
|
2995
3098
|
});
|
|
2996
3099
|
|
|
2997
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3100
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/classes/semver.js
|
|
2998
3101
|
var require_semver = __commonJS({
|
|
2999
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3102
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/classes/semver.js"(exports, module) {
|
|
3000
3103
|
"use strict";
|
|
3001
3104
|
var debug = require_debug();
|
|
3002
3105
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
3003
3106
|
var { safeRe: re, t } = require_re();
|
|
3004
3107
|
var parseOptions = require_parse_options();
|
|
3005
3108
|
var { compareIdentifiers } = require_identifiers();
|
|
3109
|
+
var isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
3110
|
+
const identifiers = identifier.split(".");
|
|
3111
|
+
if (identifiers.length > prerelease.length) {
|
|
3112
|
+
return false;
|
|
3113
|
+
}
|
|
3114
|
+
for (let i = 0; i < identifiers.length; i++) {
|
|
3115
|
+
if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
|
|
3116
|
+
return false;
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
return true;
|
|
3120
|
+
};
|
|
3006
3121
|
var SemVer = class _SemVer {
|
|
3007
3122
|
constructor(version, options) {
|
|
3008
3123
|
options = parseOptions(options);
|
|
@@ -3249,8 +3364,9 @@ var require_semver = __commonJS({
|
|
|
3249
3364
|
if (identifierBase === false) {
|
|
3250
3365
|
prerelease = [identifier];
|
|
3251
3366
|
}
|
|
3252
|
-
if (
|
|
3253
|
-
|
|
3367
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
3368
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
3369
|
+
if (isNaN(prereleaseBase)) {
|
|
3254
3370
|
this.prerelease = prerelease;
|
|
3255
3371
|
}
|
|
3256
3372
|
} else {
|
|
@@ -3273,9 +3389,9 @@ var require_semver = __commonJS({
|
|
|
3273
3389
|
}
|
|
3274
3390
|
});
|
|
3275
3391
|
|
|
3276
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3392
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/parse.js
|
|
3277
3393
|
var require_parse = __commonJS({
|
|
3278
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3394
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/parse.js"(exports, module) {
|
|
3279
3395
|
"use strict";
|
|
3280
3396
|
var SemVer = require_semver();
|
|
3281
3397
|
var parse2 = (version, options, throwErrors = false) => {
|
|
@@ -3295,9 +3411,9 @@ var require_parse = __commonJS({
|
|
|
3295
3411
|
}
|
|
3296
3412
|
});
|
|
3297
3413
|
|
|
3298
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3414
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/valid.js
|
|
3299
3415
|
var require_valid = __commonJS({
|
|
3300
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3416
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/valid.js"(exports, module) {
|
|
3301
3417
|
"use strict";
|
|
3302
3418
|
var parse2 = require_parse();
|
|
3303
3419
|
var valid = (version, options) => {
|
|
@@ -3308,9 +3424,9 @@ var require_valid = __commonJS({
|
|
|
3308
3424
|
}
|
|
3309
3425
|
});
|
|
3310
3426
|
|
|
3311
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3427
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/clean.js
|
|
3312
3428
|
var require_clean = __commonJS({
|
|
3313
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3429
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/clean.js"(exports, module) {
|
|
3314
3430
|
"use strict";
|
|
3315
3431
|
var parse2 = require_parse();
|
|
3316
3432
|
var clean = (version, options) => {
|
|
@@ -3321,9 +3437,9 @@ var require_clean = __commonJS({
|
|
|
3321
3437
|
}
|
|
3322
3438
|
});
|
|
3323
3439
|
|
|
3324
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3440
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/inc.js
|
|
3325
3441
|
var require_inc = __commonJS({
|
|
3326
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3442
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/inc.js"(exports, module) {
|
|
3327
3443
|
"use strict";
|
|
3328
3444
|
var SemVer = require_semver();
|
|
3329
3445
|
var inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -3345,9 +3461,9 @@ var require_inc = __commonJS({
|
|
|
3345
3461
|
}
|
|
3346
3462
|
});
|
|
3347
3463
|
|
|
3348
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3464
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/diff.js
|
|
3349
3465
|
var require_diff = __commonJS({
|
|
3350
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3466
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/diff.js"(exports, module) {
|
|
3351
3467
|
"use strict";
|
|
3352
3468
|
var parse2 = require_parse();
|
|
3353
3469
|
var diff = (version1, version2) => {
|
|
@@ -3389,9 +3505,9 @@ var require_diff = __commonJS({
|
|
|
3389
3505
|
}
|
|
3390
3506
|
});
|
|
3391
3507
|
|
|
3392
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3508
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/major.js
|
|
3393
3509
|
var require_major = __commonJS({
|
|
3394
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3510
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/major.js"(exports, module) {
|
|
3395
3511
|
"use strict";
|
|
3396
3512
|
var SemVer = require_semver();
|
|
3397
3513
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
@@ -3399,9 +3515,9 @@ var require_major = __commonJS({
|
|
|
3399
3515
|
}
|
|
3400
3516
|
});
|
|
3401
3517
|
|
|
3402
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3518
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/minor.js
|
|
3403
3519
|
var require_minor = __commonJS({
|
|
3404
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3520
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/minor.js"(exports, module) {
|
|
3405
3521
|
"use strict";
|
|
3406
3522
|
var SemVer = require_semver();
|
|
3407
3523
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
@@ -3409,9 +3525,9 @@ var require_minor = __commonJS({
|
|
|
3409
3525
|
}
|
|
3410
3526
|
});
|
|
3411
3527
|
|
|
3412
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3528
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/patch.js
|
|
3413
3529
|
var require_patch = __commonJS({
|
|
3414
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3530
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/patch.js"(exports, module) {
|
|
3415
3531
|
"use strict";
|
|
3416
3532
|
var SemVer = require_semver();
|
|
3417
3533
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
@@ -3419,9 +3535,9 @@ var require_patch = __commonJS({
|
|
|
3419
3535
|
}
|
|
3420
3536
|
});
|
|
3421
3537
|
|
|
3422
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3538
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/prerelease.js
|
|
3423
3539
|
var require_prerelease = __commonJS({
|
|
3424
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3540
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
3425
3541
|
"use strict";
|
|
3426
3542
|
var parse2 = require_parse();
|
|
3427
3543
|
var prerelease = (version, options) => {
|
|
@@ -3432,9 +3548,9 @@ var require_prerelease = __commonJS({
|
|
|
3432
3548
|
}
|
|
3433
3549
|
});
|
|
3434
3550
|
|
|
3435
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3551
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/compare.js
|
|
3436
3552
|
var require_compare = __commonJS({
|
|
3437
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3553
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/compare.js"(exports, module) {
|
|
3438
3554
|
"use strict";
|
|
3439
3555
|
var SemVer = require_semver();
|
|
3440
3556
|
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
@@ -3442,9 +3558,9 @@ var require_compare = __commonJS({
|
|
|
3442
3558
|
}
|
|
3443
3559
|
});
|
|
3444
3560
|
|
|
3445
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3561
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/rcompare.js
|
|
3446
3562
|
var require_rcompare = __commonJS({
|
|
3447
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3563
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
3448
3564
|
"use strict";
|
|
3449
3565
|
var compare = require_compare();
|
|
3450
3566
|
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
@@ -3452,9 +3568,9 @@ var require_rcompare = __commonJS({
|
|
|
3452
3568
|
}
|
|
3453
3569
|
});
|
|
3454
3570
|
|
|
3455
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3571
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/compare-loose.js
|
|
3456
3572
|
var require_compare_loose = __commonJS({
|
|
3457
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3573
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
3458
3574
|
"use strict";
|
|
3459
3575
|
var compare = require_compare();
|
|
3460
3576
|
var compareLoose = (a, b) => compare(a, b, true);
|
|
@@ -3462,9 +3578,9 @@ var require_compare_loose = __commonJS({
|
|
|
3462
3578
|
}
|
|
3463
3579
|
});
|
|
3464
3580
|
|
|
3465
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3581
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/compare-build.js
|
|
3466
3582
|
var require_compare_build = __commonJS({
|
|
3467
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3583
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
3468
3584
|
"use strict";
|
|
3469
3585
|
var SemVer = require_semver();
|
|
3470
3586
|
var compareBuild = (a, b, loose) => {
|
|
@@ -3476,9 +3592,9 @@ var require_compare_build = __commonJS({
|
|
|
3476
3592
|
}
|
|
3477
3593
|
});
|
|
3478
3594
|
|
|
3479
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3595
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/sort.js
|
|
3480
3596
|
var require_sort = __commonJS({
|
|
3481
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3597
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/sort.js"(exports, module) {
|
|
3482
3598
|
"use strict";
|
|
3483
3599
|
var compareBuild = require_compare_build();
|
|
3484
3600
|
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
@@ -3486,9 +3602,9 @@ var require_sort = __commonJS({
|
|
|
3486
3602
|
}
|
|
3487
3603
|
});
|
|
3488
3604
|
|
|
3489
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3605
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/rsort.js
|
|
3490
3606
|
var require_rsort = __commonJS({
|
|
3491
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3607
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/rsort.js"(exports, module) {
|
|
3492
3608
|
"use strict";
|
|
3493
3609
|
var compareBuild = require_compare_build();
|
|
3494
3610
|
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
@@ -3496,9 +3612,9 @@ var require_rsort = __commonJS({
|
|
|
3496
3612
|
}
|
|
3497
3613
|
});
|
|
3498
3614
|
|
|
3499
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3615
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/gt.js
|
|
3500
3616
|
var require_gt = __commonJS({
|
|
3501
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3617
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/gt.js"(exports, module) {
|
|
3502
3618
|
"use strict";
|
|
3503
3619
|
var compare = require_compare();
|
|
3504
3620
|
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
@@ -3506,9 +3622,9 @@ var require_gt = __commonJS({
|
|
|
3506
3622
|
}
|
|
3507
3623
|
});
|
|
3508
3624
|
|
|
3509
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3625
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/lt.js
|
|
3510
3626
|
var require_lt = __commonJS({
|
|
3511
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3627
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/lt.js"(exports, module) {
|
|
3512
3628
|
"use strict";
|
|
3513
3629
|
var compare = require_compare();
|
|
3514
3630
|
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
@@ -3516,9 +3632,9 @@ var require_lt = __commonJS({
|
|
|
3516
3632
|
}
|
|
3517
3633
|
});
|
|
3518
3634
|
|
|
3519
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3635
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/eq.js
|
|
3520
3636
|
var require_eq = __commonJS({
|
|
3521
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3637
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/eq.js"(exports, module) {
|
|
3522
3638
|
"use strict";
|
|
3523
3639
|
var compare = require_compare();
|
|
3524
3640
|
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
@@ -3526,9 +3642,9 @@ var require_eq = __commonJS({
|
|
|
3526
3642
|
}
|
|
3527
3643
|
});
|
|
3528
3644
|
|
|
3529
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3645
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/neq.js
|
|
3530
3646
|
var require_neq = __commonJS({
|
|
3531
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3647
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/neq.js"(exports, module) {
|
|
3532
3648
|
"use strict";
|
|
3533
3649
|
var compare = require_compare();
|
|
3534
3650
|
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
@@ -3536,9 +3652,9 @@ var require_neq = __commonJS({
|
|
|
3536
3652
|
}
|
|
3537
3653
|
});
|
|
3538
3654
|
|
|
3539
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3655
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/gte.js
|
|
3540
3656
|
var require_gte = __commonJS({
|
|
3541
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3657
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/gte.js"(exports, module) {
|
|
3542
3658
|
"use strict";
|
|
3543
3659
|
var compare = require_compare();
|
|
3544
3660
|
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
@@ -3546,9 +3662,9 @@ var require_gte = __commonJS({
|
|
|
3546
3662
|
}
|
|
3547
3663
|
});
|
|
3548
3664
|
|
|
3549
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3665
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/lte.js
|
|
3550
3666
|
var require_lte = __commonJS({
|
|
3551
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3667
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/lte.js"(exports, module) {
|
|
3552
3668
|
"use strict";
|
|
3553
3669
|
var compare = require_compare();
|
|
3554
3670
|
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
@@ -3556,9 +3672,9 @@ var require_lte = __commonJS({
|
|
|
3556
3672
|
}
|
|
3557
3673
|
});
|
|
3558
3674
|
|
|
3559
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3675
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/cmp.js
|
|
3560
3676
|
var require_cmp = __commonJS({
|
|
3561
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3677
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/cmp.js"(exports, module) {
|
|
3562
3678
|
"use strict";
|
|
3563
3679
|
var eq = require_eq();
|
|
3564
3680
|
var neq = require_neq();
|
|
@@ -3606,9 +3722,9 @@ var require_cmp = __commonJS({
|
|
|
3606
3722
|
}
|
|
3607
3723
|
});
|
|
3608
3724
|
|
|
3609
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3725
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/coerce.js
|
|
3610
3726
|
var require_coerce = __commonJS({
|
|
3611
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3727
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/coerce.js"(exports, module) {
|
|
3612
3728
|
"use strict";
|
|
3613
3729
|
var SemVer = require_semver();
|
|
3614
3730
|
var parse2 = require_parse();
|
|
@@ -3652,9 +3768,9 @@ var require_coerce = __commonJS({
|
|
|
3652
3768
|
}
|
|
3653
3769
|
});
|
|
3654
3770
|
|
|
3655
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3771
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/truncate.js
|
|
3656
3772
|
var require_truncate = __commonJS({
|
|
3657
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3773
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/truncate.js"(exports, module) {
|
|
3658
3774
|
"use strict";
|
|
3659
3775
|
var parse2 = require_parse();
|
|
3660
3776
|
var constants2 = require_constants();
|
|
@@ -3693,9 +3809,9 @@ var require_truncate = __commonJS({
|
|
|
3693
3809
|
}
|
|
3694
3810
|
});
|
|
3695
3811
|
|
|
3696
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3812
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/lrucache.js
|
|
3697
3813
|
var require_lrucache = __commonJS({
|
|
3698
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3814
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
3699
3815
|
"use strict";
|
|
3700
3816
|
var LRUCache = class {
|
|
3701
3817
|
constructor() {
|
|
@@ -3731,9 +3847,9 @@ var require_lrucache = __commonJS({
|
|
|
3731
3847
|
}
|
|
3732
3848
|
});
|
|
3733
3849
|
|
|
3734
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3850
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/classes/range.js
|
|
3735
3851
|
var require_range = __commonJS({
|
|
3736
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
3852
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/classes/range.js"(exports, module) {
|
|
3737
3853
|
"use strict";
|
|
3738
3854
|
var SPACE_CHARACTERS = /\s+/g;
|
|
3739
3855
|
var Range = class _Range {
|
|
@@ -3920,6 +4036,7 @@ var require_range = __commonJS({
|
|
|
3920
4036
|
return comp;
|
|
3921
4037
|
};
|
|
3922
4038
|
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
4039
|
+
var invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
3923
4040
|
var replaceTildes = (comp, options) => {
|
|
3924
4041
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
3925
4042
|
};
|
|
@@ -3979,9 +4096,9 @@ var require_range = __commonJS({
|
|
|
3979
4096
|
debug("no pr");
|
|
3980
4097
|
if (M === "0") {
|
|
3981
4098
|
if (m === "0") {
|
|
3982
|
-
ret = `>=${M}.${m}.${p}
|
|
4099
|
+
ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
3983
4100
|
} else {
|
|
3984
|
-
ret = `>=${M}.${m}.${p}
|
|
4101
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
3985
4102
|
}
|
|
3986
4103
|
} else {
|
|
3987
4104
|
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
@@ -4000,6 +4117,9 @@ var require_range = __commonJS({
|
|
|
4000
4117
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
4001
4118
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
4002
4119
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
4120
|
+
if (invalidXRangeOrder(M, m, p)) {
|
|
4121
|
+
return comp;
|
|
4122
|
+
}
|
|
4003
4123
|
const xM = isX(M);
|
|
4004
4124
|
const xm = xM || isX(m);
|
|
4005
4125
|
const xp = xm || isX(p);
|
|
@@ -4111,9 +4231,9 @@ var require_range = __commonJS({
|
|
|
4111
4231
|
}
|
|
4112
4232
|
});
|
|
4113
4233
|
|
|
4114
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4234
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/classes/comparator.js
|
|
4115
4235
|
var require_comparator = __commonJS({
|
|
4116
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4236
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/classes/comparator.js"(exports, module) {
|
|
4117
4237
|
"use strict";
|
|
4118
4238
|
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
4119
4239
|
var Comparator = class _Comparator {
|
|
@@ -4224,9 +4344,9 @@ var require_comparator = __commonJS({
|
|
|
4224
4344
|
}
|
|
4225
4345
|
});
|
|
4226
4346
|
|
|
4227
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4347
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/satisfies.js
|
|
4228
4348
|
var require_satisfies = __commonJS({
|
|
4229
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4349
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
4230
4350
|
"use strict";
|
|
4231
4351
|
var Range = require_range();
|
|
4232
4352
|
var satisfies = (version, range, options) => {
|
|
@@ -4241,9 +4361,9 @@ var require_satisfies = __commonJS({
|
|
|
4241
4361
|
}
|
|
4242
4362
|
});
|
|
4243
4363
|
|
|
4244
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4364
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/to-comparators.js
|
|
4245
4365
|
var require_to_comparators = __commonJS({
|
|
4246
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4366
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
4247
4367
|
"use strict";
|
|
4248
4368
|
var Range = require_range();
|
|
4249
4369
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
@@ -4251,9 +4371,9 @@ var require_to_comparators = __commonJS({
|
|
|
4251
4371
|
}
|
|
4252
4372
|
});
|
|
4253
4373
|
|
|
4254
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4374
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/max-satisfying.js
|
|
4255
4375
|
var require_max_satisfying = __commonJS({
|
|
4256
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4376
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
4257
4377
|
"use strict";
|
|
4258
4378
|
var SemVer = require_semver();
|
|
4259
4379
|
var Range = require_range();
|
|
@@ -4280,9 +4400,9 @@ var require_max_satisfying = __commonJS({
|
|
|
4280
4400
|
}
|
|
4281
4401
|
});
|
|
4282
4402
|
|
|
4283
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4403
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/min-satisfying.js
|
|
4284
4404
|
var require_min_satisfying = __commonJS({
|
|
4285
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4405
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
4286
4406
|
"use strict";
|
|
4287
4407
|
var SemVer = require_semver();
|
|
4288
4408
|
var Range = require_range();
|
|
@@ -4309,9 +4429,9 @@ var require_min_satisfying = __commonJS({
|
|
|
4309
4429
|
}
|
|
4310
4430
|
});
|
|
4311
4431
|
|
|
4312
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4432
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/min-version.js
|
|
4313
4433
|
var require_min_version = __commonJS({
|
|
4314
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4434
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
4315
4435
|
"use strict";
|
|
4316
4436
|
var SemVer = require_semver();
|
|
4317
4437
|
var Range = require_range();
|
|
@@ -4368,9 +4488,9 @@ var require_min_version = __commonJS({
|
|
|
4368
4488
|
}
|
|
4369
4489
|
});
|
|
4370
4490
|
|
|
4371
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4491
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/valid.js
|
|
4372
4492
|
var require_valid2 = __commonJS({
|
|
4373
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4493
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/valid.js"(exports, module) {
|
|
4374
4494
|
"use strict";
|
|
4375
4495
|
var Range = require_range();
|
|
4376
4496
|
var validRange = (range, options) => {
|
|
@@ -4384,9 +4504,9 @@ var require_valid2 = __commonJS({
|
|
|
4384
4504
|
}
|
|
4385
4505
|
});
|
|
4386
4506
|
|
|
4387
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4507
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/outside.js
|
|
4388
4508
|
var require_outside = __commonJS({
|
|
4389
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4509
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/outside.js"(exports, module) {
|
|
4390
4510
|
"use strict";
|
|
4391
4511
|
var SemVer = require_semver();
|
|
4392
4512
|
var Comparator = require_comparator();
|
|
@@ -4453,9 +4573,9 @@ var require_outside = __commonJS({
|
|
|
4453
4573
|
}
|
|
4454
4574
|
});
|
|
4455
4575
|
|
|
4456
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4576
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/gtr.js
|
|
4457
4577
|
var require_gtr = __commonJS({
|
|
4458
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4578
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
4459
4579
|
"use strict";
|
|
4460
4580
|
var outside = require_outside();
|
|
4461
4581
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
@@ -4463,9 +4583,9 @@ var require_gtr = __commonJS({
|
|
|
4463
4583
|
}
|
|
4464
4584
|
});
|
|
4465
4585
|
|
|
4466
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4586
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/ltr.js
|
|
4467
4587
|
var require_ltr = __commonJS({
|
|
4468
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4588
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
4469
4589
|
"use strict";
|
|
4470
4590
|
var outside = require_outside();
|
|
4471
4591
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
@@ -4473,9 +4593,9 @@ var require_ltr = __commonJS({
|
|
|
4473
4593
|
}
|
|
4474
4594
|
});
|
|
4475
4595
|
|
|
4476
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4596
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/intersects.js
|
|
4477
4597
|
var require_intersects = __commonJS({
|
|
4478
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4598
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
4479
4599
|
"use strict";
|
|
4480
4600
|
var Range = require_range();
|
|
4481
4601
|
var intersects = (r1, r2, options) => {
|
|
@@ -4487,9 +4607,9 @@ var require_intersects = __commonJS({
|
|
|
4487
4607
|
}
|
|
4488
4608
|
});
|
|
4489
4609
|
|
|
4490
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4610
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/simplify.js
|
|
4491
4611
|
var require_simplify = __commonJS({
|
|
4492
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4612
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
4493
4613
|
"use strict";
|
|
4494
4614
|
var satisfies = require_satisfies();
|
|
4495
4615
|
var compare = require_compare();
|
|
@@ -4537,9 +4657,9 @@ var require_simplify = __commonJS({
|
|
|
4537
4657
|
}
|
|
4538
4658
|
});
|
|
4539
4659
|
|
|
4540
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4660
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/subset.js
|
|
4541
4661
|
var require_subset = __commonJS({
|
|
4542
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4662
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/ranges/subset.js"(exports, module) {
|
|
4543
4663
|
"use strict";
|
|
4544
4664
|
var Range = require_range();
|
|
4545
4665
|
var Comparator = require_comparator();
|
|
@@ -4699,9 +4819,9 @@ var require_subset = __commonJS({
|
|
|
4699
4819
|
}
|
|
4700
4820
|
});
|
|
4701
4821
|
|
|
4702
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4822
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/index.js
|
|
4703
4823
|
var require_semver2 = __commonJS({
|
|
4704
|
-
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.
|
|
4824
|
+
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/semver/7.8.4/48cc509f370d08764bdd488acefc1593686b163bb115f092a88a62ad0188ca28/node_modules/semver/index.js"(exports, module) {
|
|
4705
4825
|
"use strict";
|
|
4706
4826
|
var internalRe = require_re();
|
|
4707
4827
|
var constants2 = require_constants();
|
|
@@ -4916,10 +5036,10 @@ var require_fs2 = __commonJS({
|
|
|
4916
5036
|
var require_utils3 = __commonJS({
|
|
4917
5037
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
|
|
4918
5038
|
"use strict";
|
|
4919
|
-
var
|
|
5039
|
+
var path18 = __require("path");
|
|
4920
5040
|
module.exports.checkPath = function checkPath(pth) {
|
|
4921
5041
|
if (process.platform === "win32") {
|
|
4922
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
5042
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path18.parse(pth).root, ""));
|
|
4923
5043
|
if (pathHasInvalidWinCharacters) {
|
|
4924
5044
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
4925
5045
|
error.code = "EINVAL";
|
|
@@ -4983,8 +5103,8 @@ var require_path_exists2 = __commonJS({
|
|
|
4983
5103
|
"use strict";
|
|
4984
5104
|
var u = require_universalify().fromPromise;
|
|
4985
5105
|
var fs13 = require_fs2();
|
|
4986
|
-
function pathExists(
|
|
4987
|
-
return fs13.access(
|
|
5106
|
+
function pathExists(path18) {
|
|
5107
|
+
return fs13.access(path18).then(() => true).catch(() => false);
|
|
4988
5108
|
}
|
|
4989
5109
|
module.exports = {
|
|
4990
5110
|
pathExists: u(pathExists),
|
|
@@ -4999,8 +5119,8 @@ var require_utimes2 = __commonJS({
|
|
|
4999
5119
|
"use strict";
|
|
5000
5120
|
var fs13 = require_fs2();
|
|
5001
5121
|
var u = require_universalify().fromPromise;
|
|
5002
|
-
async function utimesMillis(
|
|
5003
|
-
const fd = await fs13.open(
|
|
5122
|
+
async function utimesMillis(path18, atime, mtime) {
|
|
5123
|
+
const fd = await fs13.open(path18, "r+");
|
|
5004
5124
|
let error = null;
|
|
5005
5125
|
try {
|
|
5006
5126
|
await fs13.futimes(fd, atime, mtime);
|
|
@@ -5017,8 +5137,8 @@ var require_utimes2 = __commonJS({
|
|
|
5017
5137
|
throw error;
|
|
5018
5138
|
}
|
|
5019
5139
|
}
|
|
5020
|
-
function utimesMillisSync(
|
|
5021
|
-
const fd = fs13.openSync(
|
|
5140
|
+
function utimesMillisSync(path18, atime, mtime) {
|
|
5141
|
+
const fd = fs13.openSync(path18, "r+");
|
|
5022
5142
|
let error = null;
|
|
5023
5143
|
try {
|
|
5024
5144
|
fs13.futimesSync(fd, atime, mtime);
|
|
@@ -5047,7 +5167,7 @@ var require_stat2 = __commonJS({
|
|
|
5047
5167
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/util/stat.js"(exports, module) {
|
|
5048
5168
|
"use strict";
|
|
5049
5169
|
var fs13 = require_fs2();
|
|
5050
|
-
var
|
|
5170
|
+
var path18 = __require("path");
|
|
5051
5171
|
var u = require_universalify().fromPromise;
|
|
5052
5172
|
function getStats(src2, dest, opts2) {
|
|
5053
5173
|
const statFunc = opts2.dereference ? (file) => fs13.stat(file, { bigint: true }) : (file) => fs13.lstat(file, { bigint: true });
|
|
@@ -5075,8 +5195,8 @@ var require_stat2 = __commonJS({
|
|
|
5075
5195
|
const { srcStat, destStat } = await getStats(src2, dest, opts2);
|
|
5076
5196
|
if (destStat) {
|
|
5077
5197
|
if (areIdentical(srcStat, destStat)) {
|
|
5078
|
-
const srcBaseName =
|
|
5079
|
-
const destBaseName =
|
|
5198
|
+
const srcBaseName = path18.basename(src2);
|
|
5199
|
+
const destBaseName = path18.basename(dest);
|
|
5080
5200
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5081
5201
|
return { srcStat, destStat, isChangingCase: true };
|
|
5082
5202
|
}
|
|
@@ -5098,8 +5218,8 @@ var require_stat2 = __commonJS({
|
|
|
5098
5218
|
const { srcStat, destStat } = getStatsSync(src2, dest, opts2);
|
|
5099
5219
|
if (destStat) {
|
|
5100
5220
|
if (areIdentical(srcStat, destStat)) {
|
|
5101
|
-
const srcBaseName =
|
|
5102
|
-
const destBaseName =
|
|
5221
|
+
const srcBaseName = path18.basename(src2);
|
|
5222
|
+
const destBaseName = path18.basename(dest);
|
|
5103
5223
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5104
5224
|
return { srcStat, destStat, isChangingCase: true };
|
|
5105
5225
|
}
|
|
@@ -5118,9 +5238,9 @@ var require_stat2 = __commonJS({
|
|
|
5118
5238
|
return { srcStat, destStat };
|
|
5119
5239
|
}
|
|
5120
5240
|
async function checkParentPaths(src2, srcStat, dest, funcName) {
|
|
5121
|
-
const srcParent =
|
|
5122
|
-
const destParent =
|
|
5123
|
-
if (destParent === srcParent || destParent ===
|
|
5241
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
5242
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
5243
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
5124
5244
|
let destStat;
|
|
5125
5245
|
try {
|
|
5126
5246
|
destStat = await fs13.stat(destParent, { bigint: true });
|
|
@@ -5134,9 +5254,9 @@ var require_stat2 = __commonJS({
|
|
|
5134
5254
|
return checkParentPaths(src2, srcStat, destParent, funcName);
|
|
5135
5255
|
}
|
|
5136
5256
|
function checkParentPathsSync(src2, srcStat, dest, funcName) {
|
|
5137
|
-
const srcParent =
|
|
5138
|
-
const destParent =
|
|
5139
|
-
if (destParent === srcParent || destParent ===
|
|
5257
|
+
const srcParent = path18.resolve(path18.dirname(src2));
|
|
5258
|
+
const destParent = path18.resolve(path18.dirname(dest));
|
|
5259
|
+
if (destParent === srcParent || destParent === path18.parse(destParent).root) return;
|
|
5140
5260
|
let destStat;
|
|
5141
5261
|
try {
|
|
5142
5262
|
destStat = fs13.statSync(destParent, { bigint: true });
|
|
@@ -5153,8 +5273,8 @@ var require_stat2 = __commonJS({
|
|
|
5153
5273
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
5154
5274
|
}
|
|
5155
5275
|
function isSrcSubdir(src2, dest) {
|
|
5156
|
-
const srcArr =
|
|
5157
|
-
const destArr =
|
|
5276
|
+
const srcArr = path18.resolve(src2).split(path18.sep).filter((i) => i);
|
|
5277
|
+
const destArr = path18.resolve(dest).split(path18.sep).filter((i) => i);
|
|
5158
5278
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
5159
5279
|
}
|
|
5160
5280
|
function errMsg(src2, dest, funcName) {
|
|
@@ -5207,7 +5327,7 @@ var require_copy3 = __commonJS({
|
|
|
5207
5327
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy.js"(exports, module) {
|
|
5208
5328
|
"use strict";
|
|
5209
5329
|
var fs13 = require_fs2();
|
|
5210
|
-
var
|
|
5330
|
+
var path18 = __require("path");
|
|
5211
5331
|
var { mkdirs } = require_mkdirs2();
|
|
5212
5332
|
var { pathExists } = require_path_exists2();
|
|
5213
5333
|
var { utimesMillis } = require_utimes2();
|
|
@@ -5230,7 +5350,7 @@ var require_copy3 = __commonJS({
|
|
|
5230
5350
|
await stat.checkParentPaths(src2, srcStat, dest, "copy");
|
|
5231
5351
|
const include = await runFilter(src2, dest, opts2);
|
|
5232
5352
|
if (!include) return;
|
|
5233
|
-
const destParent =
|
|
5353
|
+
const destParent = path18.dirname(dest);
|
|
5234
5354
|
const dirExists = await pathExists(destParent);
|
|
5235
5355
|
if (!dirExists) {
|
|
5236
5356
|
await mkdirs(destParent);
|
|
@@ -5283,8 +5403,8 @@ var require_copy3 = __commonJS({
|
|
|
5283
5403
|
await fs13.mkdir(dest);
|
|
5284
5404
|
}
|
|
5285
5405
|
await asyncIteratorConcurrentProcess(await fs13.opendir(src2), async (item) => {
|
|
5286
|
-
const srcItem =
|
|
5287
|
-
const destItem =
|
|
5406
|
+
const srcItem = path18.join(src2, item.name);
|
|
5407
|
+
const destItem = path18.join(dest, item.name);
|
|
5288
5408
|
const include = await runFilter(srcItem, destItem, opts2);
|
|
5289
5409
|
if (include) {
|
|
5290
5410
|
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts2);
|
|
@@ -5298,7 +5418,7 @@ var require_copy3 = __commonJS({
|
|
|
5298
5418
|
async function onLink(destStat, src2, dest, opts2) {
|
|
5299
5419
|
let resolvedSrc = await fs13.readlink(src2);
|
|
5300
5420
|
if (opts2.dereference) {
|
|
5301
|
-
resolvedSrc =
|
|
5421
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
5302
5422
|
}
|
|
5303
5423
|
if (!destStat) {
|
|
5304
5424
|
return fs13.symlink(resolvedSrc, dest);
|
|
@@ -5311,7 +5431,7 @@ var require_copy3 = __commonJS({
|
|
|
5311
5431
|
throw e;
|
|
5312
5432
|
}
|
|
5313
5433
|
if (opts2.dereference) {
|
|
5314
|
-
resolvedDest =
|
|
5434
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
5315
5435
|
}
|
|
5316
5436
|
if (resolvedSrc !== resolvedDest) {
|
|
5317
5437
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -5333,7 +5453,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5333
5453
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) {
|
|
5334
5454
|
"use strict";
|
|
5335
5455
|
var fs13 = require_graceful_fs();
|
|
5336
|
-
var
|
|
5456
|
+
var path18 = __require("path");
|
|
5337
5457
|
var mkdirsSync = require_mkdirs2().mkdirsSync;
|
|
5338
5458
|
var utimesMillisSync = require_utimes2().utimesMillisSync;
|
|
5339
5459
|
var stat = require_stat2();
|
|
@@ -5354,7 +5474,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5354
5474
|
const { srcStat, destStat } = stat.checkPathsSync(src2, dest, "copy", opts2);
|
|
5355
5475
|
stat.checkParentPathsSync(src2, srcStat, dest, "copy");
|
|
5356
5476
|
if (opts2.filter && !opts2.filter(src2, dest)) return;
|
|
5357
|
-
const destParent =
|
|
5477
|
+
const destParent = path18.dirname(dest);
|
|
5358
5478
|
if (!fs13.existsSync(destParent)) mkdirsSync(destParent);
|
|
5359
5479
|
return getStats(destStat, src2, dest, opts2);
|
|
5360
5480
|
}
|
|
@@ -5423,8 +5543,8 @@ var require_copy_sync2 = __commonJS({
|
|
|
5423
5543
|
}
|
|
5424
5544
|
}
|
|
5425
5545
|
function copyDirItem(item, src2, dest, opts2) {
|
|
5426
|
-
const srcItem =
|
|
5427
|
-
const destItem =
|
|
5546
|
+
const srcItem = path18.join(src2, item);
|
|
5547
|
+
const destItem = path18.join(dest, item);
|
|
5428
5548
|
if (opts2.filter && !opts2.filter(srcItem, destItem)) return;
|
|
5429
5549
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts2);
|
|
5430
5550
|
return getStats(destStat, srcItem, destItem, opts2);
|
|
@@ -5432,7 +5552,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5432
5552
|
function onLink(destStat, src2, dest, opts2) {
|
|
5433
5553
|
let resolvedSrc = fs13.readlinkSync(src2);
|
|
5434
5554
|
if (opts2.dereference) {
|
|
5435
|
-
resolvedSrc =
|
|
5555
|
+
resolvedSrc = path18.resolve(process.cwd(), resolvedSrc);
|
|
5436
5556
|
}
|
|
5437
5557
|
if (!destStat) {
|
|
5438
5558
|
return fs13.symlinkSync(resolvedSrc, dest);
|
|
@@ -5445,7 +5565,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
5445
5565
|
throw err;
|
|
5446
5566
|
}
|
|
5447
5567
|
if (opts2.dereference) {
|
|
5448
|
-
resolvedDest =
|
|
5568
|
+
resolvedDest = path18.resolve(process.cwd(), resolvedDest);
|
|
5449
5569
|
}
|
|
5450
5570
|
if (resolvedSrc !== resolvedDest) {
|
|
5451
5571
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -5484,11 +5604,11 @@ var require_remove2 = __commonJS({
|
|
|
5484
5604
|
"use strict";
|
|
5485
5605
|
var fs13 = require_graceful_fs();
|
|
5486
5606
|
var u = require_universalify().fromCallback;
|
|
5487
|
-
function remove(
|
|
5488
|
-
fs13.rm(
|
|
5607
|
+
function remove(path18, callback) {
|
|
5608
|
+
fs13.rm(path18, { recursive: true, force: true }, callback);
|
|
5489
5609
|
}
|
|
5490
|
-
function removeSync(
|
|
5491
|
-
fs13.rmSync(
|
|
5610
|
+
function removeSync(path18) {
|
|
5611
|
+
fs13.rmSync(path18, { recursive: true, force: true });
|
|
5492
5612
|
}
|
|
5493
5613
|
module.exports = {
|
|
5494
5614
|
remove: u(remove),
|
|
@@ -5503,7 +5623,7 @@ var require_empty2 = __commonJS({
|
|
|
5503
5623
|
"use strict";
|
|
5504
5624
|
var u = require_universalify().fromPromise;
|
|
5505
5625
|
var fs13 = require_fs2();
|
|
5506
|
-
var
|
|
5626
|
+
var path18 = __require("path");
|
|
5507
5627
|
var mkdir = require_mkdirs2();
|
|
5508
5628
|
var remove = require_remove2();
|
|
5509
5629
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -5513,7 +5633,7 @@ var require_empty2 = __commonJS({
|
|
|
5513
5633
|
} catch {
|
|
5514
5634
|
return mkdir.mkdirs(dir);
|
|
5515
5635
|
}
|
|
5516
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
5636
|
+
return Promise.all(items.map((item) => remove.remove(path18.join(dir, item))));
|
|
5517
5637
|
});
|
|
5518
5638
|
function emptyDirSync(dir) {
|
|
5519
5639
|
let items;
|
|
@@ -5523,7 +5643,7 @@ var require_empty2 = __commonJS({
|
|
|
5523
5643
|
return mkdir.mkdirsSync(dir);
|
|
5524
5644
|
}
|
|
5525
5645
|
items.forEach((item) => {
|
|
5526
|
-
item =
|
|
5646
|
+
item = path18.join(dir, item);
|
|
5527
5647
|
remove.removeSync(item);
|
|
5528
5648
|
});
|
|
5529
5649
|
}
|
|
@@ -5541,7 +5661,7 @@ var require_file2 = __commonJS({
|
|
|
5541
5661
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/file.js"(exports, module) {
|
|
5542
5662
|
"use strict";
|
|
5543
5663
|
var u = require_universalify().fromPromise;
|
|
5544
|
-
var
|
|
5664
|
+
var path18 = __require("path");
|
|
5545
5665
|
var fs13 = require_fs2();
|
|
5546
5666
|
var mkdir = require_mkdirs2();
|
|
5547
5667
|
async function createFile(file) {
|
|
@@ -5551,7 +5671,7 @@ var require_file2 = __commonJS({
|
|
|
5551
5671
|
} catch {
|
|
5552
5672
|
}
|
|
5553
5673
|
if (stats && stats.isFile()) return;
|
|
5554
|
-
const dir =
|
|
5674
|
+
const dir = path18.dirname(file);
|
|
5555
5675
|
let dirStats = null;
|
|
5556
5676
|
try {
|
|
5557
5677
|
dirStats = await fs13.stat(dir);
|
|
@@ -5577,7 +5697,7 @@ var require_file2 = __commonJS({
|
|
|
5577
5697
|
} catch {
|
|
5578
5698
|
}
|
|
5579
5699
|
if (stats && stats.isFile()) return;
|
|
5580
|
-
const dir =
|
|
5700
|
+
const dir = path18.dirname(file);
|
|
5581
5701
|
try {
|
|
5582
5702
|
if (!fs13.statSync(dir).isDirectory()) {
|
|
5583
5703
|
fs13.readdirSync(dir);
|
|
@@ -5600,7 +5720,7 @@ var require_link2 = __commonJS({
|
|
|
5600
5720
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/link.js"(exports, module) {
|
|
5601
5721
|
"use strict";
|
|
5602
5722
|
var u = require_universalify().fromPromise;
|
|
5603
|
-
var
|
|
5723
|
+
var path18 = __require("path");
|
|
5604
5724
|
var fs13 = require_fs2();
|
|
5605
5725
|
var mkdir = require_mkdirs2();
|
|
5606
5726
|
var { pathExists } = require_path_exists2();
|
|
@@ -5619,7 +5739,7 @@ var require_link2 = __commonJS({
|
|
|
5619
5739
|
throw err;
|
|
5620
5740
|
}
|
|
5621
5741
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
5622
|
-
const dir =
|
|
5742
|
+
const dir = path18.dirname(dstpath);
|
|
5623
5743
|
const dirExists = await pathExists(dir);
|
|
5624
5744
|
if (!dirExists) {
|
|
5625
5745
|
await mkdir.mkdirs(dir);
|
|
@@ -5639,7 +5759,7 @@ var require_link2 = __commonJS({
|
|
|
5639
5759
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
5640
5760
|
throw err;
|
|
5641
5761
|
}
|
|
5642
|
-
const dir =
|
|
5762
|
+
const dir = path18.dirname(dstpath);
|
|
5643
5763
|
const dirExists = fs13.existsSync(dir);
|
|
5644
5764
|
if (dirExists) return fs13.linkSync(srcpath, dstpath);
|
|
5645
5765
|
mkdir.mkdirsSync(dir);
|
|
@@ -5656,12 +5776,12 @@ var require_link2 = __commonJS({
|
|
|
5656
5776
|
var require_symlink_paths2 = __commonJS({
|
|
5657
5777
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
|
|
5658
5778
|
"use strict";
|
|
5659
|
-
var
|
|
5779
|
+
var path18 = __require("path");
|
|
5660
5780
|
var fs13 = require_fs2();
|
|
5661
5781
|
var { pathExists } = require_path_exists2();
|
|
5662
5782
|
var u = require_universalify().fromPromise;
|
|
5663
5783
|
async function symlinkPaths(srcpath, dstpath) {
|
|
5664
|
-
if (
|
|
5784
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5665
5785
|
try {
|
|
5666
5786
|
await fs13.lstat(srcpath);
|
|
5667
5787
|
} catch (err) {
|
|
@@ -5673,8 +5793,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5673
5793
|
toDst: srcpath
|
|
5674
5794
|
};
|
|
5675
5795
|
}
|
|
5676
|
-
const dstdir =
|
|
5677
|
-
const relativeToDst =
|
|
5796
|
+
const dstdir = path18.dirname(dstpath);
|
|
5797
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5678
5798
|
const exists = await pathExists(relativeToDst);
|
|
5679
5799
|
if (exists) {
|
|
5680
5800
|
return {
|
|
@@ -5690,11 +5810,11 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5690
5810
|
}
|
|
5691
5811
|
return {
|
|
5692
5812
|
toCwd: srcpath,
|
|
5693
|
-
toDst:
|
|
5813
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
5694
5814
|
};
|
|
5695
5815
|
}
|
|
5696
5816
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
5697
|
-
if (
|
|
5817
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5698
5818
|
const exists2 = fs13.existsSync(srcpath);
|
|
5699
5819
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
5700
5820
|
return {
|
|
@@ -5702,8 +5822,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5702
5822
|
toDst: srcpath
|
|
5703
5823
|
};
|
|
5704
5824
|
}
|
|
5705
|
-
const dstdir =
|
|
5706
|
-
const relativeToDst =
|
|
5825
|
+
const dstdir = path18.dirname(dstpath);
|
|
5826
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5707
5827
|
const exists = fs13.existsSync(relativeToDst);
|
|
5708
5828
|
if (exists) {
|
|
5709
5829
|
return {
|
|
@@ -5715,7 +5835,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
5715
5835
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
5716
5836
|
return {
|
|
5717
5837
|
toCwd: srcpath,
|
|
5718
|
-
toDst:
|
|
5838
|
+
toDst: path18.relative(dstdir, srcpath)
|
|
5719
5839
|
};
|
|
5720
5840
|
}
|
|
5721
5841
|
module.exports = {
|
|
@@ -5763,7 +5883,7 @@ var require_symlink2 = __commonJS({
|
|
|
5763
5883
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) {
|
|
5764
5884
|
"use strict";
|
|
5765
5885
|
var u = require_universalify().fromPromise;
|
|
5766
|
-
var
|
|
5886
|
+
var path18 = __require("path");
|
|
5767
5887
|
var fs13 = require_fs2();
|
|
5768
5888
|
var { mkdirs, mkdirsSync } = require_mkdirs2();
|
|
5769
5889
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths2();
|
|
@@ -5778,11 +5898,11 @@ var require_symlink2 = __commonJS({
|
|
|
5778
5898
|
}
|
|
5779
5899
|
if (stats && stats.isSymbolicLink()) {
|
|
5780
5900
|
let srcStat;
|
|
5781
|
-
if (
|
|
5901
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5782
5902
|
srcStat = await fs13.stat(srcpath, { bigint: true });
|
|
5783
5903
|
} else {
|
|
5784
|
-
const dstdir =
|
|
5785
|
-
const relativeToDst =
|
|
5904
|
+
const dstdir = path18.dirname(dstpath);
|
|
5905
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5786
5906
|
try {
|
|
5787
5907
|
srcStat = await fs13.stat(relativeToDst, { bigint: true });
|
|
5788
5908
|
} catch {
|
|
@@ -5795,7 +5915,7 @@ var require_symlink2 = __commonJS({
|
|
|
5795
5915
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
5796
5916
|
srcpath = relative.toDst;
|
|
5797
5917
|
const toType = await symlinkType(relative.toCwd, type);
|
|
5798
|
-
const dir =
|
|
5918
|
+
const dir = path18.dirname(dstpath);
|
|
5799
5919
|
if (!await pathExists(dir)) {
|
|
5800
5920
|
await mkdirs(dir);
|
|
5801
5921
|
}
|
|
@@ -5809,11 +5929,11 @@ var require_symlink2 = __commonJS({
|
|
|
5809
5929
|
}
|
|
5810
5930
|
if (stats && stats.isSymbolicLink()) {
|
|
5811
5931
|
let srcStat;
|
|
5812
|
-
if (
|
|
5932
|
+
if (path18.isAbsolute(srcpath)) {
|
|
5813
5933
|
srcStat = fs13.statSync(srcpath, { bigint: true });
|
|
5814
5934
|
} else {
|
|
5815
|
-
const dstdir =
|
|
5816
|
-
const relativeToDst =
|
|
5935
|
+
const dstdir = path18.dirname(dstpath);
|
|
5936
|
+
const relativeToDst = path18.join(dstdir, srcpath);
|
|
5817
5937
|
try {
|
|
5818
5938
|
srcStat = fs13.statSync(relativeToDst, { bigint: true });
|
|
5819
5939
|
} catch {
|
|
@@ -5826,7 +5946,7 @@ var require_symlink2 = __commonJS({
|
|
|
5826
5946
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
5827
5947
|
srcpath = relative.toDst;
|
|
5828
5948
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
5829
|
-
const dir =
|
|
5949
|
+
const dir = path18.dirname(dstpath);
|
|
5830
5950
|
const exists = fs13.existsSync(dir);
|
|
5831
5951
|
if (exists) return fs13.symlinkSync(srcpath, dstpath, type);
|
|
5832
5952
|
mkdirsSync(dir);
|
|
@@ -5887,18 +6007,18 @@ var require_output_file2 = __commonJS({
|
|
|
5887
6007
|
"use strict";
|
|
5888
6008
|
var u = require_universalify().fromPromise;
|
|
5889
6009
|
var fs13 = require_fs2();
|
|
5890
|
-
var
|
|
6010
|
+
var path18 = __require("path");
|
|
5891
6011
|
var mkdir = require_mkdirs2();
|
|
5892
6012
|
var pathExists = require_path_exists2().pathExists;
|
|
5893
6013
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
5894
|
-
const dir =
|
|
6014
|
+
const dir = path18.dirname(file);
|
|
5895
6015
|
if (!await pathExists(dir)) {
|
|
5896
6016
|
await mkdir.mkdirs(dir);
|
|
5897
6017
|
}
|
|
5898
6018
|
return fs13.writeFile(file, data, encoding);
|
|
5899
6019
|
}
|
|
5900
6020
|
function outputFileSync(file, ...args) {
|
|
5901
|
-
const dir =
|
|
6021
|
+
const dir = path18.dirname(file);
|
|
5902
6022
|
if (!fs13.existsSync(dir)) {
|
|
5903
6023
|
mkdir.mkdirsSync(dir);
|
|
5904
6024
|
}
|
|
@@ -5962,7 +6082,7 @@ var require_move3 = __commonJS({
|
|
|
5962
6082
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move.js"(exports, module) {
|
|
5963
6083
|
"use strict";
|
|
5964
6084
|
var fs13 = require_fs2();
|
|
5965
|
-
var
|
|
6085
|
+
var path18 = __require("path");
|
|
5966
6086
|
var { copy: copy2 } = require_copy4();
|
|
5967
6087
|
var { remove } = require_remove2();
|
|
5968
6088
|
var { mkdirp } = require_mkdirs2();
|
|
@@ -5972,8 +6092,8 @@ var require_move3 = __commonJS({
|
|
|
5972
6092
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
5973
6093
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src2, dest, "move", opts2);
|
|
5974
6094
|
await stat.checkParentPaths(src2, srcStat, dest, "move");
|
|
5975
|
-
const destParent =
|
|
5976
|
-
const parsedParentPath =
|
|
6095
|
+
const destParent = path18.dirname(dest);
|
|
6096
|
+
const parsedParentPath = path18.parse(destParent);
|
|
5977
6097
|
if (parsedParentPath.root !== destParent) {
|
|
5978
6098
|
await mkdirp(destParent);
|
|
5979
6099
|
}
|
|
@@ -6014,7 +6134,7 @@ var require_move_sync2 = __commonJS({
|
|
|
6014
6134
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) {
|
|
6015
6135
|
"use strict";
|
|
6016
6136
|
var fs13 = require_graceful_fs();
|
|
6017
|
-
var
|
|
6137
|
+
var path18 = __require("path");
|
|
6018
6138
|
var copySync2 = require_copy4().copySync;
|
|
6019
6139
|
var removeSync = require_remove2().removeSync;
|
|
6020
6140
|
var mkdirpSync = require_mkdirs2().mkdirpSync;
|
|
@@ -6024,12 +6144,12 @@ var require_move_sync2 = __commonJS({
|
|
|
6024
6144
|
const overwrite = opts2.overwrite || opts2.clobber || false;
|
|
6025
6145
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src2, dest, "move", opts2);
|
|
6026
6146
|
stat.checkParentPathsSync(src2, srcStat, dest, "move");
|
|
6027
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
6147
|
+
if (!isParentRoot(dest)) mkdirpSync(path18.dirname(dest));
|
|
6028
6148
|
return doRename(src2, dest, overwrite, isChangingCase);
|
|
6029
6149
|
}
|
|
6030
6150
|
function isParentRoot(dest) {
|
|
6031
|
-
const parent =
|
|
6032
|
-
const parsedPath =
|
|
6151
|
+
const parent = path18.dirname(dest);
|
|
6152
|
+
const parsedPath = path18.parse(parent);
|
|
6033
6153
|
return parsedPath.root === parent;
|
|
6034
6154
|
}
|
|
6035
6155
|
function doRename(src2, dest, overwrite, isChangingCase) {
|
|
@@ -6075,7 +6195,7 @@ var require_move4 = __commonJS({
|
|
|
6075
6195
|
});
|
|
6076
6196
|
|
|
6077
6197
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/index.js
|
|
6078
|
-
var
|
|
6198
|
+
var require_lib3 = __commonJS({
|
|
6079
6199
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/fs-extra/11.3.5/7db7b8254b482200b4fe34058554947e1242ee5fa7e05ff4418e9403104cd8c3/node_modules/fs-extra/lib/index.js"(exports, module) {
|
|
6080
6200
|
"use strict";
|
|
6081
6201
|
module.exports = {
|
|
@@ -6206,16 +6326,16 @@ var require_filesystem = __commonJS({
|
|
|
6206
6326
|
var LDD_PATH = "/usr/bin/ldd";
|
|
6207
6327
|
var SELF_PATH = "/proc/self/exe";
|
|
6208
6328
|
var MAX_LENGTH = 2048;
|
|
6209
|
-
var readFileSync = (
|
|
6210
|
-
const fd = fs13.openSync(
|
|
6329
|
+
var readFileSync = (path18) => {
|
|
6330
|
+
const fd = fs13.openSync(path18, "r");
|
|
6211
6331
|
const buffer = Buffer.alloc(MAX_LENGTH);
|
|
6212
6332
|
const bytesRead = fs13.readSync(fd, buffer, 0, MAX_LENGTH, 0);
|
|
6213
6333
|
fs13.close(fd, () => {
|
|
6214
6334
|
});
|
|
6215
6335
|
return buffer.subarray(0, bytesRead);
|
|
6216
6336
|
};
|
|
6217
|
-
var readFile = (
|
|
6218
|
-
fs13.open(
|
|
6337
|
+
var readFile = (path18) => new Promise((resolve, reject) => {
|
|
6338
|
+
fs13.open(path18, "r", (err, fd) => {
|
|
6219
6339
|
if (err) {
|
|
6220
6340
|
reject(err);
|
|
6221
6341
|
} else {
|
|
@@ -6334,11 +6454,11 @@ var require_detect_libc = __commonJS({
|
|
|
6334
6454
|
}
|
|
6335
6455
|
return null;
|
|
6336
6456
|
};
|
|
6337
|
-
var familyFromInterpreterPath = (
|
|
6338
|
-
if (
|
|
6339
|
-
if (
|
|
6457
|
+
var familyFromInterpreterPath = (path18) => {
|
|
6458
|
+
if (path18) {
|
|
6459
|
+
if (path18.includes("/ld-musl-")) {
|
|
6340
6460
|
return MUSL;
|
|
6341
|
-
} else if (
|
|
6461
|
+
} else if (path18.includes("/ld-linux-")) {
|
|
6342
6462
|
return GLIBC;
|
|
6343
6463
|
}
|
|
6344
6464
|
}
|
|
@@ -6385,8 +6505,8 @@ var require_detect_libc = __commonJS({
|
|
|
6385
6505
|
cachedFamilyInterpreter = null;
|
|
6386
6506
|
try {
|
|
6387
6507
|
const selfContent = await readFile(SELF_PATH);
|
|
6388
|
-
const
|
|
6389
|
-
cachedFamilyInterpreter = familyFromInterpreterPath(
|
|
6508
|
+
const path18 = interpreterPath(selfContent);
|
|
6509
|
+
cachedFamilyInterpreter = familyFromInterpreterPath(path18);
|
|
6390
6510
|
} catch (e) {
|
|
6391
6511
|
}
|
|
6392
6512
|
return cachedFamilyInterpreter;
|
|
@@ -6398,8 +6518,8 @@ var require_detect_libc = __commonJS({
|
|
|
6398
6518
|
cachedFamilyInterpreter = null;
|
|
6399
6519
|
try {
|
|
6400
6520
|
const selfContent = readFileSync(SELF_PATH);
|
|
6401
|
-
const
|
|
6402
|
-
cachedFamilyInterpreter = familyFromInterpreterPath(
|
|
6521
|
+
const path18 = interpreterPath(selfContent);
|
|
6522
|
+
cachedFamilyInterpreter = familyFromInterpreterPath(path18);
|
|
6403
6523
|
} catch (e) {
|
|
6404
6524
|
}
|
|
6405
6525
|
return cachedFamilyInterpreter;
|
|
@@ -6533,7 +6653,7 @@ var require_detect_libc = __commonJS({
|
|
|
6533
6653
|
var require_node_gyp_build = __commonJS({
|
|
6534
6654
|
"../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/node-gyp-build-optional-packages/5.2.2/e2d2fc28f4d0eaa7fac1904123db86f87839f4cdd1ffc0e2b124adc9c1d9f616/node_modules/node-gyp-build-optional-packages/node-gyp-build.js"(exports, module) {
|
|
6535
6655
|
var fs13 = __require("fs");
|
|
6536
|
-
var
|
|
6656
|
+
var path18 = __require("path");
|
|
6537
6657
|
var url = __require("url");
|
|
6538
6658
|
var os = __require("os");
|
|
6539
6659
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
@@ -6555,30 +6675,30 @@ var require_node_gyp_build = __commonJS({
|
|
|
6555
6675
|
return runtimeRequire(load.resolve(dir));
|
|
6556
6676
|
}
|
|
6557
6677
|
load.resolve = load.path = function(dir) {
|
|
6558
|
-
dir =
|
|
6678
|
+
dir = path18.resolve(dir || ".");
|
|
6559
6679
|
var packageName = "";
|
|
6560
6680
|
var packageNameError;
|
|
6561
6681
|
try {
|
|
6562
|
-
packageName = runtimeRequire(
|
|
6682
|
+
packageName = runtimeRequire(path18.join(dir, "package.json")).name;
|
|
6563
6683
|
var varName = packageName.toUpperCase().replace(/-/g, "_");
|
|
6564
6684
|
if (process.env[varName + "_PREBUILD"]) dir = process.env[varName + "_PREBUILD"];
|
|
6565
6685
|
} catch (err) {
|
|
6566
6686
|
packageNameError = err;
|
|
6567
6687
|
}
|
|
6568
6688
|
if (!prebuildsOnly) {
|
|
6569
|
-
var release = getFirst(
|
|
6689
|
+
var release = getFirst(path18.join(dir, "build/Release"), matchBuild);
|
|
6570
6690
|
if (release) return release;
|
|
6571
|
-
var debug = getFirst(
|
|
6691
|
+
var debug = getFirst(path18.join(dir, "build/Debug"), matchBuild);
|
|
6572
6692
|
if (debug) return debug;
|
|
6573
6693
|
}
|
|
6574
6694
|
var prebuild = resolve(dir);
|
|
6575
6695
|
if (prebuild) return prebuild;
|
|
6576
|
-
var nearby = resolve(
|
|
6696
|
+
var nearby = resolve(path18.dirname(process.execPath));
|
|
6577
6697
|
if (nearby) return nearby;
|
|
6578
6698
|
var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
|
|
6579
6699
|
var packageResolutionError;
|
|
6580
6700
|
try {
|
|
6581
|
-
var prebuildPackage =
|
|
6701
|
+
var prebuildPackage = path18.dirname(__require("module").createRequire(url.pathToFileURL(path18.join(dir, "package.json"))).resolve(platformPackage));
|
|
6582
6702
|
return resolveFile(prebuildPackage);
|
|
6583
6703
|
} catch (error) {
|
|
6584
6704
|
packageResolutionError = error;
|
|
@@ -6605,16 +6725,16 @@ var require_node_gyp_build = __commonJS({
|
|
|
6605
6725
|
}
|
|
6606
6726
|
throw new Error(errMessage);
|
|
6607
6727
|
function resolve(dir2) {
|
|
6608
|
-
var tuples = readdirSync(
|
|
6728
|
+
var tuples = readdirSync(path18.join(dir2, "prebuilds")).map(parseTuple);
|
|
6609
6729
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
6610
6730
|
if (!tuple) return;
|
|
6611
|
-
return resolveFile(
|
|
6731
|
+
return resolveFile(path18.join(dir2, "prebuilds", tuple.name));
|
|
6612
6732
|
}
|
|
6613
6733
|
function resolveFile(prebuilds) {
|
|
6614
6734
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
6615
6735
|
var candidates = parsed.filter(matchTags(runtime, abi));
|
|
6616
6736
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
6617
|
-
if (winner) return
|
|
6737
|
+
if (winner) return path18.join(prebuilds, winner.file);
|
|
6618
6738
|
}
|
|
6619
6739
|
};
|
|
6620
6740
|
function readdirSync(dir) {
|
|
@@ -6626,7 +6746,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
6626
6746
|
}
|
|
6627
6747
|
function getFirst(dir, filter) {
|
|
6628
6748
|
var files = readdirSync(dir).filter(filter);
|
|
6629
|
-
return files[0] &&
|
|
6749
|
+
return files[0] && path18.join(dir, files[0]);
|
|
6630
6750
|
}
|
|
6631
6751
|
function matchBuild(name) {
|
|
6632
6752
|
return /\.node$/.test(name);
|
|
@@ -6748,7 +6868,7 @@ var require_msgpackr_extract = __commonJS({
|
|
|
6748
6868
|
// ../worker/lib/start.js
|
|
6749
6869
|
import crypto5 from "node:crypto";
|
|
6750
6870
|
import fs12 from "node:fs";
|
|
6751
|
-
import
|
|
6871
|
+
import path17 from "node:path";
|
|
6752
6872
|
import util8 from "node:util";
|
|
6753
6873
|
import { parentPort } from "node:worker_threads";
|
|
6754
6874
|
|
|
@@ -7333,28 +7453,28 @@ function resolveSrcOnWinJunction(src2) {
|
|
|
7333
7453
|
function resolveSrcOnTrueSymlink(src2, dest) {
|
|
7334
7454
|
return pathLib.relative(pathLib.dirname(dest), src2);
|
|
7335
7455
|
}
|
|
7336
|
-
function symlinkDirSync(target2,
|
|
7337
|
-
|
|
7456
|
+
function symlinkDirSync(target2, path18, opts2) {
|
|
7457
|
+
path18 = betterPathResolve(path18);
|
|
7338
7458
|
target2 = betterPathResolve(target2);
|
|
7339
|
-
if (target2 ===
|
|
7459
|
+
if (target2 === path18)
|
|
7340
7460
|
throw new Error(`Symlink path is the same as the target path (${target2})`);
|
|
7341
|
-
return forceSymlinkSync(target2,
|
|
7461
|
+
return forceSymlinkSync(target2, path18, opts2);
|
|
7342
7462
|
}
|
|
7343
|
-
function isExistingSymlinkUpToDate(wantedTarget,
|
|
7344
|
-
const existingTarget = pathLib.isAbsolute(linkString) ? linkString : pathLib.join(pathLib.dirname(
|
|
7463
|
+
function isExistingSymlinkUpToDate(wantedTarget, path18, linkString) {
|
|
7464
|
+
const existingTarget = pathLib.isAbsolute(linkString) ? linkString : pathLib.join(pathLib.dirname(path18), linkString);
|
|
7345
7465
|
return pathLib.relative(wantedTarget, existingTarget) === "";
|
|
7346
7466
|
}
|
|
7347
7467
|
var createSymlinkAsync;
|
|
7348
7468
|
var createSymlinkSync;
|
|
7349
7469
|
if (IS_WINDOWS) {
|
|
7350
|
-
createSymlinkAsync = async (target2,
|
|
7470
|
+
createSymlinkAsync = async (target2, path18) => {
|
|
7351
7471
|
try {
|
|
7352
|
-
await createTrueSymlinkAsync(target2,
|
|
7472
|
+
await createTrueSymlinkAsync(target2, path18);
|
|
7353
7473
|
createSymlinkSync = createTrueSymlinkSync;
|
|
7354
7474
|
createSymlinkAsync = createTrueSymlinkAsync;
|
|
7355
7475
|
} catch (err) {
|
|
7356
7476
|
if (err.code === "EPERM") {
|
|
7357
|
-
await createJunctionAsync(target2,
|
|
7477
|
+
await createJunctionAsync(target2, path18);
|
|
7358
7478
|
createSymlinkSync = createJunctionSync;
|
|
7359
7479
|
createSymlinkAsync = createJunctionAsync;
|
|
7360
7480
|
} else {
|
|
@@ -7362,14 +7482,14 @@ if (IS_WINDOWS) {
|
|
|
7362
7482
|
}
|
|
7363
7483
|
}
|
|
7364
7484
|
};
|
|
7365
|
-
createSymlinkSync = (target2,
|
|
7485
|
+
createSymlinkSync = (target2, path18) => {
|
|
7366
7486
|
try {
|
|
7367
|
-
createTrueSymlinkSync(target2,
|
|
7487
|
+
createTrueSymlinkSync(target2, path18);
|
|
7368
7488
|
createSymlinkSync = createTrueSymlinkSync;
|
|
7369
7489
|
createSymlinkAsync = createTrueSymlinkAsync;
|
|
7370
7490
|
} catch (err) {
|
|
7371
7491
|
if (err.code === "EPERM") {
|
|
7372
|
-
createJunctionSync(target2,
|
|
7492
|
+
createJunctionSync(target2, path18);
|
|
7373
7493
|
createSymlinkSync = createJunctionSync;
|
|
7374
7494
|
createSymlinkAsync = createJunctionAsync;
|
|
7375
7495
|
} else {
|
|
@@ -7381,25 +7501,25 @@ if (IS_WINDOWS) {
|
|
|
7381
7501
|
createSymlinkAsync = createTrueSymlinkAsync;
|
|
7382
7502
|
createSymlinkSync = createTrueSymlinkSync;
|
|
7383
7503
|
}
|
|
7384
|
-
function createTrueSymlinkAsync(target2,
|
|
7385
|
-
return fs4.symlink(resolveSrcOnTrueSymlink(target2,
|
|
7504
|
+
function createTrueSymlinkAsync(target2, path18) {
|
|
7505
|
+
return fs4.symlink(resolveSrcOnTrueSymlink(target2, path18), path18, "dir");
|
|
7386
7506
|
}
|
|
7387
|
-
function createTrueSymlinkSync(target2,
|
|
7388
|
-
symlinkSync(resolveSrcOnTrueSymlink(target2,
|
|
7507
|
+
function createTrueSymlinkSync(target2, path18) {
|
|
7508
|
+
symlinkSync(resolveSrcOnTrueSymlink(target2, path18), path18, "dir");
|
|
7389
7509
|
}
|
|
7390
|
-
function createJunctionAsync(target2,
|
|
7391
|
-
return fs4.symlink(resolveSrcOnWinJunction(target2),
|
|
7510
|
+
function createJunctionAsync(target2, path18) {
|
|
7511
|
+
return fs4.symlink(resolveSrcOnWinJunction(target2), path18, "junction");
|
|
7392
7512
|
}
|
|
7393
|
-
function createJunctionSync(target2,
|
|
7394
|
-
symlinkSync(resolveSrcOnWinJunction(target2),
|
|
7513
|
+
function createJunctionSync(target2, path18) {
|
|
7514
|
+
symlinkSync(resolveSrcOnWinJunction(target2), path18, "junction");
|
|
7395
7515
|
}
|
|
7396
|
-
function forceSymlinkSync(target2,
|
|
7516
|
+
function forceSymlinkSync(target2, path18, opts2) {
|
|
7397
7517
|
let initialErr;
|
|
7398
7518
|
try {
|
|
7399
7519
|
if (opts2?.noJunction === true) {
|
|
7400
|
-
createTrueSymlinkSync(target2,
|
|
7520
|
+
createTrueSymlinkSync(target2, path18);
|
|
7401
7521
|
} else {
|
|
7402
|
-
createSymlinkSync(target2,
|
|
7522
|
+
createSymlinkSync(target2, path18);
|
|
7403
7523
|
}
|
|
7404
7524
|
return { reused: false };
|
|
7405
7525
|
} catch (err) {
|
|
@@ -7407,12 +7527,12 @@ function forceSymlinkSync(target2, path17, opts2) {
|
|
|
7407
7527
|
switch (err.code) {
|
|
7408
7528
|
case "ENOENT":
|
|
7409
7529
|
try {
|
|
7410
|
-
mkdirSync(pathLib.dirname(
|
|
7530
|
+
mkdirSync(pathLib.dirname(path18), { recursive: true });
|
|
7411
7531
|
} catch (mkdirError) {
|
|
7412
|
-
mkdirError.message = `Error while trying to symlink "${target2}" to "${
|
|
7532
|
+
mkdirError.message = `Error while trying to symlink "${target2}" to "${path18}". The error happened while trying to create the parent directory for the symlink target. Details: ${mkdirError}`;
|
|
7413
7533
|
throw mkdirError;
|
|
7414
7534
|
}
|
|
7415
|
-
forceSymlinkSync(target2,
|
|
7535
|
+
forceSymlinkSync(target2, path18, opts2);
|
|
7416
7536
|
return { reused: false };
|
|
7417
7537
|
case "EEXIST":
|
|
7418
7538
|
case "EISDIR":
|
|
@@ -7423,62 +7543,70 @@ function forceSymlinkSync(target2, path17, opts2) {
|
|
|
7423
7543
|
}
|
|
7424
7544
|
let linkString;
|
|
7425
7545
|
try {
|
|
7426
|
-
linkString = readlinkSync(
|
|
7546
|
+
linkString = readlinkSync(path18);
|
|
7427
7547
|
} catch (err) {
|
|
7428
7548
|
if (opts2?.overwrite === false) {
|
|
7429
7549
|
throw initialErr;
|
|
7430
7550
|
}
|
|
7431
|
-
const parentDir = pathLib.dirname(
|
|
7551
|
+
const parentDir = pathLib.dirname(path18);
|
|
7432
7552
|
let warn;
|
|
7433
7553
|
if (opts2?.renameTried) {
|
|
7434
|
-
unlinkSync(
|
|
7435
|
-
warn = `Symlink wanted name was occupied by directory or file. Old entity removed: "${parentDir}${pathLib.sep}{${pathLib.basename(
|
|
7554
|
+
unlinkSync(path18);
|
|
7555
|
+
warn = `Symlink wanted name was occupied by directory or file. Old entity removed: "${parentDir}${pathLib.sep}{${pathLib.basename(path18)}".`;
|
|
7436
7556
|
} else {
|
|
7437
|
-
const ignore = `.ignored_${pathLib.basename(
|
|
7557
|
+
const ignore = `.ignored_${pathLib.basename(path18)}`;
|
|
7438
7558
|
try {
|
|
7439
|
-
renameOverwriteSync(
|
|
7559
|
+
renameOverwriteSync(path18, pathLib.join(parentDir, ignore));
|
|
7440
7560
|
} catch (error) {
|
|
7441
7561
|
if (types.isNativeError(error) && "code" in error && error.code === "ENOENT") {
|
|
7442
7562
|
throw initialErr;
|
|
7443
7563
|
}
|
|
7444
7564
|
throw error;
|
|
7445
7565
|
}
|
|
7446
|
-
warn = `Symlink wanted name was occupied by directory or file. Old entity moved: "${parentDir}${pathLib.sep}{${pathLib.basename(
|
|
7566
|
+
warn = `Symlink wanted name was occupied by directory or file. Old entity moved: "${parentDir}${pathLib.sep}{${pathLib.basename(path18)} => ${ignore}".`;
|
|
7447
7567
|
}
|
|
7448
7568
|
return {
|
|
7449
|
-
...forceSymlinkSync(target2,
|
|
7569
|
+
...forceSymlinkSync(target2, path18, { ...opts2, renameTried: true }),
|
|
7450
7570
|
warn
|
|
7451
7571
|
};
|
|
7452
7572
|
}
|
|
7453
|
-
if (isExistingSymlinkUpToDate(target2,
|
|
7573
|
+
if (isExistingSymlinkUpToDate(target2, path18, linkString)) {
|
|
7454
7574
|
return { reused: true };
|
|
7455
7575
|
}
|
|
7456
7576
|
if (opts2?.overwrite === false) {
|
|
7457
7577
|
throw initialErr;
|
|
7458
7578
|
}
|
|
7459
7579
|
try {
|
|
7460
|
-
unlinkSync(
|
|
7580
|
+
unlinkSync(path18);
|
|
7461
7581
|
} catch (error) {
|
|
7462
7582
|
if (!types.isNativeError(error) || !("code" in error) || error.code !== "ENOENT") {
|
|
7463
7583
|
throw error;
|
|
7464
7584
|
}
|
|
7465
7585
|
}
|
|
7466
|
-
return forceSymlinkSync(target2,
|
|
7586
|
+
return forceSymlinkSync(target2, path18, opts2);
|
|
7467
7587
|
}
|
|
7468
7588
|
|
|
7469
7589
|
// ../fs/symlink-dependency/lib/safeJoinModulesDir.js
|
|
7590
|
+
var import_validate_npm_package_name = __toESM(require_lib2(), 1);
|
|
7470
7591
|
import path5 from "node:path";
|
|
7471
7592
|
function safeJoinModulesDir(modulesDir, alias) {
|
|
7593
|
+
if (!(0, import_validate_npm_package_name.default)(alias).validForOldPackages) {
|
|
7594
|
+
throw invalidDependencyNameError(modulesDir, alias);
|
|
7595
|
+
}
|
|
7472
7596
|
const link = path5.join(modulesDir, alias);
|
|
7473
7597
|
const resolvedDir = path5.resolve(modulesDir);
|
|
7474
7598
|
const resolvedLink = path5.resolve(link);
|
|
7475
7599
|
if (resolvedLink === resolvedDir || !resolvedLink.startsWith(resolvedDir + path5.sep)) {
|
|
7476
|
-
|
|
7477
|
-
error.code = "ERR_PNPM_INVALID_DEPENDENCY_NAME";
|
|
7478
|
-
throw error;
|
|
7600
|
+
throw invalidDependencyNameError(modulesDir, alias, resolvedLink);
|
|
7479
7601
|
}
|
|
7480
7602
|
return link;
|
|
7481
7603
|
}
|
|
7604
|
+
function invalidDependencyNameError(modulesDir, alias, resolvedLink) {
|
|
7605
|
+
const detail = resolvedLink ? ` (it resolves to ${resolvedLink})` : "";
|
|
7606
|
+
const error = new Error(`Refusing to place a dependency under ${modulesDir} with the invalid alias ${JSON.stringify(alias)}${detail}`);
|
|
7607
|
+
error.code = "ERR_PNPM_INVALID_DEPENDENCY_NAME";
|
|
7608
|
+
return error;
|
|
7609
|
+
}
|
|
7482
7610
|
|
|
7483
7611
|
// ../fs/symlink-dependency/lib/index.js
|
|
7484
7612
|
function symlinkDependencySync(dependencyRealLocation, destModulesDir, importAs) {
|
|
@@ -8200,19 +8328,19 @@ function addBufferToCafs(writeBufferToCafs2, buffer, mode) {
|
|
|
8200
8328
|
|
|
8201
8329
|
// ../store/create-cafs-store/lib/index.js
|
|
8202
8330
|
import { promises as fs10 } from "node:fs";
|
|
8203
|
-
import
|
|
8331
|
+
import path16 from "node:path";
|
|
8204
8332
|
|
|
8205
8333
|
// ../fs/indexed-pkg-importer/lib/index.js
|
|
8206
8334
|
import assert2 from "node:assert";
|
|
8207
8335
|
import { constants, existsSync } from "node:fs";
|
|
8208
|
-
import
|
|
8336
|
+
import path15 from "node:path";
|
|
8209
8337
|
import util7 from "node:util";
|
|
8210
8338
|
|
|
8211
8339
|
// ../fs/indexed-pkg-importer/lib/importIndexedDir.js
|
|
8212
8340
|
import fs9 from "node:fs";
|
|
8213
8341
|
import path13 from "node:path";
|
|
8214
8342
|
import util6 from "node:util";
|
|
8215
|
-
var import_fs_extra2 = __toESM(
|
|
8343
|
+
var import_fs_extra2 = __toESM(require_lib3(), 1);
|
|
8216
8344
|
|
|
8217
8345
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/make-empty-dir/4.0.0/3607722a2f7d328bdf182e4db3290941113e732fd2d785b1a5837ab89bb24489/node_modules/make-empty-dir/index.js
|
|
8218
8346
|
import fs8 from "node:fs";
|
|
@@ -8451,6 +8579,62 @@ function mergeModulesDirs(src2, dest) {
|
|
|
8451
8579
|
}
|
|
8452
8580
|
}
|
|
8453
8581
|
|
|
8582
|
+
// ../fs/indexed-pkg-importer/lib/removeQuarantine.js
|
|
8583
|
+
import { execFileSync } from "node:child_process";
|
|
8584
|
+
import path14 from "node:path";
|
|
8585
|
+
var QUARANTINE_ATTR = "com.apple.quarantine";
|
|
8586
|
+
var NATIVE_BINARY_EXTENSIONS = /* @__PURE__ */ new Set([".node", ".dylib", ".so"]);
|
|
8587
|
+
var MAX_ARG_BYTES = 1e5;
|
|
8588
|
+
function isNativeBinary(filePath) {
|
|
8589
|
+
return NATIVE_BINARY_EXTENSIONS.has(path14.extname(filePath).toLowerCase());
|
|
8590
|
+
}
|
|
8591
|
+
function removeQuarantine(filePaths) {
|
|
8592
|
+
if (process.platform !== "darwin")
|
|
8593
|
+
return;
|
|
8594
|
+
for (const chunk of chunkByArgSize(filePaths)) {
|
|
8595
|
+
removeQuarantineFromChunk(chunk);
|
|
8596
|
+
}
|
|
8597
|
+
}
|
|
8598
|
+
function removeQuarantineFromChunk(filePaths) {
|
|
8599
|
+
try {
|
|
8600
|
+
execFileSync("/usr/bin/xattr", ["-d", QUARANTINE_ATTR, ...filePaths], {
|
|
8601
|
+
stdio: ["ignore", "ignore", "pipe"]
|
|
8602
|
+
});
|
|
8603
|
+
} catch (err) {
|
|
8604
|
+
const realErrors = getStderr(err).split("\n").filter((line) => line.trim() !== "" && !line.includes("No such xattr") && !line.includes("No such file"));
|
|
8605
|
+
if (realErrors.length > 0) {
|
|
8606
|
+
globalWarn(`Failed to remove the macOS quarantine attribute:
|
|
8607
|
+
${realErrors.join("\n")}`);
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
}
|
|
8611
|
+
function chunkByArgSize(filePaths) {
|
|
8612
|
+
const chunks = [];
|
|
8613
|
+
let chunk = [];
|
|
8614
|
+
let chunkBytes = 0;
|
|
8615
|
+
for (const filePath of filePaths) {
|
|
8616
|
+
const bytes = Buffer.byteLength(filePath) + 1;
|
|
8617
|
+
if (chunk.length > 0 && chunkBytes + bytes > MAX_ARG_BYTES) {
|
|
8618
|
+
chunks.push(chunk);
|
|
8619
|
+
chunk = [];
|
|
8620
|
+
chunkBytes = 0;
|
|
8621
|
+
}
|
|
8622
|
+
chunk.push(filePath);
|
|
8623
|
+
chunkBytes += bytes;
|
|
8624
|
+
}
|
|
8625
|
+
if (chunk.length > 0)
|
|
8626
|
+
chunks.push(chunk);
|
|
8627
|
+
return chunks;
|
|
8628
|
+
}
|
|
8629
|
+
function getStderr(err) {
|
|
8630
|
+
if (typeof err === "object" && err !== null && "stderr" in err) {
|
|
8631
|
+
const stderr = err.stderr;
|
|
8632
|
+
if (stderr != null)
|
|
8633
|
+
return stderr.toString();
|
|
8634
|
+
}
|
|
8635
|
+
return err instanceof Error ? err.message : String(err);
|
|
8636
|
+
}
|
|
8637
|
+
|
|
8454
8638
|
// ../fs/indexed-pkg-importer/lib/index.js
|
|
8455
8639
|
function createIndexedPkgImporter(packageImportMethod) {
|
|
8456
8640
|
const importPackage2 = createImportPackage(packageImportMethod);
|
|
@@ -8532,6 +8716,7 @@ function tryClonePkg(to, opts2) {
|
|
|
8532
8716
|
if (opts2.resolvedFrom !== "store" || opts2.force || !pkgExistsAtTargetDir(to, opts2.filesMap)) {
|
|
8533
8717
|
const clone = createCloneFunction();
|
|
8534
8718
|
importIndexedDir({ importFile: clone, importFileAtomic: clone }, to, opts2.filesMap, opts2);
|
|
8719
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8535
8720
|
return "clone";
|
|
8536
8721
|
}
|
|
8537
8722
|
return void 0;
|
|
@@ -8556,13 +8741,14 @@ function createClonePkg() {
|
|
|
8556
8741
|
return (to, opts2) => {
|
|
8557
8742
|
if (opts2.resolvedFrom !== "store" || opts2.force || !pkgExistsAtTargetDir(to, opts2.filesMap)) {
|
|
8558
8743
|
importIndexedDir(importer, to, opts2.filesMap, opts2);
|
|
8744
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8559
8745
|
return "clone";
|
|
8560
8746
|
}
|
|
8561
8747
|
return void 0;
|
|
8562
8748
|
};
|
|
8563
8749
|
}
|
|
8564
8750
|
function pkgExistsAtTargetDir(targetDir, filesMap) {
|
|
8565
|
-
return existsSync(
|
|
8751
|
+
return existsSync(path15.join(targetDir, pickFileFromFilesMap(filesMap)));
|
|
8566
8752
|
}
|
|
8567
8753
|
function pickFileFromFilesMap(filesMap) {
|
|
8568
8754
|
if (filesMap.has("package.json")) {
|
|
@@ -8602,6 +8788,7 @@ function createCloneFunction() {
|
|
|
8602
8788
|
function hardlinkPkg(importFile, to, opts2) {
|
|
8603
8789
|
if (opts2.force || shouldRelinkPkg(to, opts2)) {
|
|
8604
8790
|
importIndexedDir({ importFile, importFileAtomic: importFile }, to, opts2.filesMap, opts2);
|
|
8791
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8605
8792
|
return "hardlink";
|
|
8606
8793
|
}
|
|
8607
8794
|
return void 0;
|
|
@@ -8640,7 +8827,7 @@ function resilientCopyFileSync(src2, dest) {
|
|
|
8640
8827
|
}
|
|
8641
8828
|
function pkgLinkedToStore(filesMap, linkedPkgDir) {
|
|
8642
8829
|
const filename = pickFileFromFilesMap(filesMap);
|
|
8643
|
-
const linkedFile =
|
|
8830
|
+
const linkedFile = path15.join(linkedPkgDir, filename);
|
|
8644
8831
|
let stats0;
|
|
8645
8832
|
try {
|
|
8646
8833
|
stats0 = lib_default.statSync(linkedFile);
|
|
@@ -8657,6 +8844,7 @@ function pkgLinkedToStore(filesMap, linkedPkgDir) {
|
|
|
8657
8844
|
function copyPkg(to, opts2) {
|
|
8658
8845
|
if (opts2.resolvedFrom !== "store" || opts2.force || !pkgExistsAtTargetDir(to, opts2.filesMap)) {
|
|
8659
8846
|
importIndexedDir({ importFile: resilientCopyFileSync, importFileAtomic: atomicCopyFileSync }, to, opts2.filesMap, opts2);
|
|
8847
|
+
removeQuarantineFromNativeBinaries(to, opts2);
|
|
8660
8848
|
return "copy";
|
|
8661
8849
|
}
|
|
8662
8850
|
return void 0;
|
|
@@ -8674,6 +8862,17 @@ function atomicCopyFileSync(src2, dest) {
|
|
|
8674
8862
|
}
|
|
8675
8863
|
renameOverwriteSync(tmp, dest);
|
|
8676
8864
|
}
|
|
8865
|
+
function removeQuarantineFromNativeBinaries(to, opts2) {
|
|
8866
|
+
if (process.platform !== "darwin" || opts2.resolvedFrom !== "store")
|
|
8867
|
+
return;
|
|
8868
|
+
const nativeBinaries = [];
|
|
8869
|
+
for (const file of opts2.filesMap.keys()) {
|
|
8870
|
+
if (isNativeBinary(file)) {
|
|
8871
|
+
nativeBinaries.push(path15.join(to, file));
|
|
8872
|
+
}
|
|
8873
|
+
}
|
|
8874
|
+
removeQuarantine(nativeBinaries);
|
|
8875
|
+
}
|
|
8677
8876
|
|
|
8678
8877
|
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/mimic-function/5.0.1/42ffd44e2cba19e8e133b2bdc7d5939811fa14bc8061d1a5739a299c53ffa2b6/node_modules/mimic-function/index.js
|
|
8679
8878
|
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
@@ -8721,7 +8920,7 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
|
8721
8920
|
return to;
|
|
8722
8921
|
}
|
|
8723
8922
|
|
|
8724
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/memoize/
|
|
8923
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/memoize/11.0.0/1da59602ab45e19a3ba2c86ed324b17bdd4d6b8ab4664663e3c8557861e28a28/node_modules/memoize/distribution/index.js
|
|
8725
8924
|
var maxTimeoutValue = 2147483647;
|
|
8726
8925
|
var cacheStore = /* @__PURE__ */ new WeakMap();
|
|
8727
8926
|
var cacheTimerStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -8737,16 +8936,28 @@ function getValidCacheItem(cache, key) {
|
|
|
8737
8936
|
}
|
|
8738
8937
|
return item;
|
|
8739
8938
|
}
|
|
8740
|
-
function
|
|
8741
|
-
if (
|
|
8742
|
-
return
|
|
8939
|
+
function validateMaxAge(value, source) {
|
|
8940
|
+
if (value === Number.POSITIVE_INFINITY) {
|
|
8941
|
+
return;
|
|
8942
|
+
}
|
|
8943
|
+
if (!Number.isFinite(value)) {
|
|
8944
|
+
if (source === "`maxAge` option") {
|
|
8945
|
+
throw new TypeError("The `maxAge` option must be a finite number, `0`, or `Infinity`.");
|
|
8946
|
+
}
|
|
8947
|
+
throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");
|
|
8743
8948
|
}
|
|
8744
|
-
if (
|
|
8745
|
-
if (maxAge
|
|
8949
|
+
if (value > maxTimeoutValue) {
|
|
8950
|
+
if (source === "`maxAge` option") {
|
|
8746
8951
|
throw new TypeError(`The \`maxAge\` option cannot exceed ${maxTimeoutValue}.`);
|
|
8747
8952
|
}
|
|
8748
|
-
|
|
8749
|
-
|
|
8953
|
+
throw new TypeError(`The \`maxAge\` function result cannot exceed ${maxTimeoutValue}.`);
|
|
8954
|
+
}
|
|
8955
|
+
}
|
|
8956
|
+
function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAge } = {}) {
|
|
8957
|
+
if (typeof maxAge === "number") {
|
|
8958
|
+
validateMaxAge(maxAge, "`maxAge` option");
|
|
8959
|
+
if (maxAge <= 0) {
|
|
8960
|
+
return function_;
|
|
8750
8961
|
}
|
|
8751
8962
|
}
|
|
8752
8963
|
const memoized = function(...arguments_) {
|
|
@@ -8758,15 +8969,10 @@ function memoize(function_, { cacheKey, cache = /* @__PURE__ */ new Map(), maxAg
|
|
|
8758
8969
|
const result = function_.apply(this, arguments_);
|
|
8759
8970
|
const computedMaxAge = typeof maxAge === "function" ? maxAge(...arguments_) : maxAge;
|
|
8760
8971
|
if (computedMaxAge !== void 0 && computedMaxAge !== Number.POSITIVE_INFINITY) {
|
|
8761
|
-
|
|
8762
|
-
throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");
|
|
8763
|
-
}
|
|
8972
|
+
validateMaxAge(computedMaxAge, "`maxAge` function result");
|
|
8764
8973
|
if (computedMaxAge <= 0) {
|
|
8765
8974
|
return result;
|
|
8766
8975
|
}
|
|
8767
|
-
if (computedMaxAge > maxTimeoutValue) {
|
|
8768
|
-
throw new TypeError(`The \`maxAge\` function result cannot exceed ${maxTimeoutValue}.`);
|
|
8769
|
-
}
|
|
8770
8976
|
}
|
|
8771
8977
|
cache.set(key, {
|
|
8772
8978
|
data: result,
|
|
@@ -8842,7 +9048,7 @@ function applySideEffectsDiffWithMaps(baseFiles, { added, deleted }) {
|
|
|
8842
9048
|
return filesWithSideEffects;
|
|
8843
9049
|
}
|
|
8844
9050
|
function createCafsStore(storeDir, opts2) {
|
|
8845
|
-
const baseTempDir =
|
|
9051
|
+
const baseTempDir = path16.join(storeDir, "tmp");
|
|
8846
9052
|
const importPackage2 = createPackageImporter({
|
|
8847
9053
|
importIndexedPackage: opts2?.importPackage,
|
|
8848
9054
|
packageImportMethod: opts2?.packageImportMethod,
|
|
@@ -8853,9 +9059,8 @@ function createCafsStore(storeDir, opts2) {
|
|
|
8853
9059
|
storeDir,
|
|
8854
9060
|
importPackage: importPackage2,
|
|
8855
9061
|
tempDir: async () => {
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
return tmpDir;
|
|
9062
|
+
await fs10.mkdir(baseTempDir, { recursive: true });
|
|
9063
|
+
return fs10.mkdtemp(path16.join(baseTempDir, "_tmp_"));
|
|
8859
9064
|
}
|
|
8860
9065
|
};
|
|
8861
9066
|
}
|
|
@@ -8863,8 +9068,9 @@ function createCafsStore(storeDir, opts2) {
|
|
|
8863
9068
|
// ../store/index/lib/index.js
|
|
8864
9069
|
import fs11 from "node:fs";
|
|
8865
9070
|
import { createRequire as createRequire2 } from "node:module";
|
|
9071
|
+
import { pathToFileURL } from "node:url";
|
|
8866
9072
|
|
|
8867
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/
|
|
9073
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/2.0.4/4846a2ae9cbdea249e2eda7b79740c6d2b16af4f09769fa313dd4f4064702820/node_modules/msgpackr/unpack.js
|
|
8868
9074
|
var decoder;
|
|
8869
9075
|
try {
|
|
8870
9076
|
decoder = new TextDecoder();
|
|
@@ -8895,14 +9101,6 @@ var C1 = new C1Type();
|
|
|
8895
9101
|
C1.name = "MessagePack 0xC1";
|
|
8896
9102
|
var sequentialMode = false;
|
|
8897
9103
|
var inlineObjectReadThreshold = 2;
|
|
8898
|
-
var readStruct;
|
|
8899
|
-
var onLoadedStructures;
|
|
8900
|
-
var onSaveState;
|
|
8901
|
-
try {
|
|
8902
|
-
new Function("");
|
|
8903
|
-
} catch (error) {
|
|
8904
|
-
inlineObjectReadThreshold = Infinity;
|
|
8905
|
-
}
|
|
8906
9104
|
var Unpackr = class _Unpackr {
|
|
8907
9105
|
constructor(options) {
|
|
8908
9106
|
if (options) {
|
|
@@ -9005,8 +9203,8 @@ var Unpackr = class _Unpackr {
|
|
|
9005
9203
|
}
|
|
9006
9204
|
}
|
|
9007
9205
|
_mergeStructures(loadedStructures, existingStructures) {
|
|
9008
|
-
if (
|
|
9009
|
-
loadedStructures =
|
|
9206
|
+
if (this._onLoadedStructures)
|
|
9207
|
+
loadedStructures = this._onLoadedStructures(loadedStructures);
|
|
9010
9208
|
loadedStructures = loadedStructures || [];
|
|
9011
9209
|
if (Object.isFrozen(loadedStructures))
|
|
9012
9210
|
loadedStructures = loadedStructures.map((structure) => structure.slice(0));
|
|
@@ -9044,8 +9242,8 @@ function checkedRead(options) {
|
|
|
9044
9242
|
currentStructures.length = sharedLength;
|
|
9045
9243
|
}
|
|
9046
9244
|
let result;
|
|
9047
|
-
if (currentUnpackr.
|
|
9048
|
-
result =
|
|
9245
|
+
if (currentUnpackr._readStruct && src[position] < 64 && src[position] >= 32) {
|
|
9246
|
+
result = currentUnpackr._readStruct(src, position, srcEnd);
|
|
9049
9247
|
src = null;
|
|
9050
9248
|
if (!(options && options.lazy) && result)
|
|
9051
9249
|
result = result.toJSON();
|
|
@@ -9334,10 +9532,17 @@ var validName = /^[a-zA-Z_$][a-zA-Z\d_$]*$/;
|
|
|
9334
9532
|
function createStructureReader(structure, firstId) {
|
|
9335
9533
|
function readObject() {
|
|
9336
9534
|
if (readObject.count++ > inlineObjectReadThreshold) {
|
|
9337
|
-
let
|
|
9535
|
+
let optimizedReadObject;
|
|
9536
|
+
try {
|
|
9537
|
+
optimizedReadObject = structure.read = new Function("r", "return function(){return " + (currentUnpackr.freezeData ? "Object.freeze" : "") + "({" + structure.map((key) => key === "__proto__" ? "__proto_:r()" : validName.test(key) ? key + ":r()" : "[" + JSON.stringify(key) + "]:r()").join(",") + "})}")(read);
|
|
9538
|
+
} catch (error) {
|
|
9539
|
+
inlineObjectReadThreshold = Infinity;
|
|
9540
|
+
return readObject();
|
|
9541
|
+
}
|
|
9542
|
+
structure.read0 = optimizedReadObject;
|
|
9338
9543
|
if (structure.highByte === 0)
|
|
9339
9544
|
structure.read = createSecondByteReader(firstId, structure.read);
|
|
9340
|
-
return
|
|
9545
|
+
return optimizedReadObject();
|
|
9341
9546
|
}
|
|
9342
9547
|
let object = {};
|
|
9343
9548
|
for (let i = 0, l = structure.length; i < l; i++) {
|
|
@@ -9351,6 +9556,7 @@ function createStructureReader(structure, firstId) {
|
|
|
9351
9556
|
return object;
|
|
9352
9557
|
}
|
|
9353
9558
|
readObject.count = 0;
|
|
9559
|
+
structure.read0 = readObject;
|
|
9354
9560
|
if (structure.highByte === 0) {
|
|
9355
9561
|
return createSecondByteReader(firstId, readObject);
|
|
9356
9562
|
}
|
|
@@ -9385,12 +9591,12 @@ var readString32 = readStringJS;
|
|
|
9385
9591
|
var isNativeAccelerationEnabled = false;
|
|
9386
9592
|
function setExtractor(extractStrings) {
|
|
9387
9593
|
isNativeAccelerationEnabled = true;
|
|
9388
|
-
readFixedString =
|
|
9389
|
-
readString8 =
|
|
9390
|
-
readString16 =
|
|
9391
|
-
readString32 =
|
|
9392
|
-
function
|
|
9393
|
-
return function
|
|
9594
|
+
readFixedString = readString(1);
|
|
9595
|
+
readString8 = readString(2);
|
|
9596
|
+
readString16 = readString(3);
|
|
9597
|
+
readString32 = readString(5);
|
|
9598
|
+
function readString(headerLength) {
|
|
9599
|
+
return function readString2(length) {
|
|
9394
9600
|
let string = strings[stringPosition++];
|
|
9395
9601
|
if (string == null) {
|
|
9396
9602
|
if (bundledStrings)
|
|
@@ -9439,24 +9645,38 @@ function readStringJS(length) {
|
|
|
9439
9645
|
units.push(byte1);
|
|
9440
9646
|
} else if ((byte1 & 224) === 192) {
|
|
9441
9647
|
const byte2 = src[position++] & 63;
|
|
9442
|
-
|
|
9648
|
+
const codePoint = (byte1 & 31) << 6 | byte2;
|
|
9649
|
+
if (codePoint < 128) {
|
|
9650
|
+
units.push(65533);
|
|
9651
|
+
} else {
|
|
9652
|
+
units.push(codePoint);
|
|
9653
|
+
}
|
|
9443
9654
|
} else if ((byte1 & 240) === 224) {
|
|
9444
9655
|
const byte2 = src[position++] & 63;
|
|
9445
9656
|
const byte3 = src[position++] & 63;
|
|
9446
|
-
|
|
9657
|
+
const codePoint = (byte1 & 31) << 12 | byte2 << 6 | byte3;
|
|
9658
|
+
if (codePoint < 2048 || codePoint >= 55296 && codePoint <= 57343) {
|
|
9659
|
+
units.push(65533);
|
|
9660
|
+
} else {
|
|
9661
|
+
units.push(codePoint);
|
|
9662
|
+
}
|
|
9447
9663
|
} else if ((byte1 & 248) === 240) {
|
|
9448
9664
|
const byte2 = src[position++] & 63;
|
|
9449
9665
|
const byte3 = src[position++] & 63;
|
|
9450
9666
|
const byte4 = src[position++] & 63;
|
|
9451
9667
|
let unit = (byte1 & 7) << 18 | byte2 << 12 | byte3 << 6 | byte4;
|
|
9452
|
-
if (unit >
|
|
9668
|
+
if (unit < 65536 || unit > 1114111) {
|
|
9669
|
+
units.push(65533);
|
|
9670
|
+
} else if (unit > 65535) {
|
|
9453
9671
|
unit -= 65536;
|
|
9454
9672
|
units.push(unit >>> 10 & 1023 | 55296);
|
|
9455
9673
|
unit = 56320 | unit & 1023;
|
|
9674
|
+
units.push(unit);
|
|
9675
|
+
} else {
|
|
9676
|
+
units.push(unit);
|
|
9456
9677
|
}
|
|
9457
|
-
units.push(unit);
|
|
9458
9678
|
} else {
|
|
9459
|
-
units.push(
|
|
9679
|
+
units.push(65533);
|
|
9460
9680
|
}
|
|
9461
9681
|
if (units.length >= 4096) {
|
|
9462
9682
|
result += fromCharCode.apply(String, units);
|
|
@@ -9468,16 +9688,6 @@ function readStringJS(length) {
|
|
|
9468
9688
|
}
|
|
9469
9689
|
return result;
|
|
9470
9690
|
}
|
|
9471
|
-
function readString(source, start, length) {
|
|
9472
|
-
let existingSrc = src;
|
|
9473
|
-
src = source;
|
|
9474
|
-
position = start;
|
|
9475
|
-
try {
|
|
9476
|
-
return readStringJS(length);
|
|
9477
|
-
} finally {
|
|
9478
|
-
src = existingSrc;
|
|
9479
|
-
}
|
|
9480
|
-
}
|
|
9481
9691
|
function readArray(length) {
|
|
9482
9692
|
let array = new Array(length);
|
|
9483
9693
|
for (let i = 0; i < length; i++) {
|
|
@@ -9786,7 +9996,7 @@ var recordDefinition = (id, highByte) => {
|
|
|
9786
9996
|
}
|
|
9787
9997
|
currentStructures[id] = structure;
|
|
9788
9998
|
structure.read = createStructureReader(structure, firstByte);
|
|
9789
|
-
return structure.read();
|
|
9999
|
+
return (structure.read0 || structure.read)();
|
|
9790
10000
|
};
|
|
9791
10001
|
currentExtensions[0] = () => {
|
|
9792
10002
|
};
|
|
@@ -9805,7 +10015,7 @@ currentExtensions[66] = (data) => {
|
|
|
9805
10015
|
if (length <= 40) {
|
|
9806
10016
|
let out = view.getBigUint64(start);
|
|
9807
10017
|
for (let i = start + 8; i < end; i += 8) {
|
|
9808
|
-
out <<= BigInt(
|
|
10018
|
+
out <<= BigInt(64);
|
|
9809
10019
|
out |= view.getBigUint64(i);
|
|
9810
10020
|
}
|
|
9811
10021
|
return out;
|
|
@@ -9920,8 +10130,8 @@ currentExtensions[255] = (data) => {
|
|
|
9920
10130
|
return /* @__PURE__ */ new Date("invalid");
|
|
9921
10131
|
};
|
|
9922
10132
|
function saveState(callback) {
|
|
9923
|
-
if (
|
|
9924
|
-
|
|
10133
|
+
if (currentUnpackr && currentUnpackr._onSaveState)
|
|
10134
|
+
currentUnpackr._onSaveState();
|
|
9925
10135
|
let savedSrcEnd = srcEnd;
|
|
9926
10136
|
let savedPosition = position;
|
|
9927
10137
|
let savedStringPosition = stringPosition;
|
|
@@ -9975,13 +10185,9 @@ var FLOAT32_OPTIONS = {
|
|
|
9975
10185
|
};
|
|
9976
10186
|
var f32Array = new Float32Array(1);
|
|
9977
10187
|
var u8Array = new Uint8Array(f32Array.buffer, 0, 4);
|
|
9978
|
-
|
|
9979
|
-
readStruct = updatedReadStruct;
|
|
9980
|
-
onLoadedStructures = loadedStructs;
|
|
9981
|
-
onSaveState = saveState3;
|
|
9982
|
-
}
|
|
10188
|
+
Unpackr.SUPPORTS_STRUCT_HOOKS = true;
|
|
9983
10189
|
|
|
9984
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/
|
|
10190
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/2.0.4/4846a2ae9cbdea249e2eda7b79740c6d2b16af4f09769fa313dd4f4064702820/node_modules/msgpackr/pack.js
|
|
9985
10191
|
var textEncoder;
|
|
9986
10192
|
try {
|
|
9987
10193
|
textEncoder = new TextEncoder();
|
|
@@ -10001,7 +10207,6 @@ var targetView;
|
|
|
10001
10207
|
var position2 = 0;
|
|
10002
10208
|
var safeEnd;
|
|
10003
10209
|
var bundledStrings2 = null;
|
|
10004
|
-
var writeStructSlots;
|
|
10005
10210
|
var MAX_BUNDLE_SIZE = 21760;
|
|
10006
10211
|
var hasNonLatin = /[\u0080-\uFFFF]/;
|
|
10007
10212
|
var RECORD_SYMBOL = /* @__PURE__ */ Symbol("record-id");
|
|
@@ -10014,7 +10219,7 @@ var Packr = class extends Unpackr {
|
|
|
10014
10219
|
let hasSharedUpdate;
|
|
10015
10220
|
let structures;
|
|
10016
10221
|
let referenceMap2;
|
|
10017
|
-
let
|
|
10222
|
+
let encodeUtf8 = ByteArray.prototype.utf8Write ? function(string, position3) {
|
|
10018
10223
|
return target.utf8Write(string, position3, target.byteLength - position3);
|
|
10019
10224
|
} : textEncoder && textEncoder.encodeInto ? function(string, position3) {
|
|
10020
10225
|
return textEncoder.encodeInto(string, target.subarray(position3)).written;
|
|
@@ -10103,10 +10308,10 @@ var Packr = class extends Unpackr {
|
|
|
10103
10308
|
hasSharedUpdate = false;
|
|
10104
10309
|
let encodingError;
|
|
10105
10310
|
try {
|
|
10106
|
-
if (packr2.
|
|
10107
|
-
if (value.constructor === Object)
|
|
10311
|
+
if (packr2._writeStruct && value && typeof value === "object") {
|
|
10312
|
+
if (value.constructor === Object) writeStruct(value);
|
|
10108
10313
|
else if (value.constructor !== Map && !Array.isArray(value) && !extensionClasses.some((extClass) => value instanceof extClass)) {
|
|
10109
|
-
|
|
10314
|
+
writeStruct(value.toJSON ? value.toJSON() : value);
|
|
10110
10315
|
} else pack2(value);
|
|
10111
10316
|
} else
|
|
10112
10317
|
pack2(value);
|
|
@@ -10166,9 +10371,10 @@ var Packr = class extends Unpackr {
|
|
|
10166
10371
|
if (hasSharedUpdate && packr2.saveStructures) {
|
|
10167
10372
|
let sharedLength = structures.sharedLength || 0;
|
|
10168
10373
|
let returnBuffer = target.subarray(start, position2);
|
|
10169
|
-
let newSharedData = prepareStructures(structures, packr2);
|
|
10374
|
+
let newSharedData = (packr2._prepareStructures || prepareStructures)(structures, packr2);
|
|
10170
10375
|
if (!encodingError) {
|
|
10171
10376
|
if (packr2.saveStructures(newSharedData, newSharedData.isCompatible) === false) {
|
|
10377
|
+
structures.uninitialized = true;
|
|
10172
10378
|
return packr2.pack(value, encodeOptions);
|
|
10173
10379
|
}
|
|
10174
10380
|
packr2.lastNamedStructuresLength = sharedLength;
|
|
@@ -10271,7 +10477,7 @@ var Packr = class extends Unpackr {
|
|
|
10271
10477
|
let maxBytes = strLength * 3;
|
|
10272
10478
|
if (position2 + maxBytes > safeEnd)
|
|
10273
10479
|
target = makeRoom(position2 + maxBytes);
|
|
10274
|
-
if (strLength < 64 || !
|
|
10480
|
+
if (strLength < 64 || !encodeUtf8) {
|
|
10275
10481
|
let i, c1, c2, strPosition = position2 + headerSize;
|
|
10276
10482
|
for (i = 0; i < strLength; i++) {
|
|
10277
10483
|
c1 = value.charCodeAt(i);
|
|
@@ -10295,7 +10501,7 @@ var Packr = class extends Unpackr {
|
|
|
10295
10501
|
}
|
|
10296
10502
|
length = strPosition - position2 - headerSize;
|
|
10297
10503
|
} else {
|
|
10298
|
-
length =
|
|
10504
|
+
length = encodeUtf8(value, position2 + headerSize);
|
|
10299
10505
|
}
|
|
10300
10506
|
if (length < 32) {
|
|
10301
10507
|
target[position2++] = 160 | length;
|
|
@@ -10323,7 +10529,7 @@ var Packr = class extends Unpackr {
|
|
|
10323
10529
|
position2 += length;
|
|
10324
10530
|
} else if (type === "number") {
|
|
10325
10531
|
if (value >>> 0 === value) {
|
|
10326
|
-
if (value < 32 || value < 128 && this.useRecords === false || value < 64 && !this.
|
|
10532
|
+
if (value < 32 || value < 128 && this.useRecords === false || value < 64 && !this._writeStruct) {
|
|
10327
10533
|
target[position2++] = value;
|
|
10328
10534
|
} else if (value < 256) {
|
|
10329
10535
|
target[position2++] = 204;
|
|
@@ -10682,6 +10888,23 @@ var Packr = class extends Unpackr {
|
|
|
10682
10888
|
const writeObject = checkUseRecords ? (object) => {
|
|
10683
10889
|
checkUseRecords(object) ? writeRecord(object) : writePlainObject(object);
|
|
10684
10890
|
} : writeRecord;
|
|
10891
|
+
const writeStruct = (object) => {
|
|
10892
|
+
let newPosition = packr2._writeStruct(object, target, start, position2, structures, makeRoom, (value, newPosition2, notifySharedUpdate) => {
|
|
10893
|
+
if (notifySharedUpdate)
|
|
10894
|
+
return hasSharedUpdate = true;
|
|
10895
|
+
position2 = newPosition2;
|
|
10896
|
+
let startTarget = target;
|
|
10897
|
+
pack2(value);
|
|
10898
|
+
resetStructures();
|
|
10899
|
+
if (startTarget !== target) {
|
|
10900
|
+
return { position: position2, targetView, target };
|
|
10901
|
+
}
|
|
10902
|
+
return position2;
|
|
10903
|
+
});
|
|
10904
|
+
if (newPosition === 0)
|
|
10905
|
+
return writeObject(object);
|
|
10906
|
+
position2 = newPosition;
|
|
10907
|
+
};
|
|
10685
10908
|
const makeRoom = (end) => {
|
|
10686
10909
|
let newSize;
|
|
10687
10910
|
if (end > 16777216) {
|
|
@@ -10782,23 +11005,6 @@ var Packr = class extends Unpackr {
|
|
|
10782
11005
|
target[insertionOffset + start] = keysTarget[0];
|
|
10783
11006
|
}
|
|
10784
11007
|
};
|
|
10785
|
-
const writeStruct2 = (object) => {
|
|
10786
|
-
let newPosition = writeStructSlots(object, target, start, position2, structures, makeRoom, (value, newPosition2, notifySharedUpdate) => {
|
|
10787
|
-
if (notifySharedUpdate)
|
|
10788
|
-
return hasSharedUpdate = true;
|
|
10789
|
-
position2 = newPosition2;
|
|
10790
|
-
let startTarget = target;
|
|
10791
|
-
pack2(value);
|
|
10792
|
-
resetStructures();
|
|
10793
|
-
if (startTarget !== target) {
|
|
10794
|
-
return { position: position2, targetView, target };
|
|
10795
|
-
}
|
|
10796
|
-
return position2;
|
|
10797
|
-
}, this);
|
|
10798
|
-
if (newPosition === 0)
|
|
10799
|
-
return writeObject(object);
|
|
10800
|
-
position2 = newPosition;
|
|
10801
|
-
};
|
|
10802
11008
|
}
|
|
10803
11009
|
useBuffer(buffer) {
|
|
10804
11010
|
target = buffer;
|
|
@@ -11035,10 +11241,7 @@ function prepareStructures(structures, packr2) {
|
|
|
11035
11241
|
};
|
|
11036
11242
|
return structures;
|
|
11037
11243
|
}
|
|
11038
|
-
|
|
11039
|
-
writeStructSlots = writeSlots;
|
|
11040
|
-
prepareStructures = makeStructures;
|
|
11041
|
-
}
|
|
11244
|
+
Packr.SUPPORTS_STRUCT_HOOKS = true;
|
|
11042
11245
|
var defaultPackr = new Packr({ useRecords: false });
|
|
11043
11246
|
var pack = defaultPackr.pack;
|
|
11044
11247
|
var encode = defaultPackr.pack;
|
|
@@ -11047,722 +11250,7 @@ var REUSE_BUFFER_MODE = 512;
|
|
|
11047
11250
|
var RESET_BUFFER_MODE = 1024;
|
|
11048
11251
|
var RESERVE_START_SPACE = 2048;
|
|
11049
11252
|
|
|
11050
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/
|
|
11051
|
-
var ASCII = 3;
|
|
11052
|
-
var NUMBER = 0;
|
|
11053
|
-
var UTF8 = 2;
|
|
11054
|
-
var OBJECT_DATA = 1;
|
|
11055
|
-
var DATE = 16;
|
|
11056
|
-
var TYPE_NAMES = ["num", "object", "string", "ascii"];
|
|
11057
|
-
TYPE_NAMES[DATE] = "date";
|
|
11058
|
-
var float32Headers = [false, true, true, false, false, true, true, false];
|
|
11059
|
-
var evalSupported;
|
|
11060
|
-
try {
|
|
11061
|
-
new Function("");
|
|
11062
|
-
evalSupported = true;
|
|
11063
|
-
} catch (error) {
|
|
11064
|
-
}
|
|
11065
|
-
var updatedPosition;
|
|
11066
|
-
var hasNodeBuffer2 = typeof Buffer !== "undefined";
|
|
11067
|
-
var textEncoder2;
|
|
11068
|
-
var currentSource;
|
|
11069
|
-
try {
|
|
11070
|
-
textEncoder2 = new TextEncoder();
|
|
11071
|
-
} catch (error) {
|
|
11072
|
-
}
|
|
11073
|
-
var encodeUtf8 = hasNodeBuffer2 ? function(target2, string, position3) {
|
|
11074
|
-
return target2.utf8Write(string, position3, target2.byteLength - position3);
|
|
11075
|
-
} : textEncoder2 && textEncoder2.encodeInto ? function(target2, string, position3) {
|
|
11076
|
-
return textEncoder2.encodeInto(string, target2.subarray(position3)).written;
|
|
11077
|
-
} : false;
|
|
11078
|
-
setWriteStructSlots(writeStruct, prepareStructures2);
|
|
11079
|
-
function writeStruct(object, target2, encodingStart, position3, structures, makeRoom, pack2, packr2) {
|
|
11080
|
-
let typedStructs = packr2.typedStructs || (packr2.typedStructs = []);
|
|
11081
|
-
let targetView2 = target2.dataView;
|
|
11082
|
-
let refsStartPosition = (typedStructs.lastStringStart || 100) + position3;
|
|
11083
|
-
let safeEnd2 = target2.length - 10;
|
|
11084
|
-
let start = position3;
|
|
11085
|
-
if (position3 > safeEnd2) {
|
|
11086
|
-
target2 = makeRoom(position3);
|
|
11087
|
-
targetView2 = target2.dataView;
|
|
11088
|
-
position3 -= encodingStart;
|
|
11089
|
-
start -= encodingStart;
|
|
11090
|
-
refsStartPosition -= encodingStart;
|
|
11091
|
-
encodingStart = 0;
|
|
11092
|
-
safeEnd2 = target2.length - 10;
|
|
11093
|
-
}
|
|
11094
|
-
let refOffset, refPosition = refsStartPosition;
|
|
11095
|
-
let transition = typedStructs.transitions || (typedStructs.transitions = /* @__PURE__ */ Object.create(null));
|
|
11096
|
-
let nextId = typedStructs.nextId || typedStructs.length;
|
|
11097
|
-
let headerSize = nextId < 15 ? 1 : nextId < 240 ? 2 : nextId < 61440 ? 3 : nextId < 15728640 ? 4 : 0;
|
|
11098
|
-
if (headerSize === 0)
|
|
11099
|
-
return 0;
|
|
11100
|
-
position3 += headerSize;
|
|
11101
|
-
let queuedReferences = [];
|
|
11102
|
-
let usedAscii0;
|
|
11103
|
-
let keyIndex = 0;
|
|
11104
|
-
for (let key in object) {
|
|
11105
|
-
let value = object[key];
|
|
11106
|
-
let nextTransition = transition[key];
|
|
11107
|
-
if (!nextTransition) {
|
|
11108
|
-
transition[key] = nextTransition = {
|
|
11109
|
-
key,
|
|
11110
|
-
parent: transition,
|
|
11111
|
-
enumerationOffset: 0,
|
|
11112
|
-
ascii0: null,
|
|
11113
|
-
ascii8: null,
|
|
11114
|
-
num8: null,
|
|
11115
|
-
string16: null,
|
|
11116
|
-
object16: null,
|
|
11117
|
-
num32: null,
|
|
11118
|
-
float64: null,
|
|
11119
|
-
date64: null
|
|
11120
|
-
};
|
|
11121
|
-
}
|
|
11122
|
-
if (position3 > safeEnd2) {
|
|
11123
|
-
target2 = makeRoom(position3);
|
|
11124
|
-
targetView2 = target2.dataView;
|
|
11125
|
-
position3 -= encodingStart;
|
|
11126
|
-
start -= encodingStart;
|
|
11127
|
-
refsStartPosition -= encodingStart;
|
|
11128
|
-
refPosition -= encodingStart;
|
|
11129
|
-
encodingStart = 0;
|
|
11130
|
-
safeEnd2 = target2.length - 10;
|
|
11131
|
-
}
|
|
11132
|
-
switch (typeof value) {
|
|
11133
|
-
case "number":
|
|
11134
|
-
let number = value;
|
|
11135
|
-
if (nextId < 200 || !nextTransition.num64) {
|
|
11136
|
-
if (number >> 0 === number && number < 536870912 && number > -520093696) {
|
|
11137
|
-
if (number < 246 && number >= 0 && (nextTransition.num8 && !(nextId > 200 && nextTransition.num32) || number < 32 && !nextTransition.num32)) {
|
|
11138
|
-
transition = nextTransition.num8 || createTypeTransition(nextTransition, NUMBER, 1);
|
|
11139
|
-
target2[position3++] = number;
|
|
11140
|
-
} else {
|
|
11141
|
-
transition = nextTransition.num32 || createTypeTransition(nextTransition, NUMBER, 4);
|
|
11142
|
-
targetView2.setUint32(position3, number, true);
|
|
11143
|
-
position3 += 4;
|
|
11144
|
-
}
|
|
11145
|
-
break;
|
|
11146
|
-
} else if (number < 4294967296 && number >= -2147483648) {
|
|
11147
|
-
targetView2.setFloat32(position3, number, true);
|
|
11148
|
-
if (float32Headers[target2[position3 + 3] >>> 5]) {
|
|
11149
|
-
let xShifted;
|
|
11150
|
-
if ((xShifted = number * mult10[(target2[position3 + 3] & 127) << 1 | target2[position3 + 2] >> 7]) >> 0 === xShifted) {
|
|
11151
|
-
transition = nextTransition.num32 || createTypeTransition(nextTransition, NUMBER, 4);
|
|
11152
|
-
position3 += 4;
|
|
11153
|
-
break;
|
|
11154
|
-
}
|
|
11155
|
-
}
|
|
11156
|
-
}
|
|
11157
|
-
}
|
|
11158
|
-
transition = nextTransition.num64 || createTypeTransition(nextTransition, NUMBER, 8);
|
|
11159
|
-
targetView2.setFloat64(position3, number, true);
|
|
11160
|
-
position3 += 8;
|
|
11161
|
-
break;
|
|
11162
|
-
case "string":
|
|
11163
|
-
let strLength = value.length;
|
|
11164
|
-
refOffset = refPosition - refsStartPosition;
|
|
11165
|
-
if ((strLength << 2) + refPosition > safeEnd2) {
|
|
11166
|
-
target2 = makeRoom((strLength << 2) + refPosition);
|
|
11167
|
-
targetView2 = target2.dataView;
|
|
11168
|
-
position3 -= encodingStart;
|
|
11169
|
-
start -= encodingStart;
|
|
11170
|
-
refsStartPosition -= encodingStart;
|
|
11171
|
-
refPosition -= encodingStart;
|
|
11172
|
-
encodingStart = 0;
|
|
11173
|
-
safeEnd2 = target2.length - 10;
|
|
11174
|
-
}
|
|
11175
|
-
if (strLength > 65280 + refOffset >> 2) {
|
|
11176
|
-
queuedReferences.push(key, value, position3 - start);
|
|
11177
|
-
break;
|
|
11178
|
-
}
|
|
11179
|
-
let isNotAscii;
|
|
11180
|
-
let strStart = refPosition;
|
|
11181
|
-
if (strLength < 64) {
|
|
11182
|
-
let i, c1, c2;
|
|
11183
|
-
for (i = 0; i < strLength; i++) {
|
|
11184
|
-
c1 = value.charCodeAt(i);
|
|
11185
|
-
if (c1 < 128) {
|
|
11186
|
-
target2[refPosition++] = c1;
|
|
11187
|
-
} else if (c1 < 2048) {
|
|
11188
|
-
isNotAscii = true;
|
|
11189
|
-
target2[refPosition++] = c1 >> 6 | 192;
|
|
11190
|
-
target2[refPosition++] = c1 & 63 | 128;
|
|
11191
|
-
} else if ((c1 & 64512) === 55296 && ((c2 = value.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
11192
|
-
isNotAscii = true;
|
|
11193
|
-
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
11194
|
-
i++;
|
|
11195
|
-
target2[refPosition++] = c1 >> 18 | 240;
|
|
11196
|
-
target2[refPosition++] = c1 >> 12 & 63 | 128;
|
|
11197
|
-
target2[refPosition++] = c1 >> 6 & 63 | 128;
|
|
11198
|
-
target2[refPosition++] = c1 & 63 | 128;
|
|
11199
|
-
} else {
|
|
11200
|
-
isNotAscii = true;
|
|
11201
|
-
target2[refPosition++] = c1 >> 12 | 224;
|
|
11202
|
-
target2[refPosition++] = c1 >> 6 & 63 | 128;
|
|
11203
|
-
target2[refPosition++] = c1 & 63 | 128;
|
|
11204
|
-
}
|
|
11205
|
-
}
|
|
11206
|
-
} else {
|
|
11207
|
-
refPosition += encodeUtf8(target2, value, refPosition);
|
|
11208
|
-
isNotAscii = refPosition - strStart > strLength;
|
|
11209
|
-
}
|
|
11210
|
-
if (refOffset < 160 || refOffset < 246 && (nextTransition.ascii8 || nextTransition.string8)) {
|
|
11211
|
-
if (isNotAscii) {
|
|
11212
|
-
if (!(transition = nextTransition.string8)) {
|
|
11213
|
-
if (typedStructs.length > 10 && (transition = nextTransition.ascii8)) {
|
|
11214
|
-
transition.__type = UTF8;
|
|
11215
|
-
nextTransition.ascii8 = null;
|
|
11216
|
-
nextTransition.string8 = transition;
|
|
11217
|
-
pack2(null, 0, true);
|
|
11218
|
-
} else {
|
|
11219
|
-
transition = createTypeTransition(nextTransition, UTF8, 1);
|
|
11220
|
-
}
|
|
11221
|
-
}
|
|
11222
|
-
} else if (refOffset === 0 && !usedAscii0) {
|
|
11223
|
-
usedAscii0 = true;
|
|
11224
|
-
transition = nextTransition.ascii0 || createTypeTransition(nextTransition, ASCII, 0);
|
|
11225
|
-
break;
|
|
11226
|
-
} else if (!(transition = nextTransition.ascii8) && !(typedStructs.length > 10 && (transition = nextTransition.string8)))
|
|
11227
|
-
transition = createTypeTransition(nextTransition, ASCII, 1);
|
|
11228
|
-
target2[position3++] = refOffset;
|
|
11229
|
-
} else {
|
|
11230
|
-
transition = nextTransition.string16 || createTypeTransition(nextTransition, UTF8, 2);
|
|
11231
|
-
targetView2.setUint16(position3, refOffset, true);
|
|
11232
|
-
position3 += 2;
|
|
11233
|
-
}
|
|
11234
|
-
break;
|
|
11235
|
-
case "object":
|
|
11236
|
-
if (value) {
|
|
11237
|
-
if (value.constructor === Date) {
|
|
11238
|
-
transition = nextTransition.date64 || createTypeTransition(nextTransition, DATE, 8);
|
|
11239
|
-
targetView2.setFloat64(position3, value.getTime(), true);
|
|
11240
|
-
position3 += 8;
|
|
11241
|
-
} else {
|
|
11242
|
-
queuedReferences.push(key, value, keyIndex);
|
|
11243
|
-
}
|
|
11244
|
-
break;
|
|
11245
|
-
} else {
|
|
11246
|
-
nextTransition = anyType(nextTransition, position3, targetView2, -10);
|
|
11247
|
-
if (nextTransition) {
|
|
11248
|
-
transition = nextTransition;
|
|
11249
|
-
position3 = updatedPosition;
|
|
11250
|
-
} else queuedReferences.push(key, value, keyIndex);
|
|
11251
|
-
}
|
|
11252
|
-
break;
|
|
11253
|
-
case "boolean":
|
|
11254
|
-
transition = nextTransition.num8 || nextTransition.ascii8 || createTypeTransition(nextTransition, NUMBER, 1);
|
|
11255
|
-
target2[position3++] = value ? 249 : 248;
|
|
11256
|
-
break;
|
|
11257
|
-
case "undefined":
|
|
11258
|
-
nextTransition = anyType(nextTransition, position3, targetView2, -9);
|
|
11259
|
-
if (nextTransition) {
|
|
11260
|
-
transition = nextTransition;
|
|
11261
|
-
position3 = updatedPosition;
|
|
11262
|
-
} else queuedReferences.push(key, value, keyIndex);
|
|
11263
|
-
break;
|
|
11264
|
-
default:
|
|
11265
|
-
queuedReferences.push(key, value, keyIndex);
|
|
11266
|
-
}
|
|
11267
|
-
keyIndex++;
|
|
11268
|
-
}
|
|
11269
|
-
for (let i = 0, l = queuedReferences.length; i < l; ) {
|
|
11270
|
-
let key = queuedReferences[i++];
|
|
11271
|
-
let value = queuedReferences[i++];
|
|
11272
|
-
let propertyIndex = queuedReferences[i++];
|
|
11273
|
-
let nextTransition = transition[key];
|
|
11274
|
-
if (!nextTransition) {
|
|
11275
|
-
transition[key] = nextTransition = {
|
|
11276
|
-
key,
|
|
11277
|
-
parent: transition,
|
|
11278
|
-
enumerationOffset: propertyIndex - keyIndex,
|
|
11279
|
-
ascii0: null,
|
|
11280
|
-
ascii8: null,
|
|
11281
|
-
num8: null,
|
|
11282
|
-
string16: null,
|
|
11283
|
-
object16: null,
|
|
11284
|
-
num32: null,
|
|
11285
|
-
float64: null
|
|
11286
|
-
};
|
|
11287
|
-
}
|
|
11288
|
-
let newPosition;
|
|
11289
|
-
if (value) {
|
|
11290
|
-
let size;
|
|
11291
|
-
refOffset = refPosition - refsStartPosition;
|
|
11292
|
-
if (refOffset < 65280) {
|
|
11293
|
-
transition = nextTransition.object16;
|
|
11294
|
-
if (transition)
|
|
11295
|
-
size = 2;
|
|
11296
|
-
else if (transition = nextTransition.object32)
|
|
11297
|
-
size = 4;
|
|
11298
|
-
else {
|
|
11299
|
-
transition = createTypeTransition(nextTransition, OBJECT_DATA, 2);
|
|
11300
|
-
size = 2;
|
|
11301
|
-
}
|
|
11302
|
-
} else {
|
|
11303
|
-
transition = nextTransition.object32 || createTypeTransition(nextTransition, OBJECT_DATA, 4);
|
|
11304
|
-
size = 4;
|
|
11305
|
-
}
|
|
11306
|
-
newPosition = pack2(value, refPosition);
|
|
11307
|
-
if (typeof newPosition === "object") {
|
|
11308
|
-
refPosition = newPosition.position;
|
|
11309
|
-
targetView2 = newPosition.targetView;
|
|
11310
|
-
target2 = newPosition.target;
|
|
11311
|
-
refsStartPosition -= encodingStart;
|
|
11312
|
-
position3 -= encodingStart;
|
|
11313
|
-
start -= encodingStart;
|
|
11314
|
-
encodingStart = 0;
|
|
11315
|
-
} else
|
|
11316
|
-
refPosition = newPosition;
|
|
11317
|
-
if (size === 2) {
|
|
11318
|
-
targetView2.setUint16(position3, refOffset, true);
|
|
11319
|
-
position3 += 2;
|
|
11320
|
-
} else {
|
|
11321
|
-
targetView2.setUint32(position3, refOffset, true);
|
|
11322
|
-
position3 += 4;
|
|
11323
|
-
}
|
|
11324
|
-
} else {
|
|
11325
|
-
transition = nextTransition.object16 || createTypeTransition(nextTransition, OBJECT_DATA, 2);
|
|
11326
|
-
targetView2.setInt16(position3, value === null ? -10 : -9, true);
|
|
11327
|
-
position3 += 2;
|
|
11328
|
-
}
|
|
11329
|
-
keyIndex++;
|
|
11330
|
-
}
|
|
11331
|
-
let recordId = transition[RECORD_SYMBOL];
|
|
11332
|
-
if (recordId == null) {
|
|
11333
|
-
recordId = packr2.typedStructs.length;
|
|
11334
|
-
let structure = [];
|
|
11335
|
-
let nextTransition = transition;
|
|
11336
|
-
let key, type;
|
|
11337
|
-
while ((type = nextTransition.__type) !== void 0) {
|
|
11338
|
-
let size = nextTransition.__size;
|
|
11339
|
-
nextTransition = nextTransition.__parent;
|
|
11340
|
-
key = nextTransition.key;
|
|
11341
|
-
let property = [type, size, key];
|
|
11342
|
-
if (nextTransition.enumerationOffset)
|
|
11343
|
-
property.push(nextTransition.enumerationOffset);
|
|
11344
|
-
structure.push(property);
|
|
11345
|
-
nextTransition = nextTransition.parent;
|
|
11346
|
-
}
|
|
11347
|
-
structure.reverse();
|
|
11348
|
-
transition[RECORD_SYMBOL] = recordId;
|
|
11349
|
-
packr2.typedStructs[recordId] = structure;
|
|
11350
|
-
pack2(null, 0, true);
|
|
11351
|
-
}
|
|
11352
|
-
switch (headerSize) {
|
|
11353
|
-
case 1:
|
|
11354
|
-
if (recordId >= 16) return 0;
|
|
11355
|
-
target2[start] = recordId + 32;
|
|
11356
|
-
break;
|
|
11357
|
-
case 2:
|
|
11358
|
-
if (recordId >= 256) return 0;
|
|
11359
|
-
target2[start] = 56;
|
|
11360
|
-
target2[start + 1] = recordId;
|
|
11361
|
-
break;
|
|
11362
|
-
case 3:
|
|
11363
|
-
if (recordId >= 65536) return 0;
|
|
11364
|
-
target2[start] = 57;
|
|
11365
|
-
targetView2.setUint16(start + 1, recordId, true);
|
|
11366
|
-
break;
|
|
11367
|
-
case 4:
|
|
11368
|
-
if (recordId >= 16777216) return 0;
|
|
11369
|
-
targetView2.setUint32(start, (recordId << 8) + 58, true);
|
|
11370
|
-
break;
|
|
11371
|
-
}
|
|
11372
|
-
if (position3 < refsStartPosition) {
|
|
11373
|
-
if (refsStartPosition === refPosition)
|
|
11374
|
-
return position3;
|
|
11375
|
-
target2.copyWithin(position3, refsStartPosition, refPosition);
|
|
11376
|
-
refPosition += position3 - refsStartPosition;
|
|
11377
|
-
typedStructs.lastStringStart = position3 - start;
|
|
11378
|
-
} else if (position3 > refsStartPosition) {
|
|
11379
|
-
if (refsStartPosition === refPosition)
|
|
11380
|
-
return position3;
|
|
11381
|
-
typedStructs.lastStringStart = position3 - start;
|
|
11382
|
-
return writeStruct(object, target2, encodingStart, start, structures, makeRoom, pack2, packr2);
|
|
11383
|
-
}
|
|
11384
|
-
return refPosition;
|
|
11385
|
-
}
|
|
11386
|
-
function anyType(transition, position3, targetView2, value) {
|
|
11387
|
-
let nextTransition;
|
|
11388
|
-
if (nextTransition = transition.ascii8 || transition.num8) {
|
|
11389
|
-
targetView2.setInt8(position3, value, true);
|
|
11390
|
-
updatedPosition = position3 + 1;
|
|
11391
|
-
return nextTransition;
|
|
11392
|
-
}
|
|
11393
|
-
if (nextTransition = transition.string16 || transition.object16) {
|
|
11394
|
-
targetView2.setInt16(position3, value, true);
|
|
11395
|
-
updatedPosition = position3 + 2;
|
|
11396
|
-
return nextTransition;
|
|
11397
|
-
}
|
|
11398
|
-
if (nextTransition = transition.num32) {
|
|
11399
|
-
targetView2.setUint32(position3, 3758096640 + value, true);
|
|
11400
|
-
updatedPosition = position3 + 4;
|
|
11401
|
-
return nextTransition;
|
|
11402
|
-
}
|
|
11403
|
-
if (nextTransition = transition.num64) {
|
|
11404
|
-
targetView2.setFloat64(position3, NaN, true);
|
|
11405
|
-
targetView2.setInt8(position3, value);
|
|
11406
|
-
updatedPosition = position3 + 8;
|
|
11407
|
-
return nextTransition;
|
|
11408
|
-
}
|
|
11409
|
-
updatedPosition = position3;
|
|
11410
|
-
return;
|
|
11411
|
-
}
|
|
11412
|
-
function createTypeTransition(transition, type, size) {
|
|
11413
|
-
let typeName = TYPE_NAMES[type] + (size << 3);
|
|
11414
|
-
let newTransition = transition[typeName] || (transition[typeName] = /* @__PURE__ */ Object.create(null));
|
|
11415
|
-
newTransition.__type = type;
|
|
11416
|
-
newTransition.__size = size;
|
|
11417
|
-
newTransition.__parent = transition;
|
|
11418
|
-
return newTransition;
|
|
11419
|
-
}
|
|
11420
|
-
function onLoadedStructures2(sharedData) {
|
|
11421
|
-
if (!(sharedData instanceof Map))
|
|
11422
|
-
return sharedData;
|
|
11423
|
-
let typed = sharedData.get("typed") || [];
|
|
11424
|
-
if (Object.isFrozen(typed))
|
|
11425
|
-
typed = typed.map((structure) => structure.slice(0));
|
|
11426
|
-
let named = sharedData.get("named");
|
|
11427
|
-
let transitions = /* @__PURE__ */ Object.create(null);
|
|
11428
|
-
for (let i = 0, l = typed.length; i < l; i++) {
|
|
11429
|
-
let structure = typed[i];
|
|
11430
|
-
let transition = transitions;
|
|
11431
|
-
for (let [type, size, key] of structure) {
|
|
11432
|
-
let nextTransition = transition[key];
|
|
11433
|
-
if (!nextTransition) {
|
|
11434
|
-
transition[key] = nextTransition = {
|
|
11435
|
-
key,
|
|
11436
|
-
parent: transition,
|
|
11437
|
-
enumerationOffset: 0,
|
|
11438
|
-
ascii0: null,
|
|
11439
|
-
ascii8: null,
|
|
11440
|
-
num8: null,
|
|
11441
|
-
string16: null,
|
|
11442
|
-
object16: null,
|
|
11443
|
-
num32: null,
|
|
11444
|
-
float64: null,
|
|
11445
|
-
date64: null
|
|
11446
|
-
};
|
|
11447
|
-
}
|
|
11448
|
-
transition = createTypeTransition(nextTransition, type, size);
|
|
11449
|
-
}
|
|
11450
|
-
transition[RECORD_SYMBOL] = i;
|
|
11451
|
-
}
|
|
11452
|
-
typed.transitions = transitions;
|
|
11453
|
-
this.typedStructs = typed;
|
|
11454
|
-
this.lastTypedStructuresLength = typed.length;
|
|
11455
|
-
return named;
|
|
11456
|
-
}
|
|
11457
|
-
var sourceSymbol = /* @__PURE__ */ Symbol.for("source");
|
|
11458
|
-
function readStruct2(src2, position3, srcEnd2, unpackr) {
|
|
11459
|
-
let recordId = src2[position3++] - 32;
|
|
11460
|
-
if (recordId >= 24) {
|
|
11461
|
-
switch (recordId) {
|
|
11462
|
-
case 24:
|
|
11463
|
-
recordId = src2[position3++];
|
|
11464
|
-
break;
|
|
11465
|
-
// little endian:
|
|
11466
|
-
case 25:
|
|
11467
|
-
recordId = src2[position3++] + (src2[position3++] << 8);
|
|
11468
|
-
break;
|
|
11469
|
-
case 26:
|
|
11470
|
-
recordId = src2[position3++] + (src2[position3++] << 8) + (src2[position3++] << 16);
|
|
11471
|
-
break;
|
|
11472
|
-
case 27:
|
|
11473
|
-
recordId = src2[position3++] + (src2[position3++] << 8) + (src2[position3++] << 16) + (src2[position3++] << 24);
|
|
11474
|
-
break;
|
|
11475
|
-
}
|
|
11476
|
-
}
|
|
11477
|
-
let structure = unpackr.typedStructs && unpackr.typedStructs[recordId];
|
|
11478
|
-
if (!structure) {
|
|
11479
|
-
src2 = Uint8Array.prototype.slice.call(src2, position3, srcEnd2);
|
|
11480
|
-
srcEnd2 -= position3;
|
|
11481
|
-
position3 = 0;
|
|
11482
|
-
if (!unpackr.getStructures)
|
|
11483
|
-
throw new Error(`Reference to shared structure ${recordId} without getStructures method`);
|
|
11484
|
-
unpackr._mergeStructures(unpackr.getStructures());
|
|
11485
|
-
if (!unpackr.typedStructs)
|
|
11486
|
-
throw new Error("Could not find any shared typed structures");
|
|
11487
|
-
unpackr.lastTypedStructuresLength = unpackr.typedStructs.length;
|
|
11488
|
-
structure = unpackr.typedStructs[recordId];
|
|
11489
|
-
if (!structure)
|
|
11490
|
-
throw new Error("Could not find typed structure " + recordId);
|
|
11491
|
-
}
|
|
11492
|
-
var construct = structure.construct;
|
|
11493
|
-
var fullConstruct = structure.fullConstruct;
|
|
11494
|
-
if (!construct) {
|
|
11495
|
-
construct = structure.construct = function LazyObject() {
|
|
11496
|
-
};
|
|
11497
|
-
fullConstruct = structure.fullConstruct = function LoadedObject() {
|
|
11498
|
-
};
|
|
11499
|
-
fullConstruct.prototype = unpackr.structPrototype || {};
|
|
11500
|
-
var prototype = construct.prototype = unpackr.structPrototype ? Object.create(unpackr.structPrototype) : {};
|
|
11501
|
-
let properties = [];
|
|
11502
|
-
let currentOffset = 0;
|
|
11503
|
-
let lastRefProperty;
|
|
11504
|
-
for (let i = 0, l = structure.length; i < l; i++) {
|
|
11505
|
-
let definition = structure[i];
|
|
11506
|
-
let [type, size, key, enumerationOffset] = definition;
|
|
11507
|
-
if (key === "__proto__")
|
|
11508
|
-
key = "__proto_";
|
|
11509
|
-
let property = {
|
|
11510
|
-
key,
|
|
11511
|
-
offset: currentOffset
|
|
11512
|
-
};
|
|
11513
|
-
if (enumerationOffset)
|
|
11514
|
-
properties.splice(i + enumerationOffset, 0, property);
|
|
11515
|
-
else
|
|
11516
|
-
properties.push(property);
|
|
11517
|
-
let getRef;
|
|
11518
|
-
switch (size) {
|
|
11519
|
-
// TODO: Move into a separate function
|
|
11520
|
-
case 0:
|
|
11521
|
-
getRef = () => 0;
|
|
11522
|
-
break;
|
|
11523
|
-
case 1:
|
|
11524
|
-
getRef = (source, position4) => {
|
|
11525
|
-
let ref = source.bytes[position4 + property.offset];
|
|
11526
|
-
return ref >= 246 ? toConstant(ref) : ref;
|
|
11527
|
-
};
|
|
11528
|
-
break;
|
|
11529
|
-
case 2:
|
|
11530
|
-
getRef = (source, position4) => {
|
|
11531
|
-
let src3 = source.bytes;
|
|
11532
|
-
let dataView2 = src3.dataView || (src3.dataView = new DataView(src3.buffer, src3.byteOffset, src3.byteLength));
|
|
11533
|
-
let ref = dataView2.getUint16(position4 + property.offset, true);
|
|
11534
|
-
return ref >= 65280 ? toConstant(ref & 255) : ref;
|
|
11535
|
-
};
|
|
11536
|
-
break;
|
|
11537
|
-
case 4:
|
|
11538
|
-
getRef = (source, position4) => {
|
|
11539
|
-
let src3 = source.bytes;
|
|
11540
|
-
let dataView2 = src3.dataView || (src3.dataView = new DataView(src3.buffer, src3.byteOffset, src3.byteLength));
|
|
11541
|
-
let ref = dataView2.getUint32(position4 + property.offset, true);
|
|
11542
|
-
return ref >= 4294967040 ? toConstant(ref & 255) : ref;
|
|
11543
|
-
};
|
|
11544
|
-
break;
|
|
11545
|
-
}
|
|
11546
|
-
property.getRef = getRef;
|
|
11547
|
-
currentOffset += size;
|
|
11548
|
-
let get;
|
|
11549
|
-
switch (type) {
|
|
11550
|
-
case ASCII:
|
|
11551
|
-
if (lastRefProperty && !lastRefProperty.next)
|
|
11552
|
-
lastRefProperty.next = property;
|
|
11553
|
-
lastRefProperty = property;
|
|
11554
|
-
property.multiGetCount = 0;
|
|
11555
|
-
get = function(source) {
|
|
11556
|
-
let src3 = source.bytes;
|
|
11557
|
-
let position4 = source.position;
|
|
11558
|
-
let refStart = currentOffset + position4;
|
|
11559
|
-
let ref = getRef(source, position4);
|
|
11560
|
-
if (typeof ref !== "number") return ref;
|
|
11561
|
-
let end, next = property.next;
|
|
11562
|
-
while (next) {
|
|
11563
|
-
end = next.getRef(source, position4);
|
|
11564
|
-
if (typeof end === "number")
|
|
11565
|
-
break;
|
|
11566
|
-
else
|
|
11567
|
-
end = null;
|
|
11568
|
-
next = next.next;
|
|
11569
|
-
}
|
|
11570
|
-
if (end == null)
|
|
11571
|
-
end = source.bytesEnd - refStart;
|
|
11572
|
-
if (source.srcString) {
|
|
11573
|
-
return source.srcString.slice(ref, end);
|
|
11574
|
-
}
|
|
11575
|
-
return readString(src3, ref + refStart, end - ref);
|
|
11576
|
-
};
|
|
11577
|
-
break;
|
|
11578
|
-
case UTF8:
|
|
11579
|
-
case OBJECT_DATA:
|
|
11580
|
-
if (lastRefProperty && !lastRefProperty.next)
|
|
11581
|
-
lastRefProperty.next = property;
|
|
11582
|
-
lastRefProperty = property;
|
|
11583
|
-
get = function(source) {
|
|
11584
|
-
let position4 = source.position;
|
|
11585
|
-
let refStart = currentOffset + position4;
|
|
11586
|
-
let ref = getRef(source, position4);
|
|
11587
|
-
if (typeof ref !== "number") return ref;
|
|
11588
|
-
let src3 = source.bytes;
|
|
11589
|
-
let end, next = property.next;
|
|
11590
|
-
while (next) {
|
|
11591
|
-
end = next.getRef(source, position4);
|
|
11592
|
-
if (typeof end === "number")
|
|
11593
|
-
break;
|
|
11594
|
-
else
|
|
11595
|
-
end = null;
|
|
11596
|
-
next = next.next;
|
|
11597
|
-
}
|
|
11598
|
-
if (end == null)
|
|
11599
|
-
end = source.bytesEnd - refStart;
|
|
11600
|
-
if (type === UTF8) {
|
|
11601
|
-
return src3.toString("utf8", ref + refStart, end + refStart);
|
|
11602
|
-
} else {
|
|
11603
|
-
currentSource = source;
|
|
11604
|
-
try {
|
|
11605
|
-
return unpackr.unpack(src3, { start: ref + refStart, end: end + refStart });
|
|
11606
|
-
} finally {
|
|
11607
|
-
currentSource = null;
|
|
11608
|
-
}
|
|
11609
|
-
}
|
|
11610
|
-
};
|
|
11611
|
-
break;
|
|
11612
|
-
case NUMBER:
|
|
11613
|
-
switch (size) {
|
|
11614
|
-
case 4:
|
|
11615
|
-
get = function(source) {
|
|
11616
|
-
let src3 = source.bytes;
|
|
11617
|
-
let dataView2 = src3.dataView || (src3.dataView = new DataView(src3.buffer, src3.byteOffset, src3.byteLength));
|
|
11618
|
-
let position4 = source.position + property.offset;
|
|
11619
|
-
let value = dataView2.getInt32(position4, true);
|
|
11620
|
-
if (value < 536870912) {
|
|
11621
|
-
if (value > -520093696)
|
|
11622
|
-
return value;
|
|
11623
|
-
if (value > -536870912)
|
|
11624
|
-
return toConstant(value & 255);
|
|
11625
|
-
}
|
|
11626
|
-
let fValue = dataView2.getFloat32(position4, true);
|
|
11627
|
-
let multiplier = mult10[(src3[position4 + 3] & 127) << 1 | src3[position4 + 2] >> 7];
|
|
11628
|
-
return (multiplier * fValue + (fValue > 0 ? 0.5 : -0.5) >> 0) / multiplier;
|
|
11629
|
-
};
|
|
11630
|
-
break;
|
|
11631
|
-
case 8:
|
|
11632
|
-
get = function(source) {
|
|
11633
|
-
let src3 = source.bytes;
|
|
11634
|
-
let dataView2 = src3.dataView || (src3.dataView = new DataView(src3.buffer, src3.byteOffset, src3.byteLength));
|
|
11635
|
-
let value = dataView2.getFloat64(source.position + property.offset, true);
|
|
11636
|
-
if (isNaN(value)) {
|
|
11637
|
-
let byte = src3[source.position + property.offset];
|
|
11638
|
-
if (byte >= 246)
|
|
11639
|
-
return toConstant(byte);
|
|
11640
|
-
}
|
|
11641
|
-
return value;
|
|
11642
|
-
};
|
|
11643
|
-
break;
|
|
11644
|
-
case 1:
|
|
11645
|
-
get = function(source) {
|
|
11646
|
-
let src3 = source.bytes;
|
|
11647
|
-
let value = src3[source.position + property.offset];
|
|
11648
|
-
return value < 246 ? value : toConstant(value);
|
|
11649
|
-
};
|
|
11650
|
-
break;
|
|
11651
|
-
}
|
|
11652
|
-
break;
|
|
11653
|
-
case DATE:
|
|
11654
|
-
get = function(source) {
|
|
11655
|
-
let src3 = source.bytes;
|
|
11656
|
-
let dataView2 = src3.dataView || (src3.dataView = new DataView(src3.buffer, src3.byteOffset, src3.byteLength));
|
|
11657
|
-
return new Date(dataView2.getFloat64(source.position + property.offset, true));
|
|
11658
|
-
};
|
|
11659
|
-
break;
|
|
11660
|
-
}
|
|
11661
|
-
property.get = get;
|
|
11662
|
-
}
|
|
11663
|
-
if (evalSupported) {
|
|
11664
|
-
let objectLiteralProperties = [];
|
|
11665
|
-
let args = [];
|
|
11666
|
-
let i = 0;
|
|
11667
|
-
let hasInheritedProperties;
|
|
11668
|
-
for (let property of properties) {
|
|
11669
|
-
if (unpackr.alwaysLazyProperty && unpackr.alwaysLazyProperty(property.key)) {
|
|
11670
|
-
hasInheritedProperties = true;
|
|
11671
|
-
continue;
|
|
11672
|
-
}
|
|
11673
|
-
Object.defineProperty(prototype, property.key, { get: withSource(property.get), enumerable: true });
|
|
11674
|
-
let valueFunction = "v" + i++;
|
|
11675
|
-
args.push(valueFunction);
|
|
11676
|
-
objectLiteralProperties.push("o[" + JSON.stringify(property.key) + "]=" + valueFunction + "(s)");
|
|
11677
|
-
}
|
|
11678
|
-
if (hasInheritedProperties) {
|
|
11679
|
-
objectLiteralProperties.push("__proto__:this");
|
|
11680
|
-
}
|
|
11681
|
-
let toObject = new Function(...args, "var c=this;return function(s){var o=new c();" + objectLiteralProperties.join(";") + ";return o;}").apply(fullConstruct, properties.map((prop) => prop.get));
|
|
11682
|
-
Object.defineProperty(prototype, "toJSON", {
|
|
11683
|
-
value(omitUnderscoredProperties) {
|
|
11684
|
-
return toObject.call(this, this[sourceSymbol]);
|
|
11685
|
-
}
|
|
11686
|
-
});
|
|
11687
|
-
} else {
|
|
11688
|
-
Object.defineProperty(prototype, "toJSON", {
|
|
11689
|
-
value(omitUnderscoredProperties) {
|
|
11690
|
-
let resolved = {};
|
|
11691
|
-
for (let i = 0, l = properties.length; i < l; i++) {
|
|
11692
|
-
let key = properties[i].key;
|
|
11693
|
-
resolved[key] = this[key];
|
|
11694
|
-
}
|
|
11695
|
-
return resolved;
|
|
11696
|
-
}
|
|
11697
|
-
// not enumerable or anything
|
|
11698
|
-
});
|
|
11699
|
-
}
|
|
11700
|
-
}
|
|
11701
|
-
var instance = new construct();
|
|
11702
|
-
instance[sourceSymbol] = {
|
|
11703
|
-
bytes: src2,
|
|
11704
|
-
position: position3,
|
|
11705
|
-
srcString: "",
|
|
11706
|
-
bytesEnd: srcEnd2
|
|
11707
|
-
};
|
|
11708
|
-
return instance;
|
|
11709
|
-
}
|
|
11710
|
-
function toConstant(code) {
|
|
11711
|
-
switch (code) {
|
|
11712
|
-
case 246:
|
|
11713
|
-
return null;
|
|
11714
|
-
case 247:
|
|
11715
|
-
return void 0;
|
|
11716
|
-
case 248:
|
|
11717
|
-
return false;
|
|
11718
|
-
case 249:
|
|
11719
|
-
return true;
|
|
11720
|
-
}
|
|
11721
|
-
throw new Error("Unknown constant");
|
|
11722
|
-
}
|
|
11723
|
-
function withSource(get) {
|
|
11724
|
-
return function() {
|
|
11725
|
-
return get(this[sourceSymbol]);
|
|
11726
|
-
};
|
|
11727
|
-
}
|
|
11728
|
-
function saveState2() {
|
|
11729
|
-
if (currentSource) {
|
|
11730
|
-
currentSource.bytes = Uint8Array.prototype.slice.call(currentSource.bytes, currentSource.position, currentSource.bytesEnd);
|
|
11731
|
-
currentSource.position = 0;
|
|
11732
|
-
currentSource.bytesEnd = currentSource.bytes.length;
|
|
11733
|
-
}
|
|
11734
|
-
}
|
|
11735
|
-
function prepareStructures2(structures, packr2) {
|
|
11736
|
-
if (packr2.typedStructs) {
|
|
11737
|
-
let structMap = /* @__PURE__ */ new Map();
|
|
11738
|
-
structMap.set("named", structures);
|
|
11739
|
-
structMap.set("typed", packr2.typedStructs);
|
|
11740
|
-
structures = structMap;
|
|
11741
|
-
}
|
|
11742
|
-
let lastTypedStructuresLength = packr2.lastTypedStructuresLength || 0;
|
|
11743
|
-
structures.isCompatible = (existing) => {
|
|
11744
|
-
let compatible = true;
|
|
11745
|
-
if (existing instanceof Map) {
|
|
11746
|
-
let named = existing.get("named") || [];
|
|
11747
|
-
if (named.length !== (packr2.lastNamedStructuresLength || 0))
|
|
11748
|
-
compatible = false;
|
|
11749
|
-
let typed = existing.get("typed") || [];
|
|
11750
|
-
if (typed.length !== lastTypedStructuresLength)
|
|
11751
|
-
compatible = false;
|
|
11752
|
-
} else if (existing instanceof Array || Array.isArray(existing)) {
|
|
11753
|
-
if (existing.length !== (packr2.lastNamedStructuresLength || 0))
|
|
11754
|
-
compatible = false;
|
|
11755
|
-
}
|
|
11756
|
-
if (!compatible)
|
|
11757
|
-
packr2._mergeStructures(existing);
|
|
11758
|
-
return compatible;
|
|
11759
|
-
};
|
|
11760
|
-
packr2.lastTypedStructuresLength = packr2.typedStructs && packr2.typedStructs.length;
|
|
11761
|
-
return structures;
|
|
11762
|
-
}
|
|
11763
|
-
setReadStruct(readStruct2, onLoadedStructures2, saveState2);
|
|
11764
|
-
|
|
11765
|
-
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/1.11.8/3a03288ce34b3622573235eb6e95ed0fc3d7da61db4052fd4539f96d11dae310/node_modules/msgpackr/node-index.js
|
|
11253
|
+
// ../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/msgpackr/2.0.4/4846a2ae9cbdea249e2eda7b79740c6d2b16af4f09769fa313dd4f4064702820/node_modules/msgpackr/node-index.js
|
|
11766
11254
|
import { createRequire } from "module";
|
|
11767
11255
|
var nativeAccelerationDisabled = process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED !== void 0 && process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED.toLowerCase() === "true";
|
|
11768
11256
|
if (!nativeAccelerationDisabled) {
|
|
@@ -11779,6 +11267,7 @@ if (!nativeAccelerationDisabled) {
|
|
|
11779
11267
|
}
|
|
11780
11268
|
|
|
11781
11269
|
// ../store/index/lib/index.js
|
|
11270
|
+
var FROZEN_STORE_WRITE_MESSAGE = "Cannot write to the package store because frozenStore is enabled (the store is opened read-only). This indicates the store is missing content the install needs.";
|
|
11782
11271
|
var req = createRequire2(import.meta.url);
|
|
11783
11272
|
var { DatabaseSync } = req("node:sqlite");
|
|
11784
11273
|
var packr = new Packr({
|
|
@@ -11825,9 +11314,20 @@ var StoreIndex = class {
|
|
|
11825
11314
|
stmtKeys;
|
|
11826
11315
|
exitHandler;
|
|
11827
11316
|
constructor(storeDir) {
|
|
11828
|
-
|
|
11317
|
+
this.openDatabase(storeDir);
|
|
11318
|
+
this.prepareStatements();
|
|
11319
|
+
this.exitHandler = () => this.close();
|
|
11320
|
+
const currentMax = process.getMaxListeners();
|
|
11321
|
+
if (currentMax !== 0 && currentMax < openInstances.size + 11) {
|
|
11322
|
+
process.setMaxListeners(Math.max(currentMax + 10, openInstances.size + 11));
|
|
11323
|
+
}
|
|
11324
|
+
process.on("exit", this.exitHandler);
|
|
11325
|
+
openInstances.add(this);
|
|
11326
|
+
}
|
|
11327
|
+
/** Open the SQLite connection. Overridden by {@link ReadOnlyStoreIndex}. */
|
|
11328
|
+
openDatabase(storeDir) {
|
|
11829
11329
|
fs11.mkdirSync(storeDir, { recursive: true });
|
|
11830
|
-
this.db = new DatabaseSync(
|
|
11330
|
+
this.db = new DatabaseSync(`${storeDir}/index.db`);
|
|
11831
11331
|
this.db.exec("PRAGMA busy_timeout=5000");
|
|
11832
11332
|
sqliteRetry(() => {
|
|
11833
11333
|
this.db.exec("PRAGMA journal_mode=WAL");
|
|
@@ -11843,19 +11343,15 @@ var StoreIndex = class {
|
|
|
11843
11343
|
) WITHOUT ROWID
|
|
11844
11344
|
`);
|
|
11845
11345
|
});
|
|
11346
|
+
}
|
|
11347
|
+
/** Prepare the prepared statements. Overridden by {@link ReadOnlyStoreIndex} to skip the write statements. */
|
|
11348
|
+
prepareStatements() {
|
|
11846
11349
|
this.stmtGet = this.db.prepare("SELECT data FROM package_index WHERE key = ?");
|
|
11847
11350
|
this.stmtSet = this.db.prepare("INSERT OR REPLACE INTO package_index (key, data) VALUES (?, ?)");
|
|
11848
11351
|
this.stmtDel = this.db.prepare("DELETE FROM package_index WHERE key = ?");
|
|
11849
11352
|
this.stmtHas = this.db.prepare("SELECT 1 FROM package_index WHERE key = ?");
|
|
11850
11353
|
this.stmtAll = this.db.prepare("SELECT key, data FROM package_index");
|
|
11851
11354
|
this.stmtKeys = this.db.prepare("SELECT key FROM package_index");
|
|
11852
|
-
this.exitHandler = () => this.close();
|
|
11853
|
-
const currentMax = process.getMaxListeners();
|
|
11854
|
-
if (currentMax !== 0 && currentMax < openInstances.size + 11) {
|
|
11855
|
-
process.setMaxListeners(Math.max(currentMax + 10, openInstances.size + 11));
|
|
11856
|
-
}
|
|
11857
|
-
process.on("exit", this.exitHandler);
|
|
11858
|
-
openInstances.add(this);
|
|
11859
11355
|
}
|
|
11860
11356
|
get(key) {
|
|
11861
11357
|
const row = sqliteRetry(() => this.stmtGet.get(key));
|
|
@@ -12005,16 +11501,72 @@ var StoreIndex = class {
|
|
|
12005
11501
|
this.closed = true;
|
|
12006
11502
|
openInstances.delete(this);
|
|
12007
11503
|
process.removeListener("exit", this.exitHandler);
|
|
11504
|
+
this.optimizeBeforeClose();
|
|
12008
11505
|
try {
|
|
12009
|
-
this.db.
|
|
11506
|
+
this.db.close();
|
|
12010
11507
|
} catch {
|
|
12011
11508
|
}
|
|
11509
|
+
}
|
|
11510
|
+
/** Run `PRAGMA optimize` before closing. Overridden by {@link ReadOnlyStoreIndex} to skip it (the DB is immutable). */
|
|
11511
|
+
optimizeBeforeClose() {
|
|
12012
11512
|
try {
|
|
12013
|
-
this.db.
|
|
11513
|
+
this.db.exec("PRAGMA optimize");
|
|
12014
11514
|
} catch {
|
|
12015
11515
|
}
|
|
12016
11516
|
}
|
|
12017
11517
|
};
|
|
11518
|
+
var ReadOnlyStoreIndex = class extends StoreIndex {
|
|
11519
|
+
openDatabase(storeDir) {
|
|
11520
|
+
if (!nodeSupportsImmutableSqliteUri()) {
|
|
11521
|
+
throw new PnpmError("FROZEN_STORE_UNSUPPORTED_NODE", `frozenStore opens the store index read-only via a SQLite "immutable" URI, which requires Node.js >=22.15.0, >=23.11.0, or >=24.0.0, but the current version is ${process.versions.node}. Upgrade Node.js, or run without frozenStore.`);
|
|
11522
|
+
}
|
|
11523
|
+
this.db = new DatabaseSync(immutableSqliteUri(`${storeDir}/index.db`));
|
|
11524
|
+
}
|
|
11525
|
+
prepareStatements() {
|
|
11526
|
+
this.stmtGet = this.db.prepare("SELECT data FROM package_index WHERE key = ?");
|
|
11527
|
+
this.stmtHas = this.db.prepare("SELECT 1 FROM package_index WHERE key = ?");
|
|
11528
|
+
this.stmtAll = this.db.prepare("SELECT key, data FROM package_index");
|
|
11529
|
+
this.stmtKeys = this.db.prepare("SELECT key FROM package_index");
|
|
11530
|
+
}
|
|
11531
|
+
optimizeBeforeClose() {
|
|
11532
|
+
}
|
|
11533
|
+
set(_key, _data) {
|
|
11534
|
+
this.throwReadOnly();
|
|
11535
|
+
}
|
|
11536
|
+
delete(_key) {
|
|
11537
|
+
this.throwReadOnly();
|
|
11538
|
+
}
|
|
11539
|
+
queueWrites(_writes) {
|
|
11540
|
+
this.throwReadOnly();
|
|
11541
|
+
}
|
|
11542
|
+
setRawMany(_entries) {
|
|
11543
|
+
this.throwReadOnly();
|
|
11544
|
+
}
|
|
11545
|
+
deleteMany(_keys) {
|
|
11546
|
+
this.throwReadOnly();
|
|
11547
|
+
}
|
|
11548
|
+
checkpoint() {
|
|
11549
|
+
this.throwReadOnly();
|
|
11550
|
+
}
|
|
11551
|
+
throwReadOnly() {
|
|
11552
|
+
throw new PnpmError("FROZEN_STORE_WRITE", FROZEN_STORE_WRITE_MESSAGE);
|
|
11553
|
+
}
|
|
11554
|
+
};
|
|
11555
|
+
function immutableSqliteUri(dbPath) {
|
|
11556
|
+
const url = pathToFileURL(dbPath);
|
|
11557
|
+
url.searchParams.set("immutable", "1");
|
|
11558
|
+
return url.href;
|
|
11559
|
+
}
|
|
11560
|
+
function nodeSupportsImmutableSqliteUri() {
|
|
11561
|
+
const [major, minor] = process.versions.node.split(".", 2).map(Number);
|
|
11562
|
+
if (major < 22)
|
|
11563
|
+
return false;
|
|
11564
|
+
if (major === 22)
|
|
11565
|
+
return minor >= 15;
|
|
11566
|
+
if (major === 23)
|
|
11567
|
+
return minor >= 11;
|
|
11568
|
+
return true;
|
|
11569
|
+
}
|
|
12018
11570
|
|
|
12019
11571
|
// ../worker/lib/equalOrSemverEqual.js
|
|
12020
11572
|
var import_semver2 = __toESM(require_semver2(), 1);
|
|
@@ -12039,11 +11591,12 @@ var cafsCache = /* @__PURE__ */ new Map();
|
|
|
12039
11591
|
var cafsStoreCache = /* @__PURE__ */ new Map();
|
|
12040
11592
|
var cafsLocker = /* @__PURE__ */ new Map();
|
|
12041
11593
|
var storeIndexCache = /* @__PURE__ */ new Map();
|
|
12042
|
-
function getStoreIndex(storeDir) {
|
|
12043
|
-
|
|
12044
|
-
|
|
11594
|
+
function getStoreIndex(storeDir, frozen = false) {
|
|
11595
|
+
const cacheKey = frozen ? `${storeDir}\0frozen` : storeDir;
|
|
11596
|
+
if (!storeIndexCache.has(cacheKey)) {
|
|
11597
|
+
storeIndexCache.set(cacheKey, frozen ? new ReadOnlyStoreIndex(storeDir) : new StoreIndex(storeDir));
|
|
12045
11598
|
}
|
|
12046
|
-
return storeIndexCache.get(
|
|
11599
|
+
return storeIndexCache.get(cacheKey);
|
|
12047
11600
|
}
|
|
12048
11601
|
async function handleMessage(message) {
|
|
12049
11602
|
if (message === false) {
|
|
@@ -12073,8 +11626,8 @@ async function handleMessage(message) {
|
|
|
12073
11626
|
break;
|
|
12074
11627
|
}
|
|
12075
11628
|
case "readPkgFromCafs": {
|
|
12076
|
-
const { storeDir, filesIndexFile, verifyStoreIntegrity, expectedPkg, strictStorePkgContentCheck } = message;
|
|
12077
|
-
const pkgFilesIndex = getStoreIndex(storeDir).get(filesIndexFile);
|
|
11629
|
+
const { storeDir, filesIndexFile, verifyStoreIntegrity, expectedPkg, strictStorePkgContentCheck, frozenStore } = message;
|
|
11630
|
+
const pkgFilesIndex = getStoreIndex(storeDir, frozenStore).get(filesIndexFile);
|
|
12078
11631
|
if (!pkgFilesIndex) {
|
|
12079
11632
|
parentPort.postMessage({
|
|
12080
11633
|
status: "success",
|
|
@@ -12218,7 +11771,7 @@ function packToShared(data) {
|
|
|
12218
11771
|
function initStore({ storeDir }) {
|
|
12219
11772
|
fs12.mkdirSync(storeDir, { recursive: true });
|
|
12220
11773
|
const hexChars = "0123456789abcdef".split("");
|
|
12221
|
-
const filesDirPath =
|
|
11774
|
+
const filesDirPath = path17.join(storeDir, "files");
|
|
12222
11775
|
try {
|
|
12223
11776
|
fs12.mkdirSync(filesDirPath);
|
|
12224
11777
|
} catch {
|
|
@@ -12226,7 +11779,7 @@ function initStore({ storeDir }) {
|
|
|
12226
11779
|
for (const hex1 of hexChars) {
|
|
12227
11780
|
for (const hex2 of hexChars) {
|
|
12228
11781
|
try {
|
|
12229
|
-
fs12.mkdirSync(
|
|
11782
|
+
fs12.mkdirSync(path17.join(filesDirPath, `${hex1}${hex2}`));
|
|
12230
11783
|
} catch {
|
|
12231
11784
|
}
|
|
12232
11785
|
}
|