@pipelab/plugin-construct 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 +344 -341
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2117,8 +2117,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2117
2117
|
completed: false
|
|
2118
2118
|
}
|
|
2119
2119
|
},
|
|
2120
|
-
plugins: DEFAULT_PLUGINS
|
|
2121
|
-
isInternalMigrationBannerClosed: false
|
|
2120
|
+
plugins: DEFAULT_PLUGINS
|
|
2122
2121
|
});
|
|
2123
2122
|
settingsMigratorInternal.createMigrations({
|
|
2124
2123
|
defaultValue: defaultAppSettings,
|
|
@@ -2169,12 +2168,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2169
2168
|
createMigration({
|
|
2170
2169
|
version: "6.0.0",
|
|
2171
2170
|
up: (state) => {
|
|
2172
|
-
const { cacheFolder
|
|
2171
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2173
2172
|
return {
|
|
2174
2173
|
...rest,
|
|
2174
|
+
cacheFolder,
|
|
2175
2175
|
agents: [],
|
|
2176
|
-
plugins: DEFAULT_PLUGINS
|
|
2177
|
-
isInternalMigrationBannerClosed: false
|
|
2176
|
+
plugins: DEFAULT_PLUGINS
|
|
2178
2177
|
};
|
|
2179
2178
|
}
|
|
2180
2179
|
}),
|
|
@@ -2527,7 +2526,8 @@ object({
|
|
|
2527
2526
|
enabled: boolean(),
|
|
2528
2527
|
description: string()
|
|
2529
2528
|
})),
|
|
2530
|
-
|
|
2529
|
+
cacheFolder: optional(string()),
|
|
2530
|
+
tempFolder: optional(string())
|
|
2531
2531
|
});
|
|
2532
2532
|
const ConnectionValidator = looseObject({
|
|
2533
2533
|
id: string(),
|
|
@@ -49954,7 +49954,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49954
49954
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49955
49955
|
module.exports = isexe;
|
|
49956
49956
|
isexe.sync = sync;
|
|
49957
|
-
var fs$
|
|
49957
|
+
var fs$38 = require("fs");
|
|
49958
49958
|
function checkPathExt(path, options) {
|
|
49959
49959
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49960
49960
|
if (!pathext) return true;
|
|
@@ -49971,12 +49971,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49971
49971
|
return checkPathExt(path, options);
|
|
49972
49972
|
}
|
|
49973
49973
|
function isexe(path, options, cb) {
|
|
49974
|
-
fs$
|
|
49974
|
+
fs$38.stat(path, function(er, stat) {
|
|
49975
49975
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49976
49976
|
});
|
|
49977
49977
|
}
|
|
49978
49978
|
function sync(path, options) {
|
|
49979
|
-
return checkStat(fs$
|
|
49979
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49980
49980
|
}
|
|
49981
49981
|
}));
|
|
49982
49982
|
//#endregion
|
|
@@ -49984,14 +49984,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49984
49984
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49985
49985
|
module.exports = isexe;
|
|
49986
49986
|
isexe.sync = sync;
|
|
49987
|
-
var fs$
|
|
49987
|
+
var fs$37 = require("fs");
|
|
49988
49988
|
function isexe(path, options, cb) {
|
|
49989
|
-
fs$
|
|
49989
|
+
fs$37.stat(path, function(er, stat) {
|
|
49990
49990
|
cb(er, er ? false : checkStat(stat, options));
|
|
49991
49991
|
});
|
|
49992
49992
|
}
|
|
49993
49993
|
function sync(path, options) {
|
|
49994
|
-
return checkStat(fs$
|
|
49994
|
+
return checkStat(fs$37.statSync(path), options);
|
|
49995
49995
|
}
|
|
49996
49996
|
function checkStat(stat, options) {
|
|
49997
49997
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50206,16 +50206,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50206
50206
|
//#endregion
|
|
50207
50207
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50208
50208
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50209
|
-
const fs$
|
|
50209
|
+
const fs$36 = require("fs");
|
|
50210
50210
|
const shebangCommand = require_shebang_command();
|
|
50211
50211
|
function readShebang(command) {
|
|
50212
50212
|
const size = 150;
|
|
50213
50213
|
const buffer = Buffer.alloc(size);
|
|
50214
50214
|
let fd;
|
|
50215
50215
|
try {
|
|
50216
|
-
fd = fs$
|
|
50217
|
-
fs$
|
|
50218
|
-
fs$
|
|
50216
|
+
fd = fs$36.openSync(command, "r");
|
|
50217
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50218
|
+
fs$36.closeSync(fd);
|
|
50219
50219
|
} catch (e) {}
|
|
50220
50220
|
return shebangCommand(buffer.toString());
|
|
50221
50221
|
}
|
|
@@ -57172,7 +57172,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57172
57172
|
const { Minipass } = require_minipass$4();
|
|
57173
57173
|
const Pax = require_pax();
|
|
57174
57174
|
const Header = require_header();
|
|
57175
|
-
const fs$
|
|
57175
|
+
const fs$35 = require("fs");
|
|
57176
57176
|
const path$33 = require("path");
|
|
57177
57177
|
const normPath = require_normalize_windows_path();
|
|
57178
57178
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57260,7 +57260,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57260
57260
|
return super.emit(ev, ...data);
|
|
57261
57261
|
}
|
|
57262
57262
|
[LSTAT]() {
|
|
57263
|
-
fs$
|
|
57263
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57264
57264
|
if (er) return this.emit("error", er);
|
|
57265
57265
|
this[ONLSTAT](stat);
|
|
57266
57266
|
});
|
|
@@ -57325,7 +57325,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57325
57325
|
this.end();
|
|
57326
57326
|
}
|
|
57327
57327
|
[SYMLINK]() {
|
|
57328
|
-
fs$
|
|
57328
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57329
57329
|
if (er) return this.emit("error", er);
|
|
57330
57330
|
this[ONREADLINK](linkpath);
|
|
57331
57331
|
});
|
|
@@ -57356,7 +57356,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57356
57356
|
this[OPENFILE]();
|
|
57357
57357
|
}
|
|
57358
57358
|
[OPENFILE]() {
|
|
57359
|
-
fs$
|
|
57359
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57360
57360
|
if (er) return this.emit("error", er);
|
|
57361
57361
|
this[ONOPENFILE](fd);
|
|
57362
57362
|
});
|
|
@@ -57376,13 +57376,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57376
57376
|
}
|
|
57377
57377
|
[READ]() {
|
|
57378
57378
|
const { fd, buf, offset, length, pos } = this;
|
|
57379
|
-
fs$
|
|
57379
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57380
57380
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57381
57381
|
this[ONREAD](bytesRead);
|
|
57382
57382
|
});
|
|
57383
57383
|
}
|
|
57384
57384
|
[CLOSE](cb) {
|
|
57385
|
-
fs$
|
|
57385
|
+
fs$35.close(this.fd, cb);
|
|
57386
57386
|
}
|
|
57387
57387
|
[ONREAD](bytesRead) {
|
|
57388
57388
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57438,19 +57438,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57438
57438
|
});
|
|
57439
57439
|
var WriteEntrySync = class extends WriteEntry {
|
|
57440
57440
|
[LSTAT]() {
|
|
57441
|
-
this[ONLSTAT](fs$
|
|
57441
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57442
57442
|
}
|
|
57443
57443
|
[SYMLINK]() {
|
|
57444
|
-
this[ONREADLINK](fs$
|
|
57444
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57445
57445
|
}
|
|
57446
57446
|
[OPENFILE]() {
|
|
57447
|
-
this[ONOPENFILE](fs$
|
|
57447
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57448
57448
|
}
|
|
57449
57449
|
[READ]() {
|
|
57450
57450
|
let threw = true;
|
|
57451
57451
|
try {
|
|
57452
57452
|
const { fd, buf, offset, length, pos } = this;
|
|
57453
|
-
const bytesRead = fs$
|
|
57453
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57454
57454
|
this[ONREAD](bytesRead);
|
|
57455
57455
|
threw = false;
|
|
57456
57456
|
} finally {
|
|
@@ -57463,7 +57463,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57463
57463
|
cb();
|
|
57464
57464
|
}
|
|
57465
57465
|
[CLOSE](cb) {
|
|
57466
|
-
fs$
|
|
57466
|
+
fs$35.closeSync(this.fd);
|
|
57467
57467
|
cb();
|
|
57468
57468
|
}
|
|
57469
57469
|
};
|
|
@@ -57860,7 +57860,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57860
57860
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57861
57861
|
const WRITE = Symbol("write");
|
|
57862
57862
|
const ONDRAIN = Symbol("ondrain");
|
|
57863
|
-
const fs$
|
|
57863
|
+
const fs$34 = require("fs");
|
|
57864
57864
|
const path$32 = require("path");
|
|
57865
57865
|
const warner = require_warn_mixin();
|
|
57866
57866
|
const normPath = require_normalize_windows_path();
|
|
@@ -57949,7 +57949,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57949
57949
|
[STAT](job) {
|
|
57950
57950
|
job.pending = true;
|
|
57951
57951
|
this[JOBS] += 1;
|
|
57952
|
-
fs$
|
|
57952
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57953
57953
|
job.pending = false;
|
|
57954
57954
|
this[JOBS] -= 1;
|
|
57955
57955
|
if (er) this.emit("error", er);
|
|
@@ -57965,7 +57965,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57965
57965
|
[READDIR](job) {
|
|
57966
57966
|
job.pending = true;
|
|
57967
57967
|
this[JOBS] += 1;
|
|
57968
|
-
fs$
|
|
57968
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57969
57969
|
job.pending = false;
|
|
57970
57970
|
this[JOBS] -= 1;
|
|
57971
57971
|
if (er) return this.emit("error", er);
|
|
@@ -58083,10 +58083,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58083
58083
|
resume() {}
|
|
58084
58084
|
[STAT](job) {
|
|
58085
58085
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58086
|
-
this[ONSTAT](job, fs$
|
|
58086
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58087
58087
|
}
|
|
58088
58088
|
[READDIR](job, stat) {
|
|
58089
|
-
this[ONREADDIR](job, fs$
|
|
58089
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58090
58090
|
}
|
|
58091
58091
|
[PIPE](job) {
|
|
58092
58092
|
const source = job.entry;
|
|
@@ -58542,8 +58542,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58542
58542
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58543
58543
|
const MiniPass = require_minipass$2();
|
|
58544
58544
|
const EE$11 = require("events").EventEmitter;
|
|
58545
|
-
const fs$
|
|
58546
|
-
let writev = fs$
|
|
58545
|
+
const fs$33 = require("fs");
|
|
58546
|
+
let writev = fs$33.writev;
|
|
58547
58547
|
/* istanbul ignore next */
|
|
58548
58548
|
if (!writev) {
|
|
58549
58549
|
const binding = process.binding("fs");
|
|
@@ -58614,7 +58614,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58614
58614
|
throw new TypeError("this is a readable stream");
|
|
58615
58615
|
}
|
|
58616
58616
|
[_open]() {
|
|
58617
|
-
fs$
|
|
58617
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58618
58618
|
}
|
|
58619
58619
|
[_onopen](er, fd) {
|
|
58620
58620
|
if (er) this[_onerror](er);
|
|
@@ -58633,7 +58633,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58633
58633
|
const buf = this[_makeBuf]();
|
|
58634
58634
|
/* istanbul ignore if */
|
|
58635
58635
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58636
|
-
fs$
|
|
58636
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58637
58637
|
}
|
|
58638
58638
|
}
|
|
58639
58639
|
[_onread](er, br, buf) {
|
|
@@ -58645,7 +58645,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58645
58645
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58646
58646
|
const fd = this[_fd];
|
|
58647
58647
|
this[_fd] = null;
|
|
58648
|
-
fs$
|
|
58648
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58649
58649
|
}
|
|
58650
58650
|
}
|
|
58651
58651
|
[_onerror](er) {
|
|
@@ -58683,7 +58683,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58683
58683
|
[_open]() {
|
|
58684
58684
|
let threw = true;
|
|
58685
58685
|
try {
|
|
58686
|
-
this[_onopen](null, fs$
|
|
58686
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58687
58687
|
threw = false;
|
|
58688
58688
|
} finally {
|
|
58689
58689
|
if (threw) this[_close]();
|
|
@@ -58697,7 +58697,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58697
58697
|
do {
|
|
58698
58698
|
const buf = this[_makeBuf]();
|
|
58699
58699
|
/* istanbul ignore next */
|
|
58700
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58700
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58701
58701
|
if (!this[_handleChunk](br, buf)) break;
|
|
58702
58702
|
} while (true);
|
|
58703
58703
|
this[_reading] = false;
|
|
@@ -58711,7 +58711,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58711
58711
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58712
58712
|
const fd = this[_fd];
|
|
58713
58713
|
this[_fd] = null;
|
|
58714
|
-
fs$
|
|
58714
|
+
fs$33.closeSync(fd);
|
|
58715
58715
|
this.emit("close");
|
|
58716
58716
|
}
|
|
58717
58717
|
}
|
|
@@ -58756,7 +58756,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58756
58756
|
this.emit("error", er);
|
|
58757
58757
|
}
|
|
58758
58758
|
[_open]() {
|
|
58759
|
-
fs$
|
|
58759
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58760
58760
|
}
|
|
58761
58761
|
[_onopen](er, fd) {
|
|
58762
58762
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58791,7 +58791,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58791
58791
|
return true;
|
|
58792
58792
|
}
|
|
58793
58793
|
[_write](buf) {
|
|
58794
|
-
fs$
|
|
58794
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58795
58795
|
}
|
|
58796
58796
|
[_onwrite](er, bw) {
|
|
58797
58797
|
if (er) this[_onerror](er);
|
|
@@ -58825,7 +58825,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58825
58825
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58826
58826
|
const fd = this[_fd];
|
|
58827
58827
|
this[_fd] = null;
|
|
58828
|
-
fs$
|
|
58828
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58829
58829
|
}
|
|
58830
58830
|
}
|
|
58831
58831
|
};
|
|
@@ -58833,28 +58833,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58833
58833
|
[_open]() {
|
|
58834
58834
|
let fd;
|
|
58835
58835
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58836
|
-
fd = fs$
|
|
58836
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58837
58837
|
} catch (er) {
|
|
58838
58838
|
if (er.code === "ENOENT") {
|
|
58839
58839
|
this[_flags] = "w";
|
|
58840
58840
|
return this[_open]();
|
|
58841
58841
|
} else throw er;
|
|
58842
58842
|
}
|
|
58843
|
-
else fd = fs$
|
|
58843
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58844
58844
|
this[_onopen](null, fd);
|
|
58845
58845
|
}
|
|
58846
58846
|
[_close]() {
|
|
58847
58847
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58848
58848
|
const fd = this[_fd];
|
|
58849
58849
|
this[_fd] = null;
|
|
58850
|
-
fs$
|
|
58850
|
+
fs$33.closeSync(fd);
|
|
58851
58851
|
this.emit("close");
|
|
58852
58852
|
}
|
|
58853
58853
|
}
|
|
58854
58854
|
[_write](buf) {
|
|
58855
58855
|
let threw = true;
|
|
58856
58856
|
try {
|
|
58857
|
-
this[_onwrite](null, fs$
|
|
58857
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58858
58858
|
threw = false;
|
|
58859
58859
|
} finally {
|
|
58860
58860
|
if (threw) try {
|
|
@@ -59219,7 +59219,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59219
59219
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59220
59220
|
const hlo = require_high_level_opt();
|
|
59221
59221
|
const Parser = require_parse$4();
|
|
59222
|
-
const fs$
|
|
59222
|
+
const fs$32 = require("fs");
|
|
59223
59223
|
const fsm = require_fs_minipass();
|
|
59224
59224
|
const path$31 = require("path");
|
|
59225
59225
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59260,15 +59260,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59260
59260
|
let threw = true;
|
|
59261
59261
|
let fd;
|
|
59262
59262
|
try {
|
|
59263
|
-
const stat = fs$
|
|
59263
|
+
const stat = fs$32.statSync(file);
|
|
59264
59264
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59265
|
-
if (stat.size < readSize) p.end(fs$
|
|
59265
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59266
59266
|
else {
|
|
59267
59267
|
let pos = 0;
|
|
59268
59268
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59269
|
-
fd = fs$
|
|
59269
|
+
fd = fs$32.openSync(file, "r");
|
|
59270
59270
|
while (pos < stat.size) {
|
|
59271
|
-
const bytesRead = fs$
|
|
59271
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59272
59272
|
pos += bytesRead;
|
|
59273
59273
|
p.write(buf.slice(0, bytesRead));
|
|
59274
59274
|
}
|
|
@@ -59277,7 +59277,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59277
59277
|
threw = false;
|
|
59278
59278
|
} finally {
|
|
59279
59279
|
if (threw && fd) try {
|
|
59280
|
-
fs$
|
|
59280
|
+
fs$32.closeSync(fd);
|
|
59281
59281
|
} catch (er) {}
|
|
59282
59282
|
}
|
|
59283
59283
|
};
|
|
@@ -59288,7 +59288,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59288
59288
|
const p = new Promise((resolve, reject) => {
|
|
59289
59289
|
parse.on("error", reject);
|
|
59290
59290
|
parse.on("end", resolve);
|
|
59291
|
-
fs$
|
|
59291
|
+
fs$32.stat(file, (er, stat) => {
|
|
59292
59292
|
if (er) reject(er);
|
|
59293
59293
|
else {
|
|
59294
59294
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59380,7 +59380,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59380
59380
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59381
59381
|
const hlo = require_high_level_opt();
|
|
59382
59382
|
const Pack = require_pack$1();
|
|
59383
|
-
const fs$
|
|
59383
|
+
const fs$31 = require("fs");
|
|
59384
59384
|
const fsm = require_fs_minipass();
|
|
59385
59385
|
const t = require_list();
|
|
59386
59386
|
const path$29 = require("path");
|
|
@@ -59400,16 +59400,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59400
59400
|
let position;
|
|
59401
59401
|
try {
|
|
59402
59402
|
try {
|
|
59403
|
-
fd = fs$
|
|
59403
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59404
59404
|
} catch (er) {
|
|
59405
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59405
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59406
59406
|
else throw er;
|
|
59407
59407
|
}
|
|
59408
|
-
const st = fs$
|
|
59408
|
+
const st = fs$31.fstatSync(fd);
|
|
59409
59409
|
const headBuf = Buffer.alloc(512);
|
|
59410
59410
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59411
59411
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59412
|
-
bytes = fs$
|
|
59412
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59413
59413
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59414
59414
|
if (!bytes) break POSITION;
|
|
59415
59415
|
}
|
|
@@ -59424,7 +59424,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59424
59424
|
streamSync(opt, p, position, fd, files);
|
|
59425
59425
|
} finally {
|
|
59426
59426
|
if (threw) try {
|
|
59427
|
-
fs$
|
|
59427
|
+
fs$31.closeSync(fd);
|
|
59428
59428
|
} catch (er) {}
|
|
59429
59429
|
}
|
|
59430
59430
|
};
|
|
@@ -59441,7 +59441,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59441
59441
|
const p = new Pack(opt);
|
|
59442
59442
|
const getPos = (fd, size, cb_) => {
|
|
59443
59443
|
const cb = (er, pos) => {
|
|
59444
|
-
if (er) fs$
|
|
59444
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59445
59445
|
else cb_(null, pos);
|
|
59446
59446
|
};
|
|
59447
59447
|
let position = 0;
|
|
@@ -59451,7 +59451,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59451
59451
|
const onread = (er, bytes) => {
|
|
59452
59452
|
if (er) return cb(er);
|
|
59453
59453
|
bufPos += bytes;
|
|
59454
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59454
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59455
59455
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59456
59456
|
if (bufPos < 512) return cb(null, position);
|
|
59457
59457
|
const h = new Header(headBuf);
|
|
@@ -59462,9 +59462,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59462
59462
|
if (position >= size) return cb(null, position);
|
|
59463
59463
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59464
59464
|
bufPos = 0;
|
|
59465
|
-
fs$
|
|
59465
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59466
59466
|
};
|
|
59467
|
-
fs$
|
|
59467
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59468
59468
|
};
|
|
59469
59469
|
const promise = new Promise((resolve, reject) => {
|
|
59470
59470
|
p.on("error", reject);
|
|
@@ -59472,11 +59472,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59472
59472
|
const onopen = (er, fd) => {
|
|
59473
59473
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59474
59474
|
flag = "w+";
|
|
59475
|
-
return fs$
|
|
59475
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59476
59476
|
}
|
|
59477
59477
|
if (er) return reject(er);
|
|
59478
|
-
fs$
|
|
59479
|
-
if (er) return fs$
|
|
59478
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59479
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59480
59480
|
getPos(fd, st.size, (er, position) => {
|
|
59481
59481
|
if (er) return reject(er);
|
|
59482
59482
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59490,7 +59490,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59490
59490
|
});
|
|
59491
59491
|
});
|
|
59492
59492
|
};
|
|
59493
|
-
fs$
|
|
59493
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59494
59494
|
});
|
|
59495
59495
|
return cb ? promise.then(cb, cb) : promise;
|
|
59496
59496
|
};
|
|
@@ -59543,32 +59543,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59543
59543
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59544
59544
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59545
59545
|
const { promisify: promisify$1 } = require("util");
|
|
59546
|
-
const fs$
|
|
59546
|
+
const fs$30 = require("fs");
|
|
59547
59547
|
const optsArg = (opts) => {
|
|
59548
59548
|
if (!opts) opts = {
|
|
59549
59549
|
mode: 511,
|
|
59550
|
-
fs: fs$
|
|
59550
|
+
fs: fs$30
|
|
59551
59551
|
};
|
|
59552
59552
|
else if (typeof opts === "object") opts = {
|
|
59553
59553
|
mode: 511,
|
|
59554
|
-
fs: fs$
|
|
59554
|
+
fs: fs$30,
|
|
59555
59555
|
...opts
|
|
59556
59556
|
};
|
|
59557
59557
|
else if (typeof opts === "number") opts = {
|
|
59558
59558
|
mode: opts,
|
|
59559
|
-
fs: fs$
|
|
59559
|
+
fs: fs$30
|
|
59560
59560
|
};
|
|
59561
59561
|
else if (typeof opts === "string") opts = {
|
|
59562
59562
|
mode: parseInt(opts, 8),
|
|
59563
|
-
fs: fs$
|
|
59563
|
+
fs: fs$30
|
|
59564
59564
|
};
|
|
59565
59565
|
else throw new TypeError("invalid options argument");
|
|
59566
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59566
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59567
59567
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59568
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59568
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59569
59569
|
opts.statAsync = promisify$1(opts.stat);
|
|
59570
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59571
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59570
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59571
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59572
59572
|
return opts;
|
|
59573
59573
|
};
|
|
59574
59574
|
module.exports = optsArg;
|
|
@@ -59599,17 +59599,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59599
59599
|
//#endregion
|
|
59600
59600
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59601
59601
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59602
|
-
const { dirname: dirname$
|
|
59602
|
+
const { dirname: dirname$15 } = require("path");
|
|
59603
59603
|
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59604
59604
|
if (path$82 === parent) return Promise.resolve();
|
|
59605
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59605
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$15(parent), parent) : void 0);
|
|
59606
59606
|
};
|
|
59607
59607
|
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59608
59608
|
if (path$83 === parent) return void 0;
|
|
59609
59609
|
try {
|
|
59610
59610
|
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59611
59611
|
} catch (er) {
|
|
59612
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59612
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$15(parent), parent) : void 0;
|
|
59613
59613
|
}
|
|
59614
59614
|
};
|
|
59615
59615
|
module.exports = {
|
|
@@ -59620,10 +59620,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59620
59620
|
//#endregion
|
|
59621
59621
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59622
59622
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59623
|
-
const { dirname: dirname$
|
|
59623
|
+
const { dirname: dirname$14 } = require("path");
|
|
59624
59624
|
const mkdirpManual = (path$80, opts, made) => {
|
|
59625
59625
|
opts.recursive = false;
|
|
59626
|
-
const parent = dirname$
|
|
59626
|
+
const parent = dirname$14(path$80);
|
|
59627
59627
|
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59628
59628
|
if (er.code !== "EISDIR") throw er;
|
|
59629
59629
|
});
|
|
@@ -59639,7 +59639,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59639
59639
|
});
|
|
59640
59640
|
};
|
|
59641
59641
|
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59642
|
-
const parent = dirname$
|
|
59642
|
+
const parent = dirname$14(path$81);
|
|
59643
59643
|
opts.recursive = false;
|
|
59644
59644
|
if (parent === path$81) try {
|
|
59645
59645
|
return opts.mkdirSync(path$81, opts);
|
|
@@ -59668,12 +59668,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59668
59668
|
//#endregion
|
|
59669
59669
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59670
59670
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59671
|
-
const { dirname: dirname$
|
|
59671
|
+
const { dirname: dirname$13 } = require("path");
|
|
59672
59672
|
const { findMade, findMadeSync } = require_find_made();
|
|
59673
59673
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59674
59674
|
const mkdirpNative = (path$78, opts) => {
|
|
59675
59675
|
opts.recursive = true;
|
|
59676
|
-
if (dirname$
|
|
59676
|
+
if (dirname$13(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59677
59677
|
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59678
59678
|
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59679
59679
|
else throw er;
|
|
@@ -59681,7 +59681,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59681
59681
|
};
|
|
59682
59682
|
const mkdirpNativeSync = (path$79, opts) => {
|
|
59683
59683
|
opts.recursive = true;
|
|
59684
|
-
if (dirname$
|
|
59684
|
+
if (dirname$13(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59685
59685
|
const made = findMadeSync(opts, path$79);
|
|
59686
59686
|
try {
|
|
59687
59687
|
opts.mkdirSync(path$79, opts);
|
|
@@ -59699,12 +59699,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59699
59699
|
//#endregion
|
|
59700
59700
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59701
59701
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59702
|
-
const fs$
|
|
59702
|
+
const fs$29 = require("fs");
|
|
59703
59703
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59704
59704
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59705
59705
|
module.exports = {
|
|
59706
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59707
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59706
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59707
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59708
59708
|
};
|
|
59709
59709
|
}));
|
|
59710
59710
|
//#endregion
|
|
@@ -59735,17 +59735,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59735
59735
|
//#endregion
|
|
59736
59736
|
//#region ../../node_modules/chownr/chownr.js
|
|
59737
59737
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59738
|
-
const fs$
|
|
59738
|
+
const fs$28 = require("fs");
|
|
59739
59739
|
const path$28 = require("path");
|
|
59740
59740
|
/* istanbul ignore next */
|
|
59741
|
-
const LCHOWN = fs$
|
|
59741
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59742
59742
|
/* istanbul ignore next */
|
|
59743
|
-
const LCHOWNSYNC = fs$
|
|
59743
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59744
59744
|
/* istanbul ignore next */
|
|
59745
|
-
const needEISDIRHandled = fs$
|
|
59745
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59746
59746
|
const lchownSync = (path$70, uid, gid) => {
|
|
59747
59747
|
try {
|
|
59748
|
-
return fs$
|
|
59748
|
+
return fs$28[LCHOWNSYNC](path$70, uid, gid);
|
|
59749
59749
|
} catch (er) {
|
|
59750
59750
|
if (er.code !== "ENOENT") throw er;
|
|
59751
59751
|
}
|
|
@@ -59753,7 +59753,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59753
59753
|
/* istanbul ignore next */
|
|
59754
59754
|
const chownSync = (path$71, uid, gid) => {
|
|
59755
59755
|
try {
|
|
59756
|
-
return fs$
|
|
59756
|
+
return fs$28.chownSync(path$71, uid, gid);
|
|
59757
59757
|
} catch (er) {
|
|
59758
59758
|
if (er.code !== "ENOENT") throw er;
|
|
59759
59759
|
}
|
|
@@ -59761,7 +59761,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59761
59761
|
/* istanbul ignore next */
|
|
59762
59762
|
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59763
59763
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59764
|
-
else fs$
|
|
59764
|
+
else fs$28.chown(path$72, uid, gid, cb);
|
|
59765
59765
|
} : (_, __, ___, cb) => cb;
|
|
59766
59766
|
/* istanbul ignore next */
|
|
59767
59767
|
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
@@ -59773,17 +59773,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59773
59773
|
}
|
|
59774
59774
|
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59775
59775
|
const nodeVersion = process.version;
|
|
59776
|
-
let readdir = (path$75, options, cb) => fs$
|
|
59777
|
-
let readdirSync = (path$76, options) => fs$
|
|
59776
|
+
let readdir = (path$75, options, cb) => fs$28.readdir(path$75, options, cb);
|
|
59777
|
+
let readdirSync = (path$76, options) => fs$28.readdirSync(path$76, options);
|
|
59778
59778
|
/* istanbul ignore next */
|
|
59779
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$
|
|
59779
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$28.readdir(path$77, cb);
|
|
59780
59780
|
const chown = (cpath, uid, gid, cb) => {
|
|
59781
|
-
fs$
|
|
59781
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59782
59782
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59783
59783
|
}));
|
|
59784
59784
|
};
|
|
59785
59785
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59786
|
-
if (typeof child === "string") return fs$
|
|
59786
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59787
59787
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59788
59788
|
stats.name = child;
|
|
59789
59789
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59813,7 +59813,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59813
59813
|
};
|
|
59814
59814
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59815
59815
|
if (typeof child === "string") try {
|
|
59816
|
-
const stats = fs$
|
|
59816
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
59817
59817
|
stats.name = child;
|
|
59818
59818
|
child = stats;
|
|
59819
59819
|
} catch (er) {
|
|
@@ -59842,7 +59842,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59842
59842
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59843
59843
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59844
59844
|
const mkdirp = require_mkdirp();
|
|
59845
|
-
const fs$
|
|
59845
|
+
const fs$27 = require("fs");
|
|
59846
59846
|
const path$27 = require("path");
|
|
59847
59847
|
const chownr = require_chownr();
|
|
59848
59848
|
const normPath = require_normalize_windows_path();
|
|
@@ -59869,7 +59869,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59869
59869
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59870
59870
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59871
59871
|
const checkCwd = (dir, cb) => {
|
|
59872
|
-
fs$
|
|
59872
|
+
fs$27.stat(dir, (er, st) => {
|
|
59873
59873
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59874
59874
|
cb(er);
|
|
59875
59875
|
});
|
|
@@ -59891,7 +59891,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59891
59891
|
else {
|
|
59892
59892
|
cSet(cache, dir, true);
|
|
59893
59893
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59894
|
-
else if (needChmod) fs$
|
|
59894
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59895
59895
|
else cb();
|
|
59896
59896
|
}
|
|
59897
59897
|
};
|
|
@@ -59905,17 +59905,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59905
59905
|
const p = parts.shift();
|
|
59906
59906
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59907
59907
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59908
|
-
fs$
|
|
59908
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59909
59909
|
};
|
|
59910
59910
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59911
|
-
if (er) fs$
|
|
59911
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59912
59912
|
if (statEr) {
|
|
59913
59913
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59914
59914
|
cb(statEr);
|
|
59915
59915
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59916
|
-
else if (unlink) fs$
|
|
59916
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59917
59917
|
if (er) return cb(er);
|
|
59918
|
-
fs$
|
|
59918
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59919
59919
|
});
|
|
59920
59920
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59921
59921
|
else cb(er);
|
|
@@ -59929,7 +59929,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59929
59929
|
let ok = false;
|
|
59930
59930
|
let code = "ENOTDIR";
|
|
59931
59931
|
try {
|
|
59932
|
-
ok = fs$
|
|
59932
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59933
59933
|
} catch (er) {
|
|
59934
59934
|
code = er.code;
|
|
59935
59935
|
} finally {
|
|
@@ -59951,7 +59951,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59951
59951
|
const done = (created) => {
|
|
59952
59952
|
cSet(cache, dir, true);
|
|
59953
59953
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59954
|
-
if (needChmod) fs$
|
|
59954
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59955
59955
|
};
|
|
59956
59956
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59957
59957
|
if (dir === cwd) {
|
|
@@ -59965,17 +59965,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59965
59965
|
part = normPath(path$27.resolve(part));
|
|
59966
59966
|
if (cGet(cache, part)) continue;
|
|
59967
59967
|
try {
|
|
59968
|
-
fs$
|
|
59968
|
+
fs$27.mkdirSync(part, mode);
|
|
59969
59969
|
created = created || part;
|
|
59970
59970
|
cSet(cache, part, true);
|
|
59971
59971
|
} catch (er) {
|
|
59972
|
-
const st = fs$
|
|
59972
|
+
const st = fs$27.lstatSync(part);
|
|
59973
59973
|
if (st.isDirectory()) {
|
|
59974
59974
|
cSet(cache, part, true);
|
|
59975
59975
|
continue;
|
|
59976
59976
|
} else if (unlink) {
|
|
59977
|
-
fs$
|
|
59978
|
-
fs$
|
|
59977
|
+
fs$27.unlinkSync(part);
|
|
59978
|
+
fs$27.mkdirSync(part, mode);
|
|
59979
59979
|
created = created || part;
|
|
59980
59980
|
cSet(cache, part, true);
|
|
59981
59981
|
continue;
|
|
@@ -60001,14 +60001,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60001
60001
|
const assert$1 = require("assert");
|
|
60002
60002
|
const normalize = require_normalize_unicode();
|
|
60003
60003
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60004
|
-
const { join: join$
|
|
60004
|
+
const { join: join$19 } = require("path");
|
|
60005
60005
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60006
60006
|
module.exports = () => {
|
|
60007
60007
|
const queues = /* @__PURE__ */ new Map();
|
|
60008
60008
|
const reservations = /* @__PURE__ */ new Map();
|
|
60009
60009
|
const getDirs = (path$61) => {
|
|
60010
60010
|
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
60011
|
-
if (set.length) path$62 = join$
|
|
60011
|
+
if (set.length) path$62 = join$19(set[set.length - 1], path$62);
|
|
60012
60012
|
set.push(path$62 || "/");
|
|
60013
60013
|
return set;
|
|
60014
60014
|
}, []);
|
|
@@ -60062,7 +60062,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60062
60062
|
};
|
|
60063
60063
|
const reserve = (paths, fn) => {
|
|
60064
60064
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60065
|
-
return stripSlashes(join$
|
|
60065
|
+
return stripSlashes(join$19(normalize(p))).toLowerCase();
|
|
60066
60066
|
});
|
|
60067
60067
|
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60068
60068
|
reservations.set(fn, {
|
|
@@ -60104,7 +60104,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60104
60104
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60105
60105
|
const assert = require("assert");
|
|
60106
60106
|
const Parser = require_parse$4();
|
|
60107
|
-
const fs$
|
|
60107
|
+
const fs$26 = require("fs");
|
|
60108
60108
|
const fsm = require_fs_minipass();
|
|
60109
60109
|
const path$26 = require("path");
|
|
60110
60110
|
const mkdir = require_mkdir();
|
|
@@ -60145,19 +60145,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60145
60145
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60146
60146
|
/* istanbul ignore next */
|
|
60147
60147
|
const unlinkFile = (path$57, cb) => {
|
|
60148
|
-
if (!isWindows) return fs$
|
|
60148
|
+
if (!isWindows) return fs$26.unlink(path$57, cb);
|
|
60149
60149
|
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60150
|
-
fs$
|
|
60150
|
+
fs$26.rename(path$57, name, (er) => {
|
|
60151
60151
|
if (er) return cb(er);
|
|
60152
|
-
fs$
|
|
60152
|
+
fs$26.unlink(name, cb);
|
|
60153
60153
|
});
|
|
60154
60154
|
};
|
|
60155
60155
|
/* istanbul ignore next */
|
|
60156
60156
|
const unlinkFileSync = (path$58) => {
|
|
60157
|
-
if (!isWindows) return fs$
|
|
60157
|
+
if (!isWindows) return fs$26.unlinkSync(path$58);
|
|
60158
60158
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60159
|
-
fs$
|
|
60160
|
-
fs$
|
|
60159
|
+
fs$26.renameSync(path$58, name);
|
|
60160
|
+
fs$26.unlinkSync(name);
|
|
60161
60161
|
};
|
|
60162
60162
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60163
60163
|
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
@@ -60343,7 +60343,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60343
60343
|
autoClose: false
|
|
60344
60344
|
});
|
|
60345
60345
|
stream.on("error", (er) => {
|
|
60346
|
-
if (stream.fd) fs$
|
|
60346
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60347
60347
|
stream.write = () => true;
|
|
60348
60348
|
this[ONERROR](er, entry);
|
|
60349
60349
|
fullyDone();
|
|
@@ -60352,12 +60352,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60352
60352
|
const done = (er) => {
|
|
60353
60353
|
if (er) {
|
|
60354
60354
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60355
|
-
if (stream.fd) fs$
|
|
60355
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60356
60356
|
this[ONERROR](er, entry);
|
|
60357
60357
|
fullyDone();
|
|
60358
60358
|
return;
|
|
60359
60359
|
}
|
|
60360
|
-
if (--actions === 0) fs$
|
|
60360
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60361
60361
|
if (er) this[ONERROR](er, entry);
|
|
60362
60362
|
else this[UNPEND]();
|
|
60363
60363
|
fullyDone();
|
|
@@ -60370,13 +60370,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60370
60370
|
actions++;
|
|
60371
60371
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60372
60372
|
const mtime = entry.mtime;
|
|
60373
|
-
fs$
|
|
60373
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60374
60374
|
}
|
|
60375
60375
|
if (this[DOCHOWN](entry)) {
|
|
60376
60376
|
actions++;
|
|
60377
60377
|
const uid = this[UID](entry);
|
|
60378
60378
|
const gid = this[GID](entry);
|
|
60379
|
-
fs$
|
|
60379
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60380
60380
|
}
|
|
60381
60381
|
done();
|
|
60382
60382
|
});
|
|
@@ -60408,11 +60408,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60408
60408
|
};
|
|
60409
60409
|
if (entry.mtime && !this.noMtime) {
|
|
60410
60410
|
actions++;
|
|
60411
|
-
fs$
|
|
60411
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60412
60412
|
}
|
|
60413
60413
|
if (this[DOCHOWN](entry)) {
|
|
60414
60414
|
actions++;
|
|
60415
|
-
fs$
|
|
60415
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60416
60416
|
}
|
|
60417
60417
|
done();
|
|
60418
60418
|
});
|
|
@@ -60485,7 +60485,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60485
60485
|
afterMakeParent();
|
|
60486
60486
|
};
|
|
60487
60487
|
const afterMakeParent = () => {
|
|
60488
|
-
fs$
|
|
60488
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60489
60489
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60490
60490
|
this[SKIP](entry);
|
|
60491
60491
|
done();
|
|
@@ -60497,9 +60497,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60497
60497
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60498
60498
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60499
60499
|
if (!needChmod) return afterChmod();
|
|
60500
|
-
return fs$
|
|
60500
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60501
60501
|
}
|
|
60502
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60502
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60503
60503
|
}
|
|
60504
60504
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60505
60505
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60525,7 +60525,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60525
60525
|
}
|
|
60526
60526
|
}
|
|
60527
60527
|
[LINK](entry, linkpath, link, done) {
|
|
60528
|
-
fs$
|
|
60528
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60529
60529
|
if (er) this[ONERROR](er, entry);
|
|
60530
60530
|
else {
|
|
60531
60531
|
this[UNPEND]();
|
|
@@ -60560,17 +60560,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60560
60560
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60561
60561
|
}
|
|
60562
60562
|
}
|
|
60563
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60563
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60564
60564
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60565
60565
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60566
60566
|
if (st.isDirectory()) {
|
|
60567
60567
|
if (entry.type === "Directory") {
|
|
60568
60568
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60569
|
-
fs$
|
|
60569
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60570
60570
|
}) : [];
|
|
60571
60571
|
return this[MAKEFS](er, entry);
|
|
60572
60572
|
}
|
|
60573
|
-
const [er] = callSync(() => fs$
|
|
60573
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60574
60574
|
this[MAKEFS](er, entry);
|
|
60575
60575
|
}
|
|
60576
60576
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60581,7 +60581,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60581
60581
|
const oner = (er) => {
|
|
60582
60582
|
let closeError;
|
|
60583
60583
|
try {
|
|
60584
|
-
fs$
|
|
60584
|
+
fs$26.closeSync(fd);
|
|
60585
60585
|
} catch (e) {
|
|
60586
60586
|
closeError = e;
|
|
60587
60587
|
}
|
|
@@ -60590,7 +60590,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60590
60590
|
};
|
|
60591
60591
|
let fd;
|
|
60592
60592
|
try {
|
|
60593
|
-
fd = fs$
|
|
60593
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60594
60594
|
} catch (er) {
|
|
60595
60595
|
return oner(er);
|
|
60596
60596
|
}
|
|
@@ -60601,7 +60601,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60601
60601
|
}
|
|
60602
60602
|
tx.on("data", (chunk) => {
|
|
60603
60603
|
try {
|
|
60604
|
-
fs$
|
|
60604
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60605
60605
|
} catch (er) {
|
|
60606
60606
|
oner(er);
|
|
60607
60607
|
}
|
|
@@ -60612,10 +60612,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60612
60612
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60613
60613
|
const mtime = entry.mtime;
|
|
60614
60614
|
try {
|
|
60615
|
-
fs$
|
|
60615
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60616
60616
|
} catch (futimeser) {
|
|
60617
60617
|
try {
|
|
60618
|
-
fs$
|
|
60618
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60619
60619
|
} catch (utimeser) {
|
|
60620
60620
|
er = futimeser;
|
|
60621
60621
|
}
|
|
@@ -60625,10 +60625,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60625
60625
|
const uid = this[UID](entry);
|
|
60626
60626
|
const gid = this[GID](entry);
|
|
60627
60627
|
try {
|
|
60628
|
-
fs$
|
|
60628
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60629
60629
|
} catch (fchowner) {
|
|
60630
60630
|
try {
|
|
60631
|
-
fs$
|
|
60631
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60632
60632
|
} catch (chowner) {
|
|
60633
60633
|
er = er || fchowner;
|
|
60634
60634
|
}
|
|
@@ -60646,10 +60646,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60646
60646
|
return;
|
|
60647
60647
|
}
|
|
60648
60648
|
if (entry.mtime && !this.noMtime) try {
|
|
60649
|
-
fs$
|
|
60649
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60650
60650
|
} catch (er) {}
|
|
60651
60651
|
if (this[DOCHOWN](entry)) try {
|
|
60652
|
-
fs$
|
|
60652
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60653
60653
|
} catch (er) {}
|
|
60654
60654
|
done();
|
|
60655
60655
|
entry.resume();
|
|
@@ -60674,7 +60674,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60674
60674
|
}
|
|
60675
60675
|
[LINK](entry, linkpath, link, done) {
|
|
60676
60676
|
try {
|
|
60677
|
-
fs$
|
|
60677
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60678
60678
|
done();
|
|
60679
60679
|
entry.resume();
|
|
60680
60680
|
} catch (er) {
|
|
@@ -60690,7 +60690,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60690
60690
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60691
60691
|
const hlo = require_high_level_opt();
|
|
60692
60692
|
const Unpack = require_unpack();
|
|
60693
|
-
const fs$
|
|
60693
|
+
const fs$25 = require("fs");
|
|
60694
60694
|
const fsm = require_fs_minipass();
|
|
60695
60695
|
const path$25 = require("path");
|
|
60696
60696
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60720,7 +60720,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60720
60720
|
const extractFileSync = (opt) => {
|
|
60721
60721
|
const u = new Unpack.Sync(opt);
|
|
60722
60722
|
const file = opt.file;
|
|
60723
|
-
const stat = fs$
|
|
60723
|
+
const stat = fs$25.statSync(file);
|
|
60724
60724
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60725
60725
|
new fsm.ReadStreamSync(file, {
|
|
60726
60726
|
readSize,
|
|
@@ -60734,7 +60734,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60734
60734
|
const p = new Promise((resolve, reject) => {
|
|
60735
60735
|
u.on("error", reject);
|
|
60736
60736
|
u.on("close", resolve);
|
|
60737
|
-
fs$
|
|
60737
|
+
fs$25.stat(file, (er, stat) => {
|
|
60738
60738
|
if (er) reject(er);
|
|
60739
60739
|
else {
|
|
60740
60740
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60817,7 +60817,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60817
60817
|
//#endregion
|
|
60818
60818
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60819
60819
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60820
|
-
var fs$
|
|
60820
|
+
var fs$24 = require("fs");
|
|
60821
60821
|
var util$9 = require("util");
|
|
60822
60822
|
var stream$1 = require("stream");
|
|
60823
60823
|
var Readable = stream$1.Readable;
|
|
@@ -60842,7 +60842,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60842
60842
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60843
60843
|
var self = this;
|
|
60844
60844
|
self.pend.go(function(cb) {
|
|
60845
|
-
fs$
|
|
60845
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60846
60846
|
cb();
|
|
60847
60847
|
callback(err, bytesRead, buffer);
|
|
60848
60848
|
});
|
|
@@ -60851,7 +60851,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60851
60851
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60852
60852
|
var self = this;
|
|
60853
60853
|
self.pend.go(function(cb) {
|
|
60854
|
-
fs$
|
|
60854
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60855
60855
|
cb();
|
|
60856
60856
|
callback(err, written, buffer);
|
|
60857
60857
|
});
|
|
@@ -60871,7 +60871,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60871
60871
|
self.refCount -= 1;
|
|
60872
60872
|
if (self.refCount > 0) return;
|
|
60873
60873
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60874
|
-
if (self.autoClose) fs$
|
|
60874
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60875
60875
|
function onCloseDone(err) {
|
|
60876
60876
|
if (err) self.emit("error", err);
|
|
60877
60877
|
else self.emit("close");
|
|
@@ -60902,7 +60902,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60902
60902
|
self.context.pend.go(function(cb) {
|
|
60903
60903
|
if (self.destroyed) return cb();
|
|
60904
60904
|
var buffer = new Buffer(toRead);
|
|
60905
|
-
fs$
|
|
60905
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60906
60906
|
if (err) self.destroy(err);
|
|
60907
60907
|
else if (bytesRead === 0) {
|
|
60908
60908
|
self.destroyed = true;
|
|
@@ -60948,7 +60948,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60948
60948
|
}
|
|
60949
60949
|
self.context.pend.go(function(cb) {
|
|
60950
60950
|
if (self.destroyed) return cb();
|
|
60951
|
-
fs$
|
|
60951
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60952
60952
|
if (err) {
|
|
60953
60953
|
self.destroy();
|
|
60954
60954
|
cb();
|
|
@@ -61355,7 +61355,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61355
61355
|
//#endregion
|
|
61356
61356
|
//#region ../../node_modules/yauzl/index.js
|
|
61357
61357
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61358
|
-
var fs$
|
|
61358
|
+
var fs$23 = require("fs");
|
|
61359
61359
|
var zlib$1 = require("zlib");
|
|
61360
61360
|
var fd_slicer = require_fd_slicer();
|
|
61361
61361
|
var crc32 = require_buffer_crc32();
|
|
@@ -61377,10 +61377,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61377
61377
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61378
61378
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61379
61379
|
if (callback == null) callback = defaultCallback;
|
|
61380
|
-
fs$
|
|
61380
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61381
61381
|
if (err) return callback(err);
|
|
61382
61382
|
fromFd(fd, options, function(err, zipfile) {
|
|
61383
|
-
if (err) fs$
|
|
61383
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61384
61384
|
callback(err, zipfile);
|
|
61385
61385
|
});
|
|
61386
61386
|
});
|
|
@@ -61397,7 +61397,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61397
61397
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61398
61398
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61399
61399
|
if (callback == null) callback = defaultCallback;
|
|
61400
|
-
fs$
|
|
61400
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61401
61401
|
if (err) return callback(err);
|
|
61402
61402
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61403
61403
|
});
|
|
@@ -62625,13 +62625,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62625
62625
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62626
62626
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62627
62627
|
module.exports = readdirGlob;
|
|
62628
|
-
const fs$
|
|
62628
|
+
const fs$22 = require("fs");
|
|
62629
62629
|
const { EventEmitter } = require("events");
|
|
62630
62630
|
const { Minimatch } = require_minimatch$1();
|
|
62631
62631
|
const { resolve: resolve$12 } = require("path");
|
|
62632
62632
|
function readdir(dir, strict) {
|
|
62633
62633
|
return new Promise((resolve, reject) => {
|
|
62634
|
-
fs$
|
|
62634
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62635
62635
|
if (err) switch (err.code) {
|
|
62636
62636
|
case "ENOTDIR":
|
|
62637
62637
|
if (strict) reject(err);
|
|
@@ -62653,7 +62653,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62653
62653
|
}
|
|
62654
62654
|
function stat(file, followSymlinks) {
|
|
62655
62655
|
return new Promise((resolve, reject) => {
|
|
62656
|
-
(followSymlinks ? fs$
|
|
62656
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62657
62657
|
if (err) switch (err.code) {
|
|
62658
62658
|
case "ENOENT":
|
|
62659
62659
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68692,7 +68692,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68692
68692
|
//#endregion
|
|
68693
68693
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68694
68694
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68695
|
-
var fs$
|
|
68695
|
+
var fs$21 = require("fs");
|
|
68696
68696
|
var polyfills = require_polyfills();
|
|
68697
68697
|
var legacy = require_legacy_streams();
|
|
68698
68698
|
var clone = require_clone$1();
|
|
@@ -68721,36 +68721,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68721
68721
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68722
68722
|
console.error(m);
|
|
68723
68723
|
};
|
|
68724
|
-
if (!fs$
|
|
68725
|
-
publishQueue(fs$
|
|
68726
|
-
fs$
|
|
68724
|
+
if (!fs$21[gracefulQueue]) {
|
|
68725
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68726
|
+
fs$21.close = (function(fs$close) {
|
|
68727
68727
|
function close(fd, cb) {
|
|
68728
|
-
return fs$close.call(fs$
|
|
68728
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68729
68729
|
if (!err) resetQueue();
|
|
68730
68730
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68731
68731
|
});
|
|
68732
68732
|
}
|
|
68733
68733
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68734
68734
|
return close;
|
|
68735
|
-
})(fs$
|
|
68736
|
-
fs$
|
|
68735
|
+
})(fs$21.close);
|
|
68736
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68737
68737
|
function closeSync(fd) {
|
|
68738
|
-
fs$closeSync.apply(fs$
|
|
68738
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68739
68739
|
resetQueue();
|
|
68740
68740
|
}
|
|
68741
68741
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68742
68742
|
return closeSync;
|
|
68743
|
-
})(fs$
|
|
68743
|
+
})(fs$21.closeSync);
|
|
68744
68744
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68745
|
-
debug(fs$
|
|
68746
|
-
require("assert").equal(fs$
|
|
68745
|
+
debug(fs$21[gracefulQueue]);
|
|
68746
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68747
68747
|
});
|
|
68748
68748
|
}
|
|
68749
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68750
|
-
module.exports = patch(clone(fs$
|
|
68751
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68752
|
-
module.exports = patch(fs$
|
|
68753
|
-
fs$
|
|
68749
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68750
|
+
module.exports = patch(clone(fs$21));
|
|
68751
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68752
|
+
module.exports = patch(fs$21);
|
|
68753
|
+
fs$21.__patched = true;
|
|
68754
68754
|
}
|
|
68755
68755
|
function patch(fs) {
|
|
68756
68756
|
polyfills(fs);
|
|
@@ -69005,23 +69005,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69005
69005
|
}
|
|
69006
69006
|
function enqueue(elem) {
|
|
69007
69007
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
69008
|
-
fs$
|
|
69008
|
+
fs$21[gracefulQueue].push(elem);
|
|
69009
69009
|
retry();
|
|
69010
69010
|
}
|
|
69011
69011
|
var retryTimer;
|
|
69012
69012
|
function resetQueue() {
|
|
69013
69013
|
var now = Date.now();
|
|
69014
|
-
for (var i = 0; i < fs$
|
|
69015
|
-
fs$
|
|
69016
|
-
fs$
|
|
69014
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
69015
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
69016
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
69017
69017
|
}
|
|
69018
69018
|
retry();
|
|
69019
69019
|
}
|
|
69020
69020
|
function retry() {
|
|
69021
69021
|
clearTimeout(retryTimer);
|
|
69022
69022
|
retryTimer = void 0;
|
|
69023
|
-
if (fs$
|
|
69024
|
-
var elem = fs$
|
|
69023
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
69024
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
69025
69025
|
var fn = elem[0];
|
|
69026
69026
|
var args = elem[1];
|
|
69027
69027
|
var err = elem[2];
|
|
@@ -69040,7 +69040,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69040
69040
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69041
69041
|
debug("RETRY", fn.name, args);
|
|
69042
69042
|
fn.apply(null, args.concat([startTime]));
|
|
69043
|
-
} else fs$
|
|
69043
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69044
69044
|
}
|
|
69045
69045
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69046
69046
|
}
|
|
@@ -84437,7 +84437,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84437
84437
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84438
84438
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84439
84439
|
*/
|
|
84440
|
-
var fs$
|
|
84440
|
+
var fs$20 = require("fs");
|
|
84441
84441
|
var glob = require_readdir_glob();
|
|
84442
84442
|
var async = require_async();
|
|
84443
84443
|
var path$22 = require("path");
|
|
@@ -84514,7 +84514,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84514
84514
|
data.sourcePath = filepath;
|
|
84515
84515
|
task.data = data;
|
|
84516
84516
|
this._entriesCount++;
|
|
84517
|
-
if (data.stats && data.stats instanceof fs$
|
|
84517
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84518
84518
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84519
84519
|
if (task) {
|
|
84520
84520
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84744,7 +84744,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84744
84744
|
callback();
|
|
84745
84745
|
return;
|
|
84746
84746
|
}
|
|
84747
|
-
fs$
|
|
84747
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84748
84748
|
if (this._state.aborted) {
|
|
84749
84749
|
setImmediate(callback);
|
|
84750
84750
|
return;
|
|
@@ -84810,7 +84810,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84810
84810
|
task.data.sourceType = "buffer";
|
|
84811
84811
|
task.source = Buffer.concat([]);
|
|
84812
84812
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84813
|
-
var linkPath = fs$
|
|
84813
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84814
84814
|
var dirName = path$22.dirname(task.filepath);
|
|
84815
84815
|
task.data.type = "symlink";
|
|
84816
84816
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -95899,7 +95899,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95899
95899
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95900
95900
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95901
95901
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95902
|
-
const { join: join$
|
|
95902
|
+
const { join: join$16, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95903
95903
|
const isWindows = process.platform === "win32";
|
|
95904
95904
|
/* istanbul ignore next */
|
|
95905
95905
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95929,7 +95929,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95929
95929
|
};
|
|
95930
95930
|
const getPathPart = (raw, cmd) => {
|
|
95931
95931
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95932
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95932
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
|
|
95933
95933
|
};
|
|
95934
95934
|
const which = async (cmd, opt = {}) => {
|
|
95935
95935
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96508,7 +96508,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96508
96508
|
//#endregion
|
|
96509
96509
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96510
96510
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96511
|
-
const fs$
|
|
96511
|
+
const fs$18 = require("node:fs");
|
|
96512
96512
|
const os$2 = require("node:os");
|
|
96513
96513
|
const path$20 = require("node:path");
|
|
96514
96514
|
const ini = require_ini();
|
|
@@ -96517,8 +96517,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96517
96517
|
const loadGitConfig = () => {
|
|
96518
96518
|
if (cachedConfig === null) try {
|
|
96519
96519
|
cachedConfig = {};
|
|
96520
|
-
if (fs$
|
|
96521
|
-
const configContent = fs$
|
|
96520
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96521
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96522
96522
|
cachedConfig = ini.parse(configContent);
|
|
96523
96523
|
}
|
|
96524
96524
|
} catch (error) {
|
|
@@ -96678,7 +96678,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96678
96678
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96679
96679
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96680
96680
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96681
|
-
const { join: join$
|
|
96681
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96682
96682
|
const isWindows = process.platform === "win32";
|
|
96683
96683
|
/* istanbul ignore next */
|
|
96684
96684
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96708,7 +96708,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96708
96708
|
};
|
|
96709
96709
|
const getPathPart = (raw, cmd) => {
|
|
96710
96710
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96711
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96711
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
96712
96712
|
};
|
|
96713
96713
|
const which = async (cmd, opt = {}) => {
|
|
96714
96714
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98387,7 +98387,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98387
98387
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98388
98388
|
const process$1 = require("node:process");
|
|
98389
98389
|
const nodeOs = require("node:os");
|
|
98390
|
-
const fs$
|
|
98390
|
+
const fs$17 = require("node:fs");
|
|
98391
98391
|
function isMusl(file) {
|
|
98392
98392
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98393
98393
|
}
|
|
@@ -98400,7 +98400,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98400
98400
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98401
98401
|
function getFamilyFromFilesystem() {
|
|
98402
98402
|
try {
|
|
98403
|
-
const content = fs$
|
|
98403
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98404
98404
|
if (content.includes("musl")) return "musl";
|
|
98405
98405
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98406
98406
|
return null;
|
|
@@ -98606,7 +98606,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98606
98606
|
//#endregion
|
|
98607
98607
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98608
98608
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98609
|
-
const { join: join$
|
|
98609
|
+
const { join: join$14, basename: basename$4 } = require("path");
|
|
98610
98610
|
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);
|
|
98611
98611
|
const normalizeString = (pkg) => {
|
|
98612
98612
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98629,9 +98629,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98629
98629
|
const clean = {};
|
|
98630
98630
|
let hasBins = false;
|
|
98631
98631
|
Object.keys(orig).forEach((binKey) => {
|
|
98632
|
-
const base = join$
|
|
98632
|
+
const base = join$14("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98633
98633
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98634
|
-
const binTarget = join$
|
|
98634
|
+
const binTarget = join$14("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98635
98635
|
if (!binTarget) return;
|
|
98636
98636
|
clean[base] = binTarget;
|
|
98637
98637
|
hasBins = true;
|
|
@@ -98789,7 +98789,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98789
98789
|
const spawn = require_spawn();
|
|
98790
98790
|
const { isWindows } = require_utils$3();
|
|
98791
98791
|
const pickManifest = require_lib$20();
|
|
98792
|
-
const fs$
|
|
98792
|
+
const fs$16 = require("fs/promises");
|
|
98793
98793
|
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));
|
|
98794
98794
|
const maybeShallow = (repo, opts) => {
|
|
98795
98795
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98824,7 +98824,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98824
98824
|
...opts,
|
|
98825
98825
|
cwd: target
|
|
98826
98826
|
});
|
|
98827
|
-
return fs$
|
|
98827
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98828
98828
|
"config",
|
|
98829
98829
|
"--local",
|
|
98830
98830
|
"--add",
|
|
@@ -98862,7 +98862,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98862
98862
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98863
98863
|
};
|
|
98864
98864
|
const updateSubmodules = async (target, opts) => {
|
|
98865
|
-
if (!await fs$
|
|
98865
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98866
98866
|
return spawn([
|
|
98867
98867
|
"submodule",
|
|
98868
98868
|
"update",
|
|
@@ -98887,7 +98887,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98887
98887
|
...opts,
|
|
98888
98888
|
cwd: target
|
|
98889
98889
|
});
|
|
98890
|
-
return fs$
|
|
98890
|
+
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([
|
|
98891
98891
|
"rev-parse",
|
|
98892
98892
|
"--revs-only",
|
|
98893
98893
|
"HEAD"
|
|
@@ -98904,11 +98904,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98904
98904
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98905
98905
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98906
98906
|
const is = require_is();
|
|
98907
|
-
const { dirname: dirname$
|
|
98907
|
+
const { dirname: dirname$11 } = require("path");
|
|
98908
98908
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98909
98909
|
while (true) {
|
|
98910
98910
|
if (await is({ cwd })) return cwd;
|
|
98911
|
-
const next = dirname$
|
|
98911
|
+
const next = dirname$11(cwd);
|
|
98912
98912
|
if (cwd === root || cwd === next) return null;
|
|
98913
98913
|
cwd = next;
|
|
98914
98914
|
}
|
|
@@ -98942,7 +98942,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98942
98942
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98943
98943
|
const valid = require_valid$3();
|
|
98944
98944
|
const clean = require_clean$1();
|
|
98945
|
-
const fs$
|
|
98945
|
+
const fs$15 = require("node:fs/promises");
|
|
98946
98946
|
const path$17 = require("node:path");
|
|
98947
98947
|
const { log } = require_lib$29();
|
|
98948
98948
|
const moduleBuiltin = require("node:module");
|
|
@@ -99226,13 +99226,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99226
99226
|
}
|
|
99227
99227
|
}
|
|
99228
99228
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99229
|
-
await fs$
|
|
99229
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
99230
99230
|
scripts.start = "node server.js";
|
|
99231
99231
|
data.scripts = scripts;
|
|
99232
99232
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99233
99233
|
} catch {}
|
|
99234
99234
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99235
|
-
data.contributors = (await fs$
|
|
99235
|
+
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);
|
|
99236
99236
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99237
99237
|
} catch {}
|
|
99238
99238
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99251,7 +99251,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99251
99251
|
if (file.endsWith("README")) readmeFile = file;
|
|
99252
99252
|
}
|
|
99253
99253
|
if (readmeFile) {
|
|
99254
|
-
data.readme = await fs$
|
|
99254
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
99255
99255
|
data.readmeFilename = readmeFile;
|
|
99256
99256
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99257
99257
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99283,20 +99283,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99283
99283
|
});
|
|
99284
99284
|
let head;
|
|
99285
99285
|
if (gitRoot) try {
|
|
99286
|
-
head = await fs$
|
|
99286
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99287
99287
|
} catch (err) {}
|
|
99288
99288
|
let headData;
|
|
99289
99289
|
if (head) if (head.startsWith("ref: ")) {
|
|
99290
99290
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99291
99291
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
99292
99292
|
try {
|
|
99293
|
-
headData = await fs$
|
|
99293
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99294
99294
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99295
99295
|
} catch (err) {}
|
|
99296
99296
|
if (!headData) {
|
|
99297
99297
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
99298
99298
|
try {
|
|
99299
|
-
let refs = await fs$
|
|
99299
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99300
99300
|
if (refs) {
|
|
99301
99301
|
refs = refs.split("\n");
|
|
99302
99302
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99317,12 +99317,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99317
99317
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99318
99318
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
99319
99319
|
if (!("types" in data || "typings" in data)) try {
|
|
99320
|
-
await fs$
|
|
99320
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
99321
99321
|
data.types = dts.split(path$17.sep).join("/");
|
|
99322
99322
|
} catch {}
|
|
99323
99323
|
}
|
|
99324
99324
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99325
|
-
await fs$
|
|
99325
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
99326
99326
|
} catch {
|
|
99327
99327
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99328
99328
|
}
|
|
@@ -100704,7 +100704,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100704
100704
|
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();
|
|
100705
100705
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100706
100706
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100707
|
-
const { dirname: dirname$
|
|
100707
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100708
100708
|
const { fileURLToPath } = require("url");
|
|
100709
100709
|
const defaultOptions = {
|
|
100710
100710
|
dereference: false,
|
|
@@ -100778,7 +100778,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100778
100778
|
})]);
|
|
100779
100779
|
}
|
|
100780
100780
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100781
|
-
const destParent = dirname$
|
|
100781
|
+
const destParent = dirname$10(dest);
|
|
100782
100782
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100783
100783
|
await mkdir$8(destParent, { recursive: true });
|
|
100784
100784
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100791,8 +100791,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100791
100791
|
);
|
|
100792
100792
|
}
|
|
100793
100793
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100794
|
-
const srcParent = resolve$10(dirname$
|
|
100795
|
-
const destParent = resolve$10(dirname$
|
|
100794
|
+
const srcParent = resolve$10(dirname$10(src));
|
|
100795
|
+
const destParent = resolve$10(dirname$10(dest));
|
|
100796
100796
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100797
100797
|
let destStat;
|
|
100798
100798
|
try {
|
|
@@ -100913,15 +100913,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100913
100913
|
const dir = await readdir$6(src);
|
|
100914
100914
|
for (let i = 0; i < dir.length; i++) {
|
|
100915
100915
|
const item = dir[i];
|
|
100916
|
-
const srcItem = join$
|
|
100917
|
-
const destItem = join$
|
|
100916
|
+
const srcItem = join$13(src, item);
|
|
100917
|
+
const destItem = join$13(dest, item);
|
|
100918
100918
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100919
100919
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100920
100920
|
}
|
|
100921
100921
|
}
|
|
100922
100922
|
async function onLink(destStat, src, dest) {
|
|
100923
100923
|
let resolvedSrc = await readlink(src);
|
|
100924
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100924
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$10(src), resolvedSrc);
|
|
100925
100925
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100926
100926
|
let resolvedDest;
|
|
100927
100927
|
try {
|
|
@@ -100932,7 +100932,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100932
100932
|
// istanbul ignore next: should not be possible
|
|
100933
100933
|
throw err;
|
|
100934
100934
|
}
|
|
100935
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100935
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$10(dest), resolvedDest);
|
|
100936
100936
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100937
100937
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100938
100938
|
path: dest,
|
|
@@ -100956,7 +100956,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100956
100956
|
//#endregion
|
|
100957
100957
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100958
100958
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100959
|
-
const fs$
|
|
100959
|
+
const fs$14 = require("fs/promises");
|
|
100960
100960
|
const getOptions = require_get_options();
|
|
100961
100961
|
const node = require_node$1();
|
|
100962
100962
|
const polyfill = require_polyfill();
|
|
@@ -100971,20 +100971,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100971
100971
|
"recursive"
|
|
100972
100972
|
] });
|
|
100973
100973
|
// istanbul ignore next
|
|
100974
|
-
return useNative ? fs$
|
|
100974
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100975
100975
|
};
|
|
100976
100976
|
module.exports = cp;
|
|
100977
100977
|
}));
|
|
100978
100978
|
//#endregion
|
|
100979
100979
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100980
100980
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100981
|
-
const { join: join$
|
|
100981
|
+
const { join: join$12, sep: sep$1 } = require("path");
|
|
100982
100982
|
const getOptions = require_get_options();
|
|
100983
100983
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100984
100984
|
const withTempDir = async (root, fn, opts) => {
|
|
100985
100985
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100986
100986
|
await mkdir$7(root, { recursive: true });
|
|
100987
|
-
const target = await mkdtemp(join$
|
|
100987
|
+
const target = await mkdtemp(join$12(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100988
100988
|
let err;
|
|
100989
100989
|
let result;
|
|
100990
100990
|
try {
|
|
@@ -101007,10 +101007,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101007
101007
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
101008
101008
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101009
101009
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
101010
|
-
const { join: join$
|
|
101010
|
+
const { join: join$11 } = require("path");
|
|
101011
101011
|
const readdirScoped = async (dir) => {
|
|
101012
101012
|
const results = [];
|
|
101013
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
101013
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$11(dir, item))) results.push(join$11(item, scopedItem));
|
|
101014
101014
|
else results.push(item);
|
|
101015
101015
|
return results;
|
|
101016
101016
|
};
|
|
@@ -101019,11 +101019,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101019
101019
|
//#endregion
|
|
101020
101020
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101021
101021
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101022
|
-
const { dirname: dirname$
|
|
101023
|
-
const fs$
|
|
101022
|
+
const { dirname: dirname$9, join: join$10, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101023
|
+
const fs$13 = require("fs/promises");
|
|
101024
101024
|
const pathExists = async (path$53) => {
|
|
101025
101025
|
try {
|
|
101026
|
-
await fs$
|
|
101026
|
+
await fs$13.access(path$53);
|
|
101027
101027
|
return true;
|
|
101028
101028
|
} catch (er) {
|
|
101029
101029
|
return er.code !== "ENOENT";
|
|
@@ -101036,34 +101036,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101036
101036
|
...options
|
|
101037
101037
|
};
|
|
101038
101038
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
101039
|
-
await fs$
|
|
101039
|
+
await fs$13.mkdir(dirname$9(destination), { recursive: true });
|
|
101040
101040
|
try {
|
|
101041
|
-
await fs$
|
|
101041
|
+
await fs$13.rename(source, destination);
|
|
101042
101042
|
} catch (error) {
|
|
101043
101043
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
101044
|
-
const sourceStat = await fs$
|
|
101044
|
+
const sourceStat = await fs$13.lstat(source);
|
|
101045
101045
|
if (sourceStat.isDirectory()) {
|
|
101046
|
-
const files = await fs$
|
|
101047
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101046
|
+
const files = await fs$13.readdir(source);
|
|
101047
|
+
await Promise.all(files.map((file) => moveFile(join$10(source, file), join$10(destination, file), options, false, symlinks)));
|
|
101048
101048
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101049
101049
|
source,
|
|
101050
101050
|
destination
|
|
101051
101051
|
});
|
|
101052
|
-
else await fs$
|
|
101052
|
+
else await fs$13.copyFile(source, destination);
|
|
101053
101053
|
} else throw error;
|
|
101054
101054
|
}
|
|
101055
101055
|
if (root) {
|
|
101056
101056
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101057
|
-
let target = await fs$
|
|
101057
|
+
let target = await fs$13.readlink(symSource);
|
|
101058
101058
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101059
101059
|
let targetStat = "file";
|
|
101060
101060
|
try {
|
|
101061
|
-
targetStat = await fs$
|
|
101061
|
+
targetStat = await fs$13.stat(resolve$9(dirname$9(symSource), target));
|
|
101062
101062
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101063
101063
|
} catch {}
|
|
101064
|
-
await fs$
|
|
101064
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
101065
101065
|
}));
|
|
101066
|
-
await fs$
|
|
101066
|
+
await fs$13.rm(source, {
|
|
101067
101067
|
recursive: true,
|
|
101068
101068
|
force: true
|
|
101069
101069
|
});
|
|
@@ -101086,7 +101086,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101086
101086
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101087
101087
|
const crypto$2 = require("crypto");
|
|
101088
101088
|
const { withTempDir } = require_lib$16();
|
|
101089
|
-
const fs$
|
|
101089
|
+
const fs$12 = require("fs/promises");
|
|
101090
101090
|
const path$16 = require("path");
|
|
101091
101091
|
module.exports.mkdir = mktmpdir;
|
|
101092
101092
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101096,12 +101096,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101096
101096
|
async function mktmpdir(cache, opts = {}) {
|
|
101097
101097
|
const { tmpPrefix } = opts;
|
|
101098
101098
|
const tmpDir = path$16.join(cache, "tmp");
|
|
101099
|
-
await fs$
|
|
101099
|
+
await fs$12.mkdir(tmpDir, {
|
|
101100
101100
|
recursive: true,
|
|
101101
101101
|
owner: "inherit"
|
|
101102
101102
|
});
|
|
101103
101103
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
101104
|
-
return fs$
|
|
101104
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101105
101105
|
}
|
|
101106
101106
|
module.exports.withTmp = withTmp;
|
|
101107
101107
|
function withTmp(cache, opts, cb) {
|
|
@@ -101481,8 +101481,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101481
101481
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101482
101482
|
const { Minipass } = require_commonjs$10();
|
|
101483
101483
|
const EE$4 = require("events").EventEmitter;
|
|
101484
|
-
const fs$
|
|
101485
|
-
const writev = fs$
|
|
101484
|
+
const fs$11 = require("fs");
|
|
101485
|
+
const writev = fs$11.writev;
|
|
101486
101486
|
const _autoClose = Symbol("_autoClose");
|
|
101487
101487
|
const _close = Symbol("_close");
|
|
101488
101488
|
const _ended = Symbol("_ended");
|
|
@@ -101542,7 +101542,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101542
101542
|
throw new TypeError("this is a readable stream");
|
|
101543
101543
|
}
|
|
101544
101544
|
[_open]() {
|
|
101545
|
-
fs$
|
|
101545
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101546
101546
|
}
|
|
101547
101547
|
[_onopen](er, fd) {
|
|
101548
101548
|
if (er) this[_onerror](er);
|
|
@@ -101561,7 +101561,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101561
101561
|
const buf = this[_makeBuf]();
|
|
101562
101562
|
/* istanbul ignore if */
|
|
101563
101563
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101564
|
-
fs$
|
|
101564
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101565
101565
|
}
|
|
101566
101566
|
}
|
|
101567
101567
|
[_onread](er, br, buf) {
|
|
@@ -101573,7 +101573,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101573
101573
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101574
101574
|
const fd = this[_fd];
|
|
101575
101575
|
this[_fd] = null;
|
|
101576
|
-
fs$
|
|
101576
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101577
101577
|
}
|
|
101578
101578
|
}
|
|
101579
101579
|
[_onerror](er) {
|
|
@@ -101611,7 +101611,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101611
101611
|
[_open]() {
|
|
101612
101612
|
let threw = true;
|
|
101613
101613
|
try {
|
|
101614
|
-
this[_onopen](null, fs$
|
|
101614
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101615
101615
|
threw = false;
|
|
101616
101616
|
} finally {
|
|
101617
101617
|
if (threw) this[_close]();
|
|
@@ -101625,7 +101625,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101625
101625
|
do {
|
|
101626
101626
|
const buf = this[_makeBuf]();
|
|
101627
101627
|
/* istanbul ignore next */
|
|
101628
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101628
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101629
101629
|
if (!this[_handleChunk](br, buf)) break;
|
|
101630
101630
|
} while (true);
|
|
101631
101631
|
this[_reading] = false;
|
|
@@ -101639,7 +101639,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101639
101639
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101640
101640
|
const fd = this[_fd];
|
|
101641
101641
|
this[_fd] = null;
|
|
101642
|
-
fs$
|
|
101642
|
+
fs$11.closeSync(fd);
|
|
101643
101643
|
this.emit("close");
|
|
101644
101644
|
}
|
|
101645
101645
|
}
|
|
@@ -101684,7 +101684,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101684
101684
|
this.emit("error", er);
|
|
101685
101685
|
}
|
|
101686
101686
|
[_open]() {
|
|
101687
|
-
fs$
|
|
101687
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101688
101688
|
}
|
|
101689
101689
|
[_onopen](er, fd) {
|
|
101690
101690
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101719,7 +101719,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101719
101719
|
return true;
|
|
101720
101720
|
}
|
|
101721
101721
|
[_write](buf) {
|
|
101722
|
-
fs$
|
|
101722
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101723
101723
|
}
|
|
101724
101724
|
[_onwrite](er, bw) {
|
|
101725
101725
|
if (er) this[_onerror](er);
|
|
@@ -101753,7 +101753,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101753
101753
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101754
101754
|
const fd = this[_fd];
|
|
101755
101755
|
this[_fd] = null;
|
|
101756
|
-
fs$
|
|
101756
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101757
101757
|
}
|
|
101758
101758
|
}
|
|
101759
101759
|
};
|
|
@@ -101761,28 +101761,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101761
101761
|
[_open]() {
|
|
101762
101762
|
let fd;
|
|
101763
101763
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101764
|
-
fd = fs$
|
|
101764
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101765
101765
|
} catch (er) {
|
|
101766
101766
|
if (er.code === "ENOENT") {
|
|
101767
101767
|
this[_flags] = "w";
|
|
101768
101768
|
return this[_open]();
|
|
101769
101769
|
} else throw er;
|
|
101770
101770
|
}
|
|
101771
|
-
else fd = fs$
|
|
101771
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101772
101772
|
this[_onopen](null, fd);
|
|
101773
101773
|
}
|
|
101774
101774
|
[_close]() {
|
|
101775
101775
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101776
101776
|
const fd = this[_fd];
|
|
101777
101777
|
this[_fd] = null;
|
|
101778
|
-
fs$
|
|
101778
|
+
fs$11.closeSync(fd);
|
|
101779
101779
|
this.emit("close");
|
|
101780
101780
|
}
|
|
101781
101781
|
}
|
|
101782
101782
|
[_write](buf) {
|
|
101783
101783
|
let threw = true;
|
|
101784
101784
|
try {
|
|
101785
|
-
this[_onwrite](null, fs$
|
|
101785
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101786
101786
|
threw = false;
|
|
101787
101787
|
} finally {
|
|
101788
101788
|
if (threw) try {
|
|
@@ -101799,7 +101799,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101799
101799
|
//#endregion
|
|
101800
101800
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101801
101801
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101802
|
-
const fs$
|
|
101802
|
+
const fs$10 = require("fs/promises");
|
|
101803
101803
|
const fsm = require_lib$15();
|
|
101804
101804
|
const ssri = require_lib$17();
|
|
101805
101805
|
const contentPath = require_path();
|
|
@@ -101810,13 +101810,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101810
101810
|
const { size } = opts;
|
|
101811
101811
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101812
101812
|
return {
|
|
101813
|
-
stat: size ? { size } : await fs$
|
|
101813
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101814
101814
|
cpath,
|
|
101815
101815
|
sri
|
|
101816
101816
|
};
|
|
101817
101817
|
});
|
|
101818
101818
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101819
|
-
const data = await fs$
|
|
101819
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101820
101820
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101821
101821
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101822
101822
|
return data;
|
|
@@ -101839,7 +101839,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101839
101839
|
Promise.resolve().then(async () => {
|
|
101840
101840
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101841
101841
|
return {
|
|
101842
|
-
stat: size ? { size } : await fs$
|
|
101842
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101843
101843
|
cpath,
|
|
101844
101844
|
sri
|
|
101845
101845
|
};
|
|
@@ -101851,7 +101851,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101851
101851
|
module.exports.copy = copy;
|
|
101852
101852
|
function copy(cache, integrity, dest) {
|
|
101853
101853
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101854
|
-
return fs$
|
|
101854
|
+
return fs$10.copyFile(cpath, dest);
|
|
101855
101855
|
});
|
|
101856
101856
|
}
|
|
101857
101857
|
module.exports.hasContent = hasContent;
|
|
@@ -101859,7 +101859,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101859
101859
|
if (!integrity) return false;
|
|
101860
101860
|
try {
|
|
101861
101861
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101862
|
-
const stat = await fs$
|
|
101862
|
+
const stat = await fs$10.stat(cpath);
|
|
101863
101863
|
return {
|
|
101864
101864
|
size: stat.size,
|
|
101865
101865
|
sri,
|
|
@@ -102499,7 +102499,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102499
102499
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102500
102500
|
const events = require("events");
|
|
102501
102501
|
const contentPath = require_path();
|
|
102502
|
-
const fs$
|
|
102502
|
+
const fs$9 = require("fs/promises");
|
|
102503
102503
|
const { moveFile } = require_lib$16();
|
|
102504
102504
|
const { Minipass } = require_commonjs$10();
|
|
102505
102505
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102519,10 +102519,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102519
102519
|
const tmp = await makeTmp(cache, opts);
|
|
102520
102520
|
const hash = sri[algo].toString();
|
|
102521
102521
|
try {
|
|
102522
|
-
await fs$
|
|
102522
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102523
102523
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102524
102524
|
} finally {
|
|
102525
|
-
if (!tmp.moved) await fs$
|
|
102525
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102526
102526
|
recursive: true,
|
|
102527
102527
|
force: true
|
|
102528
102528
|
});
|
|
@@ -102576,7 +102576,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102576
102576
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102577
102577
|
return res;
|
|
102578
102578
|
} finally {
|
|
102579
|
-
if (!tmp.moved) await fs$
|
|
102579
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102580
102580
|
recursive: true,
|
|
102581
102581
|
force: true
|
|
102582
102582
|
});
|
|
@@ -102616,7 +102616,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102616
102616
|
}
|
|
102617
102617
|
async function makeTmp(cache, opts) {
|
|
102618
102618
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102619
|
-
await fs$
|
|
102619
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
102620
102620
|
return {
|
|
102621
102621
|
target: tmpTarget,
|
|
102622
102622
|
moved: false
|
|
@@ -102626,7 +102626,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102626
102626
|
const destination = contentPath(cache, sri);
|
|
102627
102627
|
const destDir = path$13.dirname(destination);
|
|
102628
102628
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102629
|
-
moveOperations.set(destination, fs$
|
|
102629
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102630
102630
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102631
102631
|
tmp.moved = true;
|
|
102632
102632
|
return tmp.moved;
|
|
@@ -106084,14 +106084,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106084
106084
|
//#endregion
|
|
106085
106085
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106086
106086
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106087
|
-
const fs$
|
|
106087
|
+
const fs$8 = require("fs/promises");
|
|
106088
106088
|
const contentPath = require_path();
|
|
106089
106089
|
const { hasContent } = require_read();
|
|
106090
106090
|
module.exports = rm;
|
|
106091
106091
|
async function rm(cache, integrity) {
|
|
106092
106092
|
const content = await hasContent(cache, integrity);
|
|
106093
106093
|
if (content && content.sri) {
|
|
106094
|
-
await fs$
|
|
106094
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106095
106095
|
recursive: true,
|
|
106096
106096
|
force: true
|
|
106097
106097
|
});
|
|
@@ -106373,8 +106373,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106373
106373
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106374
106374
|
const { Minipass } = require_commonjs$10();
|
|
106375
106375
|
const EE$2 = require("events").EventEmitter;
|
|
106376
|
-
const fs$
|
|
106377
|
-
const writev = fs$
|
|
106376
|
+
const fs$7 = require("fs");
|
|
106377
|
+
const writev = fs$7.writev;
|
|
106378
106378
|
const _autoClose = Symbol("_autoClose");
|
|
106379
106379
|
const _close = Symbol("_close");
|
|
106380
106380
|
const _ended = Symbol("_ended");
|
|
@@ -106434,7 +106434,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106434
106434
|
throw new TypeError("this is a readable stream");
|
|
106435
106435
|
}
|
|
106436
106436
|
[_open]() {
|
|
106437
|
-
fs$
|
|
106437
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106438
106438
|
}
|
|
106439
106439
|
[_onopen](er, fd) {
|
|
106440
106440
|
if (er) this[_onerror](er);
|
|
@@ -106453,7 +106453,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106453
106453
|
const buf = this[_makeBuf]();
|
|
106454
106454
|
/* istanbul ignore if */
|
|
106455
106455
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106456
|
-
fs$
|
|
106456
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106457
106457
|
}
|
|
106458
106458
|
}
|
|
106459
106459
|
[_onread](er, br, buf) {
|
|
@@ -106465,7 +106465,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106465
106465
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106466
106466
|
const fd = this[_fd];
|
|
106467
106467
|
this[_fd] = null;
|
|
106468
|
-
fs$
|
|
106468
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106469
106469
|
}
|
|
106470
106470
|
}
|
|
106471
106471
|
[_onerror](er) {
|
|
@@ -106503,7 +106503,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106503
106503
|
[_open]() {
|
|
106504
106504
|
let threw = true;
|
|
106505
106505
|
try {
|
|
106506
|
-
this[_onopen](null, fs$
|
|
106506
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106507
106507
|
threw = false;
|
|
106508
106508
|
} finally {
|
|
106509
106509
|
if (threw) this[_close]();
|
|
@@ -106517,7 +106517,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106517
106517
|
do {
|
|
106518
106518
|
const buf = this[_makeBuf]();
|
|
106519
106519
|
/* istanbul ignore next */
|
|
106520
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106520
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106521
106521
|
if (!this[_handleChunk](br, buf)) break;
|
|
106522
106522
|
} while (true);
|
|
106523
106523
|
this[_reading] = false;
|
|
@@ -106531,7 +106531,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106531
106531
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106532
106532
|
const fd = this[_fd];
|
|
106533
106533
|
this[_fd] = null;
|
|
106534
|
-
fs$
|
|
106534
|
+
fs$7.closeSync(fd);
|
|
106535
106535
|
this.emit("close");
|
|
106536
106536
|
}
|
|
106537
106537
|
}
|
|
@@ -106576,7 +106576,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106576
106576
|
this.emit("error", er);
|
|
106577
106577
|
}
|
|
106578
106578
|
[_open]() {
|
|
106579
|
-
fs$
|
|
106579
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106580
106580
|
}
|
|
106581
106581
|
[_onopen](er, fd) {
|
|
106582
106582
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106611,7 +106611,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106611
106611
|
return true;
|
|
106612
106612
|
}
|
|
106613
106613
|
[_write](buf) {
|
|
106614
|
-
fs$
|
|
106614
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106615
106615
|
}
|
|
106616
106616
|
[_onwrite](er, bw) {
|
|
106617
106617
|
if (er) this[_onerror](er);
|
|
@@ -106645,7 +106645,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106645
106645
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106646
106646
|
const fd = this[_fd];
|
|
106647
106647
|
this[_fd] = null;
|
|
106648
|
-
fs$
|
|
106648
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106649
106649
|
}
|
|
106650
106650
|
}
|
|
106651
106651
|
};
|
|
@@ -106653,28 +106653,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106653
106653
|
[_open]() {
|
|
106654
106654
|
let fd;
|
|
106655
106655
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106656
|
-
fd = fs$
|
|
106656
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106657
106657
|
} catch (er) {
|
|
106658
106658
|
if (er.code === "ENOENT") {
|
|
106659
106659
|
this[_flags] = "w";
|
|
106660
106660
|
return this[_open]();
|
|
106661
106661
|
} else throw er;
|
|
106662
106662
|
}
|
|
106663
|
-
else fd = fs$
|
|
106663
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106664
106664
|
this[_onopen](null, fd);
|
|
106665
106665
|
}
|
|
106666
106666
|
[_close]() {
|
|
106667
106667
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106668
106668
|
const fd = this[_fd];
|
|
106669
106669
|
this[_fd] = null;
|
|
106670
|
-
fs$
|
|
106670
|
+
fs$7.closeSync(fd);
|
|
106671
106671
|
this.emit("close");
|
|
106672
106672
|
}
|
|
106673
106673
|
}
|
|
106674
106674
|
[_write](buf) {
|
|
106675
106675
|
let threw = true;
|
|
106676
106676
|
try {
|
|
106677
|
-
this[_onwrite](null, fs$
|
|
106677
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106678
106678
|
threw = false;
|
|
106679
106679
|
} finally {
|
|
106680
106680
|
if (threw) try {
|
|
@@ -106691,7 +106691,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106691
106691
|
//#endregion
|
|
106692
106692
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106693
106693
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106694
|
-
const fs$
|
|
106694
|
+
const fs$6 = require("fs");
|
|
106695
106695
|
const path$9 = require("path");
|
|
106696
106696
|
const EE$1 = require("events").EventEmitter;
|
|
106697
106697
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106747,7 +106747,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106747
106747
|
return this;
|
|
106748
106748
|
}
|
|
106749
106749
|
readPackageJson(pj) {
|
|
106750
|
-
fs$
|
|
106750
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106751
106751
|
}
|
|
106752
106752
|
onPackageJson(pj, data) {
|
|
106753
106753
|
try {
|
|
@@ -106805,7 +106805,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106805
106805
|
}
|
|
106806
106806
|
readPackageJson(pj) {
|
|
106807
106807
|
try {
|
|
106808
|
-
this.onPackageJson(pj, fs$
|
|
106808
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106809
106809
|
} catch {}
|
|
106810
106810
|
return this;
|
|
106811
106811
|
}
|
|
@@ -106824,7 +106824,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106824
106824
|
}
|
|
106825
106825
|
};
|
|
106826
106826
|
const readdirNodeModules = (nm, cb) => {
|
|
106827
|
-
fs$
|
|
106827
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106828
106828
|
if (er) cb(er);
|
|
106829
106829
|
else {
|
|
106830
106830
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106833,7 +106833,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106833
106833
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106834
106834
|
let count = scopes.length;
|
|
106835
106835
|
scopes.forEach((scope) => {
|
|
106836
|
-
fs$
|
|
106836
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106837
106837
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106838
106838
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106839
106839
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106844,11 +106844,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106844
106844
|
});
|
|
106845
106845
|
};
|
|
106846
106846
|
const readdirNodeModulesSync = (nm) => {
|
|
106847
|
-
const set = fs$
|
|
106847
|
+
const set = fs$6.readdirSync(nm);
|
|
106848
106848
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106849
106849
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106850
106850
|
try {
|
|
106851
|
-
const pkgs = fs$
|
|
106851
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106852
106852
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106853
106853
|
} catch (er) {
|
|
106854
106854
|
return [scope];
|
|
@@ -106875,7 +106875,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106875
106875
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106876
106876
|
const bundled = require_lib$12();
|
|
106877
106877
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106878
|
-
const { resolve: resolve$8, basename: basename$3, dirname: dirname$
|
|
106878
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$8 } = require("path");
|
|
106879
106879
|
const normalizePackageBin = require_lib$21();
|
|
106880
106880
|
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106881
106881
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106914,9 +106914,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106914
106914
|
}));
|
|
106915
106915
|
if (pkg) {
|
|
106916
106916
|
if (pkg.bin) {
|
|
106917
|
-
const dir = dirname$
|
|
106917
|
+
const dir = dirname$8(path$50);
|
|
106918
106918
|
const scope = basename$3(dir);
|
|
106919
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106919
|
+
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106920
106920
|
const binFiles = [];
|
|
106921
106921
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106922
106922
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112188,7 +112188,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112188
112188
|
//#endregion
|
|
112189
112189
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112190
112190
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112191
|
-
const fs$
|
|
112191
|
+
const fs$5 = require("fs");
|
|
112192
112192
|
const path$8 = require("path");
|
|
112193
112193
|
const EE = require("events").EventEmitter;
|
|
112194
112194
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112227,7 +112227,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112227
112227
|
return ret;
|
|
112228
112228
|
}
|
|
112229
112229
|
start() {
|
|
112230
|
-
fs$
|
|
112230
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112231
112231
|
return this;
|
|
112232
112232
|
}
|
|
112233
112233
|
isIgnoreFile(e) {
|
|
@@ -112251,7 +112251,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112251
112251
|
}
|
|
112252
112252
|
addIgnoreFile(file, then) {
|
|
112253
112253
|
const ig = path$8.resolve(this.path, file);
|
|
112254
|
-
fs$
|
|
112254
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112255
112255
|
}
|
|
112256
112256
|
onReadIgnoreFile(file, data, then) {
|
|
112257
112257
|
const mmopt = {
|
|
@@ -112307,11 +112307,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112307
112307
|
}
|
|
112308
112308
|
stat({ entry, file, dir }, then) {
|
|
112309
112309
|
const abs = this.path + "/" + entry;
|
|
112310
|
-
fs$
|
|
112310
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112311
112311
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112312
112312
|
else {
|
|
112313
112313
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112314
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112314
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112315
112315
|
if (statErr) this.emit("error", statErr);
|
|
112316
112316
|
else this.onstat({
|
|
112317
112317
|
st: statResult,
|
|
@@ -112365,18 +112365,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112365
112365
|
};
|
|
112366
112366
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112367
112367
|
start() {
|
|
112368
|
-
this.onReaddir(fs$
|
|
112368
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112369
112369
|
return this;
|
|
112370
112370
|
}
|
|
112371
112371
|
addIgnoreFile(file, then) {
|
|
112372
112372
|
const ig = path$8.resolve(this.path, file);
|
|
112373
|
-
this.onReadIgnoreFile(file, fs$
|
|
112373
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112374
112374
|
}
|
|
112375
112375
|
stat({ entry, file, dir }, then) {
|
|
112376
112376
|
const abs = this.path + "/" + entry;
|
|
112377
|
-
let st = fs$
|
|
112377
|
+
let st = fs$5.lstatSync(abs);
|
|
112378
112378
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112379
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112379
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112380
112380
|
this.onstat({
|
|
112381
112381
|
st,
|
|
112382
112382
|
entry,
|
|
@@ -112407,7 +112407,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112407
112407
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112408
112408
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112409
112409
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112410
|
-
const { basename: basename$2, dirname: dirname$
|
|
112410
|
+
const { basename: basename$2, dirname: dirname$7, extname: extname$1, join: join$9, relative, resolve: resolve$6, sep } = require("path");
|
|
112411
112411
|
const { log } = require_lib$29();
|
|
112412
112412
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112413
112413
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112440,7 +112440,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112440
112440
|
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112441
112441
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112442
112442
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112443
|
-
const ignoreContent = readFile$4(join$
|
|
112443
|
+
const ignoreContent = readFile$4(join$9(root, file), { encoding: "utf8" });
|
|
112444
112444
|
result.push(ignoreContent);
|
|
112445
112445
|
break;
|
|
112446
112446
|
} catch (err) {
|
|
@@ -112449,8 +112449,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112449
112449
|
}
|
|
112450
112450
|
if (!rel) return result;
|
|
112451
112451
|
const firstRel = rel.split(sep, 1)[0];
|
|
112452
|
-
const newRoot = join$
|
|
112453
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112452
|
+
const newRoot = join$9(root, firstRel);
|
|
112453
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$9(root, rel)), result);
|
|
112454
112454
|
};
|
|
112455
112455
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112456
112456
|
constructor(tree, opts) {
|
|
@@ -112479,7 +112479,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112479
112479
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112480
112480
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112481
112481
|
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112482
|
-
const relpath = relative(options.prefix, dirname$
|
|
112482
|
+
const relpath = relative(options.prefix, dirname$7(options.path));
|
|
112483
112483
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112484
112484
|
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112485
112485
|
}
|
|
@@ -112517,7 +112517,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112517
112517
|
let ignoreFiles = null;
|
|
112518
112518
|
if (this.tree.workspaces) {
|
|
112519
112519
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112520
|
-
const entryPath = join$
|
|
112520
|
+
const entryPath = join$9(this.path, entry).replace(/\\/g, "/");
|
|
112521
112521
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112522
112522
|
defaultRules,
|
|
112523
112523
|
"package.json",
|
|
@@ -112577,7 +112577,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112577
112577
|
if (file.endsWith("/*")) file += "*";
|
|
112578
112578
|
const inverse = `!${file}`;
|
|
112579
112579
|
try {
|
|
112580
|
-
const stat = lstat$1(join$
|
|
112580
|
+
const stat = lstat$1(join$9(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112581
112581
|
if (stat.isFile()) {
|
|
112582
112582
|
strict.unshift(inverse);
|
|
112583
112583
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112634,7 +112634,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112634
112634
|
walker.start();
|
|
112635
112635
|
});
|
|
112636
112636
|
const relativeFrom = relative(this.root, walker.path);
|
|
112637
|
-
for (const file of bundled) this.result.add(join$
|
|
112637
|
+
for (const file of bundled) this.result.add(join$9(relativeFrom, file).replace(/\\/g, "/"));
|
|
112638
112638
|
}
|
|
112639
112639
|
}
|
|
112640
112640
|
};
|
|
@@ -112658,7 +112658,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112658
112658
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112659
112659
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112660
112660
|
const { log } = require_lib$29();
|
|
112661
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112661
|
+
const { resolve: resolve$5, dirname: dirname$6, delimiter: delimiter$2 } = require("path");
|
|
112662
112662
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112663
112663
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112664
112664
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$2)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$2);
|
|
@@ -112676,7 +112676,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112676
112676
|
do {
|
|
112677
112677
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112678
112678
|
pp = p;
|
|
112679
|
-
p = dirname$
|
|
112679
|
+
p = dirname$6(p);
|
|
112680
112680
|
} while (p !== pp);
|
|
112681
112681
|
pathArr.push(nodeGypPath, PATH);
|
|
112682
112682
|
const pathVal = pathArr.join(delimiter$2);
|
|
@@ -112744,8 +112744,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112744
112744
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112745
112745
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112746
112746
|
const util$2 = require("util");
|
|
112747
|
-
const fs$
|
|
112748
|
-
const { stat } = fs$
|
|
112747
|
+
const fs$4 = require("fs");
|
|
112748
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112749
112749
|
async function isNodeGypPackage(path) {
|
|
112750
112750
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112751
112751
|
}
|
|
@@ -123717,7 +123717,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123717
123717
|
//#endregion
|
|
123718
123718
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123719
123719
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123720
|
-
const fs$
|
|
123720
|
+
const fs$3 = require("fs");
|
|
123721
123721
|
const npa = require_npa();
|
|
123722
123722
|
const { URL: URL$2 } = require("url");
|
|
123723
123723
|
const regFromURI = (uri, opts) => {
|
|
@@ -123757,7 +123757,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123757
123757
|
};
|
|
123758
123758
|
const maybeReadFile = (file) => {
|
|
123759
123759
|
try {
|
|
123760
|
-
return fs$
|
|
123760
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123761
123761
|
} catch (er) {
|
|
123762
123762
|
if (er.code !== "ENOENT") throw er;
|
|
123763
123763
|
return null;
|
|
@@ -140002,7 +140002,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140002
140002
|
exports.Updater = void 0;
|
|
140003
140003
|
const models_1 = require_dist$4();
|
|
140004
140004
|
const debug_1 = __importDefault(require_src$1());
|
|
140005
|
-
const fs$
|
|
140005
|
+
const fs$2 = __importStar(require("fs"));
|
|
140006
140006
|
const path$7 = __importStar(require("path"));
|
|
140007
140007
|
const package_json_1 = require_package$1();
|
|
140008
140008
|
const config_1 = require_config$1();
|
|
@@ -140073,17 +140073,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140073
140073
|
}
|
|
140074
140074
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140075
140075
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140076
|
-
await targetInfo.verify(fs$
|
|
140076
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140077
140077
|
log("WRITE %s", targetPath);
|
|
140078
|
-
fs$
|
|
140078
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140079
140079
|
});
|
|
140080
140080
|
return targetPath;
|
|
140081
140081
|
}
|
|
140082
140082
|
async findCachedTarget(targetInfo, filePath) {
|
|
140083
140083
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140084
140084
|
try {
|
|
140085
|
-
if (fs$
|
|
140086
|
-
await targetInfo.verify(fs$
|
|
140085
|
+
if (fs$2.existsSync(filePath)) {
|
|
140086
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140087
140087
|
return filePath;
|
|
140088
140088
|
}
|
|
140089
140089
|
} catch (error) {
|
|
@@ -140093,7 +140093,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140093
140093
|
loadLocalMetadata(fileName) {
|
|
140094
140094
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
140095
140095
|
log("READ %s", filePath);
|
|
140096
|
-
return fs$
|
|
140096
|
+
return fs$2.readFileSync(filePath);
|
|
140097
140097
|
}
|
|
140098
140098
|
async loadRoot() {
|
|
140099
140099
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140211,7 +140211,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140211
140211
|
try {
|
|
140212
140212
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
140213
140213
|
log("WRITE %s", filePath);
|
|
140214
|
-
fs$
|
|
140214
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140215
140215
|
} catch (error) {
|
|
140216
140216
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140217
140217
|
}
|
|
@@ -142027,7 +142027,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142027
142027
|
//#endregion
|
|
142028
142028
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142029
142029
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142030
|
-
const { basename: basename$1, dirname: dirname$
|
|
142030
|
+
const { basename: basename$1, dirname: dirname$5 } = require("node:path");
|
|
142031
142031
|
const { rm: rm$4, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
142032
142032
|
const PackageJson = require_lib$18();
|
|
142033
142033
|
const cacache = require_lib$14();
|
|
@@ -142076,7 +142076,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142076
142076
|
this.npmBin = opts.npmBin || "npm";
|
|
142077
142077
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142078
142078
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142079
|
-
`--cache=${dirname$
|
|
142079
|
+
`--cache=${dirname$5(this.cache)}`,
|
|
142080
142080
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142081
142081
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142082
142082
|
`--offline=${!!this.offline}`,
|
|
@@ -142232,7 +142232,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142232
142232
|
}));
|
|
142233
142233
|
}
|
|
142234
142234
|
async tarballFile(dest) {
|
|
142235
|
-
await mkdir$4(dirname$
|
|
142235
|
+
await mkdir$4(dirname$5(dest), { recursive: true });
|
|
142236
142236
|
return this.#toFile(dest);
|
|
142237
142237
|
}
|
|
142238
142238
|
#extract(dest, tarball) {
|
|
@@ -150653,7 +150653,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150653
150653
|
}
|
|
150654
150654
|
})();
|
|
150655
150655
|
}));
|
|
150656
|
-
|
|
150656
|
+
//#endregion
|
|
150657
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150658
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150657
150659
|
const { promisify } = require("util");
|
|
150658
150660
|
const path$3 = require("path");
|
|
150659
150661
|
const { createHash } = require("crypto");
|
|
@@ -151105,11 +151107,12 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151105
151107
|
response.writeHead(response.statusCode || 200, headers);
|
|
151106
151108
|
stream.pipe(response);
|
|
151107
151109
|
};
|
|
151108
|
-
}))
|
|
151109
|
-
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151110
|
-
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151110
|
+
}));
|
|
151111
151111
|
//#endregion
|
|
151112
151112
|
//#region ../../packages/core-node/src/server.ts
|
|
151113
|
+
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151114
|
+
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151115
|
+
require_src();
|
|
151113
151116
|
const sendStartupProgress = (message) => {
|
|
151114
151117
|
console.log(`[Startup Progress] ${message}`);
|
|
151115
151118
|
webSocketServer.broadcast("startup:progress", {
|
|
@@ -151543,7 +151546,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151543
151546
|
}
|
|
151544
151547
|
//#endregion
|
|
151545
151548
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151546
|
-
const { join: join$
|
|
151549
|
+
const { join: join$7 } = node_path.default;
|
|
151547
151550
|
//#endregion
|
|
151548
151551
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151549
151552
|
const localPluginsMap = /* @__PURE__ */ new Map();
|