@pipelab/plugin-electron 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 +6 -6
package/dist/index.cjs
CHANGED
|
@@ -2116,8 +2116,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2116
2116
|
completed: false
|
|
2117
2117
|
}
|
|
2118
2118
|
},
|
|
2119
|
-
plugins: DEFAULT_PLUGINS
|
|
2120
|
-
isInternalMigrationBannerClosed: false
|
|
2119
|
+
plugins: DEFAULT_PLUGINS
|
|
2121
2120
|
});
|
|
2122
2121
|
settingsMigratorInternal.createMigrations({
|
|
2123
2122
|
defaultValue: defaultAppSettings,
|
|
@@ -2168,12 +2167,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2168
2167
|
createMigration({
|
|
2169
2168
|
version: "6.0.0",
|
|
2170
2169
|
up: (state) => {
|
|
2171
|
-
const { cacheFolder
|
|
2170
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2172
2171
|
return {
|
|
2173
2172
|
...rest,
|
|
2173
|
+
cacheFolder,
|
|
2174
2174
|
agents: [],
|
|
2175
|
-
plugins: DEFAULT_PLUGINS
|
|
2176
|
-
isInternalMigrationBannerClosed: false
|
|
2175
|
+
plugins: DEFAULT_PLUGINS
|
|
2177
2176
|
};
|
|
2178
2177
|
}
|
|
2179
2178
|
}),
|
|
@@ -2526,7 +2525,8 @@ object({
|
|
|
2526
2525
|
enabled: boolean(),
|
|
2527
2526
|
description: string()
|
|
2528
2527
|
})),
|
|
2529
|
-
|
|
2528
|
+
cacheFolder: optional(string()),
|
|
2529
|
+
tempFolder: optional(string())
|
|
2530
2530
|
});
|
|
2531
2531
|
const ConnectionValidator = looseObject({
|
|
2532
2532
|
id: string(),
|
|
@@ -49987,7 +49987,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49987
49987
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49988
49988
|
module.exports = isexe;
|
|
49989
49989
|
isexe.sync = sync;
|
|
49990
|
-
var fs$
|
|
49990
|
+
var fs$38 = require("fs");
|
|
49991
49991
|
function checkPathExt(path, options) {
|
|
49992
49992
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49993
49993
|
if (!pathext) return true;
|
|
@@ -50004,12 +50004,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50004
50004
|
return checkPathExt(path, options);
|
|
50005
50005
|
}
|
|
50006
50006
|
function isexe(path, options, cb) {
|
|
50007
|
-
fs$
|
|
50007
|
+
fs$38.stat(path, function(er, stat) {
|
|
50008
50008
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
50009
50009
|
});
|
|
50010
50010
|
}
|
|
50011
50011
|
function sync(path, options) {
|
|
50012
|
-
return checkStat(fs$
|
|
50012
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
50013
50013
|
}
|
|
50014
50014
|
}));
|
|
50015
50015
|
//#endregion
|
|
@@ -50017,14 +50017,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
50017
50017
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50018
50018
|
module.exports = isexe;
|
|
50019
50019
|
isexe.sync = sync;
|
|
50020
|
-
var fs$
|
|
50020
|
+
var fs$37 = require("fs");
|
|
50021
50021
|
function isexe(path, options, cb) {
|
|
50022
|
-
fs$
|
|
50022
|
+
fs$37.stat(path, function(er, stat) {
|
|
50023
50023
|
cb(er, er ? false : checkStat(stat, options));
|
|
50024
50024
|
});
|
|
50025
50025
|
}
|
|
50026
50026
|
function sync(path, options) {
|
|
50027
|
-
return checkStat(fs$
|
|
50027
|
+
return checkStat(fs$37.statSync(path), options);
|
|
50028
50028
|
}
|
|
50029
50029
|
function checkStat(stat, options) {
|
|
50030
50030
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50239,16 +50239,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50239
50239
|
//#endregion
|
|
50240
50240
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50241
50241
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50242
|
-
const fs$
|
|
50242
|
+
const fs$36 = require("fs");
|
|
50243
50243
|
const shebangCommand = require_shebang_command();
|
|
50244
50244
|
function readShebang(command) {
|
|
50245
50245
|
const size = 150;
|
|
50246
50246
|
const buffer = Buffer.alloc(size);
|
|
50247
50247
|
let fd;
|
|
50248
50248
|
try {
|
|
50249
|
-
fd = fs$
|
|
50250
|
-
fs$
|
|
50251
|
-
fs$
|
|
50249
|
+
fd = fs$36.openSync(command, "r");
|
|
50250
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50251
|
+
fs$36.closeSync(fd);
|
|
50252
50252
|
} catch (e) {}
|
|
50253
50253
|
return shebangCommand(buffer.toString());
|
|
50254
50254
|
}
|
|
@@ -57205,7 +57205,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57205
57205
|
const { Minipass } = require_minipass$4();
|
|
57206
57206
|
const Pax = require_pax();
|
|
57207
57207
|
const Header = require_header();
|
|
57208
|
-
const fs$
|
|
57208
|
+
const fs$35 = require("fs");
|
|
57209
57209
|
const path$33 = require("path");
|
|
57210
57210
|
const normPath = require_normalize_windows_path();
|
|
57211
57211
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57293,7 +57293,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57293
57293
|
return super.emit(ev, ...data);
|
|
57294
57294
|
}
|
|
57295
57295
|
[LSTAT]() {
|
|
57296
|
-
fs$
|
|
57296
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57297
57297
|
if (er) return this.emit("error", er);
|
|
57298
57298
|
this[ONLSTAT](stat);
|
|
57299
57299
|
});
|
|
@@ -57358,7 +57358,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57358
57358
|
this.end();
|
|
57359
57359
|
}
|
|
57360
57360
|
[SYMLINK]() {
|
|
57361
|
-
fs$
|
|
57361
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57362
57362
|
if (er) return this.emit("error", er);
|
|
57363
57363
|
this[ONREADLINK](linkpath);
|
|
57364
57364
|
});
|
|
@@ -57389,7 +57389,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57389
57389
|
this[OPENFILE]();
|
|
57390
57390
|
}
|
|
57391
57391
|
[OPENFILE]() {
|
|
57392
|
-
fs$
|
|
57392
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57393
57393
|
if (er) return this.emit("error", er);
|
|
57394
57394
|
this[ONOPENFILE](fd);
|
|
57395
57395
|
});
|
|
@@ -57409,13 +57409,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57409
57409
|
}
|
|
57410
57410
|
[READ]() {
|
|
57411
57411
|
const { fd, buf, offset, length, pos } = this;
|
|
57412
|
-
fs$
|
|
57412
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57413
57413
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57414
57414
|
this[ONREAD](bytesRead);
|
|
57415
57415
|
});
|
|
57416
57416
|
}
|
|
57417
57417
|
[CLOSE](cb) {
|
|
57418
|
-
fs$
|
|
57418
|
+
fs$35.close(this.fd, cb);
|
|
57419
57419
|
}
|
|
57420
57420
|
[ONREAD](bytesRead) {
|
|
57421
57421
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57471,19 +57471,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57471
57471
|
});
|
|
57472
57472
|
var WriteEntrySync = class extends WriteEntry {
|
|
57473
57473
|
[LSTAT]() {
|
|
57474
|
-
this[ONLSTAT](fs$
|
|
57474
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57475
57475
|
}
|
|
57476
57476
|
[SYMLINK]() {
|
|
57477
|
-
this[ONREADLINK](fs$
|
|
57477
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57478
57478
|
}
|
|
57479
57479
|
[OPENFILE]() {
|
|
57480
|
-
this[ONOPENFILE](fs$
|
|
57480
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57481
57481
|
}
|
|
57482
57482
|
[READ]() {
|
|
57483
57483
|
let threw = true;
|
|
57484
57484
|
try {
|
|
57485
57485
|
const { fd, buf, offset, length, pos } = this;
|
|
57486
|
-
const bytesRead = fs$
|
|
57486
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57487
57487
|
this[ONREAD](bytesRead);
|
|
57488
57488
|
threw = false;
|
|
57489
57489
|
} finally {
|
|
@@ -57496,7 +57496,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57496
57496
|
cb();
|
|
57497
57497
|
}
|
|
57498
57498
|
[CLOSE](cb) {
|
|
57499
|
-
fs$
|
|
57499
|
+
fs$35.closeSync(this.fd);
|
|
57500
57500
|
cb();
|
|
57501
57501
|
}
|
|
57502
57502
|
};
|
|
@@ -57893,7 +57893,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57893
57893
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57894
57894
|
const WRITE = Symbol("write");
|
|
57895
57895
|
const ONDRAIN = Symbol("ondrain");
|
|
57896
|
-
const fs$
|
|
57896
|
+
const fs$34 = require("fs");
|
|
57897
57897
|
const path$32 = require("path");
|
|
57898
57898
|
const warner = require_warn_mixin();
|
|
57899
57899
|
const normPath = require_normalize_windows_path();
|
|
@@ -57982,7 +57982,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57982
57982
|
[STAT](job) {
|
|
57983
57983
|
job.pending = true;
|
|
57984
57984
|
this[JOBS] += 1;
|
|
57985
|
-
fs$
|
|
57985
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57986
57986
|
job.pending = false;
|
|
57987
57987
|
this[JOBS] -= 1;
|
|
57988
57988
|
if (er) this.emit("error", er);
|
|
@@ -57998,7 +57998,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57998
57998
|
[READDIR](job) {
|
|
57999
57999
|
job.pending = true;
|
|
58000
58000
|
this[JOBS] += 1;
|
|
58001
|
-
fs$
|
|
58001
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
58002
58002
|
job.pending = false;
|
|
58003
58003
|
this[JOBS] -= 1;
|
|
58004
58004
|
if (er) return this.emit("error", er);
|
|
@@ -58116,10 +58116,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58116
58116
|
resume() {}
|
|
58117
58117
|
[STAT](job) {
|
|
58118
58118
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58119
|
-
this[ONSTAT](job, fs$
|
|
58119
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58120
58120
|
}
|
|
58121
58121
|
[READDIR](job, stat) {
|
|
58122
|
-
this[ONREADDIR](job, fs$
|
|
58122
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58123
58123
|
}
|
|
58124
58124
|
[PIPE](job) {
|
|
58125
58125
|
const source = job.entry;
|
|
@@ -58575,8 +58575,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58575
58575
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58576
58576
|
const MiniPass = require_minipass$2();
|
|
58577
58577
|
const EE$11 = require("events").EventEmitter;
|
|
58578
|
-
const fs$
|
|
58579
|
-
let writev = fs$
|
|
58578
|
+
const fs$33 = require("fs");
|
|
58579
|
+
let writev = fs$33.writev;
|
|
58580
58580
|
/* istanbul ignore next */
|
|
58581
58581
|
if (!writev) {
|
|
58582
58582
|
const binding = process.binding("fs");
|
|
@@ -58647,7 +58647,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58647
58647
|
throw new TypeError("this is a readable stream");
|
|
58648
58648
|
}
|
|
58649
58649
|
[_open]() {
|
|
58650
|
-
fs$
|
|
58650
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58651
58651
|
}
|
|
58652
58652
|
[_onopen](er, fd) {
|
|
58653
58653
|
if (er) this[_onerror](er);
|
|
@@ -58666,7 +58666,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58666
58666
|
const buf = this[_makeBuf]();
|
|
58667
58667
|
/* istanbul ignore if */
|
|
58668
58668
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58669
|
-
fs$
|
|
58669
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58670
58670
|
}
|
|
58671
58671
|
}
|
|
58672
58672
|
[_onread](er, br, buf) {
|
|
@@ -58678,7 +58678,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58678
58678
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58679
58679
|
const fd = this[_fd];
|
|
58680
58680
|
this[_fd] = null;
|
|
58681
|
-
fs$
|
|
58681
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58682
58682
|
}
|
|
58683
58683
|
}
|
|
58684
58684
|
[_onerror](er) {
|
|
@@ -58716,7 +58716,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58716
58716
|
[_open]() {
|
|
58717
58717
|
let threw = true;
|
|
58718
58718
|
try {
|
|
58719
|
-
this[_onopen](null, fs$
|
|
58719
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58720
58720
|
threw = false;
|
|
58721
58721
|
} finally {
|
|
58722
58722
|
if (threw) this[_close]();
|
|
@@ -58730,7 +58730,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58730
58730
|
do {
|
|
58731
58731
|
const buf = this[_makeBuf]();
|
|
58732
58732
|
/* istanbul ignore next */
|
|
58733
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58733
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58734
58734
|
if (!this[_handleChunk](br, buf)) break;
|
|
58735
58735
|
} while (true);
|
|
58736
58736
|
this[_reading] = false;
|
|
@@ -58744,7 +58744,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58744
58744
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58745
58745
|
const fd = this[_fd];
|
|
58746
58746
|
this[_fd] = null;
|
|
58747
|
-
fs$
|
|
58747
|
+
fs$33.closeSync(fd);
|
|
58748
58748
|
this.emit("close");
|
|
58749
58749
|
}
|
|
58750
58750
|
}
|
|
@@ -58789,7 +58789,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58789
58789
|
this.emit("error", er);
|
|
58790
58790
|
}
|
|
58791
58791
|
[_open]() {
|
|
58792
|
-
fs$
|
|
58792
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58793
58793
|
}
|
|
58794
58794
|
[_onopen](er, fd) {
|
|
58795
58795
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58824,7 +58824,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58824
58824
|
return true;
|
|
58825
58825
|
}
|
|
58826
58826
|
[_write](buf) {
|
|
58827
|
-
fs$
|
|
58827
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58828
58828
|
}
|
|
58829
58829
|
[_onwrite](er, bw) {
|
|
58830
58830
|
if (er) this[_onerror](er);
|
|
@@ -58858,7 +58858,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58858
58858
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58859
58859
|
const fd = this[_fd];
|
|
58860
58860
|
this[_fd] = null;
|
|
58861
|
-
fs$
|
|
58861
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58862
58862
|
}
|
|
58863
58863
|
}
|
|
58864
58864
|
};
|
|
@@ -58866,28 +58866,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58866
58866
|
[_open]() {
|
|
58867
58867
|
let fd;
|
|
58868
58868
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58869
|
-
fd = fs$
|
|
58869
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58870
58870
|
} catch (er) {
|
|
58871
58871
|
if (er.code === "ENOENT") {
|
|
58872
58872
|
this[_flags] = "w";
|
|
58873
58873
|
return this[_open]();
|
|
58874
58874
|
} else throw er;
|
|
58875
58875
|
}
|
|
58876
|
-
else fd = fs$
|
|
58876
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58877
58877
|
this[_onopen](null, fd);
|
|
58878
58878
|
}
|
|
58879
58879
|
[_close]() {
|
|
58880
58880
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58881
58881
|
const fd = this[_fd];
|
|
58882
58882
|
this[_fd] = null;
|
|
58883
|
-
fs$
|
|
58883
|
+
fs$33.closeSync(fd);
|
|
58884
58884
|
this.emit("close");
|
|
58885
58885
|
}
|
|
58886
58886
|
}
|
|
58887
58887
|
[_write](buf) {
|
|
58888
58888
|
let threw = true;
|
|
58889
58889
|
try {
|
|
58890
|
-
this[_onwrite](null, fs$
|
|
58890
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58891
58891
|
threw = false;
|
|
58892
58892
|
} finally {
|
|
58893
58893
|
if (threw) try {
|
|
@@ -59252,7 +59252,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59252
59252
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59253
59253
|
const hlo = require_high_level_opt();
|
|
59254
59254
|
const Parser = require_parse$4();
|
|
59255
|
-
const fs$
|
|
59255
|
+
const fs$32 = require("fs");
|
|
59256
59256
|
const fsm = require_fs_minipass();
|
|
59257
59257
|
const path$31 = require("path");
|
|
59258
59258
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59293,15 +59293,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59293
59293
|
let threw = true;
|
|
59294
59294
|
let fd;
|
|
59295
59295
|
try {
|
|
59296
|
-
const stat = fs$
|
|
59296
|
+
const stat = fs$32.statSync(file);
|
|
59297
59297
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59298
|
-
if (stat.size < readSize) p.end(fs$
|
|
59298
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59299
59299
|
else {
|
|
59300
59300
|
let pos = 0;
|
|
59301
59301
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59302
|
-
fd = fs$
|
|
59302
|
+
fd = fs$32.openSync(file, "r");
|
|
59303
59303
|
while (pos < stat.size) {
|
|
59304
|
-
const bytesRead = fs$
|
|
59304
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59305
59305
|
pos += bytesRead;
|
|
59306
59306
|
p.write(buf.slice(0, bytesRead));
|
|
59307
59307
|
}
|
|
@@ -59310,7 +59310,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59310
59310
|
threw = false;
|
|
59311
59311
|
} finally {
|
|
59312
59312
|
if (threw && fd) try {
|
|
59313
|
-
fs$
|
|
59313
|
+
fs$32.closeSync(fd);
|
|
59314
59314
|
} catch (er) {}
|
|
59315
59315
|
}
|
|
59316
59316
|
};
|
|
@@ -59321,7 +59321,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59321
59321
|
const p = new Promise((resolve, reject) => {
|
|
59322
59322
|
parse.on("error", reject);
|
|
59323
59323
|
parse.on("end", resolve);
|
|
59324
|
-
fs$
|
|
59324
|
+
fs$32.stat(file, (er, stat) => {
|
|
59325
59325
|
if (er) reject(er);
|
|
59326
59326
|
else {
|
|
59327
59327
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59413,7 +59413,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59413
59413
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59414
59414
|
const hlo = require_high_level_opt();
|
|
59415
59415
|
const Pack = require_pack$1();
|
|
59416
|
-
const fs$
|
|
59416
|
+
const fs$31 = require("fs");
|
|
59417
59417
|
const fsm = require_fs_minipass();
|
|
59418
59418
|
const t = require_list();
|
|
59419
59419
|
const path$29 = require("path");
|
|
@@ -59433,16 +59433,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59433
59433
|
let position;
|
|
59434
59434
|
try {
|
|
59435
59435
|
try {
|
|
59436
|
-
fd = fs$
|
|
59436
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59437
59437
|
} catch (er) {
|
|
59438
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59438
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59439
59439
|
else throw er;
|
|
59440
59440
|
}
|
|
59441
|
-
const st = fs$
|
|
59441
|
+
const st = fs$31.fstatSync(fd);
|
|
59442
59442
|
const headBuf = Buffer.alloc(512);
|
|
59443
59443
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59444
59444
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59445
|
-
bytes = fs$
|
|
59445
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59446
59446
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59447
59447
|
if (!bytes) break POSITION;
|
|
59448
59448
|
}
|
|
@@ -59457,7 +59457,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59457
59457
|
streamSync(opt, p, position, fd, files);
|
|
59458
59458
|
} finally {
|
|
59459
59459
|
if (threw) try {
|
|
59460
|
-
fs$
|
|
59460
|
+
fs$31.closeSync(fd);
|
|
59461
59461
|
} catch (er) {}
|
|
59462
59462
|
}
|
|
59463
59463
|
};
|
|
@@ -59474,7 +59474,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59474
59474
|
const p = new Pack(opt);
|
|
59475
59475
|
const getPos = (fd, size, cb_) => {
|
|
59476
59476
|
const cb = (er, pos) => {
|
|
59477
|
-
if (er) fs$
|
|
59477
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59478
59478
|
else cb_(null, pos);
|
|
59479
59479
|
};
|
|
59480
59480
|
let position = 0;
|
|
@@ -59484,7 +59484,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59484
59484
|
const onread = (er, bytes) => {
|
|
59485
59485
|
if (er) return cb(er);
|
|
59486
59486
|
bufPos += bytes;
|
|
59487
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59487
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59488
59488
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59489
59489
|
if (bufPos < 512) return cb(null, position);
|
|
59490
59490
|
const h = new Header(headBuf);
|
|
@@ -59495,9 +59495,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59495
59495
|
if (position >= size) return cb(null, position);
|
|
59496
59496
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59497
59497
|
bufPos = 0;
|
|
59498
|
-
fs$
|
|
59498
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59499
59499
|
};
|
|
59500
|
-
fs$
|
|
59500
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59501
59501
|
};
|
|
59502
59502
|
const promise = new Promise((resolve, reject) => {
|
|
59503
59503
|
p.on("error", reject);
|
|
@@ -59505,11 +59505,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59505
59505
|
const onopen = (er, fd) => {
|
|
59506
59506
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59507
59507
|
flag = "w+";
|
|
59508
|
-
return fs$
|
|
59508
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59509
59509
|
}
|
|
59510
59510
|
if (er) return reject(er);
|
|
59511
|
-
fs$
|
|
59512
|
-
if (er) return fs$
|
|
59511
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59512
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59513
59513
|
getPos(fd, st.size, (er, position) => {
|
|
59514
59514
|
if (er) return reject(er);
|
|
59515
59515
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59523,7 +59523,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59523
59523
|
});
|
|
59524
59524
|
});
|
|
59525
59525
|
};
|
|
59526
|
-
fs$
|
|
59526
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59527
59527
|
});
|
|
59528
59528
|
return cb ? promise.then(cb, cb) : promise;
|
|
59529
59529
|
};
|
|
@@ -59576,32 +59576,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59576
59576
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59577
59577
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59578
59578
|
const { promisify: promisify$1 } = require("util");
|
|
59579
|
-
const fs$
|
|
59579
|
+
const fs$30 = require("fs");
|
|
59580
59580
|
const optsArg = (opts) => {
|
|
59581
59581
|
if (!opts) opts = {
|
|
59582
59582
|
mode: 511,
|
|
59583
|
-
fs: fs$
|
|
59583
|
+
fs: fs$30
|
|
59584
59584
|
};
|
|
59585
59585
|
else if (typeof opts === "object") opts = {
|
|
59586
59586
|
mode: 511,
|
|
59587
|
-
fs: fs$
|
|
59587
|
+
fs: fs$30,
|
|
59588
59588
|
...opts
|
|
59589
59589
|
};
|
|
59590
59590
|
else if (typeof opts === "number") opts = {
|
|
59591
59591
|
mode: opts,
|
|
59592
|
-
fs: fs$
|
|
59592
|
+
fs: fs$30
|
|
59593
59593
|
};
|
|
59594
59594
|
else if (typeof opts === "string") opts = {
|
|
59595
59595
|
mode: parseInt(opts, 8),
|
|
59596
|
-
fs: fs$
|
|
59596
|
+
fs: fs$30
|
|
59597
59597
|
};
|
|
59598
59598
|
else throw new TypeError("invalid options argument");
|
|
59599
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59599
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59600
59600
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59601
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59601
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59602
59602
|
opts.statAsync = promisify$1(opts.stat);
|
|
59603
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59604
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59603
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59604
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59605
59605
|
return opts;
|
|
59606
59606
|
};
|
|
59607
59607
|
module.exports = optsArg;
|
|
@@ -59632,17 +59632,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59632
59632
|
//#endregion
|
|
59633
59633
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59634
59634
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59635
|
-
const { dirname: dirname$
|
|
59635
|
+
const { dirname: dirname$15 } = require("path");
|
|
59636
59636
|
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59637
59637
|
if (path$82 === parent) return Promise.resolve();
|
|
59638
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59638
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$15(parent), parent) : void 0);
|
|
59639
59639
|
};
|
|
59640
59640
|
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59641
59641
|
if (path$83 === parent) return void 0;
|
|
59642
59642
|
try {
|
|
59643
59643
|
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59644
59644
|
} catch (er) {
|
|
59645
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59645
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$15(parent), parent) : void 0;
|
|
59646
59646
|
}
|
|
59647
59647
|
};
|
|
59648
59648
|
module.exports = {
|
|
@@ -59653,10 +59653,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59653
59653
|
//#endregion
|
|
59654
59654
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59655
59655
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59656
|
-
const { dirname: dirname$
|
|
59656
|
+
const { dirname: dirname$14 } = require("path");
|
|
59657
59657
|
const mkdirpManual = (path$80, opts, made) => {
|
|
59658
59658
|
opts.recursive = false;
|
|
59659
|
-
const parent = dirname$
|
|
59659
|
+
const parent = dirname$14(path$80);
|
|
59660
59660
|
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59661
59661
|
if (er.code !== "EISDIR") throw er;
|
|
59662
59662
|
});
|
|
@@ -59672,7 +59672,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59672
59672
|
});
|
|
59673
59673
|
};
|
|
59674
59674
|
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59675
|
-
const parent = dirname$
|
|
59675
|
+
const parent = dirname$14(path$81);
|
|
59676
59676
|
opts.recursive = false;
|
|
59677
59677
|
if (parent === path$81) try {
|
|
59678
59678
|
return opts.mkdirSync(path$81, opts);
|
|
@@ -59701,12 +59701,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59701
59701
|
//#endregion
|
|
59702
59702
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59703
59703
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59704
|
-
const { dirname: dirname$
|
|
59704
|
+
const { dirname: dirname$13 } = require("path");
|
|
59705
59705
|
const { findMade, findMadeSync } = require_find_made();
|
|
59706
59706
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59707
59707
|
const mkdirpNative = (path$78, opts) => {
|
|
59708
59708
|
opts.recursive = true;
|
|
59709
|
-
if (dirname$
|
|
59709
|
+
if (dirname$13(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59710
59710
|
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59711
59711
|
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59712
59712
|
else throw er;
|
|
@@ -59714,7 +59714,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59714
59714
|
};
|
|
59715
59715
|
const mkdirpNativeSync = (path$79, opts) => {
|
|
59716
59716
|
opts.recursive = true;
|
|
59717
|
-
if (dirname$
|
|
59717
|
+
if (dirname$13(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59718
59718
|
const made = findMadeSync(opts, path$79);
|
|
59719
59719
|
try {
|
|
59720
59720
|
opts.mkdirSync(path$79, opts);
|
|
@@ -59732,12 +59732,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59732
59732
|
//#endregion
|
|
59733
59733
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59734
59734
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59735
|
-
const fs$
|
|
59735
|
+
const fs$29 = require("fs");
|
|
59736
59736
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59737
59737
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59738
59738
|
module.exports = {
|
|
59739
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59740
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59739
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59740
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59741
59741
|
};
|
|
59742
59742
|
}));
|
|
59743
59743
|
//#endregion
|
|
@@ -59768,17 +59768,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59768
59768
|
//#endregion
|
|
59769
59769
|
//#region ../../node_modules/chownr/chownr.js
|
|
59770
59770
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59771
|
-
const fs$
|
|
59771
|
+
const fs$28 = require("fs");
|
|
59772
59772
|
const path$28 = require("path");
|
|
59773
59773
|
/* istanbul ignore next */
|
|
59774
|
-
const LCHOWN = fs$
|
|
59774
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59775
59775
|
/* istanbul ignore next */
|
|
59776
|
-
const LCHOWNSYNC = fs$
|
|
59776
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59777
59777
|
/* istanbul ignore next */
|
|
59778
|
-
const needEISDIRHandled = fs$
|
|
59778
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59779
59779
|
const lchownSync = (path$70, uid, gid) => {
|
|
59780
59780
|
try {
|
|
59781
|
-
return fs$
|
|
59781
|
+
return fs$28[LCHOWNSYNC](path$70, uid, gid);
|
|
59782
59782
|
} catch (er) {
|
|
59783
59783
|
if (er.code !== "ENOENT") throw er;
|
|
59784
59784
|
}
|
|
@@ -59786,7 +59786,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59786
59786
|
/* istanbul ignore next */
|
|
59787
59787
|
const chownSync = (path$71, uid, gid) => {
|
|
59788
59788
|
try {
|
|
59789
|
-
return fs$
|
|
59789
|
+
return fs$28.chownSync(path$71, uid, gid);
|
|
59790
59790
|
} catch (er) {
|
|
59791
59791
|
if (er.code !== "ENOENT") throw er;
|
|
59792
59792
|
}
|
|
@@ -59794,7 +59794,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59794
59794
|
/* istanbul ignore next */
|
|
59795
59795
|
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59796
59796
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59797
|
-
else fs$
|
|
59797
|
+
else fs$28.chown(path$72, uid, gid, cb);
|
|
59798
59798
|
} : (_, __, ___, cb) => cb;
|
|
59799
59799
|
/* istanbul ignore next */
|
|
59800
59800
|
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
@@ -59806,17 +59806,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59806
59806
|
}
|
|
59807
59807
|
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59808
59808
|
const nodeVersion = process.version;
|
|
59809
|
-
let readdir = (path$75, options, cb) => fs$
|
|
59810
|
-
let readdirSync = (path$76, options) => fs$
|
|
59809
|
+
let readdir = (path$75, options, cb) => fs$28.readdir(path$75, options, cb);
|
|
59810
|
+
let readdirSync = (path$76, options) => fs$28.readdirSync(path$76, options);
|
|
59811
59811
|
/* istanbul ignore next */
|
|
59812
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$
|
|
59812
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$28.readdir(path$77, cb);
|
|
59813
59813
|
const chown = (cpath, uid, gid, cb) => {
|
|
59814
|
-
fs$
|
|
59814
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59815
59815
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59816
59816
|
}));
|
|
59817
59817
|
};
|
|
59818
59818
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59819
|
-
if (typeof child === "string") return fs$
|
|
59819
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59820
59820
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59821
59821
|
stats.name = child;
|
|
59822
59822
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59846,7 +59846,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59846
59846
|
};
|
|
59847
59847
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59848
59848
|
if (typeof child === "string") try {
|
|
59849
|
-
const stats = fs$
|
|
59849
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
59850
59850
|
stats.name = child;
|
|
59851
59851
|
child = stats;
|
|
59852
59852
|
} catch (er) {
|
|
@@ -59875,7 +59875,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59875
59875
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59876
59876
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59877
59877
|
const mkdirp = require_mkdirp();
|
|
59878
|
-
const fs$
|
|
59878
|
+
const fs$27 = require("fs");
|
|
59879
59879
|
const path$27 = require("path");
|
|
59880
59880
|
const chownr = require_chownr();
|
|
59881
59881
|
const normPath = require_normalize_windows_path();
|
|
@@ -59902,7 +59902,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59902
59902
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59903
59903
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59904
59904
|
const checkCwd = (dir, cb) => {
|
|
59905
|
-
fs$
|
|
59905
|
+
fs$27.stat(dir, (er, st) => {
|
|
59906
59906
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59907
59907
|
cb(er);
|
|
59908
59908
|
});
|
|
@@ -59924,7 +59924,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59924
59924
|
else {
|
|
59925
59925
|
cSet(cache, dir, true);
|
|
59926
59926
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59927
|
-
else if (needChmod) fs$
|
|
59927
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59928
59928
|
else cb();
|
|
59929
59929
|
}
|
|
59930
59930
|
};
|
|
@@ -59938,17 +59938,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59938
59938
|
const p = parts.shift();
|
|
59939
59939
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59940
59940
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59941
|
-
fs$
|
|
59941
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59942
59942
|
};
|
|
59943
59943
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59944
|
-
if (er) fs$
|
|
59944
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59945
59945
|
if (statEr) {
|
|
59946
59946
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59947
59947
|
cb(statEr);
|
|
59948
59948
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59949
|
-
else if (unlink) fs$
|
|
59949
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59950
59950
|
if (er) return cb(er);
|
|
59951
|
-
fs$
|
|
59951
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59952
59952
|
});
|
|
59953
59953
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59954
59954
|
else cb(er);
|
|
@@ -59962,7 +59962,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59962
59962
|
let ok = false;
|
|
59963
59963
|
let code = "ENOTDIR";
|
|
59964
59964
|
try {
|
|
59965
|
-
ok = fs$
|
|
59965
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59966
59966
|
} catch (er) {
|
|
59967
59967
|
code = er.code;
|
|
59968
59968
|
} finally {
|
|
@@ -59984,7 +59984,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59984
59984
|
const done = (created) => {
|
|
59985
59985
|
cSet(cache, dir, true);
|
|
59986
59986
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59987
|
-
if (needChmod) fs$
|
|
59987
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59988
59988
|
};
|
|
59989
59989
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59990
59990
|
if (dir === cwd) {
|
|
@@ -59998,17 +59998,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59998
59998
|
part = normPath(path$27.resolve(part));
|
|
59999
59999
|
if (cGet(cache, part)) continue;
|
|
60000
60000
|
try {
|
|
60001
|
-
fs$
|
|
60001
|
+
fs$27.mkdirSync(part, mode);
|
|
60002
60002
|
created = created || part;
|
|
60003
60003
|
cSet(cache, part, true);
|
|
60004
60004
|
} catch (er) {
|
|
60005
|
-
const st = fs$
|
|
60005
|
+
const st = fs$27.lstatSync(part);
|
|
60006
60006
|
if (st.isDirectory()) {
|
|
60007
60007
|
cSet(cache, part, true);
|
|
60008
60008
|
continue;
|
|
60009
60009
|
} else if (unlink) {
|
|
60010
|
-
fs$
|
|
60011
|
-
fs$
|
|
60010
|
+
fs$27.unlinkSync(part);
|
|
60011
|
+
fs$27.mkdirSync(part, mode);
|
|
60012
60012
|
created = created || part;
|
|
60013
60013
|
cSet(cache, part, true);
|
|
60014
60014
|
continue;
|
|
@@ -60034,14 +60034,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60034
60034
|
const assert$1 = require("assert");
|
|
60035
60035
|
const normalize = require_normalize_unicode();
|
|
60036
60036
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60037
|
-
const { join: join$
|
|
60037
|
+
const { join: join$18 } = require("path");
|
|
60038
60038
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60039
60039
|
module.exports = () => {
|
|
60040
60040
|
const queues = /* @__PURE__ */ new Map();
|
|
60041
60041
|
const reservations = /* @__PURE__ */ new Map();
|
|
60042
60042
|
const getDirs = (path$61) => {
|
|
60043
60043
|
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
60044
|
-
if (set.length) path$62 = join$
|
|
60044
|
+
if (set.length) path$62 = join$18(set[set.length - 1], path$62);
|
|
60045
60045
|
set.push(path$62 || "/");
|
|
60046
60046
|
return set;
|
|
60047
60047
|
}, []);
|
|
@@ -60095,7 +60095,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60095
60095
|
};
|
|
60096
60096
|
const reserve = (paths, fn) => {
|
|
60097
60097
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60098
|
-
return stripSlashes(join$
|
|
60098
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
60099
60099
|
});
|
|
60100
60100
|
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60101
60101
|
reservations.set(fn, {
|
|
@@ -60137,7 +60137,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60137
60137
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60138
60138
|
const assert = require("assert");
|
|
60139
60139
|
const Parser = require_parse$4();
|
|
60140
|
-
const fs$
|
|
60140
|
+
const fs$26 = require("fs");
|
|
60141
60141
|
const fsm = require_fs_minipass();
|
|
60142
60142
|
const path$26 = require("path");
|
|
60143
60143
|
const mkdir = require_mkdir();
|
|
@@ -60178,19 +60178,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60178
60178
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60179
60179
|
/* istanbul ignore next */
|
|
60180
60180
|
const unlinkFile = (path$57, cb) => {
|
|
60181
|
-
if (!isWindows) return fs$
|
|
60181
|
+
if (!isWindows) return fs$26.unlink(path$57, cb);
|
|
60182
60182
|
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60183
|
-
fs$
|
|
60183
|
+
fs$26.rename(path$57, name, (er) => {
|
|
60184
60184
|
if (er) return cb(er);
|
|
60185
|
-
fs$
|
|
60185
|
+
fs$26.unlink(name, cb);
|
|
60186
60186
|
});
|
|
60187
60187
|
};
|
|
60188
60188
|
/* istanbul ignore next */
|
|
60189
60189
|
const unlinkFileSync = (path$58) => {
|
|
60190
|
-
if (!isWindows) return fs$
|
|
60190
|
+
if (!isWindows) return fs$26.unlinkSync(path$58);
|
|
60191
60191
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60192
|
-
fs$
|
|
60193
|
-
fs$
|
|
60192
|
+
fs$26.renameSync(path$58, name);
|
|
60193
|
+
fs$26.unlinkSync(name);
|
|
60194
60194
|
};
|
|
60195
60195
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60196
60196
|
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
@@ -60376,7 +60376,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60376
60376
|
autoClose: false
|
|
60377
60377
|
});
|
|
60378
60378
|
stream.on("error", (er) => {
|
|
60379
|
-
if (stream.fd) fs$
|
|
60379
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60380
60380
|
stream.write = () => true;
|
|
60381
60381
|
this[ONERROR](er, entry);
|
|
60382
60382
|
fullyDone();
|
|
@@ -60385,12 +60385,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60385
60385
|
const done = (er) => {
|
|
60386
60386
|
if (er) {
|
|
60387
60387
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60388
|
-
if (stream.fd) fs$
|
|
60388
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60389
60389
|
this[ONERROR](er, entry);
|
|
60390
60390
|
fullyDone();
|
|
60391
60391
|
return;
|
|
60392
60392
|
}
|
|
60393
|
-
if (--actions === 0) fs$
|
|
60393
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60394
60394
|
if (er) this[ONERROR](er, entry);
|
|
60395
60395
|
else this[UNPEND]();
|
|
60396
60396
|
fullyDone();
|
|
@@ -60403,13 +60403,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60403
60403
|
actions++;
|
|
60404
60404
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60405
60405
|
const mtime = entry.mtime;
|
|
60406
|
-
fs$
|
|
60406
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60407
60407
|
}
|
|
60408
60408
|
if (this[DOCHOWN](entry)) {
|
|
60409
60409
|
actions++;
|
|
60410
60410
|
const uid = this[UID](entry);
|
|
60411
60411
|
const gid = this[GID](entry);
|
|
60412
|
-
fs$
|
|
60412
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60413
60413
|
}
|
|
60414
60414
|
done();
|
|
60415
60415
|
});
|
|
@@ -60441,11 +60441,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60441
60441
|
};
|
|
60442
60442
|
if (entry.mtime && !this.noMtime) {
|
|
60443
60443
|
actions++;
|
|
60444
|
-
fs$
|
|
60444
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60445
60445
|
}
|
|
60446
60446
|
if (this[DOCHOWN](entry)) {
|
|
60447
60447
|
actions++;
|
|
60448
|
-
fs$
|
|
60448
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60449
60449
|
}
|
|
60450
60450
|
done();
|
|
60451
60451
|
});
|
|
@@ -60518,7 +60518,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60518
60518
|
afterMakeParent();
|
|
60519
60519
|
};
|
|
60520
60520
|
const afterMakeParent = () => {
|
|
60521
|
-
fs$
|
|
60521
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60522
60522
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60523
60523
|
this[SKIP](entry);
|
|
60524
60524
|
done();
|
|
@@ -60530,9 +60530,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60530
60530
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60531
60531
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60532
60532
|
if (!needChmod) return afterChmod();
|
|
60533
|
-
return fs$
|
|
60533
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60534
60534
|
}
|
|
60535
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60535
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60536
60536
|
}
|
|
60537
60537
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60538
60538
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60558,7 +60558,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60558
60558
|
}
|
|
60559
60559
|
}
|
|
60560
60560
|
[LINK](entry, linkpath, link, done) {
|
|
60561
|
-
fs$
|
|
60561
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60562
60562
|
if (er) this[ONERROR](er, entry);
|
|
60563
60563
|
else {
|
|
60564
60564
|
this[UNPEND]();
|
|
@@ -60593,17 +60593,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60593
60593
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60594
60594
|
}
|
|
60595
60595
|
}
|
|
60596
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60596
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60597
60597
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60598
60598
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60599
60599
|
if (st.isDirectory()) {
|
|
60600
60600
|
if (entry.type === "Directory") {
|
|
60601
60601
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60602
|
-
fs$
|
|
60602
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60603
60603
|
}) : [];
|
|
60604
60604
|
return this[MAKEFS](er, entry);
|
|
60605
60605
|
}
|
|
60606
|
-
const [er] = callSync(() => fs$
|
|
60606
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60607
60607
|
this[MAKEFS](er, entry);
|
|
60608
60608
|
}
|
|
60609
60609
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60614,7 +60614,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60614
60614
|
const oner = (er) => {
|
|
60615
60615
|
let closeError;
|
|
60616
60616
|
try {
|
|
60617
|
-
fs$
|
|
60617
|
+
fs$26.closeSync(fd);
|
|
60618
60618
|
} catch (e) {
|
|
60619
60619
|
closeError = e;
|
|
60620
60620
|
}
|
|
@@ -60623,7 +60623,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60623
60623
|
};
|
|
60624
60624
|
let fd;
|
|
60625
60625
|
try {
|
|
60626
|
-
fd = fs$
|
|
60626
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60627
60627
|
} catch (er) {
|
|
60628
60628
|
return oner(er);
|
|
60629
60629
|
}
|
|
@@ -60634,7 +60634,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60634
60634
|
}
|
|
60635
60635
|
tx.on("data", (chunk) => {
|
|
60636
60636
|
try {
|
|
60637
|
-
fs$
|
|
60637
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60638
60638
|
} catch (er) {
|
|
60639
60639
|
oner(er);
|
|
60640
60640
|
}
|
|
@@ -60645,10 +60645,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60645
60645
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60646
60646
|
const mtime = entry.mtime;
|
|
60647
60647
|
try {
|
|
60648
|
-
fs$
|
|
60648
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60649
60649
|
} catch (futimeser) {
|
|
60650
60650
|
try {
|
|
60651
|
-
fs$
|
|
60651
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60652
60652
|
} catch (utimeser) {
|
|
60653
60653
|
er = futimeser;
|
|
60654
60654
|
}
|
|
@@ -60658,10 +60658,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60658
60658
|
const uid = this[UID](entry);
|
|
60659
60659
|
const gid = this[GID](entry);
|
|
60660
60660
|
try {
|
|
60661
|
-
fs$
|
|
60661
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60662
60662
|
} catch (fchowner) {
|
|
60663
60663
|
try {
|
|
60664
|
-
fs$
|
|
60664
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60665
60665
|
} catch (chowner) {
|
|
60666
60666
|
er = er || fchowner;
|
|
60667
60667
|
}
|
|
@@ -60679,10 +60679,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60679
60679
|
return;
|
|
60680
60680
|
}
|
|
60681
60681
|
if (entry.mtime && !this.noMtime) try {
|
|
60682
|
-
fs$
|
|
60682
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60683
60683
|
} catch (er) {}
|
|
60684
60684
|
if (this[DOCHOWN](entry)) try {
|
|
60685
|
-
fs$
|
|
60685
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60686
60686
|
} catch (er) {}
|
|
60687
60687
|
done();
|
|
60688
60688
|
entry.resume();
|
|
@@ -60707,7 +60707,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60707
60707
|
}
|
|
60708
60708
|
[LINK](entry, linkpath, link, done) {
|
|
60709
60709
|
try {
|
|
60710
|
-
fs$
|
|
60710
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60711
60711
|
done();
|
|
60712
60712
|
entry.resume();
|
|
60713
60713
|
} catch (er) {
|
|
@@ -60723,7 +60723,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60723
60723
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60724
60724
|
const hlo = require_high_level_opt();
|
|
60725
60725
|
const Unpack = require_unpack();
|
|
60726
|
-
const fs$
|
|
60726
|
+
const fs$25 = require("fs");
|
|
60727
60727
|
const fsm = require_fs_minipass();
|
|
60728
60728
|
const path$25 = require("path");
|
|
60729
60729
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60753,7 +60753,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60753
60753
|
const extractFileSync = (opt) => {
|
|
60754
60754
|
const u = new Unpack.Sync(opt);
|
|
60755
60755
|
const file = opt.file;
|
|
60756
|
-
const stat = fs$
|
|
60756
|
+
const stat = fs$25.statSync(file);
|
|
60757
60757
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60758
60758
|
new fsm.ReadStreamSync(file, {
|
|
60759
60759
|
readSize,
|
|
@@ -60767,7 +60767,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60767
60767
|
const p = new Promise((resolve, reject) => {
|
|
60768
60768
|
u.on("error", reject);
|
|
60769
60769
|
u.on("close", resolve);
|
|
60770
|
-
fs$
|
|
60770
|
+
fs$25.stat(file, (er, stat) => {
|
|
60771
60771
|
if (er) reject(er);
|
|
60772
60772
|
else {
|
|
60773
60773
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60850,7 +60850,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60850
60850
|
//#endregion
|
|
60851
60851
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60852
60852
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60853
|
-
var fs$
|
|
60853
|
+
var fs$24 = require("fs");
|
|
60854
60854
|
var util$9 = require("util");
|
|
60855
60855
|
var stream$1 = require("stream");
|
|
60856
60856
|
var Readable = stream$1.Readable;
|
|
@@ -60875,7 +60875,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60875
60875
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60876
60876
|
var self = this;
|
|
60877
60877
|
self.pend.go(function(cb) {
|
|
60878
|
-
fs$
|
|
60878
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60879
60879
|
cb();
|
|
60880
60880
|
callback(err, bytesRead, buffer);
|
|
60881
60881
|
});
|
|
@@ -60884,7 +60884,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60884
60884
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60885
60885
|
var self = this;
|
|
60886
60886
|
self.pend.go(function(cb) {
|
|
60887
|
-
fs$
|
|
60887
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60888
60888
|
cb();
|
|
60889
60889
|
callback(err, written, buffer);
|
|
60890
60890
|
});
|
|
@@ -60904,7 +60904,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60904
60904
|
self.refCount -= 1;
|
|
60905
60905
|
if (self.refCount > 0) return;
|
|
60906
60906
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60907
|
-
if (self.autoClose) fs$
|
|
60907
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60908
60908
|
function onCloseDone(err) {
|
|
60909
60909
|
if (err) self.emit("error", err);
|
|
60910
60910
|
else self.emit("close");
|
|
@@ -60935,7 +60935,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60935
60935
|
self.context.pend.go(function(cb) {
|
|
60936
60936
|
if (self.destroyed) return cb();
|
|
60937
60937
|
var buffer = new Buffer(toRead);
|
|
60938
|
-
fs$
|
|
60938
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60939
60939
|
if (err) self.destroy(err);
|
|
60940
60940
|
else if (bytesRead === 0) {
|
|
60941
60941
|
self.destroyed = true;
|
|
@@ -60981,7 +60981,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60981
60981
|
}
|
|
60982
60982
|
self.context.pend.go(function(cb) {
|
|
60983
60983
|
if (self.destroyed) return cb();
|
|
60984
|
-
fs$
|
|
60984
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60985
60985
|
if (err) {
|
|
60986
60986
|
self.destroy();
|
|
60987
60987
|
cb();
|
|
@@ -61388,7 +61388,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61388
61388
|
//#endregion
|
|
61389
61389
|
//#region ../../node_modules/yauzl/index.js
|
|
61390
61390
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61391
|
-
var fs$
|
|
61391
|
+
var fs$23 = require("fs");
|
|
61392
61392
|
var zlib$1 = require("zlib");
|
|
61393
61393
|
var fd_slicer = require_fd_slicer();
|
|
61394
61394
|
var crc32 = require_buffer_crc32();
|
|
@@ -61410,10 +61410,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61410
61410
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61411
61411
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61412
61412
|
if (callback == null) callback = defaultCallback;
|
|
61413
|
-
fs$
|
|
61413
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61414
61414
|
if (err) return callback(err);
|
|
61415
61415
|
fromFd(fd, options, function(err, zipfile) {
|
|
61416
|
-
if (err) fs$
|
|
61416
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61417
61417
|
callback(err, zipfile);
|
|
61418
61418
|
});
|
|
61419
61419
|
});
|
|
@@ -61430,7 +61430,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61430
61430
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61431
61431
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61432
61432
|
if (callback == null) callback = defaultCallback;
|
|
61433
|
-
fs$
|
|
61433
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61434
61434
|
if (err) return callback(err);
|
|
61435
61435
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61436
61436
|
});
|
|
@@ -62658,13 +62658,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62658
62658
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62659
62659
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62660
62660
|
module.exports = readdirGlob;
|
|
62661
|
-
const fs$
|
|
62661
|
+
const fs$22 = require("fs");
|
|
62662
62662
|
const { EventEmitter } = require("events");
|
|
62663
62663
|
const { Minimatch } = require_minimatch$1();
|
|
62664
62664
|
const { resolve: resolve$12 } = require("path");
|
|
62665
62665
|
function readdir(dir, strict) {
|
|
62666
62666
|
return new Promise((resolve, reject) => {
|
|
62667
|
-
fs$
|
|
62667
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62668
62668
|
if (err) switch (err.code) {
|
|
62669
62669
|
case "ENOTDIR":
|
|
62670
62670
|
if (strict) reject(err);
|
|
@@ -62686,7 +62686,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62686
62686
|
}
|
|
62687
62687
|
function stat(file, followSymlinks) {
|
|
62688
62688
|
return new Promise((resolve, reject) => {
|
|
62689
|
-
(followSymlinks ? fs$
|
|
62689
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62690
62690
|
if (err) switch (err.code) {
|
|
62691
62691
|
case "ENOENT":
|
|
62692
62692
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68725,7 +68725,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68725
68725
|
//#endregion
|
|
68726
68726
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68727
68727
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68728
|
-
var fs$
|
|
68728
|
+
var fs$21 = require("fs");
|
|
68729
68729
|
var polyfills = require_polyfills();
|
|
68730
68730
|
var legacy = require_legacy_streams();
|
|
68731
68731
|
var clone = require_clone$1();
|
|
@@ -68754,36 +68754,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68754
68754
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68755
68755
|
console.error(m);
|
|
68756
68756
|
};
|
|
68757
|
-
if (!fs$
|
|
68758
|
-
publishQueue(fs$
|
|
68759
|
-
fs$
|
|
68757
|
+
if (!fs$21[gracefulQueue]) {
|
|
68758
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68759
|
+
fs$21.close = (function(fs$close) {
|
|
68760
68760
|
function close(fd, cb) {
|
|
68761
|
-
return fs$close.call(fs$
|
|
68761
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68762
68762
|
if (!err) resetQueue();
|
|
68763
68763
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68764
68764
|
});
|
|
68765
68765
|
}
|
|
68766
68766
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68767
68767
|
return close;
|
|
68768
|
-
})(fs$
|
|
68769
|
-
fs$
|
|
68768
|
+
})(fs$21.close);
|
|
68769
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68770
68770
|
function closeSync(fd) {
|
|
68771
|
-
fs$closeSync.apply(fs$
|
|
68771
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68772
68772
|
resetQueue();
|
|
68773
68773
|
}
|
|
68774
68774
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68775
68775
|
return closeSync;
|
|
68776
|
-
})(fs$
|
|
68776
|
+
})(fs$21.closeSync);
|
|
68777
68777
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68778
|
-
debug(fs$
|
|
68779
|
-
require("assert").equal(fs$
|
|
68778
|
+
debug(fs$21[gracefulQueue]);
|
|
68779
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68780
68780
|
});
|
|
68781
68781
|
}
|
|
68782
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68783
|
-
module.exports = patch(clone(fs$
|
|
68784
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68785
|
-
module.exports = patch(fs$
|
|
68786
|
-
fs$
|
|
68782
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68783
|
+
module.exports = patch(clone(fs$21));
|
|
68784
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68785
|
+
module.exports = patch(fs$21);
|
|
68786
|
+
fs$21.__patched = true;
|
|
68787
68787
|
}
|
|
68788
68788
|
function patch(fs) {
|
|
68789
68789
|
polyfills(fs);
|
|
@@ -69038,23 +69038,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69038
69038
|
}
|
|
69039
69039
|
function enqueue(elem) {
|
|
69040
69040
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
69041
|
-
fs$
|
|
69041
|
+
fs$21[gracefulQueue].push(elem);
|
|
69042
69042
|
retry();
|
|
69043
69043
|
}
|
|
69044
69044
|
var retryTimer;
|
|
69045
69045
|
function resetQueue() {
|
|
69046
69046
|
var now = Date.now();
|
|
69047
|
-
for (var i = 0; i < fs$
|
|
69048
|
-
fs$
|
|
69049
|
-
fs$
|
|
69047
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
69048
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
69049
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
69050
69050
|
}
|
|
69051
69051
|
retry();
|
|
69052
69052
|
}
|
|
69053
69053
|
function retry() {
|
|
69054
69054
|
clearTimeout(retryTimer);
|
|
69055
69055
|
retryTimer = void 0;
|
|
69056
|
-
if (fs$
|
|
69057
|
-
var elem = fs$
|
|
69056
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
69057
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
69058
69058
|
var fn = elem[0];
|
|
69059
69059
|
var args = elem[1];
|
|
69060
69060
|
var err = elem[2];
|
|
@@ -69073,7 +69073,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69073
69073
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69074
69074
|
debug("RETRY", fn.name, args);
|
|
69075
69075
|
fn.apply(null, args.concat([startTime]));
|
|
69076
|
-
} else fs$
|
|
69076
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69077
69077
|
}
|
|
69078
69078
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69079
69079
|
}
|
|
@@ -84470,7 +84470,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84470
84470
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84471
84471
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84472
84472
|
*/
|
|
84473
|
-
var fs$
|
|
84473
|
+
var fs$20 = require("fs");
|
|
84474
84474
|
var glob = require_readdir_glob();
|
|
84475
84475
|
var async = require_async();
|
|
84476
84476
|
var path$22 = require("path");
|
|
@@ -84547,7 +84547,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84547
84547
|
data.sourcePath = filepath;
|
|
84548
84548
|
task.data = data;
|
|
84549
84549
|
this._entriesCount++;
|
|
84550
|
-
if (data.stats && data.stats instanceof fs$
|
|
84550
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84551
84551
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84552
84552
|
if (task) {
|
|
84553
84553
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84777,7 +84777,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84777
84777
|
callback();
|
|
84778
84778
|
return;
|
|
84779
84779
|
}
|
|
84780
|
-
fs$
|
|
84780
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84781
84781
|
if (this._state.aborted) {
|
|
84782
84782
|
setImmediate(callback);
|
|
84783
84783
|
return;
|
|
@@ -84843,7 +84843,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84843
84843
|
task.data.sourceType = "buffer";
|
|
84844
84844
|
task.source = Buffer.concat([]);
|
|
84845
84845
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84846
|
-
var linkPath = fs$
|
|
84846
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84847
84847
|
var dirName = path$22.dirname(task.filepath);
|
|
84848
84848
|
task.data.type = "symlink";
|
|
84849
84849
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -95932,7 +95932,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95932
95932
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95933
95933
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95934
95934
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95935
|
-
const { join: join$
|
|
95935
|
+
const { join: join$15, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95936
95936
|
const isWindows = process.platform === "win32";
|
|
95937
95937
|
/* istanbul ignore next */
|
|
95938
95938
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95962,7 +95962,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95962
95962
|
};
|
|
95963
95963
|
const getPathPart = (raw, cmd) => {
|
|
95964
95964
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95965
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95965
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
95966
95966
|
};
|
|
95967
95967
|
const which = async (cmd, opt = {}) => {
|
|
95968
95968
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96541,7 +96541,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96541
96541
|
//#endregion
|
|
96542
96542
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96543
96543
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96544
|
-
const fs$
|
|
96544
|
+
const fs$18 = require("node:fs");
|
|
96545
96545
|
const os$2 = require("node:os");
|
|
96546
96546
|
const path$20 = require("node:path");
|
|
96547
96547
|
const ini = require_ini();
|
|
@@ -96550,8 +96550,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96550
96550
|
const loadGitConfig = () => {
|
|
96551
96551
|
if (cachedConfig === null) try {
|
|
96552
96552
|
cachedConfig = {};
|
|
96553
|
-
if (fs$
|
|
96554
|
-
const configContent = fs$
|
|
96553
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96554
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96555
96555
|
cachedConfig = ini.parse(configContent);
|
|
96556
96556
|
}
|
|
96557
96557
|
} catch (error) {
|
|
@@ -96711,7 +96711,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96711
96711
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96712
96712
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96713
96713
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96714
|
-
const { join: join$
|
|
96714
|
+
const { join: join$14, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96715
96715
|
const isWindows = process.platform === "win32";
|
|
96716
96716
|
/* istanbul ignore next */
|
|
96717
96717
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96741,7 +96741,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96741
96741
|
};
|
|
96742
96742
|
const getPathPart = (raw, cmd) => {
|
|
96743
96743
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96744
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96744
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
96745
96745
|
};
|
|
96746
96746
|
const which = async (cmd, opt = {}) => {
|
|
96747
96747
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98420,7 +98420,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98420
98420
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98421
98421
|
const process$1 = require("node:process");
|
|
98422
98422
|
const nodeOs = require("node:os");
|
|
98423
|
-
const fs$
|
|
98423
|
+
const fs$17 = require("node:fs");
|
|
98424
98424
|
function isMusl(file) {
|
|
98425
98425
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98426
98426
|
}
|
|
@@ -98433,7 +98433,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98433
98433
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98434
98434
|
function getFamilyFromFilesystem() {
|
|
98435
98435
|
try {
|
|
98436
|
-
const content = fs$
|
|
98436
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98437
98437
|
if (content.includes("musl")) return "musl";
|
|
98438
98438
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98439
98439
|
return null;
|
|
@@ -98639,7 +98639,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98639
98639
|
//#endregion
|
|
98640
98640
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98641
98641
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98642
|
-
const { join: join$
|
|
98642
|
+
const { join: join$13, basename: basename$5 } = require("path");
|
|
98643
98643
|
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);
|
|
98644
98644
|
const normalizeString = (pkg) => {
|
|
98645
98645
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98662,9 +98662,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98662
98662
|
const clean = {};
|
|
98663
98663
|
let hasBins = false;
|
|
98664
98664
|
Object.keys(orig).forEach((binKey) => {
|
|
98665
|
-
const base = join$
|
|
98665
|
+
const base = join$13("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98666
98666
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98667
|
-
const binTarget = join$
|
|
98667
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98668
98668
|
if (!binTarget) return;
|
|
98669
98669
|
clean[base] = binTarget;
|
|
98670
98670
|
hasBins = true;
|
|
@@ -98822,7 +98822,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98822
98822
|
const spawn = require_spawn();
|
|
98823
98823
|
const { isWindows } = require_utils$3();
|
|
98824
98824
|
const pickManifest = require_lib$20();
|
|
98825
|
-
const fs$
|
|
98825
|
+
const fs$16 = require("fs/promises");
|
|
98826
98826
|
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));
|
|
98827
98827
|
const maybeShallow = (repo, opts) => {
|
|
98828
98828
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98857,7 +98857,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98857
98857
|
...opts,
|
|
98858
98858
|
cwd: target
|
|
98859
98859
|
});
|
|
98860
|
-
return fs$
|
|
98860
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98861
98861
|
"config",
|
|
98862
98862
|
"--local",
|
|
98863
98863
|
"--add",
|
|
@@ -98895,7 +98895,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98895
98895
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98896
98896
|
};
|
|
98897
98897
|
const updateSubmodules = async (target, opts) => {
|
|
98898
|
-
if (!await fs$
|
|
98898
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98899
98899
|
return spawn([
|
|
98900
98900
|
"submodule",
|
|
98901
98901
|
"update",
|
|
@@ -98920,7 +98920,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98920
98920
|
...opts,
|
|
98921
98921
|
cwd: target
|
|
98922
98922
|
});
|
|
98923
|
-
return fs$
|
|
98923
|
+
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([
|
|
98924
98924
|
"rev-parse",
|
|
98925
98925
|
"--revs-only",
|
|
98926
98926
|
"HEAD"
|
|
@@ -98937,11 +98937,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98937
98937
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98938
98938
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98939
98939
|
const is = require_is();
|
|
98940
|
-
const { dirname: dirname$
|
|
98940
|
+
const { dirname: dirname$11 } = require("path");
|
|
98941
98941
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98942
98942
|
while (true) {
|
|
98943
98943
|
if (await is({ cwd })) return cwd;
|
|
98944
|
-
const next = dirname$
|
|
98944
|
+
const next = dirname$11(cwd);
|
|
98945
98945
|
if (cwd === root || cwd === next) return null;
|
|
98946
98946
|
cwd = next;
|
|
98947
98947
|
}
|
|
@@ -98975,7 +98975,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98975
98975
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98976
98976
|
const valid = require_valid$3();
|
|
98977
98977
|
const clean = require_clean$1();
|
|
98978
|
-
const fs$
|
|
98978
|
+
const fs$15 = require("node:fs/promises");
|
|
98979
98979
|
const path$17 = require("node:path");
|
|
98980
98980
|
const { log } = require_lib$29();
|
|
98981
98981
|
const moduleBuiltin = require("node:module");
|
|
@@ -99259,13 +99259,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99259
99259
|
}
|
|
99260
99260
|
}
|
|
99261
99261
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99262
|
-
await fs$
|
|
99262
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
99263
99263
|
scripts.start = "node server.js";
|
|
99264
99264
|
data.scripts = scripts;
|
|
99265
99265
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99266
99266
|
} catch {}
|
|
99267
99267
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99268
|
-
data.contributors = (await fs$
|
|
99268
|
+
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);
|
|
99269
99269
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99270
99270
|
} catch {}
|
|
99271
99271
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99284,7 +99284,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99284
99284
|
if (file.endsWith("README")) readmeFile = file;
|
|
99285
99285
|
}
|
|
99286
99286
|
if (readmeFile) {
|
|
99287
|
-
data.readme = await fs$
|
|
99287
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
99288
99288
|
data.readmeFilename = readmeFile;
|
|
99289
99289
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99290
99290
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99316,20 +99316,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99316
99316
|
});
|
|
99317
99317
|
let head;
|
|
99318
99318
|
if (gitRoot) try {
|
|
99319
|
-
head = await fs$
|
|
99319
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99320
99320
|
} catch (err) {}
|
|
99321
99321
|
let headData;
|
|
99322
99322
|
if (head) if (head.startsWith("ref: ")) {
|
|
99323
99323
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99324
99324
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
99325
99325
|
try {
|
|
99326
|
-
headData = await fs$
|
|
99326
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99327
99327
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99328
99328
|
} catch (err) {}
|
|
99329
99329
|
if (!headData) {
|
|
99330
99330
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
99331
99331
|
try {
|
|
99332
|
-
let refs = await fs$
|
|
99332
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99333
99333
|
if (refs) {
|
|
99334
99334
|
refs = refs.split("\n");
|
|
99335
99335
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99350,12 +99350,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99350
99350
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99351
99351
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
99352
99352
|
if (!("types" in data || "typings" in data)) try {
|
|
99353
|
-
await fs$
|
|
99353
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
99354
99354
|
data.types = dts.split(path$17.sep).join("/");
|
|
99355
99355
|
} catch {}
|
|
99356
99356
|
}
|
|
99357
99357
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99358
|
-
await fs$
|
|
99358
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
99359
99359
|
} catch {
|
|
99360
99360
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99361
99361
|
}
|
|
@@ -100737,7 +100737,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100737
100737
|
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();
|
|
100738
100738
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100739
100739
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100740
|
-
const { dirname: dirname$
|
|
100740
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100741
100741
|
const { fileURLToPath } = require("url");
|
|
100742
100742
|
const defaultOptions = {
|
|
100743
100743
|
dereference: false,
|
|
@@ -100811,7 +100811,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100811
100811
|
})]);
|
|
100812
100812
|
}
|
|
100813
100813
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100814
|
-
const destParent = dirname$
|
|
100814
|
+
const destParent = dirname$10(dest);
|
|
100815
100815
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100816
100816
|
await mkdir$7(destParent, { recursive: true });
|
|
100817
100817
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100824,8 +100824,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100824
100824
|
);
|
|
100825
100825
|
}
|
|
100826
100826
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100827
|
-
const srcParent = resolve$10(dirname$
|
|
100828
|
-
const destParent = resolve$10(dirname$
|
|
100827
|
+
const srcParent = resolve$10(dirname$10(src));
|
|
100828
|
+
const destParent = resolve$10(dirname$10(dest));
|
|
100829
100829
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100830
100830
|
let destStat;
|
|
100831
100831
|
try {
|
|
@@ -100946,15 +100946,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100946
100946
|
const dir = await readdir$6(src);
|
|
100947
100947
|
for (let i = 0; i < dir.length; i++) {
|
|
100948
100948
|
const item = dir[i];
|
|
100949
|
-
const srcItem = join$
|
|
100950
|
-
const destItem = join$
|
|
100949
|
+
const srcItem = join$12(src, item);
|
|
100950
|
+
const destItem = join$12(dest, item);
|
|
100951
100951
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100952
100952
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100953
100953
|
}
|
|
100954
100954
|
}
|
|
100955
100955
|
async function onLink(destStat, src, dest) {
|
|
100956
100956
|
let resolvedSrc = await readlink(src);
|
|
100957
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100957
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$10(src), resolvedSrc);
|
|
100958
100958
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100959
100959
|
let resolvedDest;
|
|
100960
100960
|
try {
|
|
@@ -100965,7 +100965,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100965
100965
|
// istanbul ignore next: should not be possible
|
|
100966
100966
|
throw err;
|
|
100967
100967
|
}
|
|
100968
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100968
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$10(dest), resolvedDest);
|
|
100969
100969
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100970
100970
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100971
100971
|
path: dest,
|
|
@@ -100989,7 +100989,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100989
100989
|
//#endregion
|
|
100990
100990
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100991
100991
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100992
|
-
const fs$
|
|
100992
|
+
const fs$14 = require("fs/promises");
|
|
100993
100993
|
const getOptions = require_get_options();
|
|
100994
100994
|
const node = require_node$1();
|
|
100995
100995
|
const polyfill = require_polyfill();
|
|
@@ -101004,20 +101004,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101004
101004
|
"recursive"
|
|
101005
101005
|
] });
|
|
101006
101006
|
// istanbul ignore next
|
|
101007
|
-
return useNative ? fs$
|
|
101007
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
101008
101008
|
};
|
|
101009
101009
|
module.exports = cp;
|
|
101010
101010
|
}));
|
|
101011
101011
|
//#endregion
|
|
101012
101012
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
101013
101013
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101014
|
-
const { join: join$
|
|
101014
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
101015
101015
|
const getOptions = require_get_options();
|
|
101016
101016
|
const { mkdir: mkdir$6, mkdtemp, rm: rm$9 } = require("fs/promises");
|
|
101017
101017
|
const withTempDir = async (root, fn, opts) => {
|
|
101018
101018
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
101019
101019
|
await mkdir$6(root, { recursive: true });
|
|
101020
|
-
const target = await mkdtemp(join$
|
|
101020
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
101021
101021
|
let err;
|
|
101022
101022
|
let result;
|
|
101023
101023
|
try {
|
|
@@ -101040,10 +101040,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101040
101040
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
101041
101041
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101042
101042
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
101043
|
-
const { join: join$
|
|
101043
|
+
const { join: join$10 } = require("path");
|
|
101044
101044
|
const readdirScoped = async (dir) => {
|
|
101045
101045
|
const results = [];
|
|
101046
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
101046
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$10(dir, item))) results.push(join$10(item, scopedItem));
|
|
101047
101047
|
else results.push(item);
|
|
101048
101048
|
return results;
|
|
101049
101049
|
};
|
|
@@ -101052,11 +101052,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101052
101052
|
//#endregion
|
|
101053
101053
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101054
101054
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101055
|
-
const { dirname: dirname$
|
|
101056
|
-
const fs$
|
|
101055
|
+
const { dirname: dirname$9, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101056
|
+
const fs$13 = require("fs/promises");
|
|
101057
101057
|
const pathExists = async (path$53) => {
|
|
101058
101058
|
try {
|
|
101059
|
-
await fs$
|
|
101059
|
+
await fs$13.access(path$53);
|
|
101060
101060
|
return true;
|
|
101061
101061
|
} catch (er) {
|
|
101062
101062
|
return er.code !== "ENOENT";
|
|
@@ -101069,34 +101069,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101069
101069
|
...options
|
|
101070
101070
|
};
|
|
101071
101071
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
101072
|
-
await fs$
|
|
101072
|
+
await fs$13.mkdir(dirname$9(destination), { recursive: true });
|
|
101073
101073
|
try {
|
|
101074
|
-
await fs$
|
|
101074
|
+
await fs$13.rename(source, destination);
|
|
101075
101075
|
} catch (error) {
|
|
101076
101076
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
101077
|
-
const sourceStat = await fs$
|
|
101077
|
+
const sourceStat = await fs$13.lstat(source);
|
|
101078
101078
|
if (sourceStat.isDirectory()) {
|
|
101079
|
-
const files = await fs$
|
|
101080
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101079
|
+
const files = await fs$13.readdir(source);
|
|
101080
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
101081
101081
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101082
101082
|
source,
|
|
101083
101083
|
destination
|
|
101084
101084
|
});
|
|
101085
|
-
else await fs$
|
|
101085
|
+
else await fs$13.copyFile(source, destination);
|
|
101086
101086
|
} else throw error;
|
|
101087
101087
|
}
|
|
101088
101088
|
if (root) {
|
|
101089
101089
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101090
|
-
let target = await fs$
|
|
101090
|
+
let target = await fs$13.readlink(symSource);
|
|
101091
101091
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101092
101092
|
let targetStat = "file";
|
|
101093
101093
|
try {
|
|
101094
|
-
targetStat = await fs$
|
|
101094
|
+
targetStat = await fs$13.stat(resolve$9(dirname$9(symSource), target));
|
|
101095
101095
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101096
101096
|
} catch {}
|
|
101097
|
-
await fs$
|
|
101097
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
101098
101098
|
}));
|
|
101099
|
-
await fs$
|
|
101099
|
+
await fs$13.rm(source, {
|
|
101100
101100
|
recursive: true,
|
|
101101
101101
|
force: true
|
|
101102
101102
|
});
|
|
@@ -101119,7 +101119,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101119
101119
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101120
101120
|
const crypto$2 = require("crypto");
|
|
101121
101121
|
const { withTempDir } = require_lib$16();
|
|
101122
|
-
const fs$
|
|
101122
|
+
const fs$12 = require("fs/promises");
|
|
101123
101123
|
const path$16 = require("path");
|
|
101124
101124
|
module.exports.mkdir = mktmpdir;
|
|
101125
101125
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101129,12 +101129,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101129
101129
|
async function mktmpdir(cache, opts = {}) {
|
|
101130
101130
|
const { tmpPrefix } = opts;
|
|
101131
101131
|
const tmpDir = path$16.join(cache, "tmp");
|
|
101132
|
-
await fs$
|
|
101132
|
+
await fs$12.mkdir(tmpDir, {
|
|
101133
101133
|
recursive: true,
|
|
101134
101134
|
owner: "inherit"
|
|
101135
101135
|
});
|
|
101136
101136
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
101137
|
-
return fs$
|
|
101137
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101138
101138
|
}
|
|
101139
101139
|
module.exports.withTmp = withTmp;
|
|
101140
101140
|
function withTmp(cache, opts, cb) {
|
|
@@ -101514,8 +101514,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101514
101514
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101515
101515
|
const { Minipass } = require_commonjs$10();
|
|
101516
101516
|
const EE$4 = require("events").EventEmitter;
|
|
101517
|
-
const fs$
|
|
101518
|
-
const writev = fs$
|
|
101517
|
+
const fs$11 = require("fs");
|
|
101518
|
+
const writev = fs$11.writev;
|
|
101519
101519
|
const _autoClose = Symbol("_autoClose");
|
|
101520
101520
|
const _close = Symbol("_close");
|
|
101521
101521
|
const _ended = Symbol("_ended");
|
|
@@ -101575,7 +101575,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101575
101575
|
throw new TypeError("this is a readable stream");
|
|
101576
101576
|
}
|
|
101577
101577
|
[_open]() {
|
|
101578
|
-
fs$
|
|
101578
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101579
101579
|
}
|
|
101580
101580
|
[_onopen](er, fd) {
|
|
101581
101581
|
if (er) this[_onerror](er);
|
|
@@ -101594,7 +101594,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101594
101594
|
const buf = this[_makeBuf]();
|
|
101595
101595
|
/* istanbul ignore if */
|
|
101596
101596
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101597
|
-
fs$
|
|
101597
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101598
101598
|
}
|
|
101599
101599
|
}
|
|
101600
101600
|
[_onread](er, br, buf) {
|
|
@@ -101606,7 +101606,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101606
101606
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101607
101607
|
const fd = this[_fd];
|
|
101608
101608
|
this[_fd] = null;
|
|
101609
|
-
fs$
|
|
101609
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101610
101610
|
}
|
|
101611
101611
|
}
|
|
101612
101612
|
[_onerror](er) {
|
|
@@ -101644,7 +101644,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101644
101644
|
[_open]() {
|
|
101645
101645
|
let threw = true;
|
|
101646
101646
|
try {
|
|
101647
|
-
this[_onopen](null, fs$
|
|
101647
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101648
101648
|
threw = false;
|
|
101649
101649
|
} finally {
|
|
101650
101650
|
if (threw) this[_close]();
|
|
@@ -101658,7 +101658,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101658
101658
|
do {
|
|
101659
101659
|
const buf = this[_makeBuf]();
|
|
101660
101660
|
/* istanbul ignore next */
|
|
101661
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101661
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101662
101662
|
if (!this[_handleChunk](br, buf)) break;
|
|
101663
101663
|
} while (true);
|
|
101664
101664
|
this[_reading] = false;
|
|
@@ -101672,7 +101672,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101672
101672
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101673
101673
|
const fd = this[_fd];
|
|
101674
101674
|
this[_fd] = null;
|
|
101675
|
-
fs$
|
|
101675
|
+
fs$11.closeSync(fd);
|
|
101676
101676
|
this.emit("close");
|
|
101677
101677
|
}
|
|
101678
101678
|
}
|
|
@@ -101717,7 +101717,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101717
101717
|
this.emit("error", er);
|
|
101718
101718
|
}
|
|
101719
101719
|
[_open]() {
|
|
101720
|
-
fs$
|
|
101720
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101721
101721
|
}
|
|
101722
101722
|
[_onopen](er, fd) {
|
|
101723
101723
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101752,7 +101752,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101752
101752
|
return true;
|
|
101753
101753
|
}
|
|
101754
101754
|
[_write](buf) {
|
|
101755
|
-
fs$
|
|
101755
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101756
101756
|
}
|
|
101757
101757
|
[_onwrite](er, bw) {
|
|
101758
101758
|
if (er) this[_onerror](er);
|
|
@@ -101786,7 +101786,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101786
101786
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101787
101787
|
const fd = this[_fd];
|
|
101788
101788
|
this[_fd] = null;
|
|
101789
|
-
fs$
|
|
101789
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101790
101790
|
}
|
|
101791
101791
|
}
|
|
101792
101792
|
};
|
|
@@ -101794,28 +101794,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101794
101794
|
[_open]() {
|
|
101795
101795
|
let fd;
|
|
101796
101796
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101797
|
-
fd = fs$
|
|
101797
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101798
101798
|
} catch (er) {
|
|
101799
101799
|
if (er.code === "ENOENT") {
|
|
101800
101800
|
this[_flags] = "w";
|
|
101801
101801
|
return this[_open]();
|
|
101802
101802
|
} else throw er;
|
|
101803
101803
|
}
|
|
101804
|
-
else fd = fs$
|
|
101804
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101805
101805
|
this[_onopen](null, fd);
|
|
101806
101806
|
}
|
|
101807
101807
|
[_close]() {
|
|
101808
101808
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101809
101809
|
const fd = this[_fd];
|
|
101810
101810
|
this[_fd] = null;
|
|
101811
|
-
fs$
|
|
101811
|
+
fs$11.closeSync(fd);
|
|
101812
101812
|
this.emit("close");
|
|
101813
101813
|
}
|
|
101814
101814
|
}
|
|
101815
101815
|
[_write](buf) {
|
|
101816
101816
|
let threw = true;
|
|
101817
101817
|
try {
|
|
101818
|
-
this[_onwrite](null, fs$
|
|
101818
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101819
101819
|
threw = false;
|
|
101820
101820
|
} finally {
|
|
101821
101821
|
if (threw) try {
|
|
@@ -101832,7 +101832,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101832
101832
|
//#endregion
|
|
101833
101833
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101834
101834
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101835
|
-
const fs$
|
|
101835
|
+
const fs$10 = require("fs/promises");
|
|
101836
101836
|
const fsm = require_lib$15();
|
|
101837
101837
|
const ssri = require_lib$17();
|
|
101838
101838
|
const contentPath = require_path();
|
|
@@ -101843,13 +101843,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101843
101843
|
const { size } = opts;
|
|
101844
101844
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101845
101845
|
return {
|
|
101846
|
-
stat: size ? { size } : await fs$
|
|
101846
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101847
101847
|
cpath,
|
|
101848
101848
|
sri
|
|
101849
101849
|
};
|
|
101850
101850
|
});
|
|
101851
101851
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101852
|
-
const data = await fs$
|
|
101852
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101853
101853
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101854
101854
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101855
101855
|
return data;
|
|
@@ -101872,7 +101872,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101872
101872
|
Promise.resolve().then(async () => {
|
|
101873
101873
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101874
101874
|
return {
|
|
101875
|
-
stat: size ? { size } : await fs$
|
|
101875
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101876
101876
|
cpath,
|
|
101877
101877
|
sri
|
|
101878
101878
|
};
|
|
@@ -101884,7 +101884,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101884
101884
|
module.exports.copy = copy;
|
|
101885
101885
|
function copy(cache, integrity, dest) {
|
|
101886
101886
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101887
|
-
return fs$
|
|
101887
|
+
return fs$10.copyFile(cpath, dest);
|
|
101888
101888
|
});
|
|
101889
101889
|
}
|
|
101890
101890
|
module.exports.hasContent = hasContent;
|
|
@@ -101892,7 +101892,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101892
101892
|
if (!integrity) return false;
|
|
101893
101893
|
try {
|
|
101894
101894
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101895
|
-
const stat = await fs$
|
|
101895
|
+
const stat = await fs$10.stat(cpath);
|
|
101896
101896
|
return {
|
|
101897
101897
|
size: stat.size,
|
|
101898
101898
|
sri,
|
|
@@ -102532,7 +102532,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102532
102532
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102533
102533
|
const events = require("events");
|
|
102534
102534
|
const contentPath = require_path();
|
|
102535
|
-
const fs$
|
|
102535
|
+
const fs$9 = require("fs/promises");
|
|
102536
102536
|
const { moveFile } = require_lib$16();
|
|
102537
102537
|
const { Minipass } = require_commonjs$10();
|
|
102538
102538
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102552,10 +102552,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102552
102552
|
const tmp = await makeTmp(cache, opts);
|
|
102553
102553
|
const hash = sri[algo].toString();
|
|
102554
102554
|
try {
|
|
102555
|
-
await fs$
|
|
102555
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102556
102556
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102557
102557
|
} finally {
|
|
102558
|
-
if (!tmp.moved) await fs$
|
|
102558
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102559
102559
|
recursive: true,
|
|
102560
102560
|
force: true
|
|
102561
102561
|
});
|
|
@@ -102609,7 +102609,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102609
102609
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102610
102610
|
return res;
|
|
102611
102611
|
} finally {
|
|
102612
|
-
if (!tmp.moved) await fs$
|
|
102612
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102613
102613
|
recursive: true,
|
|
102614
102614
|
force: true
|
|
102615
102615
|
});
|
|
@@ -102649,7 +102649,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102649
102649
|
}
|
|
102650
102650
|
async function makeTmp(cache, opts) {
|
|
102651
102651
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102652
|
-
await fs$
|
|
102652
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
102653
102653
|
return {
|
|
102654
102654
|
target: tmpTarget,
|
|
102655
102655
|
moved: false
|
|
@@ -102659,7 +102659,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102659
102659
|
const destination = contentPath(cache, sri);
|
|
102660
102660
|
const destDir = path$13.dirname(destination);
|
|
102661
102661
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102662
|
-
moveOperations.set(destination, fs$
|
|
102662
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102663
102663
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102664
102664
|
tmp.moved = true;
|
|
102665
102665
|
return tmp.moved;
|
|
@@ -106117,14 +106117,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106117
106117
|
//#endregion
|
|
106118
106118
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106119
106119
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106120
|
-
const fs$
|
|
106120
|
+
const fs$8 = require("fs/promises");
|
|
106121
106121
|
const contentPath = require_path();
|
|
106122
106122
|
const { hasContent } = require_read();
|
|
106123
106123
|
module.exports = rm;
|
|
106124
106124
|
async function rm(cache, integrity) {
|
|
106125
106125
|
const content = await hasContent(cache, integrity);
|
|
106126
106126
|
if (content && content.sri) {
|
|
106127
|
-
await fs$
|
|
106127
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106128
106128
|
recursive: true,
|
|
106129
106129
|
force: true
|
|
106130
106130
|
});
|
|
@@ -106406,8 +106406,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106406
106406
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106407
106407
|
const { Minipass } = require_commonjs$10();
|
|
106408
106408
|
const EE$2 = require("events").EventEmitter;
|
|
106409
|
-
const fs$
|
|
106410
|
-
const writev = fs$
|
|
106409
|
+
const fs$7 = require("fs");
|
|
106410
|
+
const writev = fs$7.writev;
|
|
106411
106411
|
const _autoClose = Symbol("_autoClose");
|
|
106412
106412
|
const _close = Symbol("_close");
|
|
106413
106413
|
const _ended = Symbol("_ended");
|
|
@@ -106467,7 +106467,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106467
106467
|
throw new TypeError("this is a readable stream");
|
|
106468
106468
|
}
|
|
106469
106469
|
[_open]() {
|
|
106470
|
-
fs$
|
|
106470
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106471
106471
|
}
|
|
106472
106472
|
[_onopen](er, fd) {
|
|
106473
106473
|
if (er) this[_onerror](er);
|
|
@@ -106486,7 +106486,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106486
106486
|
const buf = this[_makeBuf]();
|
|
106487
106487
|
/* istanbul ignore if */
|
|
106488
106488
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106489
|
-
fs$
|
|
106489
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106490
106490
|
}
|
|
106491
106491
|
}
|
|
106492
106492
|
[_onread](er, br, buf) {
|
|
@@ -106498,7 +106498,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106498
106498
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106499
106499
|
const fd = this[_fd];
|
|
106500
106500
|
this[_fd] = null;
|
|
106501
|
-
fs$
|
|
106501
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106502
106502
|
}
|
|
106503
106503
|
}
|
|
106504
106504
|
[_onerror](er) {
|
|
@@ -106536,7 +106536,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106536
106536
|
[_open]() {
|
|
106537
106537
|
let threw = true;
|
|
106538
106538
|
try {
|
|
106539
|
-
this[_onopen](null, fs$
|
|
106539
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106540
106540
|
threw = false;
|
|
106541
106541
|
} finally {
|
|
106542
106542
|
if (threw) this[_close]();
|
|
@@ -106550,7 +106550,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106550
106550
|
do {
|
|
106551
106551
|
const buf = this[_makeBuf]();
|
|
106552
106552
|
/* istanbul ignore next */
|
|
106553
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106553
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106554
106554
|
if (!this[_handleChunk](br, buf)) break;
|
|
106555
106555
|
} while (true);
|
|
106556
106556
|
this[_reading] = false;
|
|
@@ -106564,7 +106564,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106564
106564
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106565
106565
|
const fd = this[_fd];
|
|
106566
106566
|
this[_fd] = null;
|
|
106567
|
-
fs$
|
|
106567
|
+
fs$7.closeSync(fd);
|
|
106568
106568
|
this.emit("close");
|
|
106569
106569
|
}
|
|
106570
106570
|
}
|
|
@@ -106609,7 +106609,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106609
106609
|
this.emit("error", er);
|
|
106610
106610
|
}
|
|
106611
106611
|
[_open]() {
|
|
106612
|
-
fs$
|
|
106612
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106613
106613
|
}
|
|
106614
106614
|
[_onopen](er, fd) {
|
|
106615
106615
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106644,7 +106644,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106644
106644
|
return true;
|
|
106645
106645
|
}
|
|
106646
106646
|
[_write](buf) {
|
|
106647
|
-
fs$
|
|
106647
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106648
106648
|
}
|
|
106649
106649
|
[_onwrite](er, bw) {
|
|
106650
106650
|
if (er) this[_onerror](er);
|
|
@@ -106678,7 +106678,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106678
106678
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106679
106679
|
const fd = this[_fd];
|
|
106680
106680
|
this[_fd] = null;
|
|
106681
|
-
fs$
|
|
106681
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106682
106682
|
}
|
|
106683
106683
|
}
|
|
106684
106684
|
};
|
|
@@ -106686,28 +106686,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106686
106686
|
[_open]() {
|
|
106687
106687
|
let fd;
|
|
106688
106688
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106689
|
-
fd = fs$
|
|
106689
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106690
106690
|
} catch (er) {
|
|
106691
106691
|
if (er.code === "ENOENT") {
|
|
106692
106692
|
this[_flags] = "w";
|
|
106693
106693
|
return this[_open]();
|
|
106694
106694
|
} else throw er;
|
|
106695
106695
|
}
|
|
106696
|
-
else fd = fs$
|
|
106696
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106697
106697
|
this[_onopen](null, fd);
|
|
106698
106698
|
}
|
|
106699
106699
|
[_close]() {
|
|
106700
106700
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106701
106701
|
const fd = this[_fd];
|
|
106702
106702
|
this[_fd] = null;
|
|
106703
|
-
fs$
|
|
106703
|
+
fs$7.closeSync(fd);
|
|
106704
106704
|
this.emit("close");
|
|
106705
106705
|
}
|
|
106706
106706
|
}
|
|
106707
106707
|
[_write](buf) {
|
|
106708
106708
|
let threw = true;
|
|
106709
106709
|
try {
|
|
106710
|
-
this[_onwrite](null, fs$
|
|
106710
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106711
106711
|
threw = false;
|
|
106712
106712
|
} finally {
|
|
106713
106713
|
if (threw) try {
|
|
@@ -106724,7 +106724,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106724
106724
|
//#endregion
|
|
106725
106725
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106726
106726
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106727
|
-
const fs$
|
|
106727
|
+
const fs$6 = require("fs");
|
|
106728
106728
|
const path$9 = require("path");
|
|
106729
106729
|
const EE$1 = require("events").EventEmitter;
|
|
106730
106730
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106780,7 +106780,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106780
106780
|
return this;
|
|
106781
106781
|
}
|
|
106782
106782
|
readPackageJson(pj) {
|
|
106783
|
-
fs$
|
|
106783
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106784
106784
|
}
|
|
106785
106785
|
onPackageJson(pj, data) {
|
|
106786
106786
|
try {
|
|
@@ -106838,7 +106838,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106838
106838
|
}
|
|
106839
106839
|
readPackageJson(pj) {
|
|
106840
106840
|
try {
|
|
106841
|
-
this.onPackageJson(pj, fs$
|
|
106841
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106842
106842
|
} catch {}
|
|
106843
106843
|
return this;
|
|
106844
106844
|
}
|
|
@@ -106857,7 +106857,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106857
106857
|
}
|
|
106858
106858
|
};
|
|
106859
106859
|
const readdirNodeModules = (nm, cb) => {
|
|
106860
|
-
fs$
|
|
106860
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106861
106861
|
if (er) cb(er);
|
|
106862
106862
|
else {
|
|
106863
106863
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106866,7 +106866,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106866
106866
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106867
106867
|
let count = scopes.length;
|
|
106868
106868
|
scopes.forEach((scope) => {
|
|
106869
|
-
fs$
|
|
106869
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106870
106870
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106871
106871
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106872
106872
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106877,11 +106877,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106877
106877
|
});
|
|
106878
106878
|
};
|
|
106879
106879
|
const readdirNodeModulesSync = (nm) => {
|
|
106880
|
-
const set = fs$
|
|
106880
|
+
const set = fs$6.readdirSync(nm);
|
|
106881
106881
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106882
106882
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106883
106883
|
try {
|
|
106884
|
-
const pkgs = fs$
|
|
106884
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106885
106885
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106886
106886
|
} catch (er) {
|
|
106887
106887
|
return [scope];
|
|
@@ -106908,7 +106908,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106908
106908
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106909
106909
|
const bundled = require_lib$12();
|
|
106910
106910
|
const { readFile: readFile$6, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106911
|
-
const { resolve: resolve$8, basename: basename$4, dirname: dirname$
|
|
106911
|
+
const { resolve: resolve$8, basename: basename$4, dirname: dirname$8 } = require("path");
|
|
106912
106912
|
const normalizePackageBin = require_lib$21();
|
|
106913
106913
|
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$6(path$48).then((json) => {
|
|
106914
106914
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106947,9 +106947,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106947
106947
|
}));
|
|
106948
106948
|
if (pkg) {
|
|
106949
106949
|
if (pkg.bin) {
|
|
106950
|
-
const dir = dirname$
|
|
106950
|
+
const dir = dirname$8(path$50);
|
|
106951
106951
|
const scope = basename$4(dir);
|
|
106952
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106952
|
+
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106953
106953
|
const binFiles = [];
|
|
106954
106954
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106955
106955
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112221,7 +112221,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112221
112221
|
//#endregion
|
|
112222
112222
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112223
112223
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112224
|
-
const fs$
|
|
112224
|
+
const fs$5 = require("fs");
|
|
112225
112225
|
const path$8 = require("path");
|
|
112226
112226
|
const EE = require("events").EventEmitter;
|
|
112227
112227
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112260,7 +112260,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112260
112260
|
return ret;
|
|
112261
112261
|
}
|
|
112262
112262
|
start() {
|
|
112263
|
-
fs$
|
|
112263
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112264
112264
|
return this;
|
|
112265
112265
|
}
|
|
112266
112266
|
isIgnoreFile(e) {
|
|
@@ -112284,7 +112284,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112284
112284
|
}
|
|
112285
112285
|
addIgnoreFile(file, then) {
|
|
112286
112286
|
const ig = path$8.resolve(this.path, file);
|
|
112287
|
-
fs$
|
|
112287
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112288
112288
|
}
|
|
112289
112289
|
onReadIgnoreFile(file, data, then) {
|
|
112290
112290
|
const mmopt = {
|
|
@@ -112340,11 +112340,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112340
112340
|
}
|
|
112341
112341
|
stat({ entry, file, dir }, then) {
|
|
112342
112342
|
const abs = this.path + "/" + entry;
|
|
112343
|
-
fs$
|
|
112343
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112344
112344
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112345
112345
|
else {
|
|
112346
112346
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112347
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112347
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112348
112348
|
if (statErr) this.emit("error", statErr);
|
|
112349
112349
|
else this.onstat({
|
|
112350
112350
|
st: statResult,
|
|
@@ -112398,18 +112398,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112398
112398
|
};
|
|
112399
112399
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112400
112400
|
start() {
|
|
112401
|
-
this.onReaddir(fs$
|
|
112401
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112402
112402
|
return this;
|
|
112403
112403
|
}
|
|
112404
112404
|
addIgnoreFile(file, then) {
|
|
112405
112405
|
const ig = path$8.resolve(this.path, file);
|
|
112406
|
-
this.onReadIgnoreFile(file, fs$
|
|
112406
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112407
112407
|
}
|
|
112408
112408
|
stat({ entry, file, dir }, then) {
|
|
112409
112409
|
const abs = this.path + "/" + entry;
|
|
112410
|
-
let st = fs$
|
|
112410
|
+
let st = fs$5.lstatSync(abs);
|
|
112411
112411
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112412
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112412
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112413
112413
|
this.onstat({
|
|
112414
112414
|
st,
|
|
112415
112415
|
entry,
|
|
@@ -112440,7 +112440,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112440
112440
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112441
112441
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112442
112442
|
const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
|
|
112443
|
-
const { basename: basename$3, dirname: dirname$
|
|
112443
|
+
const { basename: basename$3, dirname: dirname$7, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
|
|
112444
112444
|
const { log } = require_lib$29();
|
|
112445
112445
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112446
112446
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112473,7 +112473,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112473
112473
|
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112474
112474
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112475
112475
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112476
|
-
const ignoreContent = readFile$5(join$
|
|
112476
|
+
const ignoreContent = readFile$5(join$8(root, file), { encoding: "utf8" });
|
|
112477
112477
|
result.push(ignoreContent);
|
|
112478
112478
|
break;
|
|
112479
112479
|
} catch (err) {
|
|
@@ -112482,8 +112482,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112482
112482
|
}
|
|
112483
112483
|
if (!rel) return result;
|
|
112484
112484
|
const firstRel = rel.split(sep, 1)[0];
|
|
112485
|
-
const newRoot = join$
|
|
112486
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112485
|
+
const newRoot = join$8(root, firstRel);
|
|
112486
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
112487
112487
|
};
|
|
112488
112488
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112489
112489
|
constructor(tree, opts) {
|
|
@@ -112512,7 +112512,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112512
112512
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112513
112513
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112514
112514
|
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112515
|
-
const relpath = relative(options.prefix, dirname$
|
|
112515
|
+
const relpath = relative(options.prefix, dirname$7(options.path));
|
|
112516
112516
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112517
112517
|
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112518
112518
|
}
|
|
@@ -112550,7 +112550,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112550
112550
|
let ignoreFiles = null;
|
|
112551
112551
|
if (this.tree.workspaces) {
|
|
112552
112552
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112553
|
-
const entryPath = join$
|
|
112553
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
112554
112554
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112555
112555
|
defaultRules,
|
|
112556
112556
|
"package.json",
|
|
@@ -112610,7 +112610,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112610
112610
|
if (file.endsWith("/*")) file += "*";
|
|
112611
112611
|
const inverse = `!${file}`;
|
|
112612
112612
|
try {
|
|
112613
|
-
const stat = lstat$1(join$
|
|
112613
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112614
112614
|
if (stat.isFile()) {
|
|
112615
112615
|
strict.unshift(inverse);
|
|
112616
112616
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112667,7 +112667,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112667
112667
|
walker.start();
|
|
112668
112668
|
});
|
|
112669
112669
|
const relativeFrom = relative(this.root, walker.path);
|
|
112670
|
-
for (const file of bundled) this.result.add(join$
|
|
112670
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
112671
112671
|
}
|
|
112672
112672
|
}
|
|
112673
112673
|
};
|
|
@@ -112691,7 +112691,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112691
112691
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112692
112692
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112693
112693
|
const { log } = require_lib$29();
|
|
112694
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112694
|
+
const { resolve: resolve$5, dirname: dirname$6, delimiter: delimiter$2 } = require("path");
|
|
112695
112695
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112696
112696
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112697
112697
|
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);
|
|
@@ -112709,7 +112709,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112709
112709
|
do {
|
|
112710
112710
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112711
112711
|
pp = p;
|
|
112712
|
-
p = dirname$
|
|
112712
|
+
p = dirname$6(p);
|
|
112713
112713
|
} while (p !== pp);
|
|
112714
112714
|
pathArr.push(nodeGypPath, PATH);
|
|
112715
112715
|
const pathVal = pathArr.join(delimiter$2);
|
|
@@ -112777,8 +112777,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112777
112777
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112778
112778
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112779
112779
|
const util$2 = require("util");
|
|
112780
|
-
const fs$
|
|
112781
|
-
const { stat } = fs$
|
|
112780
|
+
const fs$4 = require("fs");
|
|
112781
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112782
112782
|
async function isNodeGypPackage(path) {
|
|
112783
112783
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112784
112784
|
}
|
|
@@ -123750,7 +123750,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123750
123750
|
//#endregion
|
|
123751
123751
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123752
123752
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123753
|
-
const fs$
|
|
123753
|
+
const fs$3 = require("fs");
|
|
123754
123754
|
const npa = require_npa();
|
|
123755
123755
|
const { URL: URL$2 } = require("url");
|
|
123756
123756
|
const regFromURI = (uri, opts) => {
|
|
@@ -123790,7 +123790,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123790
123790
|
};
|
|
123791
123791
|
const maybeReadFile = (file) => {
|
|
123792
123792
|
try {
|
|
123793
|
-
return fs$
|
|
123793
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123794
123794
|
} catch (er) {
|
|
123795
123795
|
if (er.code !== "ENOENT") throw er;
|
|
123796
123796
|
return null;
|
|
@@ -140035,7 +140035,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140035
140035
|
exports.Updater = void 0;
|
|
140036
140036
|
const models_1 = require_dist$4();
|
|
140037
140037
|
const debug_1 = __importDefault(require_src$1());
|
|
140038
|
-
const fs$
|
|
140038
|
+
const fs$2 = __importStar(require("fs"));
|
|
140039
140039
|
const path$7 = __importStar(require("path"));
|
|
140040
140040
|
const package_json_1 = require_package$1();
|
|
140041
140041
|
const config_1 = require_config$1();
|
|
@@ -140106,17 +140106,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140106
140106
|
}
|
|
140107
140107
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140108
140108
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140109
|
-
await targetInfo.verify(fs$
|
|
140109
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140110
140110
|
log("WRITE %s", targetPath);
|
|
140111
|
-
fs$
|
|
140111
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140112
140112
|
});
|
|
140113
140113
|
return targetPath;
|
|
140114
140114
|
}
|
|
140115
140115
|
async findCachedTarget(targetInfo, filePath) {
|
|
140116
140116
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140117
140117
|
try {
|
|
140118
|
-
if (fs$
|
|
140119
|
-
await targetInfo.verify(fs$
|
|
140118
|
+
if (fs$2.existsSync(filePath)) {
|
|
140119
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140120
140120
|
return filePath;
|
|
140121
140121
|
}
|
|
140122
140122
|
} catch (error) {
|
|
@@ -140126,7 +140126,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140126
140126
|
loadLocalMetadata(fileName) {
|
|
140127
140127
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
140128
140128
|
log("READ %s", filePath);
|
|
140129
|
-
return fs$
|
|
140129
|
+
return fs$2.readFileSync(filePath);
|
|
140130
140130
|
}
|
|
140131
140131
|
async loadRoot() {
|
|
140132
140132
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140244,7 +140244,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140244
140244
|
try {
|
|
140245
140245
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
140246
140246
|
log("WRITE %s", filePath);
|
|
140247
|
-
fs$
|
|
140247
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140248
140248
|
} catch (error) {
|
|
140249
140249
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140250
140250
|
}
|
|
@@ -142060,7 +142060,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142060
142060
|
//#endregion
|
|
142061
142061
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142062
142062
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142063
|
-
const { basename: basename$2, dirname: dirname$
|
|
142063
|
+
const { basename: basename$2, dirname: dirname$5 } = require("node:path");
|
|
142064
142064
|
const { rm: rm$5, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
142065
142065
|
const PackageJson = require_lib$18();
|
|
142066
142066
|
const cacache = require_lib$14();
|
|
@@ -142109,7 +142109,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142109
142109
|
this.npmBin = opts.npmBin || "npm";
|
|
142110
142110
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142111
142111
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142112
|
-
`--cache=${dirname$
|
|
142112
|
+
`--cache=${dirname$5(this.cache)}`,
|
|
142113
142113
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142114
142114
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142115
142115
|
`--offline=${!!this.offline}`,
|
|
@@ -142265,7 +142265,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142265
142265
|
}));
|
|
142266
142266
|
}
|
|
142267
142267
|
async tarballFile(dest) {
|
|
142268
|
-
await mkdir$3(dirname$
|
|
142268
|
+
await mkdir$3(dirname$5(dest), { recursive: true });
|
|
142269
142269
|
return this.#toFile(dest);
|
|
142270
142270
|
}
|
|
142271
142271
|
#extract(dest, tarball) {
|
|
@@ -150686,7 +150686,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150686
150686
|
}
|
|
150687
150687
|
})();
|
|
150688
150688
|
}));
|
|
150689
|
-
|
|
150689
|
+
//#endregion
|
|
150690
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150691
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150690
150692
|
const { promisify } = require("util");
|
|
150691
150693
|
const path$3 = require("path");
|
|
150692
150694
|
const { createHash } = require("crypto");
|
|
@@ -151138,11 +151140,12 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151138
151140
|
response.writeHead(response.statusCode || 200, headers);
|
|
151139
151141
|
stream.pipe(response);
|
|
151140
151142
|
};
|
|
151141
|
-
}))
|
|
151142
|
-
var import_semver$1 = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151143
|
-
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151143
|
+
}));
|
|
151144
151144
|
//#endregion
|
|
151145
151145
|
//#region ../../packages/core-node/src/server.ts
|
|
151146
|
+
var import_semver$1 = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151147
|
+
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151148
|
+
require_src();
|
|
151146
151149
|
const sendStartupProgress = (message) => {
|
|
151147
151150
|
console.log(`[Startup Progress] ${message}`);
|
|
151148
151151
|
webSocketServer.broadcast("startup:progress", {
|
|
@@ -151584,7 +151587,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151584
151587
|
}
|
|
151585
151588
|
//#endregion
|
|
151586
151589
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151587
|
-
const { join: join$
|
|
151590
|
+
const { join: join$6 } = node_path.default;
|
|
151588
151591
|
//#endregion
|
|
151589
151592
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151590
151593
|
const localPluginsMap = /* @__PURE__ */ new Map();
|