@pipelab/plugin-minify 1.0.0-beta.19 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +337 -334
- package/dist/index.mjs +11 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1729,7 +1729,7 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1729
1729
|
}
|
|
1730
1730
|
return JSON.parse(text);
|
|
1731
1731
|
}
|
|
1732
|
-
var fs$
|
|
1732
|
+
var fs$36 = require("fs");
|
|
1733
1733
|
var os$4 = require("os");
|
|
1734
1734
|
var path$35 = require("path");
|
|
1735
1735
|
var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
|
|
@@ -1796,11 +1796,11 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1796
1796
|
if (path$35.basename(nodeModulesDirectory) === "node_modules") {
|
|
1797
1797
|
for (const unixKey in knownUnixlikePackages) try {
|
|
1798
1798
|
const pkg = knownUnixlikePackages[unixKey];
|
|
1799
|
-
if (fs$
|
|
1799
|
+
if (fs$36.existsSync(path$35.join(nodeModulesDirectory, pkg))) return pkg;
|
|
1800
1800
|
} catch {}
|
|
1801
1801
|
for (const windowsKey in knownWindowsPackages) try {
|
|
1802
1802
|
const pkg = knownWindowsPackages[windowsKey];
|
|
1803
|
-
if (fs$
|
|
1803
|
+
if (fs$36.existsSync(path$35.join(nodeModulesDirectory, pkg))) return pkg;
|
|
1804
1804
|
} catch {}
|
|
1805
1805
|
}
|
|
1806
1806
|
return null;
|
|
@@ -1810,7 +1810,7 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1810
1810
|
return path$35.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path$35.basename(subpath)}`);
|
|
1811
1811
|
}
|
|
1812
1812
|
function generateBinPath() {
|
|
1813
|
-
if (isValidBinaryPath(ESBUILD_BINARY_PATH)) if (!fs$
|
|
1813
|
+
if (isValidBinaryPath(ESBUILD_BINARY_PATH)) if (!fs$36.existsSync(ESBUILD_BINARY_PATH)) console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
|
|
1814
1814
|
else return {
|
|
1815
1815
|
binPath: ESBUILD_BINARY_PATH,
|
|
1816
1816
|
isWASM: false
|
|
@@ -1821,7 +1821,7 @@ ${file}:${line}:${column}: ERROR: ${e.pluginName ? `[plugin: ${e.pluginName}] `
|
|
|
1821
1821
|
binPath = require.resolve(`${pkg}/${subpath}`);
|
|
1822
1822
|
} catch (e) {
|
|
1823
1823
|
binPath = downloadedBinPath(pkg, subpath);
|
|
1824
|
-
if (!fs$
|
|
1824
|
+
if (!fs$36.existsSync(binPath)) {
|
|
1825
1825
|
try {
|
|
1826
1826
|
require.resolve(pkg);
|
|
1827
1827
|
} catch {
|
|
@@ -1893,10 +1893,10 @@ for your current platform.`);
|
|
|
1893
1893
|
if (pnpapi) {
|
|
1894
1894
|
const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
|
|
1895
1895
|
const binTargetPath = path$35.join(root, "node_modules", ".cache", "esbuild", `pnpapi-${pkg.replace("/", "-")}-0.27.7-${path$35.basename(subpath)}`);
|
|
1896
|
-
if (!fs$
|
|
1897
|
-
fs$
|
|
1898
|
-
fs$
|
|
1899
|
-
fs$
|
|
1896
|
+
if (!fs$36.existsSync(binTargetPath)) {
|
|
1897
|
+
fs$36.mkdirSync(path$35.dirname(binTargetPath), { recursive: true });
|
|
1898
|
+
fs$36.copyFileSync(binPath, binTargetPath);
|
|
1899
|
+
fs$36.chmodSync(binTargetPath, 493);
|
|
1900
1900
|
}
|
|
1901
1901
|
return {
|
|
1902
1902
|
binPath: binTargetPath,
|
|
@@ -4437,8 +4437,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
4437
4437
|
completed: false
|
|
4438
4438
|
}
|
|
4439
4439
|
},
|
|
4440
|
-
plugins: DEFAULT_PLUGINS
|
|
4441
|
-
isInternalMigrationBannerClosed: false
|
|
4440
|
+
plugins: DEFAULT_PLUGINS
|
|
4442
4441
|
});
|
|
4443
4442
|
settingsMigratorInternal.createMigrations({
|
|
4444
4443
|
defaultValue: defaultAppSettings,
|
|
@@ -4489,12 +4488,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
4489
4488
|
createMigration({
|
|
4490
4489
|
version: "6.0.0",
|
|
4491
4490
|
up: (state) => {
|
|
4492
|
-
const { cacheFolder
|
|
4491
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
4493
4492
|
return {
|
|
4494
4493
|
...rest,
|
|
4494
|
+
cacheFolder,
|
|
4495
4495
|
agents: [],
|
|
4496
|
-
plugins: DEFAULT_PLUGINS
|
|
4497
|
-
isInternalMigrationBannerClosed: false
|
|
4496
|
+
plugins: DEFAULT_PLUGINS
|
|
4498
4497
|
};
|
|
4499
4498
|
}
|
|
4500
4499
|
}),
|
|
@@ -4847,7 +4846,8 @@ object({
|
|
|
4847
4846
|
enabled: boolean(),
|
|
4848
4847
|
description: string()
|
|
4849
4848
|
})),
|
|
4850
|
-
|
|
4849
|
+
cacheFolder: optional(string()),
|
|
4850
|
+
tempFolder: optional(string())
|
|
4851
4851
|
});
|
|
4852
4852
|
const ConnectionValidator = looseObject({
|
|
4853
4853
|
id: string(),
|
|
@@ -53290,7 +53290,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53290
53290
|
const { Minipass } = require_minipass$4();
|
|
53291
53291
|
const Pax = require_pax();
|
|
53292
53292
|
const Header = require_header();
|
|
53293
|
-
const fs$
|
|
53293
|
+
const fs$35 = require("fs");
|
|
53294
53294
|
const path$33 = require("path");
|
|
53295
53295
|
const normPath = require_normalize_windows_path();
|
|
53296
53296
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -53378,7 +53378,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53378
53378
|
return super.emit(ev, ...data);
|
|
53379
53379
|
}
|
|
53380
53380
|
[LSTAT]() {
|
|
53381
|
-
fs$
|
|
53381
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
53382
53382
|
if (er) return this.emit("error", er);
|
|
53383
53383
|
this[ONLSTAT](stat);
|
|
53384
53384
|
});
|
|
@@ -53443,7 +53443,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53443
53443
|
this.end();
|
|
53444
53444
|
}
|
|
53445
53445
|
[SYMLINK]() {
|
|
53446
|
-
fs$
|
|
53446
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
53447
53447
|
if (er) return this.emit("error", er);
|
|
53448
53448
|
this[ONREADLINK](linkpath);
|
|
53449
53449
|
});
|
|
@@ -53474,7 +53474,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53474
53474
|
this[OPENFILE]();
|
|
53475
53475
|
}
|
|
53476
53476
|
[OPENFILE]() {
|
|
53477
|
-
fs$
|
|
53477
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
53478
53478
|
if (er) return this.emit("error", er);
|
|
53479
53479
|
this[ONOPENFILE](fd);
|
|
53480
53480
|
});
|
|
@@ -53494,13 +53494,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53494
53494
|
}
|
|
53495
53495
|
[READ]() {
|
|
53496
53496
|
const { fd, buf, offset, length, pos } = this;
|
|
53497
|
-
fs$
|
|
53497
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
53498
53498
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
53499
53499
|
this[ONREAD](bytesRead);
|
|
53500
53500
|
});
|
|
53501
53501
|
}
|
|
53502
53502
|
[CLOSE](cb) {
|
|
53503
|
-
fs$
|
|
53503
|
+
fs$35.close(this.fd, cb);
|
|
53504
53504
|
}
|
|
53505
53505
|
[ONREAD](bytesRead) {
|
|
53506
53506
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -53556,19 +53556,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53556
53556
|
});
|
|
53557
53557
|
var WriteEntrySync = class extends WriteEntry {
|
|
53558
53558
|
[LSTAT]() {
|
|
53559
|
-
this[ONLSTAT](fs$
|
|
53559
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
53560
53560
|
}
|
|
53561
53561
|
[SYMLINK]() {
|
|
53562
|
-
this[ONREADLINK](fs$
|
|
53562
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
53563
53563
|
}
|
|
53564
53564
|
[OPENFILE]() {
|
|
53565
|
-
this[ONOPENFILE](fs$
|
|
53565
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
53566
53566
|
}
|
|
53567
53567
|
[READ]() {
|
|
53568
53568
|
let threw = true;
|
|
53569
53569
|
try {
|
|
53570
53570
|
const { fd, buf, offset, length, pos } = this;
|
|
53571
|
-
const bytesRead = fs$
|
|
53571
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
53572
53572
|
this[ONREAD](bytesRead);
|
|
53573
53573
|
threw = false;
|
|
53574
53574
|
} finally {
|
|
@@ -53581,7 +53581,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
53581
53581
|
cb();
|
|
53582
53582
|
}
|
|
53583
53583
|
[CLOSE](cb) {
|
|
53584
|
-
fs$
|
|
53584
|
+
fs$35.closeSync(this.fd);
|
|
53585
53585
|
cb();
|
|
53586
53586
|
}
|
|
53587
53587
|
};
|
|
@@ -53978,7 +53978,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53978
53978
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
53979
53979
|
const WRITE = Symbol("write");
|
|
53980
53980
|
const ONDRAIN = Symbol("ondrain");
|
|
53981
|
-
const fs$
|
|
53981
|
+
const fs$34 = require("fs");
|
|
53982
53982
|
const path$32 = require("path");
|
|
53983
53983
|
const warner = require_warn_mixin();
|
|
53984
53984
|
const normPath = require_normalize_windows_path();
|
|
@@ -54067,7 +54067,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54067
54067
|
[STAT](job) {
|
|
54068
54068
|
job.pending = true;
|
|
54069
54069
|
this[JOBS] += 1;
|
|
54070
|
-
fs$
|
|
54070
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
54071
54071
|
job.pending = false;
|
|
54072
54072
|
this[JOBS] -= 1;
|
|
54073
54073
|
if (er) this.emit("error", er);
|
|
@@ -54083,7 +54083,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54083
54083
|
[READDIR](job) {
|
|
54084
54084
|
job.pending = true;
|
|
54085
54085
|
this[JOBS] += 1;
|
|
54086
|
-
fs$
|
|
54086
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
54087
54087
|
job.pending = false;
|
|
54088
54088
|
this[JOBS] -= 1;
|
|
54089
54089
|
if (er) return this.emit("error", er);
|
|
@@ -54201,10 +54201,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54201
54201
|
resume() {}
|
|
54202
54202
|
[STAT](job) {
|
|
54203
54203
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
54204
|
-
this[ONSTAT](job, fs$
|
|
54204
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
54205
54205
|
}
|
|
54206
54206
|
[READDIR](job, stat) {
|
|
54207
|
-
this[ONREADDIR](job, fs$
|
|
54207
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
54208
54208
|
}
|
|
54209
54209
|
[PIPE](job) {
|
|
54210
54210
|
const source = job.entry;
|
|
@@ -54660,8 +54660,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
54660
54660
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
54661
54661
|
const MiniPass = require_minipass$2();
|
|
54662
54662
|
const EE$11 = require("events").EventEmitter;
|
|
54663
|
-
const fs$
|
|
54664
|
-
let writev = fs$
|
|
54663
|
+
const fs$33 = require("fs");
|
|
54664
|
+
let writev = fs$33.writev;
|
|
54665
54665
|
/* istanbul ignore next */
|
|
54666
54666
|
if (!writev) {
|
|
54667
54667
|
const binding = process.binding("fs");
|
|
@@ -54732,7 +54732,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54732
54732
|
throw new TypeError("this is a readable stream");
|
|
54733
54733
|
}
|
|
54734
54734
|
[_open]() {
|
|
54735
|
-
fs$
|
|
54735
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
54736
54736
|
}
|
|
54737
54737
|
[_onopen](er, fd) {
|
|
54738
54738
|
if (er) this[_onerror](er);
|
|
@@ -54751,7 +54751,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54751
54751
|
const buf = this[_makeBuf]();
|
|
54752
54752
|
/* istanbul ignore if */
|
|
54753
54753
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
54754
|
-
fs$
|
|
54754
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
54755
54755
|
}
|
|
54756
54756
|
}
|
|
54757
54757
|
[_onread](er, br, buf) {
|
|
@@ -54763,7 +54763,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54763
54763
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54764
54764
|
const fd = this[_fd];
|
|
54765
54765
|
this[_fd] = null;
|
|
54766
|
-
fs$
|
|
54766
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
54767
54767
|
}
|
|
54768
54768
|
}
|
|
54769
54769
|
[_onerror](er) {
|
|
@@ -54801,7 +54801,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54801
54801
|
[_open]() {
|
|
54802
54802
|
let threw = true;
|
|
54803
54803
|
try {
|
|
54804
|
-
this[_onopen](null, fs$
|
|
54804
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
54805
54805
|
threw = false;
|
|
54806
54806
|
} finally {
|
|
54807
54807
|
if (threw) this[_close]();
|
|
@@ -54815,7 +54815,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54815
54815
|
do {
|
|
54816
54816
|
const buf = this[_makeBuf]();
|
|
54817
54817
|
/* istanbul ignore next */
|
|
54818
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
54818
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
54819
54819
|
if (!this[_handleChunk](br, buf)) break;
|
|
54820
54820
|
} while (true);
|
|
54821
54821
|
this[_reading] = false;
|
|
@@ -54829,7 +54829,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54829
54829
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54830
54830
|
const fd = this[_fd];
|
|
54831
54831
|
this[_fd] = null;
|
|
54832
|
-
fs$
|
|
54832
|
+
fs$33.closeSync(fd);
|
|
54833
54833
|
this.emit("close");
|
|
54834
54834
|
}
|
|
54835
54835
|
}
|
|
@@ -54874,7 +54874,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54874
54874
|
this.emit("error", er);
|
|
54875
54875
|
}
|
|
54876
54876
|
[_open]() {
|
|
54877
|
-
fs$
|
|
54877
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
54878
54878
|
}
|
|
54879
54879
|
[_onopen](er, fd) {
|
|
54880
54880
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -54909,7 +54909,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54909
54909
|
return true;
|
|
54910
54910
|
}
|
|
54911
54911
|
[_write](buf) {
|
|
54912
|
-
fs$
|
|
54912
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
54913
54913
|
}
|
|
54914
54914
|
[_onwrite](er, bw) {
|
|
54915
54915
|
if (er) this[_onerror](er);
|
|
@@ -54943,7 +54943,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54943
54943
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54944
54944
|
const fd = this[_fd];
|
|
54945
54945
|
this[_fd] = null;
|
|
54946
|
-
fs$
|
|
54946
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
54947
54947
|
}
|
|
54948
54948
|
}
|
|
54949
54949
|
};
|
|
@@ -54951,28 +54951,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
54951
54951
|
[_open]() {
|
|
54952
54952
|
let fd;
|
|
54953
54953
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
54954
|
-
fd = fs$
|
|
54954
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
54955
54955
|
} catch (er) {
|
|
54956
54956
|
if (er.code === "ENOENT") {
|
|
54957
54957
|
this[_flags] = "w";
|
|
54958
54958
|
return this[_open]();
|
|
54959
54959
|
} else throw er;
|
|
54960
54960
|
}
|
|
54961
|
-
else fd = fs$
|
|
54961
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
54962
54962
|
this[_onopen](null, fd);
|
|
54963
54963
|
}
|
|
54964
54964
|
[_close]() {
|
|
54965
54965
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
54966
54966
|
const fd = this[_fd];
|
|
54967
54967
|
this[_fd] = null;
|
|
54968
|
-
fs$
|
|
54968
|
+
fs$33.closeSync(fd);
|
|
54969
54969
|
this.emit("close");
|
|
54970
54970
|
}
|
|
54971
54971
|
}
|
|
54972
54972
|
[_write](buf) {
|
|
54973
54973
|
let threw = true;
|
|
54974
54974
|
try {
|
|
54975
|
-
this[_onwrite](null, fs$
|
|
54975
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
54976
54976
|
threw = false;
|
|
54977
54977
|
} finally {
|
|
54978
54978
|
if (threw) try {
|
|
@@ -55337,7 +55337,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
55337
55337
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55338
55338
|
const hlo = require_high_level_opt();
|
|
55339
55339
|
const Parser = require_parse$4();
|
|
55340
|
-
const fs$
|
|
55340
|
+
const fs$32 = require("fs");
|
|
55341
55341
|
const fsm = require_fs_minipass();
|
|
55342
55342
|
const path$31 = require("path");
|
|
55343
55343
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -55378,15 +55378,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55378
55378
|
let threw = true;
|
|
55379
55379
|
let fd;
|
|
55380
55380
|
try {
|
|
55381
|
-
const stat = fs$
|
|
55381
|
+
const stat = fs$32.statSync(file);
|
|
55382
55382
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
55383
|
-
if (stat.size < readSize) p.end(fs$
|
|
55383
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
55384
55384
|
else {
|
|
55385
55385
|
let pos = 0;
|
|
55386
55386
|
const buf = Buffer.allocUnsafe(readSize);
|
|
55387
|
-
fd = fs$
|
|
55387
|
+
fd = fs$32.openSync(file, "r");
|
|
55388
55388
|
while (pos < stat.size) {
|
|
55389
|
-
const bytesRead = fs$
|
|
55389
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
55390
55390
|
pos += bytesRead;
|
|
55391
55391
|
p.write(buf.slice(0, bytesRead));
|
|
55392
55392
|
}
|
|
@@ -55395,7 +55395,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55395
55395
|
threw = false;
|
|
55396
55396
|
} finally {
|
|
55397
55397
|
if (threw && fd) try {
|
|
55398
|
-
fs$
|
|
55398
|
+
fs$32.closeSync(fd);
|
|
55399
55399
|
} catch (er) {}
|
|
55400
55400
|
}
|
|
55401
55401
|
};
|
|
@@ -55406,7 +55406,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
55406
55406
|
const p = new Promise((resolve, reject) => {
|
|
55407
55407
|
parse.on("error", reject);
|
|
55408
55408
|
parse.on("end", resolve);
|
|
55409
|
-
fs$
|
|
55409
|
+
fs$32.stat(file, (er, stat) => {
|
|
55410
55410
|
if (er) reject(er);
|
|
55411
55411
|
else {
|
|
55412
55412
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -55498,7 +55498,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55498
55498
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55499
55499
|
const hlo = require_high_level_opt();
|
|
55500
55500
|
const Pack = require_pack$1();
|
|
55501
|
-
const fs$
|
|
55501
|
+
const fs$31 = require("fs");
|
|
55502
55502
|
const fsm = require_fs_minipass();
|
|
55503
55503
|
const t = require_list();
|
|
55504
55504
|
const path$29 = require("path");
|
|
@@ -55518,16 +55518,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55518
55518
|
let position;
|
|
55519
55519
|
try {
|
|
55520
55520
|
try {
|
|
55521
|
-
fd = fs$
|
|
55521
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
55522
55522
|
} catch (er) {
|
|
55523
|
-
if (er.code === "ENOENT") fd = fs$
|
|
55523
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
55524
55524
|
else throw er;
|
|
55525
55525
|
}
|
|
55526
|
-
const st = fs$
|
|
55526
|
+
const st = fs$31.fstatSync(fd);
|
|
55527
55527
|
const headBuf = Buffer.alloc(512);
|
|
55528
55528
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
55529
55529
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
55530
|
-
bytes = fs$
|
|
55530
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
55531
55531
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
55532
55532
|
if (!bytes) break POSITION;
|
|
55533
55533
|
}
|
|
@@ -55542,7 +55542,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55542
55542
|
streamSync(opt, p, position, fd, files);
|
|
55543
55543
|
} finally {
|
|
55544
55544
|
if (threw) try {
|
|
55545
|
-
fs$
|
|
55545
|
+
fs$31.closeSync(fd);
|
|
55546
55546
|
} catch (er) {}
|
|
55547
55547
|
}
|
|
55548
55548
|
};
|
|
@@ -55559,7 +55559,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55559
55559
|
const p = new Pack(opt);
|
|
55560
55560
|
const getPos = (fd, size, cb_) => {
|
|
55561
55561
|
const cb = (er, pos) => {
|
|
55562
|
-
if (er) fs$
|
|
55562
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
55563
55563
|
else cb_(null, pos);
|
|
55564
55564
|
};
|
|
55565
55565
|
let position = 0;
|
|
@@ -55569,7 +55569,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55569
55569
|
const onread = (er, bytes) => {
|
|
55570
55570
|
if (er) return cb(er);
|
|
55571
55571
|
bufPos += bytes;
|
|
55572
|
-
if (bufPos < 512 && bytes) return fs$
|
|
55572
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
55573
55573
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
55574
55574
|
if (bufPos < 512) return cb(null, position);
|
|
55575
55575
|
const h = new Header(headBuf);
|
|
@@ -55580,9 +55580,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55580
55580
|
if (position >= size) return cb(null, position);
|
|
55581
55581
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
55582
55582
|
bufPos = 0;
|
|
55583
|
-
fs$
|
|
55583
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
55584
55584
|
};
|
|
55585
|
-
fs$
|
|
55585
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
55586
55586
|
};
|
|
55587
55587
|
const promise = new Promise((resolve, reject) => {
|
|
55588
55588
|
p.on("error", reject);
|
|
@@ -55590,11 +55590,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55590
55590
|
const onopen = (er, fd) => {
|
|
55591
55591
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
55592
55592
|
flag = "w+";
|
|
55593
|
-
return fs$
|
|
55593
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
55594
55594
|
}
|
|
55595
55595
|
if (er) return reject(er);
|
|
55596
|
-
fs$
|
|
55597
|
-
if (er) return fs$
|
|
55596
|
+
fs$31.fstat(fd, (er, st) => {
|
|
55597
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
55598
55598
|
getPos(fd, st.size, (er, position) => {
|
|
55599
55599
|
if (er) return reject(er);
|
|
55600
55600
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -55608,7 +55608,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
55608
55608
|
});
|
|
55609
55609
|
});
|
|
55610
55610
|
};
|
|
55611
|
-
fs$
|
|
55611
|
+
fs$31.open(opt.file, flag, onopen);
|
|
55612
55612
|
});
|
|
55613
55613
|
return cb ? promise.then(cb, cb) : promise;
|
|
55614
55614
|
};
|
|
@@ -55661,32 +55661,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55661
55661
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
55662
55662
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55663
55663
|
const { promisify: promisify$1 } = require("util");
|
|
55664
|
-
const fs$
|
|
55664
|
+
const fs$30 = require("fs");
|
|
55665
55665
|
const optsArg = (opts) => {
|
|
55666
55666
|
if (!opts) opts = {
|
|
55667
55667
|
mode: 511,
|
|
55668
|
-
fs: fs$
|
|
55668
|
+
fs: fs$30
|
|
55669
55669
|
};
|
|
55670
55670
|
else if (typeof opts === "object") opts = {
|
|
55671
55671
|
mode: 511,
|
|
55672
|
-
fs: fs$
|
|
55672
|
+
fs: fs$30,
|
|
55673
55673
|
...opts
|
|
55674
55674
|
};
|
|
55675
55675
|
else if (typeof opts === "number") opts = {
|
|
55676
55676
|
mode: opts,
|
|
55677
|
-
fs: fs$
|
|
55677
|
+
fs: fs$30
|
|
55678
55678
|
};
|
|
55679
55679
|
else if (typeof opts === "string") opts = {
|
|
55680
55680
|
mode: parseInt(opts, 8),
|
|
55681
|
-
fs: fs$
|
|
55681
|
+
fs: fs$30
|
|
55682
55682
|
};
|
|
55683
55683
|
else throw new TypeError("invalid options argument");
|
|
55684
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
55684
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
55685
55685
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
55686
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
55686
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
55687
55687
|
opts.statAsync = promisify$1(opts.stat);
|
|
55688
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
55689
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
55688
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
55689
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
55690
55690
|
return opts;
|
|
55691
55691
|
};
|
|
55692
55692
|
module.exports = optsArg;
|
|
@@ -55717,17 +55717,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
55717
55717
|
//#endregion
|
|
55718
55718
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
55719
55719
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55720
|
-
const { dirname: dirname$
|
|
55720
|
+
const { dirname: dirname$14 } = require("path");
|
|
55721
55721
|
const findMade = (opts, parent, path$75 = void 0) => {
|
|
55722
55722
|
if (path$75 === parent) return Promise.resolve();
|
|
55723
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$75 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
55723
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$75 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
55724
55724
|
};
|
|
55725
55725
|
const findMadeSync = (opts, parent, path$76 = void 0) => {
|
|
55726
55726
|
if (path$76 === parent) return void 0;
|
|
55727
55727
|
try {
|
|
55728
55728
|
return opts.statSync(parent).isDirectory() ? path$76 : void 0;
|
|
55729
55729
|
} catch (er) {
|
|
55730
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
55730
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
55731
55731
|
}
|
|
55732
55732
|
};
|
|
55733
55733
|
module.exports = {
|
|
@@ -55738,10 +55738,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
55738
55738
|
//#endregion
|
|
55739
55739
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
55740
55740
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55741
|
-
const { dirname: dirname$
|
|
55741
|
+
const { dirname: dirname$13 } = require("path");
|
|
55742
55742
|
const mkdirpManual = (path$73, opts, made) => {
|
|
55743
55743
|
opts.recursive = false;
|
|
55744
|
-
const parent = dirname$
|
|
55744
|
+
const parent = dirname$13(path$73);
|
|
55745
55745
|
if (parent === path$73) return opts.mkdirAsync(path$73, opts).catch((er) => {
|
|
55746
55746
|
if (er.code !== "EISDIR") throw er;
|
|
55747
55747
|
});
|
|
@@ -55757,7 +55757,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55757
55757
|
});
|
|
55758
55758
|
};
|
|
55759
55759
|
const mkdirpManualSync = (path$74, opts, made) => {
|
|
55760
|
-
const parent = dirname$
|
|
55760
|
+
const parent = dirname$13(path$74);
|
|
55761
55761
|
opts.recursive = false;
|
|
55762
55762
|
if (parent === path$74) try {
|
|
55763
55763
|
return opts.mkdirSync(path$74, opts);
|
|
@@ -55786,12 +55786,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55786
55786
|
//#endregion
|
|
55787
55787
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
55788
55788
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55789
|
-
const { dirname: dirname$
|
|
55789
|
+
const { dirname: dirname$12 } = require("path");
|
|
55790
55790
|
const { findMade, findMadeSync } = require_find_made();
|
|
55791
55791
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
55792
55792
|
const mkdirpNative = (path$71, opts) => {
|
|
55793
55793
|
opts.recursive = true;
|
|
55794
|
-
if (dirname$
|
|
55794
|
+
if (dirname$12(path$71) === path$71) return opts.mkdirAsync(path$71, opts);
|
|
55795
55795
|
return findMade(opts, path$71).then((made) => opts.mkdirAsync(path$71, opts).then(() => made).catch((er) => {
|
|
55796
55796
|
if (er.code === "ENOENT") return mkdirpManual(path$71, opts);
|
|
55797
55797
|
else throw er;
|
|
@@ -55799,7 +55799,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55799
55799
|
};
|
|
55800
55800
|
const mkdirpNativeSync = (path$72, opts) => {
|
|
55801
55801
|
opts.recursive = true;
|
|
55802
|
-
if (dirname$
|
|
55802
|
+
if (dirname$12(path$72) === path$72) return opts.mkdirSync(path$72, opts);
|
|
55803
55803
|
const made = findMadeSync(opts, path$72);
|
|
55804
55804
|
try {
|
|
55805
55805
|
opts.mkdirSync(path$72, opts);
|
|
@@ -55817,12 +55817,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
55817
55817
|
//#endregion
|
|
55818
55818
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
55819
55819
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55820
|
-
const fs$
|
|
55820
|
+
const fs$29 = require("fs");
|
|
55821
55821
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
55822
55822
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
55823
55823
|
module.exports = {
|
|
55824
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
55825
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
55824
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
55825
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
55826
55826
|
};
|
|
55827
55827
|
}));
|
|
55828
55828
|
//#endregion
|
|
@@ -55853,17 +55853,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55853
55853
|
//#endregion
|
|
55854
55854
|
//#region ../../node_modules/chownr/chownr.js
|
|
55855
55855
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55856
|
-
const fs$
|
|
55856
|
+
const fs$28 = require("fs");
|
|
55857
55857
|
const path$28 = require("path");
|
|
55858
55858
|
/* istanbul ignore next */
|
|
55859
|
-
const LCHOWN = fs$
|
|
55859
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
55860
55860
|
/* istanbul ignore next */
|
|
55861
|
-
const LCHOWNSYNC = fs$
|
|
55861
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
55862
55862
|
/* istanbul ignore next */
|
|
55863
|
-
const needEISDIRHandled = fs$
|
|
55863
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
55864
55864
|
const lchownSync = (path$63, uid, gid) => {
|
|
55865
55865
|
try {
|
|
55866
|
-
return fs$
|
|
55866
|
+
return fs$28[LCHOWNSYNC](path$63, uid, gid);
|
|
55867
55867
|
} catch (er) {
|
|
55868
55868
|
if (er.code !== "ENOENT") throw er;
|
|
55869
55869
|
}
|
|
@@ -55871,7 +55871,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55871
55871
|
/* istanbul ignore next */
|
|
55872
55872
|
const chownSync = (path$64, uid, gid) => {
|
|
55873
55873
|
try {
|
|
55874
|
-
return fs$
|
|
55874
|
+
return fs$28.chownSync(path$64, uid, gid);
|
|
55875
55875
|
} catch (er) {
|
|
55876
55876
|
if (er.code !== "ENOENT") throw er;
|
|
55877
55877
|
}
|
|
@@ -55879,7 +55879,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55879
55879
|
/* istanbul ignore next */
|
|
55880
55880
|
const handleEISDIR = needEISDIRHandled ? (path$65, uid, gid, cb) => (er) => {
|
|
55881
55881
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
55882
|
-
else fs$
|
|
55882
|
+
else fs$28.chown(path$65, uid, gid, cb);
|
|
55883
55883
|
} : (_, __, ___, cb) => cb;
|
|
55884
55884
|
/* istanbul ignore next */
|
|
55885
55885
|
const handleEISDirSync = needEISDIRHandled ? (path$66, uid, gid) => {
|
|
@@ -55891,17 +55891,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55891
55891
|
}
|
|
55892
55892
|
} : (path$67, uid, gid) => lchownSync(path$67, uid, gid);
|
|
55893
55893
|
const nodeVersion = process.version;
|
|
55894
|
-
let readdir = (path$68, options, cb) => fs$
|
|
55895
|
-
let readdirSync = (path$69, options) => fs$
|
|
55894
|
+
let readdir = (path$68, options, cb) => fs$28.readdir(path$68, options, cb);
|
|
55895
|
+
let readdirSync = (path$69, options) => fs$28.readdirSync(path$69, options);
|
|
55896
55896
|
/* istanbul ignore next */
|
|
55897
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$70, options, cb) => fs$
|
|
55897
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$70, options, cb) => fs$28.readdir(path$70, cb);
|
|
55898
55898
|
const chown = (cpath, uid, gid, cb) => {
|
|
55899
|
-
fs$
|
|
55899
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
55900
55900
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
55901
55901
|
}));
|
|
55902
55902
|
};
|
|
55903
55903
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
55904
|
-
if (typeof child === "string") return fs$
|
|
55904
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
55905
55905
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
55906
55906
|
stats.name = child;
|
|
55907
55907
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -55931,7 +55931,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55931
55931
|
};
|
|
55932
55932
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
55933
55933
|
if (typeof child === "string") try {
|
|
55934
|
-
const stats = fs$
|
|
55934
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
55935
55935
|
stats.name = child;
|
|
55936
55936
|
child = stats;
|
|
55937
55937
|
} catch (er) {
|
|
@@ -55960,7 +55960,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
55960
55960
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
55961
55961
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
55962
55962
|
const mkdirp = require_mkdirp();
|
|
55963
|
-
const fs$
|
|
55963
|
+
const fs$27 = require("fs");
|
|
55964
55964
|
const path$27 = require("path");
|
|
55965
55965
|
const chownr = require_chownr();
|
|
55966
55966
|
const normPath = require_normalize_windows_path();
|
|
@@ -55987,7 +55987,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
55987
55987
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
55988
55988
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
55989
55989
|
const checkCwd = (dir, cb) => {
|
|
55990
|
-
fs$
|
|
55990
|
+
fs$27.stat(dir, (er, st) => {
|
|
55991
55991
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
55992
55992
|
cb(er);
|
|
55993
55993
|
});
|
|
@@ -56009,7 +56009,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56009
56009
|
else {
|
|
56010
56010
|
cSet(cache, dir, true);
|
|
56011
56011
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
56012
|
-
else if (needChmod) fs$
|
|
56012
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
56013
56013
|
else cb();
|
|
56014
56014
|
}
|
|
56015
56015
|
};
|
|
@@ -56023,17 +56023,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56023
56023
|
const p = parts.shift();
|
|
56024
56024
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
56025
56025
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
56026
|
-
fs$
|
|
56026
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
56027
56027
|
};
|
|
56028
56028
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
56029
|
-
if (er) fs$
|
|
56029
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
56030
56030
|
if (statEr) {
|
|
56031
56031
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
56032
56032
|
cb(statEr);
|
|
56033
56033
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
56034
|
-
else if (unlink) fs$
|
|
56034
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
56035
56035
|
if (er) return cb(er);
|
|
56036
|
-
fs$
|
|
56036
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
56037
56037
|
});
|
|
56038
56038
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
56039
56039
|
else cb(er);
|
|
@@ -56047,7 +56047,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56047
56047
|
let ok = false;
|
|
56048
56048
|
let code = "ENOTDIR";
|
|
56049
56049
|
try {
|
|
56050
|
-
ok = fs$
|
|
56050
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
56051
56051
|
} catch (er) {
|
|
56052
56052
|
code = er.code;
|
|
56053
56053
|
} finally {
|
|
@@ -56069,7 +56069,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56069
56069
|
const done = (created) => {
|
|
56070
56070
|
cSet(cache, dir, true);
|
|
56071
56071
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
56072
|
-
if (needChmod) fs$
|
|
56072
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
56073
56073
|
};
|
|
56074
56074
|
if (cache && cGet(cache, dir) === true) return done();
|
|
56075
56075
|
if (dir === cwd) {
|
|
@@ -56083,17 +56083,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
56083
56083
|
part = normPath(path$27.resolve(part));
|
|
56084
56084
|
if (cGet(cache, part)) continue;
|
|
56085
56085
|
try {
|
|
56086
|
-
fs$
|
|
56086
|
+
fs$27.mkdirSync(part, mode);
|
|
56087
56087
|
created = created || part;
|
|
56088
56088
|
cSet(cache, part, true);
|
|
56089
56089
|
} catch (er) {
|
|
56090
|
-
const st = fs$
|
|
56090
|
+
const st = fs$27.lstatSync(part);
|
|
56091
56091
|
if (st.isDirectory()) {
|
|
56092
56092
|
cSet(cache, part, true);
|
|
56093
56093
|
continue;
|
|
56094
56094
|
} else if (unlink) {
|
|
56095
|
-
fs$
|
|
56096
|
-
fs$
|
|
56095
|
+
fs$27.unlinkSync(part);
|
|
56096
|
+
fs$27.mkdirSync(part, mode);
|
|
56097
56097
|
created = created || part;
|
|
56098
56098
|
cSet(cache, part, true);
|
|
56099
56099
|
continue;
|
|
@@ -56119,14 +56119,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
56119
56119
|
const assert$1 = require("assert");
|
|
56120
56120
|
const normalize = require_normalize_unicode();
|
|
56121
56121
|
const stripSlashes = require_strip_trailing_slashes();
|
|
56122
|
-
const { join: join$
|
|
56122
|
+
const { join: join$17 } = require("path");
|
|
56123
56123
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
56124
56124
|
module.exports = () => {
|
|
56125
56125
|
const queues = /* @__PURE__ */ new Map();
|
|
56126
56126
|
const reservations = /* @__PURE__ */ new Map();
|
|
56127
56127
|
const getDirs = (path$54) => {
|
|
56128
56128
|
return path$54.split("/").slice(0, -1).reduce((set, path$55) => {
|
|
56129
|
-
if (set.length) path$55 = join$
|
|
56129
|
+
if (set.length) path$55 = join$17(set[set.length - 1], path$55);
|
|
56130
56130
|
set.push(path$55 || "/");
|
|
56131
56131
|
return set;
|
|
56132
56132
|
}, []);
|
|
@@ -56180,7 +56180,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
56180
56180
|
};
|
|
56181
56181
|
const reserve = (paths, fn) => {
|
|
56182
56182
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
56183
|
-
return stripSlashes(join$
|
|
56183
|
+
return stripSlashes(join$17(normalize(p))).toLowerCase();
|
|
56184
56184
|
});
|
|
56185
56185
|
const dirs = new Set(paths.map((path$59) => getDirs(path$59)).reduce((a, b) => a.concat(b)));
|
|
56186
56186
|
reservations.set(fn, {
|
|
@@ -56222,7 +56222,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
56222
56222
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56223
56223
|
const assert = require("assert");
|
|
56224
56224
|
const Parser = require_parse$4();
|
|
56225
|
-
const fs$
|
|
56225
|
+
const fs$26 = require("fs");
|
|
56226
56226
|
const fsm = require_fs_minipass();
|
|
56227
56227
|
const path$26 = require("path");
|
|
56228
56228
|
const mkdir = require_mkdir();
|
|
@@ -56263,19 +56263,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56263
56263
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
56264
56264
|
/* istanbul ignore next */
|
|
56265
56265
|
const unlinkFile = (path$50, cb) => {
|
|
56266
|
-
if (!isWindows) return fs$
|
|
56266
|
+
if (!isWindows) return fs$26.unlink(path$50, cb);
|
|
56267
56267
|
const name = path$50 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
56268
|
-
fs$
|
|
56268
|
+
fs$26.rename(path$50, name, (er) => {
|
|
56269
56269
|
if (er) return cb(er);
|
|
56270
|
-
fs$
|
|
56270
|
+
fs$26.unlink(name, cb);
|
|
56271
56271
|
});
|
|
56272
56272
|
};
|
|
56273
56273
|
/* istanbul ignore next */
|
|
56274
56274
|
const unlinkFileSync = (path$51) => {
|
|
56275
|
-
if (!isWindows) return fs$
|
|
56275
|
+
if (!isWindows) return fs$26.unlinkSync(path$51);
|
|
56276
56276
|
const name = path$51 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
56277
|
-
fs$
|
|
56278
|
-
fs$
|
|
56277
|
+
fs$26.renameSync(path$51, name);
|
|
56278
|
+
fs$26.unlinkSync(name);
|
|
56279
56279
|
};
|
|
56280
56280
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
56281
56281
|
const cacheKeyNormalize = (path$52) => stripSlash(normPath(normalize(path$52))).toLowerCase();
|
|
@@ -56461,7 +56461,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56461
56461
|
autoClose: false
|
|
56462
56462
|
});
|
|
56463
56463
|
stream.on("error", (er) => {
|
|
56464
|
-
if (stream.fd) fs$
|
|
56464
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
56465
56465
|
stream.write = () => true;
|
|
56466
56466
|
this[ONERROR](er, entry);
|
|
56467
56467
|
fullyDone();
|
|
@@ -56470,12 +56470,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56470
56470
|
const done = (er) => {
|
|
56471
56471
|
if (er) {
|
|
56472
56472
|
/* istanbul ignore else - we should always have a fd by now */
|
|
56473
|
-
if (stream.fd) fs$
|
|
56473
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
56474
56474
|
this[ONERROR](er, entry);
|
|
56475
56475
|
fullyDone();
|
|
56476
56476
|
return;
|
|
56477
56477
|
}
|
|
56478
|
-
if (--actions === 0) fs$
|
|
56478
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
56479
56479
|
if (er) this[ONERROR](er, entry);
|
|
56480
56480
|
else this[UNPEND]();
|
|
56481
56481
|
fullyDone();
|
|
@@ -56488,13 +56488,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56488
56488
|
actions++;
|
|
56489
56489
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
56490
56490
|
const mtime = entry.mtime;
|
|
56491
|
-
fs$
|
|
56491
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
56492
56492
|
}
|
|
56493
56493
|
if (this[DOCHOWN](entry)) {
|
|
56494
56494
|
actions++;
|
|
56495
56495
|
const uid = this[UID](entry);
|
|
56496
56496
|
const gid = this[GID](entry);
|
|
56497
|
-
fs$
|
|
56497
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
56498
56498
|
}
|
|
56499
56499
|
done();
|
|
56500
56500
|
});
|
|
@@ -56526,11 +56526,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56526
56526
|
};
|
|
56527
56527
|
if (entry.mtime && !this.noMtime) {
|
|
56528
56528
|
actions++;
|
|
56529
|
-
fs$
|
|
56529
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
56530
56530
|
}
|
|
56531
56531
|
if (this[DOCHOWN](entry)) {
|
|
56532
56532
|
actions++;
|
|
56533
|
-
fs$
|
|
56533
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
56534
56534
|
}
|
|
56535
56535
|
done();
|
|
56536
56536
|
});
|
|
@@ -56603,7 +56603,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56603
56603
|
afterMakeParent();
|
|
56604
56604
|
};
|
|
56605
56605
|
const afterMakeParent = () => {
|
|
56606
|
-
fs$
|
|
56606
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
56607
56607
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
56608
56608
|
this[SKIP](entry);
|
|
56609
56609
|
done();
|
|
@@ -56615,9 +56615,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56615
56615
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
56616
56616
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
56617
56617
|
if (!needChmod) return afterChmod();
|
|
56618
|
-
return fs$
|
|
56618
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
56619
56619
|
}
|
|
56620
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
56620
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
56621
56621
|
}
|
|
56622
56622
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
56623
56623
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -56643,7 +56643,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56643
56643
|
}
|
|
56644
56644
|
}
|
|
56645
56645
|
[LINK](entry, linkpath, link, done) {
|
|
56646
|
-
fs$
|
|
56646
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
56647
56647
|
if (er) this[ONERROR](er, entry);
|
|
56648
56648
|
else {
|
|
56649
56649
|
this[UNPEND]();
|
|
@@ -56678,17 +56678,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56678
56678
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
56679
56679
|
}
|
|
56680
56680
|
}
|
|
56681
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
56681
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
56682
56682
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
56683
56683
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
56684
56684
|
if (st.isDirectory()) {
|
|
56685
56685
|
if (entry.type === "Directory") {
|
|
56686
56686
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
56687
|
-
fs$
|
|
56687
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
56688
56688
|
}) : [];
|
|
56689
56689
|
return this[MAKEFS](er, entry);
|
|
56690
56690
|
}
|
|
56691
|
-
const [er] = callSync(() => fs$
|
|
56691
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
56692
56692
|
this[MAKEFS](er, entry);
|
|
56693
56693
|
}
|
|
56694
56694
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -56699,7 +56699,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56699
56699
|
const oner = (er) => {
|
|
56700
56700
|
let closeError;
|
|
56701
56701
|
try {
|
|
56702
|
-
fs$
|
|
56702
|
+
fs$26.closeSync(fd);
|
|
56703
56703
|
} catch (e) {
|
|
56704
56704
|
closeError = e;
|
|
56705
56705
|
}
|
|
@@ -56708,7 +56708,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56708
56708
|
};
|
|
56709
56709
|
let fd;
|
|
56710
56710
|
try {
|
|
56711
|
-
fd = fs$
|
|
56711
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
56712
56712
|
} catch (er) {
|
|
56713
56713
|
return oner(er);
|
|
56714
56714
|
}
|
|
@@ -56719,7 +56719,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56719
56719
|
}
|
|
56720
56720
|
tx.on("data", (chunk) => {
|
|
56721
56721
|
try {
|
|
56722
|
-
fs$
|
|
56722
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
56723
56723
|
} catch (er) {
|
|
56724
56724
|
oner(er);
|
|
56725
56725
|
}
|
|
@@ -56730,10 +56730,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56730
56730
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
56731
56731
|
const mtime = entry.mtime;
|
|
56732
56732
|
try {
|
|
56733
|
-
fs$
|
|
56733
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
56734
56734
|
} catch (futimeser) {
|
|
56735
56735
|
try {
|
|
56736
|
-
fs$
|
|
56736
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
56737
56737
|
} catch (utimeser) {
|
|
56738
56738
|
er = futimeser;
|
|
56739
56739
|
}
|
|
@@ -56743,10 +56743,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56743
56743
|
const uid = this[UID](entry);
|
|
56744
56744
|
const gid = this[GID](entry);
|
|
56745
56745
|
try {
|
|
56746
|
-
fs$
|
|
56746
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
56747
56747
|
} catch (fchowner) {
|
|
56748
56748
|
try {
|
|
56749
|
-
fs$
|
|
56749
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
56750
56750
|
} catch (chowner) {
|
|
56751
56751
|
er = er || fchowner;
|
|
56752
56752
|
}
|
|
@@ -56764,10 +56764,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56764
56764
|
return;
|
|
56765
56765
|
}
|
|
56766
56766
|
if (entry.mtime && !this.noMtime) try {
|
|
56767
|
-
fs$
|
|
56767
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
56768
56768
|
} catch (er) {}
|
|
56769
56769
|
if (this[DOCHOWN](entry)) try {
|
|
56770
|
-
fs$
|
|
56770
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
56771
56771
|
} catch (er) {}
|
|
56772
56772
|
done();
|
|
56773
56773
|
entry.resume();
|
|
@@ -56792,7 +56792,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56792
56792
|
}
|
|
56793
56793
|
[LINK](entry, linkpath, link, done) {
|
|
56794
56794
|
try {
|
|
56795
|
-
fs$
|
|
56795
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
56796
56796
|
done();
|
|
56797
56797
|
entry.resume();
|
|
56798
56798
|
} catch (er) {
|
|
@@ -56808,7 +56808,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
56808
56808
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56809
56809
|
const hlo = require_high_level_opt();
|
|
56810
56810
|
const Unpack = require_unpack();
|
|
56811
|
-
const fs$
|
|
56811
|
+
const fs$25 = require("fs");
|
|
56812
56812
|
const fsm = require_fs_minipass();
|
|
56813
56813
|
const path$25 = require("path");
|
|
56814
56814
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -56838,7 +56838,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
56838
56838
|
const extractFileSync = (opt) => {
|
|
56839
56839
|
const u = new Unpack.Sync(opt);
|
|
56840
56840
|
const file = opt.file;
|
|
56841
|
-
const stat = fs$
|
|
56841
|
+
const stat = fs$25.statSync(file);
|
|
56842
56842
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
56843
56843
|
new fsm.ReadStreamSync(file, {
|
|
56844
56844
|
readSize,
|
|
@@ -56852,7 +56852,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
56852
56852
|
const p = new Promise((resolve, reject) => {
|
|
56853
56853
|
u.on("error", reject);
|
|
56854
56854
|
u.on("close", resolve);
|
|
56855
|
-
fs$
|
|
56855
|
+
fs$25.stat(file, (er, stat) => {
|
|
56856
56856
|
if (er) reject(er);
|
|
56857
56857
|
else {
|
|
56858
56858
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -56935,7 +56935,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
56935
56935
|
//#endregion
|
|
56936
56936
|
//#region ../../node_modules/fd-slicer/index.js
|
|
56937
56937
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
56938
|
-
var fs$
|
|
56938
|
+
var fs$24 = require("fs");
|
|
56939
56939
|
var util$9 = require("util");
|
|
56940
56940
|
var stream$1 = require("stream");
|
|
56941
56941
|
var Readable = stream$1.Readable;
|
|
@@ -56960,7 +56960,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
56960
56960
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
56961
56961
|
var self = this;
|
|
56962
56962
|
self.pend.go(function(cb) {
|
|
56963
|
-
fs$
|
|
56963
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
56964
56964
|
cb();
|
|
56965
56965
|
callback(err, bytesRead, buffer);
|
|
56966
56966
|
});
|
|
@@ -56969,7 +56969,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
56969
56969
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
56970
56970
|
var self = this;
|
|
56971
56971
|
self.pend.go(function(cb) {
|
|
56972
|
-
fs$
|
|
56972
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
56973
56973
|
cb();
|
|
56974
56974
|
callback(err, written, buffer);
|
|
56975
56975
|
});
|
|
@@ -56989,7 +56989,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
56989
56989
|
self.refCount -= 1;
|
|
56990
56990
|
if (self.refCount > 0) return;
|
|
56991
56991
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
56992
|
-
if (self.autoClose) fs$
|
|
56992
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
56993
56993
|
function onCloseDone(err) {
|
|
56994
56994
|
if (err) self.emit("error", err);
|
|
56995
56995
|
else self.emit("close");
|
|
@@ -57020,7 +57020,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57020
57020
|
self.context.pend.go(function(cb) {
|
|
57021
57021
|
if (self.destroyed) return cb();
|
|
57022
57022
|
var buffer = new Buffer(toRead);
|
|
57023
|
-
fs$
|
|
57023
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
57024
57024
|
if (err) self.destroy(err);
|
|
57025
57025
|
else if (bytesRead === 0) {
|
|
57026
57026
|
self.destroyed = true;
|
|
@@ -57066,7 +57066,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
57066
57066
|
}
|
|
57067
57067
|
self.context.pend.go(function(cb) {
|
|
57068
57068
|
if (self.destroyed) return cb();
|
|
57069
|
-
fs$
|
|
57069
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
57070
57070
|
if (err) {
|
|
57071
57071
|
self.destroy();
|
|
57072
57072
|
cb();
|
|
@@ -58648,13 +58648,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
58648
58648
|
//#region ../../node_modules/readdir-glob/index.js
|
|
58649
58649
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
58650
58650
|
module.exports = readdirGlob;
|
|
58651
|
-
const fs$
|
|
58651
|
+
const fs$22 = require("fs");
|
|
58652
58652
|
const { EventEmitter } = require("events");
|
|
58653
58653
|
const { Minimatch } = require_minimatch$1();
|
|
58654
58654
|
const { resolve: resolve$12 } = require("path");
|
|
58655
58655
|
function readdir(dir, strict) {
|
|
58656
58656
|
return new Promise((resolve, reject) => {
|
|
58657
|
-
fs$
|
|
58657
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
58658
58658
|
if (err) switch (err.code) {
|
|
58659
58659
|
case "ENOTDIR":
|
|
58660
58660
|
if (strict) reject(err);
|
|
@@ -58676,7 +58676,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
58676
58676
|
}
|
|
58677
58677
|
function stat(file, followSymlinks) {
|
|
58678
58678
|
return new Promise((resolve, reject) => {
|
|
58679
|
-
(followSymlinks ? fs$
|
|
58679
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
58680
58680
|
if (err) switch (err.code) {
|
|
58681
58681
|
case "ENOENT":
|
|
58682
58682
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -64715,7 +64715,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64715
64715
|
//#endregion
|
|
64716
64716
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
64717
64717
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
64718
|
-
var fs$
|
|
64718
|
+
var fs$21 = require("fs");
|
|
64719
64719
|
var polyfills = require_polyfills();
|
|
64720
64720
|
var legacy = require_legacy_streams();
|
|
64721
64721
|
var clone = require_clone$1();
|
|
@@ -64744,36 +64744,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
64744
64744
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
64745
64745
|
console.error(m);
|
|
64746
64746
|
};
|
|
64747
|
-
if (!fs$
|
|
64748
|
-
publishQueue(fs$
|
|
64749
|
-
fs$
|
|
64747
|
+
if (!fs$21[gracefulQueue]) {
|
|
64748
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
64749
|
+
fs$21.close = (function(fs$close) {
|
|
64750
64750
|
function close(fd, cb) {
|
|
64751
|
-
return fs$close.call(fs$
|
|
64751
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
64752
64752
|
if (!err) resetQueue();
|
|
64753
64753
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
64754
64754
|
});
|
|
64755
64755
|
}
|
|
64756
64756
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
64757
64757
|
return close;
|
|
64758
|
-
})(fs$
|
|
64759
|
-
fs$
|
|
64758
|
+
})(fs$21.close);
|
|
64759
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
64760
64760
|
function closeSync(fd) {
|
|
64761
|
-
fs$closeSync.apply(fs$
|
|
64761
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
64762
64762
|
resetQueue();
|
|
64763
64763
|
}
|
|
64764
64764
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
64765
64765
|
return closeSync;
|
|
64766
|
-
})(fs$
|
|
64766
|
+
})(fs$21.closeSync);
|
|
64767
64767
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
64768
|
-
debug(fs$
|
|
64769
|
-
require("assert").equal(fs$
|
|
64768
|
+
debug(fs$21[gracefulQueue]);
|
|
64769
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
64770
64770
|
});
|
|
64771
64771
|
}
|
|
64772
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
64773
|
-
module.exports = patch(clone(fs$
|
|
64774
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
64775
|
-
module.exports = patch(fs$
|
|
64776
|
-
fs$
|
|
64772
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
64773
|
+
module.exports = patch(clone(fs$21));
|
|
64774
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
64775
|
+
module.exports = patch(fs$21);
|
|
64776
|
+
fs$21.__patched = true;
|
|
64777
64777
|
}
|
|
64778
64778
|
function patch(fs) {
|
|
64779
64779
|
polyfills(fs);
|
|
@@ -65028,23 +65028,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
65028
65028
|
}
|
|
65029
65029
|
function enqueue(elem) {
|
|
65030
65030
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
65031
|
-
fs$
|
|
65031
|
+
fs$21[gracefulQueue].push(elem);
|
|
65032
65032
|
retry();
|
|
65033
65033
|
}
|
|
65034
65034
|
var retryTimer;
|
|
65035
65035
|
function resetQueue() {
|
|
65036
65036
|
var now = Date.now();
|
|
65037
|
-
for (var i = 0; i < fs$
|
|
65038
|
-
fs$
|
|
65039
|
-
fs$
|
|
65037
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
65038
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
65039
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
65040
65040
|
}
|
|
65041
65041
|
retry();
|
|
65042
65042
|
}
|
|
65043
65043
|
function retry() {
|
|
65044
65044
|
clearTimeout(retryTimer);
|
|
65045
65045
|
retryTimer = void 0;
|
|
65046
|
-
if (fs$
|
|
65047
|
-
var elem = fs$
|
|
65046
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
65047
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
65048
65048
|
var fn = elem[0];
|
|
65049
65049
|
var args = elem[1];
|
|
65050
65050
|
var err = elem[2];
|
|
@@ -65063,7 +65063,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
65063
65063
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
65064
65064
|
debug("RETRY", fn.name, args);
|
|
65065
65065
|
fn.apply(null, args.concat([startTime]));
|
|
65066
|
-
} else fs$
|
|
65066
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
65067
65067
|
}
|
|
65068
65068
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
65069
65069
|
}
|
|
@@ -80460,7 +80460,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80460
80460
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
80461
80461
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
80462
80462
|
*/
|
|
80463
|
-
var fs$
|
|
80463
|
+
var fs$20 = require("fs");
|
|
80464
80464
|
var glob = require_readdir_glob();
|
|
80465
80465
|
var async = require_async();
|
|
80466
80466
|
var path$22 = require("path");
|
|
@@ -80537,7 +80537,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80537
80537
|
data.sourcePath = filepath;
|
|
80538
80538
|
task.data = data;
|
|
80539
80539
|
this._entriesCount++;
|
|
80540
|
-
if (data.stats && data.stats instanceof fs$
|
|
80540
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
80541
80541
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
80542
80542
|
if (task) {
|
|
80543
80543
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -80767,7 +80767,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80767
80767
|
callback();
|
|
80768
80768
|
return;
|
|
80769
80769
|
}
|
|
80770
|
-
fs$
|
|
80770
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
80771
80771
|
if (this._state.aborted) {
|
|
80772
80772
|
setImmediate(callback);
|
|
80773
80773
|
return;
|
|
@@ -80833,7 +80833,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
80833
80833
|
task.data.sourceType = "buffer";
|
|
80834
80834
|
task.source = Buffer.concat([]);
|
|
80835
80835
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
80836
|
-
var linkPath = fs$
|
|
80836
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
80837
80837
|
var dirName = path$22.dirname(task.filepath);
|
|
80838
80838
|
task.data.type = "symlink";
|
|
80839
80839
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -91831,7 +91831,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
91831
91831
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
91832
91832
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
91833
91833
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
91834
|
-
const { join: join$
|
|
91834
|
+
const { join: join$14, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
91835
91835
|
const isWindows = process.platform === "win32";
|
|
91836
91836
|
/* istanbul ignore next */
|
|
91837
91837
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -91861,7 +91861,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
91861
91861
|
};
|
|
91862
91862
|
const getPathPart = (raw, cmd) => {
|
|
91863
91863
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
91864
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
91864
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
91865
91865
|
};
|
|
91866
91866
|
const which = async (cmd, opt = {}) => {
|
|
91867
91867
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -92440,7 +92440,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
92440
92440
|
//#endregion
|
|
92441
92441
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
92442
92442
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92443
|
-
const fs$
|
|
92443
|
+
const fs$18 = require("node:fs");
|
|
92444
92444
|
const os$2 = require("node:os");
|
|
92445
92445
|
const path$20 = require("node:path");
|
|
92446
92446
|
const ini = require_ini();
|
|
@@ -92449,8 +92449,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
92449
92449
|
const loadGitConfig = () => {
|
|
92450
92450
|
if (cachedConfig === null) try {
|
|
92451
92451
|
cachedConfig = {};
|
|
92452
|
-
if (fs$
|
|
92453
|
-
const configContent = fs$
|
|
92452
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
92453
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
92454
92454
|
cachedConfig = ini.parse(configContent);
|
|
92455
92455
|
}
|
|
92456
92456
|
} catch (error) {
|
|
@@ -92610,7 +92610,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
92610
92610
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
92611
92611
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92612
92612
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
92613
|
-
const { join: join$
|
|
92613
|
+
const { join: join$13, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
92614
92614
|
const isWindows = process.platform === "win32";
|
|
92615
92615
|
/* istanbul ignore next */
|
|
92616
92616
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -92640,7 +92640,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92640
92640
|
};
|
|
92641
92641
|
const getPathPart = (raw, cmd) => {
|
|
92642
92642
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
92643
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
92643
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
92644
92644
|
};
|
|
92645
92645
|
const which = async (cmd, opt = {}) => {
|
|
92646
92646
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -94319,7 +94319,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
94319
94319
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94320
94320
|
const process$1 = require("node:process");
|
|
94321
94321
|
const nodeOs = require("node:os");
|
|
94322
|
-
const fs$
|
|
94322
|
+
const fs$17 = require("node:fs");
|
|
94323
94323
|
function isMusl(file) {
|
|
94324
94324
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
94325
94325
|
}
|
|
@@ -94332,7 +94332,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
94332
94332
|
const LDD_PATH = "/usr/bin/ldd";
|
|
94333
94333
|
function getFamilyFromFilesystem() {
|
|
94334
94334
|
try {
|
|
94335
|
-
const content = fs$
|
|
94335
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
94336
94336
|
if (content.includes("musl")) return "musl";
|
|
94337
94337
|
if (content.includes("GNU C Library")) return "glibc";
|
|
94338
94338
|
return null;
|
|
@@ -94538,7 +94538,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
94538
94538
|
//#endregion
|
|
94539
94539
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
94540
94540
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94541
|
-
const { join: join$
|
|
94541
|
+
const { join: join$12, basename: basename$4 } = require("path");
|
|
94542
94542
|
const normalize = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
|
|
94543
94543
|
const normalizeString = (pkg) => {
|
|
94544
94544
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -94561,9 +94561,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
94561
94561
|
const clean = {};
|
|
94562
94562
|
let hasBins = false;
|
|
94563
94563
|
Object.keys(orig).forEach((binKey) => {
|
|
94564
|
-
const base = join$
|
|
94564
|
+
const base = join$12("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
94565
94565
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
94566
|
-
const binTarget = join$
|
|
94566
|
+
const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
94567
94567
|
if (!binTarget) return;
|
|
94568
94568
|
clean[base] = binTarget;
|
|
94569
94569
|
hasBins = true;
|
|
@@ -94721,7 +94721,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
94721
94721
|
const spawn = require_spawn();
|
|
94722
94722
|
const { isWindows } = require_utils$3();
|
|
94723
94723
|
const pickManifest = require_lib$20();
|
|
94724
|
-
const fs$
|
|
94724
|
+
const fs$16 = require("fs/promises");
|
|
94725
94725
|
module.exports = (repo, ref = "HEAD", target = null, opts = {}) => getRevs(repo, opts).then((revs) => clone(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
|
|
94726
94726
|
const maybeShallow = (repo, opts) => {
|
|
94727
94727
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -94756,7 +94756,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
94756
94756
|
...opts,
|
|
94757
94757
|
cwd: target
|
|
94758
94758
|
});
|
|
94759
|
-
return fs$
|
|
94759
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
94760
94760
|
"config",
|
|
94761
94761
|
"--local",
|
|
94762
94762
|
"--add",
|
|
@@ -94794,7 +94794,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
94794
94794
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
94795
94795
|
};
|
|
94796
94796
|
const updateSubmodules = async (target, opts) => {
|
|
94797
|
-
if (!await fs$
|
|
94797
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
94798
94798
|
return spawn([
|
|
94799
94799
|
"submodule",
|
|
94800
94800
|
"update",
|
|
@@ -94819,7 +94819,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
94819
94819
|
...opts,
|
|
94820
94820
|
cwd: target
|
|
94821
94821
|
});
|
|
94822
|
-
return fs$
|
|
94822
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(cloneArgs.concat(lp))).then(() => git(["init"])).then(() => git(["checkout", ref])).then(() => updateSubmodules(target, opts)).then(() => git([
|
|
94823
94823
|
"rev-parse",
|
|
94824
94824
|
"--revs-only",
|
|
94825
94825
|
"HEAD"
|
|
@@ -94836,11 +94836,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
94836
94836
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
94837
94837
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94838
94838
|
const is = require_is();
|
|
94839
|
-
const { dirname: dirname$
|
|
94839
|
+
const { dirname: dirname$10 } = require("path");
|
|
94840
94840
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
94841
94841
|
while (true) {
|
|
94842
94842
|
if (await is({ cwd })) return cwd;
|
|
94843
|
-
const next = dirname$
|
|
94843
|
+
const next = dirname$10(cwd);
|
|
94844
94844
|
if (cwd === root || cwd === next) return null;
|
|
94845
94845
|
cwd = next;
|
|
94846
94846
|
}
|
|
@@ -94874,7 +94874,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
94874
94874
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94875
94875
|
const valid = require_valid$3();
|
|
94876
94876
|
const clean = require_clean$1();
|
|
94877
|
-
const fs$
|
|
94877
|
+
const fs$15 = require("node:fs/promises");
|
|
94878
94878
|
const path$17 = require("node:path");
|
|
94879
94879
|
const { log } = require_lib$29();
|
|
94880
94880
|
const moduleBuiltin = require("node:module");
|
|
@@ -95158,13 +95158,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
95158
95158
|
}
|
|
95159
95159
|
}
|
|
95160
95160
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
95161
|
-
await fs$
|
|
95161
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
95162
95162
|
scripts.start = "node server.js";
|
|
95163
95163
|
data.scripts = scripts;
|
|
95164
95164
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
95165
95165
|
} catch {}
|
|
95166
95166
|
if (steps.includes("authors") && !data.contributors) try {
|
|
95167
|
-
data.contributors = (await fs$
|
|
95167
|
+
data.contributors = (await fs$15.readFile(path$17.join(pkg.path, "AUTHORS"), "utf8")).split(/\r?\n/g).map((line) => line.replace(/^\s*#.*$/, "").trim()).filter((line) => line);
|
|
95168
95168
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
95169
95169
|
} catch {}
|
|
95170
95170
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -95183,7 +95183,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
95183
95183
|
if (file.endsWith("README")) readmeFile = file;
|
|
95184
95184
|
}
|
|
95185
95185
|
if (readmeFile) {
|
|
95186
|
-
data.readme = await fs$
|
|
95186
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
95187
95187
|
data.readmeFilename = readmeFile;
|
|
95188
95188
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
95189
95189
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -95215,20 +95215,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
95215
95215
|
});
|
|
95216
95216
|
let head;
|
|
95217
95217
|
if (gitRoot) try {
|
|
95218
|
-
head = await fs$
|
|
95218
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
95219
95219
|
} catch (err) {}
|
|
95220
95220
|
let headData;
|
|
95221
95221
|
if (head) if (head.startsWith("ref: ")) {
|
|
95222
95222
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
95223
95223
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
95224
95224
|
try {
|
|
95225
|
-
headData = await fs$
|
|
95225
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
95226
95226
|
headData = headData.replace(/^ref: /, "").trim();
|
|
95227
95227
|
} catch (err) {}
|
|
95228
95228
|
if (!headData) {
|
|
95229
95229
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
95230
95230
|
try {
|
|
95231
|
-
let refs = await fs$
|
|
95231
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
95232
95232
|
if (refs) {
|
|
95233
95233
|
refs = refs.split("\n");
|
|
95234
95234
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -95249,12 +95249,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
95249
95249
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
95250
95250
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
95251
95251
|
if (!("types" in data || "typings" in data)) try {
|
|
95252
|
-
await fs$
|
|
95252
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
95253
95253
|
data.types = dts.split(path$17.sep).join("/");
|
|
95254
95254
|
} catch {}
|
|
95255
95255
|
}
|
|
95256
95256
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
95257
|
-
await fs$
|
|
95257
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
95258
95258
|
} catch {
|
|
95259
95259
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
95260
95260
|
}
|
|
@@ -96636,7 +96636,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96636
96636
|
const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
|
|
96637
96637
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
96638
96638
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$7, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
96639
|
-
const { dirname: dirname$
|
|
96639
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
96640
96640
|
const { fileURLToPath } = require("url");
|
|
96641
96641
|
const defaultOptions = {
|
|
96642
96642
|
dereference: false,
|
|
@@ -96710,7 +96710,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96710
96710
|
})]);
|
|
96711
96711
|
}
|
|
96712
96712
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
96713
|
-
const destParent = dirname$
|
|
96713
|
+
const destParent = dirname$9(dest);
|
|
96714
96714
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
96715
96715
|
await mkdir$7(destParent, { recursive: true });
|
|
96716
96716
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -96723,8 +96723,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96723
96723
|
);
|
|
96724
96724
|
}
|
|
96725
96725
|
async function checkParentPaths(src, srcStat, dest) {
|
|
96726
|
-
const srcParent = resolve$10(dirname$
|
|
96727
|
-
const destParent = resolve$10(dirname$
|
|
96726
|
+
const srcParent = resolve$10(dirname$9(src));
|
|
96727
|
+
const destParent = resolve$10(dirname$9(dest));
|
|
96728
96728
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
96729
96729
|
let destStat;
|
|
96730
96730
|
try {
|
|
@@ -96845,15 +96845,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96845
96845
|
const dir = await readdir$7(src);
|
|
96846
96846
|
for (let i = 0; i < dir.length; i++) {
|
|
96847
96847
|
const item = dir[i];
|
|
96848
|
-
const srcItem = join$
|
|
96849
|
-
const destItem = join$
|
|
96848
|
+
const srcItem = join$11(src, item);
|
|
96849
|
+
const destItem = join$11(dest, item);
|
|
96850
96850
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
96851
96851
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
96852
96852
|
}
|
|
96853
96853
|
}
|
|
96854
96854
|
async function onLink(destStat, src, dest) {
|
|
96855
96855
|
let resolvedSrc = await readlink(src);
|
|
96856
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
96856
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$9(src), resolvedSrc);
|
|
96857
96857
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
96858
96858
|
let resolvedDest;
|
|
96859
96859
|
try {
|
|
@@ -96864,7 +96864,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96864
96864
|
// istanbul ignore next: should not be possible
|
|
96865
96865
|
throw err;
|
|
96866
96866
|
}
|
|
96867
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
96867
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$9(dest), resolvedDest);
|
|
96868
96868
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
96869
96869
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
96870
96870
|
path: dest,
|
|
@@ -96888,7 +96888,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
96888
96888
|
//#endregion
|
|
96889
96889
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
96890
96890
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96891
|
-
const fs$
|
|
96891
|
+
const fs$14 = require("fs/promises");
|
|
96892
96892
|
const getOptions = require_get_options();
|
|
96893
96893
|
const node = require_node$1();
|
|
96894
96894
|
const polyfill = require_polyfill();
|
|
@@ -96903,20 +96903,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96903
96903
|
"recursive"
|
|
96904
96904
|
] });
|
|
96905
96905
|
// istanbul ignore next
|
|
96906
|
-
return useNative ? fs$
|
|
96906
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
96907
96907
|
};
|
|
96908
96908
|
module.exports = cp;
|
|
96909
96909
|
}));
|
|
96910
96910
|
//#endregion
|
|
96911
96911
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
96912
96912
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96913
|
-
const { join: join$
|
|
96913
|
+
const { join: join$10, sep: sep$1 } = require("path");
|
|
96914
96914
|
const getOptions = require_get_options();
|
|
96915
96915
|
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
96916
96916
|
const withTempDir = async (root, fn, opts) => {
|
|
96917
96917
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
96918
96918
|
await mkdir$6(root, { recursive: true });
|
|
96919
|
-
const target = await mkdtemp(join$
|
|
96919
|
+
const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
96920
96920
|
let err;
|
|
96921
96921
|
let result;
|
|
96922
96922
|
try {
|
|
@@ -96939,10 +96939,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
96939
96939
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
96940
96940
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96941
96941
|
const { readdir: readdir$6 } = require("fs/promises");
|
|
96942
|
-
const { join: join$
|
|
96942
|
+
const { join: join$9 } = require("path");
|
|
96943
96943
|
const readdirScoped = async (dir) => {
|
|
96944
96944
|
const results = [];
|
|
96945
|
-
for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$
|
|
96945
|
+
for (const item of await readdir$6(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$6(join$9(dir, item))) results.push(join$9(item, scopedItem));
|
|
96946
96946
|
else results.push(item);
|
|
96947
96947
|
return results;
|
|
96948
96948
|
};
|
|
@@ -96951,11 +96951,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
96951
96951
|
//#endregion
|
|
96952
96952
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
96953
96953
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96954
|
-
const { dirname: dirname$
|
|
96955
|
-
const fs$
|
|
96954
|
+
const { dirname: dirname$8, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
96955
|
+
const fs$13 = require("fs/promises");
|
|
96956
96956
|
const pathExists = async (path$46) => {
|
|
96957
96957
|
try {
|
|
96958
|
-
await fs$
|
|
96958
|
+
await fs$13.access(path$46);
|
|
96959
96959
|
return true;
|
|
96960
96960
|
} catch (er) {
|
|
96961
96961
|
return er.code !== "ENOENT";
|
|
@@ -96968,34 +96968,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
96968
96968
|
...options
|
|
96969
96969
|
};
|
|
96970
96970
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
96971
|
-
await fs$
|
|
96971
|
+
await fs$13.mkdir(dirname$8(destination), { recursive: true });
|
|
96972
96972
|
try {
|
|
96973
|
-
await fs$
|
|
96973
|
+
await fs$13.rename(source, destination);
|
|
96974
96974
|
} catch (error) {
|
|
96975
96975
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
96976
|
-
const sourceStat = await fs$
|
|
96976
|
+
const sourceStat = await fs$13.lstat(source);
|
|
96977
96977
|
if (sourceStat.isDirectory()) {
|
|
96978
|
-
const files = await fs$
|
|
96979
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
96978
|
+
const files = await fs$13.readdir(source);
|
|
96979
|
+
await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
|
|
96980
96980
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
96981
96981
|
source,
|
|
96982
96982
|
destination
|
|
96983
96983
|
});
|
|
96984
|
-
else await fs$
|
|
96984
|
+
else await fs$13.copyFile(source, destination);
|
|
96985
96985
|
} else throw error;
|
|
96986
96986
|
}
|
|
96987
96987
|
if (root) {
|
|
96988
96988
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
96989
|
-
let target = await fs$
|
|
96989
|
+
let target = await fs$13.readlink(symSource);
|
|
96990
96990
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
96991
96991
|
let targetStat = "file";
|
|
96992
96992
|
try {
|
|
96993
|
-
targetStat = await fs$
|
|
96993
|
+
targetStat = await fs$13.stat(resolve$9(dirname$8(symSource), target));
|
|
96994
96994
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
96995
96995
|
} catch {}
|
|
96996
|
-
await fs$
|
|
96996
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
96997
96997
|
}));
|
|
96998
|
-
await fs$
|
|
96998
|
+
await fs$13.rm(source, {
|
|
96999
96999
|
recursive: true,
|
|
97000
97000
|
force: true
|
|
97001
97001
|
});
|
|
@@ -97018,7 +97018,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
97018
97018
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
97019
97019
|
const crypto$2 = require("crypto");
|
|
97020
97020
|
const { withTempDir } = require_lib$16();
|
|
97021
|
-
const fs$
|
|
97021
|
+
const fs$12 = require("fs/promises");
|
|
97022
97022
|
const path$16 = require("path");
|
|
97023
97023
|
module.exports.mkdir = mktmpdir;
|
|
97024
97024
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -97028,12 +97028,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
97028
97028
|
async function mktmpdir(cache, opts = {}) {
|
|
97029
97029
|
const { tmpPrefix } = opts;
|
|
97030
97030
|
const tmpDir = path$16.join(cache, "tmp");
|
|
97031
|
-
await fs$
|
|
97031
|
+
await fs$12.mkdir(tmpDir, {
|
|
97032
97032
|
recursive: true,
|
|
97033
97033
|
owner: "inherit"
|
|
97034
97034
|
});
|
|
97035
97035
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
97036
|
-
return fs$
|
|
97036
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
97037
97037
|
}
|
|
97038
97038
|
module.exports.withTmp = withTmp;
|
|
97039
97039
|
function withTmp(cache, opts, cb) {
|
|
@@ -97413,8 +97413,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
97413
97413
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
97414
97414
|
const { Minipass } = require_commonjs$10();
|
|
97415
97415
|
const EE$4 = require("events").EventEmitter;
|
|
97416
|
-
const fs$
|
|
97417
|
-
const writev = fs$
|
|
97416
|
+
const fs$11 = require("fs");
|
|
97417
|
+
const writev = fs$11.writev;
|
|
97418
97418
|
const _autoClose = Symbol("_autoClose");
|
|
97419
97419
|
const _close = Symbol("_close");
|
|
97420
97420
|
const _ended = Symbol("_ended");
|
|
@@ -97474,7 +97474,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97474
97474
|
throw new TypeError("this is a readable stream");
|
|
97475
97475
|
}
|
|
97476
97476
|
[_open]() {
|
|
97477
|
-
fs$
|
|
97477
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
97478
97478
|
}
|
|
97479
97479
|
[_onopen](er, fd) {
|
|
97480
97480
|
if (er) this[_onerror](er);
|
|
@@ -97493,7 +97493,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97493
97493
|
const buf = this[_makeBuf]();
|
|
97494
97494
|
/* istanbul ignore if */
|
|
97495
97495
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
97496
|
-
fs$
|
|
97496
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
97497
97497
|
}
|
|
97498
97498
|
}
|
|
97499
97499
|
[_onread](er, br, buf) {
|
|
@@ -97505,7 +97505,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97505
97505
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
97506
97506
|
const fd = this[_fd];
|
|
97507
97507
|
this[_fd] = null;
|
|
97508
|
-
fs$
|
|
97508
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
97509
97509
|
}
|
|
97510
97510
|
}
|
|
97511
97511
|
[_onerror](er) {
|
|
@@ -97543,7 +97543,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97543
97543
|
[_open]() {
|
|
97544
97544
|
let threw = true;
|
|
97545
97545
|
try {
|
|
97546
|
-
this[_onopen](null, fs$
|
|
97546
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
97547
97547
|
threw = false;
|
|
97548
97548
|
} finally {
|
|
97549
97549
|
if (threw) this[_close]();
|
|
@@ -97557,7 +97557,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97557
97557
|
do {
|
|
97558
97558
|
const buf = this[_makeBuf]();
|
|
97559
97559
|
/* istanbul ignore next */
|
|
97560
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
97560
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
97561
97561
|
if (!this[_handleChunk](br, buf)) break;
|
|
97562
97562
|
} while (true);
|
|
97563
97563
|
this[_reading] = false;
|
|
@@ -97571,7 +97571,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97571
97571
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
97572
97572
|
const fd = this[_fd];
|
|
97573
97573
|
this[_fd] = null;
|
|
97574
|
-
fs$
|
|
97574
|
+
fs$11.closeSync(fd);
|
|
97575
97575
|
this.emit("close");
|
|
97576
97576
|
}
|
|
97577
97577
|
}
|
|
@@ -97616,7 +97616,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97616
97616
|
this.emit("error", er);
|
|
97617
97617
|
}
|
|
97618
97618
|
[_open]() {
|
|
97619
|
-
fs$
|
|
97619
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
97620
97620
|
}
|
|
97621
97621
|
[_onopen](er, fd) {
|
|
97622
97622
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -97651,7 +97651,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97651
97651
|
return true;
|
|
97652
97652
|
}
|
|
97653
97653
|
[_write](buf) {
|
|
97654
|
-
fs$
|
|
97654
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
97655
97655
|
}
|
|
97656
97656
|
[_onwrite](er, bw) {
|
|
97657
97657
|
if (er) this[_onerror](er);
|
|
@@ -97685,7 +97685,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97685
97685
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
97686
97686
|
const fd = this[_fd];
|
|
97687
97687
|
this[_fd] = null;
|
|
97688
|
-
fs$
|
|
97688
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
97689
97689
|
}
|
|
97690
97690
|
}
|
|
97691
97691
|
};
|
|
@@ -97693,28 +97693,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97693
97693
|
[_open]() {
|
|
97694
97694
|
let fd;
|
|
97695
97695
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
97696
|
-
fd = fs$
|
|
97696
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
97697
97697
|
} catch (er) {
|
|
97698
97698
|
if (er.code === "ENOENT") {
|
|
97699
97699
|
this[_flags] = "w";
|
|
97700
97700
|
return this[_open]();
|
|
97701
97701
|
} else throw er;
|
|
97702
97702
|
}
|
|
97703
|
-
else fd = fs$
|
|
97703
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
97704
97704
|
this[_onopen](null, fd);
|
|
97705
97705
|
}
|
|
97706
97706
|
[_close]() {
|
|
97707
97707
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
97708
97708
|
const fd = this[_fd];
|
|
97709
97709
|
this[_fd] = null;
|
|
97710
|
-
fs$
|
|
97710
|
+
fs$11.closeSync(fd);
|
|
97711
97711
|
this.emit("close");
|
|
97712
97712
|
}
|
|
97713
97713
|
}
|
|
97714
97714
|
[_write](buf) {
|
|
97715
97715
|
let threw = true;
|
|
97716
97716
|
try {
|
|
97717
|
-
this[_onwrite](null, fs$
|
|
97717
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
97718
97718
|
threw = false;
|
|
97719
97719
|
} finally {
|
|
97720
97720
|
if (threw) try {
|
|
@@ -97731,7 +97731,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
97731
97731
|
//#endregion
|
|
97732
97732
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
97733
97733
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
97734
|
-
const fs$
|
|
97734
|
+
const fs$10 = require("fs/promises");
|
|
97735
97735
|
const fsm = require_lib$15();
|
|
97736
97736
|
const ssri = require_lib$17();
|
|
97737
97737
|
const contentPath = require_path();
|
|
@@ -97742,13 +97742,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
97742
97742
|
const { size } = opts;
|
|
97743
97743
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
97744
97744
|
return {
|
|
97745
|
-
stat: size ? { size } : await fs$
|
|
97745
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
97746
97746
|
cpath,
|
|
97747
97747
|
sri
|
|
97748
97748
|
};
|
|
97749
97749
|
});
|
|
97750
97750
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
97751
|
-
const data = await fs$
|
|
97751
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
97752
97752
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
97753
97753
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
97754
97754
|
return data;
|
|
@@ -97771,7 +97771,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
97771
97771
|
Promise.resolve().then(async () => {
|
|
97772
97772
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
97773
97773
|
return {
|
|
97774
|
-
stat: size ? { size } : await fs$
|
|
97774
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
97775
97775
|
cpath,
|
|
97776
97776
|
sri
|
|
97777
97777
|
};
|
|
@@ -97783,7 +97783,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
97783
97783
|
module.exports.copy = copy;
|
|
97784
97784
|
function copy(cache, integrity, dest) {
|
|
97785
97785
|
return withContentSri(cache, integrity, (cpath) => {
|
|
97786
|
-
return fs$
|
|
97786
|
+
return fs$10.copyFile(cpath, dest);
|
|
97787
97787
|
});
|
|
97788
97788
|
}
|
|
97789
97789
|
module.exports.hasContent = hasContent;
|
|
@@ -97791,7 +97791,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
97791
97791
|
if (!integrity) return false;
|
|
97792
97792
|
try {
|
|
97793
97793
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
97794
|
-
const stat = await fs$
|
|
97794
|
+
const stat = await fs$10.stat(cpath);
|
|
97795
97795
|
return {
|
|
97796
97796
|
size: stat.size,
|
|
97797
97797
|
sri,
|
|
@@ -98431,7 +98431,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
98431
98431
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98432
98432
|
const events = require("events");
|
|
98433
98433
|
const contentPath = require_path();
|
|
98434
|
-
const fs$
|
|
98434
|
+
const fs$9 = require("fs/promises");
|
|
98435
98435
|
const { moveFile } = require_lib$16();
|
|
98436
98436
|
const { Minipass } = require_commonjs$10();
|
|
98437
98437
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -98451,10 +98451,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98451
98451
|
const tmp = await makeTmp(cache, opts);
|
|
98452
98452
|
const hash = sri[algo].toString();
|
|
98453
98453
|
try {
|
|
98454
|
-
await fs$
|
|
98454
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
98455
98455
|
await moveToDestination(tmp, cache, hash, opts);
|
|
98456
98456
|
} finally {
|
|
98457
|
-
if (!tmp.moved) await fs$
|
|
98457
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
98458
98458
|
recursive: true,
|
|
98459
98459
|
force: true
|
|
98460
98460
|
});
|
|
@@ -98508,7 +98508,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98508
98508
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
98509
98509
|
return res;
|
|
98510
98510
|
} finally {
|
|
98511
|
-
if (!tmp.moved) await fs$
|
|
98511
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
98512
98512
|
recursive: true,
|
|
98513
98513
|
force: true
|
|
98514
98514
|
});
|
|
@@ -98548,7 +98548,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98548
98548
|
}
|
|
98549
98549
|
async function makeTmp(cache, opts) {
|
|
98550
98550
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
98551
|
-
await fs$
|
|
98551
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
98552
98552
|
return {
|
|
98553
98553
|
target: tmpTarget,
|
|
98554
98554
|
moved: false
|
|
@@ -98558,7 +98558,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98558
98558
|
const destination = contentPath(cache, sri);
|
|
98559
98559
|
const destDir = path$13.dirname(destination);
|
|
98560
98560
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
98561
|
-
moveOperations.set(destination, fs$
|
|
98561
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
98562
98562
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
98563
98563
|
tmp.moved = true;
|
|
98564
98564
|
return tmp.moved;
|
|
@@ -102016,14 +102016,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
102016
102016
|
//#endregion
|
|
102017
102017
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
102018
102018
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102019
|
-
const fs$
|
|
102019
|
+
const fs$8 = require("fs/promises");
|
|
102020
102020
|
const contentPath = require_path();
|
|
102021
102021
|
const { hasContent } = require_read();
|
|
102022
102022
|
module.exports = rm;
|
|
102023
102023
|
async function rm(cache, integrity) {
|
|
102024
102024
|
const content = await hasContent(cache, integrity);
|
|
102025
102025
|
if (content && content.sri) {
|
|
102026
|
-
await fs$
|
|
102026
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
102027
102027
|
recursive: true,
|
|
102028
102028
|
force: true
|
|
102029
102029
|
});
|
|
@@ -102305,8 +102305,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102305
102305
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
102306
102306
|
const { Minipass } = require_commonjs$10();
|
|
102307
102307
|
const EE$2 = require("events").EventEmitter;
|
|
102308
|
-
const fs$
|
|
102309
|
-
const writev = fs$
|
|
102308
|
+
const fs$7 = require("fs");
|
|
102309
|
+
const writev = fs$7.writev;
|
|
102310
102310
|
const _autoClose = Symbol("_autoClose");
|
|
102311
102311
|
const _close = Symbol("_close");
|
|
102312
102312
|
const _ended = Symbol("_ended");
|
|
@@ -102366,7 +102366,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102366
102366
|
throw new TypeError("this is a readable stream");
|
|
102367
102367
|
}
|
|
102368
102368
|
[_open]() {
|
|
102369
|
-
fs$
|
|
102369
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
102370
102370
|
}
|
|
102371
102371
|
[_onopen](er, fd) {
|
|
102372
102372
|
if (er) this[_onerror](er);
|
|
@@ -102385,7 +102385,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102385
102385
|
const buf = this[_makeBuf]();
|
|
102386
102386
|
/* istanbul ignore if */
|
|
102387
102387
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
102388
|
-
fs$
|
|
102388
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
102389
102389
|
}
|
|
102390
102390
|
}
|
|
102391
102391
|
[_onread](er, br, buf) {
|
|
@@ -102397,7 +102397,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102397
102397
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
102398
102398
|
const fd = this[_fd];
|
|
102399
102399
|
this[_fd] = null;
|
|
102400
|
-
fs$
|
|
102400
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
102401
102401
|
}
|
|
102402
102402
|
}
|
|
102403
102403
|
[_onerror](er) {
|
|
@@ -102435,7 +102435,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102435
102435
|
[_open]() {
|
|
102436
102436
|
let threw = true;
|
|
102437
102437
|
try {
|
|
102438
|
-
this[_onopen](null, fs$
|
|
102438
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
102439
102439
|
threw = false;
|
|
102440
102440
|
} finally {
|
|
102441
102441
|
if (threw) this[_close]();
|
|
@@ -102449,7 +102449,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102449
102449
|
do {
|
|
102450
102450
|
const buf = this[_makeBuf]();
|
|
102451
102451
|
/* istanbul ignore next */
|
|
102452
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
102452
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
102453
102453
|
if (!this[_handleChunk](br, buf)) break;
|
|
102454
102454
|
} while (true);
|
|
102455
102455
|
this[_reading] = false;
|
|
@@ -102463,7 +102463,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102463
102463
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
102464
102464
|
const fd = this[_fd];
|
|
102465
102465
|
this[_fd] = null;
|
|
102466
|
-
fs$
|
|
102466
|
+
fs$7.closeSync(fd);
|
|
102467
102467
|
this.emit("close");
|
|
102468
102468
|
}
|
|
102469
102469
|
}
|
|
@@ -102508,7 +102508,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102508
102508
|
this.emit("error", er);
|
|
102509
102509
|
}
|
|
102510
102510
|
[_open]() {
|
|
102511
|
-
fs$
|
|
102511
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
102512
102512
|
}
|
|
102513
102513
|
[_onopen](er, fd) {
|
|
102514
102514
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -102543,7 +102543,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102543
102543
|
return true;
|
|
102544
102544
|
}
|
|
102545
102545
|
[_write](buf) {
|
|
102546
|
-
fs$
|
|
102546
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
102547
102547
|
}
|
|
102548
102548
|
[_onwrite](er, bw) {
|
|
102549
102549
|
if (er) this[_onerror](er);
|
|
@@ -102577,7 +102577,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102577
102577
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
102578
102578
|
const fd = this[_fd];
|
|
102579
102579
|
this[_fd] = null;
|
|
102580
|
-
fs$
|
|
102580
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
102581
102581
|
}
|
|
102582
102582
|
}
|
|
102583
102583
|
};
|
|
@@ -102585,28 +102585,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102585
102585
|
[_open]() {
|
|
102586
102586
|
let fd;
|
|
102587
102587
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
102588
|
-
fd = fs$
|
|
102588
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
102589
102589
|
} catch (er) {
|
|
102590
102590
|
if (er.code === "ENOENT") {
|
|
102591
102591
|
this[_flags] = "w";
|
|
102592
102592
|
return this[_open]();
|
|
102593
102593
|
} else throw er;
|
|
102594
102594
|
}
|
|
102595
|
-
else fd = fs$
|
|
102595
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
102596
102596
|
this[_onopen](null, fd);
|
|
102597
102597
|
}
|
|
102598
102598
|
[_close]() {
|
|
102599
102599
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
102600
102600
|
const fd = this[_fd];
|
|
102601
102601
|
this[_fd] = null;
|
|
102602
|
-
fs$
|
|
102602
|
+
fs$7.closeSync(fd);
|
|
102603
102603
|
this.emit("close");
|
|
102604
102604
|
}
|
|
102605
102605
|
}
|
|
102606
102606
|
[_write](buf) {
|
|
102607
102607
|
let threw = true;
|
|
102608
102608
|
try {
|
|
102609
|
-
this[_onwrite](null, fs$
|
|
102609
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
102610
102610
|
threw = false;
|
|
102611
102611
|
} finally {
|
|
102612
102612
|
if (threw) try {
|
|
@@ -102623,7 +102623,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
102623
102623
|
//#endregion
|
|
102624
102624
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
102625
102625
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102626
|
-
const fs$
|
|
102626
|
+
const fs$6 = require("fs");
|
|
102627
102627
|
const path$9 = require("path");
|
|
102628
102628
|
const EE$1 = require("events").EventEmitter;
|
|
102629
102629
|
const normalizePackageBin = require_lib$21();
|
|
@@ -102679,7 +102679,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102679
102679
|
return this;
|
|
102680
102680
|
}
|
|
102681
102681
|
readPackageJson(pj) {
|
|
102682
|
-
fs$
|
|
102682
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
102683
102683
|
}
|
|
102684
102684
|
onPackageJson(pj, data) {
|
|
102685
102685
|
try {
|
|
@@ -102737,7 +102737,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102737
102737
|
}
|
|
102738
102738
|
readPackageJson(pj) {
|
|
102739
102739
|
try {
|
|
102740
|
-
this.onPackageJson(pj, fs$
|
|
102740
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
102741
102741
|
} catch {}
|
|
102742
102742
|
return this;
|
|
102743
102743
|
}
|
|
@@ -102756,7 +102756,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102756
102756
|
}
|
|
102757
102757
|
};
|
|
102758
102758
|
const readdirNodeModules = (nm, cb) => {
|
|
102759
|
-
fs$
|
|
102759
|
+
fs$6.readdir(nm, (er, set) => {
|
|
102760
102760
|
if (er) cb(er);
|
|
102761
102761
|
else {
|
|
102762
102762
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -102765,7 +102765,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102765
102765
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
102766
102766
|
let count = scopes.length;
|
|
102767
102767
|
scopes.forEach((scope) => {
|
|
102768
|
-
fs$
|
|
102768
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
102769
102769
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
102770
102770
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
102771
102771
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -102776,11 +102776,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102776
102776
|
});
|
|
102777
102777
|
};
|
|
102778
102778
|
const readdirNodeModulesSync = (nm) => {
|
|
102779
|
-
const set = fs$
|
|
102779
|
+
const set = fs$6.readdirSync(nm);
|
|
102780
102780
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
102781
102781
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
102782
102782
|
try {
|
|
102783
|
-
const pkgs = fs$
|
|
102783
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
102784
102784
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
102785
102785
|
} catch (er) {
|
|
102786
102786
|
return [scope];
|
|
@@ -102807,7 +102807,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102807
102807
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102808
102808
|
const bundled = require_lib$12();
|
|
102809
102809
|
const { readFile: readFile$5, readdir: readdir$4, stat: stat$3 } = require("fs/promises");
|
|
102810
|
-
const { resolve: resolve$8, basename: basename$3, dirname: dirname$
|
|
102810
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$7 } = require("path");
|
|
102811
102811
|
const normalizePackageBin = require_lib$21();
|
|
102812
102812
|
const readPackage = ({ path: path$41, packageJsonCache }) => packageJsonCache.has(path$41) ? Promise.resolve(packageJsonCache.get(path$41)) : readFile$5(path$41).then((json) => {
|
|
102813
102813
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -102846,9 +102846,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102846
102846
|
}));
|
|
102847
102847
|
if (pkg) {
|
|
102848
102848
|
if (pkg.bin) {
|
|
102849
|
-
const dir = dirname$
|
|
102849
|
+
const dir = dirname$7(path$43);
|
|
102850
102850
|
const scope = basename$3(dir);
|
|
102851
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
102851
|
+
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
102852
102852
|
const binFiles = [];
|
|
102853
102853
|
Object.keys(pkg.bin).forEach((b) => {
|
|
102854
102854
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -108120,7 +108120,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
108120
108120
|
//#endregion
|
|
108121
108121
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
108122
108122
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
108123
|
-
const fs$
|
|
108123
|
+
const fs$5 = require("fs");
|
|
108124
108124
|
const path$8 = require("path");
|
|
108125
108125
|
const EE = require("events").EventEmitter;
|
|
108126
108126
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -108159,7 +108159,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
108159
108159
|
return ret;
|
|
108160
108160
|
}
|
|
108161
108161
|
start() {
|
|
108162
|
-
fs$
|
|
108162
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
108163
108163
|
return this;
|
|
108164
108164
|
}
|
|
108165
108165
|
isIgnoreFile(e) {
|
|
@@ -108183,7 +108183,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
108183
108183
|
}
|
|
108184
108184
|
addIgnoreFile(file, then) {
|
|
108185
108185
|
const ig = path$8.resolve(this.path, file);
|
|
108186
|
-
fs$
|
|
108186
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
108187
108187
|
}
|
|
108188
108188
|
onReadIgnoreFile(file, data, then) {
|
|
108189
108189
|
const mmopt = {
|
|
@@ -108239,11 +108239,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
108239
108239
|
}
|
|
108240
108240
|
stat({ entry, file, dir }, then) {
|
|
108241
108241
|
const abs = this.path + "/" + entry;
|
|
108242
|
-
fs$
|
|
108242
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
108243
108243
|
if (lstatErr) this.emit("error", lstatErr);
|
|
108244
108244
|
else {
|
|
108245
108245
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
108246
|
-
if (this.follow && isSymbolicLink) fs$
|
|
108246
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
108247
108247
|
if (statErr) this.emit("error", statErr);
|
|
108248
108248
|
else this.onstat({
|
|
108249
108249
|
st: statResult,
|
|
@@ -108297,18 +108297,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
108297
108297
|
};
|
|
108298
108298
|
var WalkerSync = class WalkerSync extends Walker {
|
|
108299
108299
|
start() {
|
|
108300
|
-
this.onReaddir(fs$
|
|
108300
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
108301
108301
|
return this;
|
|
108302
108302
|
}
|
|
108303
108303
|
addIgnoreFile(file, then) {
|
|
108304
108304
|
const ig = path$8.resolve(this.path, file);
|
|
108305
|
-
this.onReadIgnoreFile(file, fs$
|
|
108305
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
108306
108306
|
}
|
|
108307
108307
|
stat({ entry, file, dir }, then) {
|
|
108308
108308
|
const abs = this.path + "/" + entry;
|
|
108309
|
-
let st = fs$
|
|
108309
|
+
let st = fs$5.lstatSync(abs);
|
|
108310
108310
|
const isSymbolicLink = st.isSymbolicLink();
|
|
108311
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
108311
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
108312
108312
|
this.onstat({
|
|
108313
108313
|
st,
|
|
108314
108314
|
entry,
|
|
@@ -108339,7 +108339,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
108339
108339
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
108340
108340
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
108341
108341
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
108342
|
-
const { basename: basename$2, dirname: dirname$
|
|
108342
|
+
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
|
|
108343
108343
|
const { log } = require_lib$29();
|
|
108344
108344
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
108345
108345
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -108372,7 +108372,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108372
108372
|
const normalizePath = (path$38) => path$38.split("\\").join("/");
|
|
108373
108373
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
108374
108374
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
108375
|
-
const ignoreContent = readFile$4(join$
|
|
108375
|
+
const ignoreContent = readFile$4(join$7(root, file), { encoding: "utf8" });
|
|
108376
108376
|
result.push(ignoreContent);
|
|
108377
108377
|
break;
|
|
108378
108378
|
} catch (err) {
|
|
@@ -108381,8 +108381,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108381
108381
|
}
|
|
108382
108382
|
if (!rel) return result;
|
|
108383
108383
|
const firstRel = rel.split(sep, 1)[0];
|
|
108384
|
-
const newRoot = join$
|
|
108385
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
108384
|
+
const newRoot = join$7(root, firstRel);
|
|
108385
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
|
|
108386
108386
|
};
|
|
108387
108387
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
108388
108388
|
constructor(tree, opts) {
|
|
@@ -108411,7 +108411,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108411
108411
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
108412
108412
|
// istanbul ignore else - this does nothing unless we need it to
|
|
108413
108413
|
if (path$39 !== prefix && workspaces.includes(path$39)) {
|
|
108414
|
-
const relpath = relative(options.prefix, dirname$
|
|
108414
|
+
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
108415
108415
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
108416
108416
|
} else if (path$39 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
108417
108417
|
}
|
|
@@ -108449,7 +108449,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108449
108449
|
let ignoreFiles = null;
|
|
108450
108450
|
if (this.tree.workspaces) {
|
|
108451
108451
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
108452
|
-
const entryPath = join$
|
|
108452
|
+
const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
|
|
108453
108453
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
108454
108454
|
defaultRules,
|
|
108455
108455
|
"package.json",
|
|
@@ -108509,7 +108509,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108509
108509
|
if (file.endsWith("/*")) file += "*";
|
|
108510
108510
|
const inverse = `!${file}`;
|
|
108511
108511
|
try {
|
|
108512
|
-
const stat = lstat$1(join$
|
|
108512
|
+
const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
108513
108513
|
if (stat.isFile()) {
|
|
108514
108514
|
strict.unshift(inverse);
|
|
108515
108515
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -108566,7 +108566,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108566
108566
|
walker.start();
|
|
108567
108567
|
});
|
|
108568
108568
|
const relativeFrom = relative(this.root, walker.path);
|
|
108569
|
-
for (const file of bundled) this.result.add(join$
|
|
108569
|
+
for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
|
|
108570
108570
|
}
|
|
108571
108571
|
}
|
|
108572
108572
|
};
|
|
@@ -108590,7 +108590,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
108590
108590
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
108591
108591
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
108592
108592
|
const { log } = require_lib$29();
|
|
108593
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
108593
|
+
const { resolve: resolve$5, dirname: dirname$5, delimiter: delimiter$1 } = require("path");
|
|
108594
108594
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
108595
108595
|
const setPATH = (projectPath, binPaths, env) => {
|
|
108596
108596
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
|
|
@@ -108608,7 +108608,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
108608
108608
|
do {
|
|
108609
108609
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
108610
108610
|
pp = p;
|
|
108611
|
-
p = dirname$
|
|
108611
|
+
p = dirname$5(p);
|
|
108612
108612
|
} while (p !== pp);
|
|
108613
108613
|
pathArr.push(nodeGypPath, PATH);
|
|
108614
108614
|
const pathVal = pathArr.join(delimiter$1);
|
|
@@ -108676,8 +108676,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
108676
108676
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
108677
108677
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
108678
108678
|
const util$2 = require("util");
|
|
108679
|
-
const fs$
|
|
108680
|
-
const { stat } = fs$
|
|
108679
|
+
const fs$4 = require("fs");
|
|
108680
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
108681
108681
|
async function isNodeGypPackage(path) {
|
|
108682
108682
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
108683
108683
|
}
|
|
@@ -119649,7 +119649,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
119649
119649
|
//#endregion
|
|
119650
119650
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
119651
119651
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
119652
|
-
const fs$
|
|
119652
|
+
const fs$3 = require("fs");
|
|
119653
119653
|
const npa = require_npa();
|
|
119654
119654
|
const { URL: URL$2 } = require("url");
|
|
119655
119655
|
const regFromURI = (uri, opts) => {
|
|
@@ -119689,7 +119689,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
119689
119689
|
};
|
|
119690
119690
|
const maybeReadFile = (file) => {
|
|
119691
119691
|
try {
|
|
119692
|
-
return fs$
|
|
119692
|
+
return fs$3.readFileSync(file, "utf8");
|
|
119693
119693
|
} catch (er) {
|
|
119694
119694
|
if (er.code !== "ENOENT") throw er;
|
|
119695
119695
|
return null;
|
|
@@ -135934,7 +135934,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
135934
135934
|
exports.Updater = void 0;
|
|
135935
135935
|
const models_1 = require_dist$4();
|
|
135936
135936
|
const debug_1 = __importDefault(require_src$1());
|
|
135937
|
-
const fs$
|
|
135937
|
+
const fs$2 = __importStar(require("fs"));
|
|
135938
135938
|
const path$7 = __importStar(require("path"));
|
|
135939
135939
|
const package_json_1 = require_package$1();
|
|
135940
135940
|
const config_1 = require_config$1();
|
|
@@ -136005,17 +136005,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
136005
136005
|
}
|
|
136006
136006
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
136007
136007
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
136008
|
-
await targetInfo.verify(fs$
|
|
136008
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
136009
136009
|
log("WRITE %s", targetPath);
|
|
136010
|
-
fs$
|
|
136010
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
136011
136011
|
});
|
|
136012
136012
|
return targetPath;
|
|
136013
136013
|
}
|
|
136014
136014
|
async findCachedTarget(targetInfo, filePath) {
|
|
136015
136015
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
136016
136016
|
try {
|
|
136017
|
-
if (fs$
|
|
136018
|
-
await targetInfo.verify(fs$
|
|
136017
|
+
if (fs$2.existsSync(filePath)) {
|
|
136018
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
136019
136019
|
return filePath;
|
|
136020
136020
|
}
|
|
136021
136021
|
} catch (error) {
|
|
@@ -136025,7 +136025,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
136025
136025
|
loadLocalMetadata(fileName) {
|
|
136026
136026
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
136027
136027
|
log("READ %s", filePath);
|
|
136028
|
-
return fs$
|
|
136028
|
+
return fs$2.readFileSync(filePath);
|
|
136029
136029
|
}
|
|
136030
136030
|
async loadRoot() {
|
|
136031
136031
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -136143,7 +136143,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
136143
136143
|
try {
|
|
136144
136144
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
136145
136145
|
log("WRITE %s", filePath);
|
|
136146
|
-
fs$
|
|
136146
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
136147
136147
|
} catch (error) {
|
|
136148
136148
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
136149
136149
|
}
|
|
@@ -137959,7 +137959,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
137959
137959
|
//#endregion
|
|
137960
137960
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
137961
137961
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
137962
|
-
const { basename: basename$1, dirname: dirname$
|
|
137962
|
+
const { basename: basename$1, dirname: dirname$4 } = require("node:path");
|
|
137963
137963
|
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
137964
137964
|
const PackageJson = require_lib$18();
|
|
137965
137965
|
const cacache = require_lib$14();
|
|
@@ -138008,7 +138008,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
138008
138008
|
this.npmBin = opts.npmBin || "npm";
|
|
138009
138009
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
138010
138010
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
138011
|
-
`--cache=${dirname$
|
|
138011
|
+
`--cache=${dirname$4(this.cache)}`,
|
|
138012
138012
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
138013
138013
|
`--prefer-online=${!!this.preferOnline}`,
|
|
138014
138014
|
`--offline=${!!this.offline}`,
|
|
@@ -138164,7 +138164,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
138164
138164
|
}));
|
|
138165
138165
|
}
|
|
138166
138166
|
async tarballFile(dest) {
|
|
138167
|
-
await mkdir$3(dirname$
|
|
138167
|
+
await mkdir$3(dirname$4(dest), { recursive: true });
|
|
138168
138168
|
return this.#toFile(dest);
|
|
138169
138169
|
}
|
|
138170
138170
|
#extract(dest, tarball) {
|
|
@@ -146585,7 +146585,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
146585
146585
|
}
|
|
146586
146586
|
})();
|
|
146587
146587
|
}));
|
|
146588
|
-
|
|
146588
|
+
//#endregion
|
|
146589
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
146590
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
146589
146591
|
const { promisify } = require("util");
|
|
146590
146592
|
const path$3 = require("path");
|
|
146591
146593
|
const { createHash } = require("crypto");
|
|
@@ -147037,12 +147039,13 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
147037
147039
|
response.writeHead(response.statusCode || 200, headers);
|
|
147038
147040
|
stream.pipe(response);
|
|
147039
147041
|
};
|
|
147040
|
-
}))
|
|
147042
|
+
}));
|
|
147041
147043
|
require_semver();
|
|
147042
147044
|
require_lib();
|
|
147045
|
+
require_src();
|
|
147043
147046
|
//#endregion
|
|
147044
147047
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
147045
|
-
const { join: join$
|
|
147048
|
+
const { join: join$5 } = node_path.default;
|
|
147046
147049
|
//#endregion
|
|
147047
147050
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
147048
147051
|
const localPluginsMap = /* @__PURE__ */ new Map();
|