@pipelab/plugin-itch 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 +342 -339
- package/dist/index.mjs +11 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2114,8 +2114,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2114
2114
|
completed: false
|
|
2115
2115
|
}
|
|
2116
2116
|
},
|
|
2117
|
-
plugins: DEFAULT_PLUGINS
|
|
2118
|
-
isInternalMigrationBannerClosed: false
|
|
2117
|
+
plugins: DEFAULT_PLUGINS
|
|
2119
2118
|
});
|
|
2120
2119
|
settingsMigratorInternal.createMigrations({
|
|
2121
2120
|
defaultValue: defaultAppSettings,
|
|
@@ -2166,12 +2165,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2166
2165
|
createMigration({
|
|
2167
2166
|
version: "6.0.0",
|
|
2168
2167
|
up: (state) => {
|
|
2169
|
-
const { cacheFolder
|
|
2168
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2170
2169
|
return {
|
|
2171
2170
|
...rest,
|
|
2171
|
+
cacheFolder,
|
|
2172
2172
|
agents: [],
|
|
2173
|
-
plugins: DEFAULT_PLUGINS
|
|
2174
|
-
isInternalMigrationBannerClosed: false
|
|
2173
|
+
plugins: DEFAULT_PLUGINS
|
|
2175
2174
|
};
|
|
2176
2175
|
}
|
|
2177
2176
|
}),
|
|
@@ -2524,7 +2523,8 @@ object({
|
|
|
2524
2523
|
enabled: boolean(),
|
|
2525
2524
|
description: string()
|
|
2526
2525
|
})),
|
|
2527
|
-
|
|
2526
|
+
cacheFolder: optional(string()),
|
|
2527
|
+
tempFolder: optional(string())
|
|
2528
2528
|
});
|
|
2529
2529
|
const ConnectionValidator = looseObject({
|
|
2530
2530
|
id: string(),
|
|
@@ -49921,7 +49921,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49921
49921
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49922
49922
|
module.exports = isexe;
|
|
49923
49923
|
isexe.sync = sync;
|
|
49924
|
-
var fs$
|
|
49924
|
+
var fs$38 = require("fs");
|
|
49925
49925
|
function checkPathExt(path, options) {
|
|
49926
49926
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49927
49927
|
if (!pathext) return true;
|
|
@@ -49938,12 +49938,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49938
49938
|
return checkPathExt(path, options);
|
|
49939
49939
|
}
|
|
49940
49940
|
function isexe(path, options, cb) {
|
|
49941
|
-
fs$
|
|
49941
|
+
fs$38.stat(path, function(er, stat) {
|
|
49942
49942
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49943
49943
|
});
|
|
49944
49944
|
}
|
|
49945
49945
|
function sync(path, options) {
|
|
49946
|
-
return checkStat(fs$
|
|
49946
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49947
49947
|
}
|
|
49948
49948
|
}));
|
|
49949
49949
|
//#endregion
|
|
@@ -49951,14 +49951,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49951
49951
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49952
49952
|
module.exports = isexe;
|
|
49953
49953
|
isexe.sync = sync;
|
|
49954
|
-
var fs$
|
|
49954
|
+
var fs$37 = require("fs");
|
|
49955
49955
|
function isexe(path, options, cb) {
|
|
49956
|
-
fs$
|
|
49956
|
+
fs$37.stat(path, function(er, stat) {
|
|
49957
49957
|
cb(er, er ? false : checkStat(stat, options));
|
|
49958
49958
|
});
|
|
49959
49959
|
}
|
|
49960
49960
|
function sync(path, options) {
|
|
49961
|
-
return checkStat(fs$
|
|
49961
|
+
return checkStat(fs$37.statSync(path), options);
|
|
49962
49962
|
}
|
|
49963
49963
|
function checkStat(stat, options) {
|
|
49964
49964
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50173,16 +50173,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50173
50173
|
//#endregion
|
|
50174
50174
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50175
50175
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50176
|
-
const fs$
|
|
50176
|
+
const fs$36 = require("fs");
|
|
50177
50177
|
const shebangCommand = require_shebang_command();
|
|
50178
50178
|
function readShebang(command) {
|
|
50179
50179
|
const size = 150;
|
|
50180
50180
|
const buffer = Buffer.alloc(size);
|
|
50181
50181
|
let fd;
|
|
50182
50182
|
try {
|
|
50183
|
-
fd = fs$
|
|
50184
|
-
fs$
|
|
50185
|
-
fs$
|
|
50183
|
+
fd = fs$36.openSync(command, "r");
|
|
50184
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50185
|
+
fs$36.closeSync(fd);
|
|
50186
50186
|
} catch (e) {}
|
|
50187
50187
|
return shebangCommand(buffer.toString());
|
|
50188
50188
|
}
|
|
@@ -57139,7 +57139,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57139
57139
|
const { Minipass } = require_minipass$4();
|
|
57140
57140
|
const Pax = require_pax();
|
|
57141
57141
|
const Header = require_header();
|
|
57142
|
-
const fs$
|
|
57142
|
+
const fs$35 = require("fs");
|
|
57143
57143
|
const path$33 = require("path");
|
|
57144
57144
|
const normPath = require_normalize_windows_path();
|
|
57145
57145
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57227,7 +57227,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57227
57227
|
return super.emit(ev, ...data);
|
|
57228
57228
|
}
|
|
57229
57229
|
[LSTAT]() {
|
|
57230
|
-
fs$
|
|
57230
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57231
57231
|
if (er) return this.emit("error", er);
|
|
57232
57232
|
this[ONLSTAT](stat);
|
|
57233
57233
|
});
|
|
@@ -57292,7 +57292,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57292
57292
|
this.end();
|
|
57293
57293
|
}
|
|
57294
57294
|
[SYMLINK]() {
|
|
57295
|
-
fs$
|
|
57295
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57296
57296
|
if (er) return this.emit("error", er);
|
|
57297
57297
|
this[ONREADLINK](linkpath);
|
|
57298
57298
|
});
|
|
@@ -57323,7 +57323,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57323
57323
|
this[OPENFILE]();
|
|
57324
57324
|
}
|
|
57325
57325
|
[OPENFILE]() {
|
|
57326
|
-
fs$
|
|
57326
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57327
57327
|
if (er) return this.emit("error", er);
|
|
57328
57328
|
this[ONOPENFILE](fd);
|
|
57329
57329
|
});
|
|
@@ -57343,13 +57343,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57343
57343
|
}
|
|
57344
57344
|
[READ]() {
|
|
57345
57345
|
const { fd, buf, offset, length, pos } = this;
|
|
57346
|
-
fs$
|
|
57346
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57347
57347
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57348
57348
|
this[ONREAD](bytesRead);
|
|
57349
57349
|
});
|
|
57350
57350
|
}
|
|
57351
57351
|
[CLOSE](cb) {
|
|
57352
|
-
fs$
|
|
57352
|
+
fs$35.close(this.fd, cb);
|
|
57353
57353
|
}
|
|
57354
57354
|
[ONREAD](bytesRead) {
|
|
57355
57355
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57405,19 +57405,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57405
57405
|
});
|
|
57406
57406
|
var WriteEntrySync = class extends WriteEntry {
|
|
57407
57407
|
[LSTAT]() {
|
|
57408
|
-
this[ONLSTAT](fs$
|
|
57408
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57409
57409
|
}
|
|
57410
57410
|
[SYMLINK]() {
|
|
57411
|
-
this[ONREADLINK](fs$
|
|
57411
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57412
57412
|
}
|
|
57413
57413
|
[OPENFILE]() {
|
|
57414
|
-
this[ONOPENFILE](fs$
|
|
57414
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57415
57415
|
}
|
|
57416
57416
|
[READ]() {
|
|
57417
57417
|
let threw = true;
|
|
57418
57418
|
try {
|
|
57419
57419
|
const { fd, buf, offset, length, pos } = this;
|
|
57420
|
-
const bytesRead = fs$
|
|
57420
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57421
57421
|
this[ONREAD](bytesRead);
|
|
57422
57422
|
threw = false;
|
|
57423
57423
|
} finally {
|
|
@@ -57430,7 +57430,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57430
57430
|
cb();
|
|
57431
57431
|
}
|
|
57432
57432
|
[CLOSE](cb) {
|
|
57433
|
-
fs$
|
|
57433
|
+
fs$35.closeSync(this.fd);
|
|
57434
57434
|
cb();
|
|
57435
57435
|
}
|
|
57436
57436
|
};
|
|
@@ -57827,7 +57827,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57827
57827
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57828
57828
|
const WRITE = Symbol("write");
|
|
57829
57829
|
const ONDRAIN = Symbol("ondrain");
|
|
57830
|
-
const fs$
|
|
57830
|
+
const fs$34 = require("fs");
|
|
57831
57831
|
const path$32 = require("path");
|
|
57832
57832
|
const warner = require_warn_mixin();
|
|
57833
57833
|
const normPath = require_normalize_windows_path();
|
|
@@ -57916,7 +57916,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57916
57916
|
[STAT](job) {
|
|
57917
57917
|
job.pending = true;
|
|
57918
57918
|
this[JOBS] += 1;
|
|
57919
|
-
fs$
|
|
57919
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57920
57920
|
job.pending = false;
|
|
57921
57921
|
this[JOBS] -= 1;
|
|
57922
57922
|
if (er) this.emit("error", er);
|
|
@@ -57932,7 +57932,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57932
57932
|
[READDIR](job) {
|
|
57933
57933
|
job.pending = true;
|
|
57934
57934
|
this[JOBS] += 1;
|
|
57935
|
-
fs$
|
|
57935
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57936
57936
|
job.pending = false;
|
|
57937
57937
|
this[JOBS] -= 1;
|
|
57938
57938
|
if (er) return this.emit("error", er);
|
|
@@ -58050,10 +58050,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58050
58050
|
resume() {}
|
|
58051
58051
|
[STAT](job) {
|
|
58052
58052
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58053
|
-
this[ONSTAT](job, fs$
|
|
58053
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58054
58054
|
}
|
|
58055
58055
|
[READDIR](job, stat) {
|
|
58056
|
-
this[ONREADDIR](job, fs$
|
|
58056
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58057
58057
|
}
|
|
58058
58058
|
[PIPE](job) {
|
|
58059
58059
|
const source = job.entry;
|
|
@@ -58509,8 +58509,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58509
58509
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58510
58510
|
const MiniPass = require_minipass$2();
|
|
58511
58511
|
const EE$11 = require("events").EventEmitter;
|
|
58512
|
-
const fs$
|
|
58513
|
-
let writev = fs$
|
|
58512
|
+
const fs$33 = require("fs");
|
|
58513
|
+
let writev = fs$33.writev;
|
|
58514
58514
|
/* istanbul ignore next */
|
|
58515
58515
|
if (!writev) {
|
|
58516
58516
|
const binding = process.binding("fs");
|
|
@@ -58581,7 +58581,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58581
58581
|
throw new TypeError("this is a readable stream");
|
|
58582
58582
|
}
|
|
58583
58583
|
[_open]() {
|
|
58584
|
-
fs$
|
|
58584
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58585
58585
|
}
|
|
58586
58586
|
[_onopen](er, fd) {
|
|
58587
58587
|
if (er) this[_onerror](er);
|
|
@@ -58600,7 +58600,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58600
58600
|
const buf = this[_makeBuf]();
|
|
58601
58601
|
/* istanbul ignore if */
|
|
58602
58602
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58603
|
-
fs$
|
|
58603
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58604
58604
|
}
|
|
58605
58605
|
}
|
|
58606
58606
|
[_onread](er, br, buf) {
|
|
@@ -58612,7 +58612,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58612
58612
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58613
58613
|
const fd = this[_fd];
|
|
58614
58614
|
this[_fd] = null;
|
|
58615
|
-
fs$
|
|
58615
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58616
58616
|
}
|
|
58617
58617
|
}
|
|
58618
58618
|
[_onerror](er) {
|
|
@@ -58650,7 +58650,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58650
58650
|
[_open]() {
|
|
58651
58651
|
let threw = true;
|
|
58652
58652
|
try {
|
|
58653
|
-
this[_onopen](null, fs$
|
|
58653
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58654
58654
|
threw = false;
|
|
58655
58655
|
} finally {
|
|
58656
58656
|
if (threw) this[_close]();
|
|
@@ -58664,7 +58664,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58664
58664
|
do {
|
|
58665
58665
|
const buf = this[_makeBuf]();
|
|
58666
58666
|
/* istanbul ignore next */
|
|
58667
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58667
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58668
58668
|
if (!this[_handleChunk](br, buf)) break;
|
|
58669
58669
|
} while (true);
|
|
58670
58670
|
this[_reading] = false;
|
|
@@ -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.closeSync(fd);
|
|
58682
58682
|
this.emit("close");
|
|
58683
58683
|
}
|
|
58684
58684
|
}
|
|
@@ -58723,7 +58723,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58723
58723
|
this.emit("error", er);
|
|
58724
58724
|
}
|
|
58725
58725
|
[_open]() {
|
|
58726
|
-
fs$
|
|
58726
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58727
58727
|
}
|
|
58728
58728
|
[_onopen](er, fd) {
|
|
58729
58729
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58758,7 +58758,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58758
58758
|
return true;
|
|
58759
58759
|
}
|
|
58760
58760
|
[_write](buf) {
|
|
58761
|
-
fs$
|
|
58761
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58762
58762
|
}
|
|
58763
58763
|
[_onwrite](er, bw) {
|
|
58764
58764
|
if (er) this[_onerror](er);
|
|
@@ -58792,7 +58792,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58792
58792
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58793
58793
|
const fd = this[_fd];
|
|
58794
58794
|
this[_fd] = null;
|
|
58795
|
-
fs$
|
|
58795
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58796
58796
|
}
|
|
58797
58797
|
}
|
|
58798
58798
|
};
|
|
@@ -58800,28 +58800,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58800
58800
|
[_open]() {
|
|
58801
58801
|
let fd;
|
|
58802
58802
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58803
|
-
fd = fs$
|
|
58803
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58804
58804
|
} catch (er) {
|
|
58805
58805
|
if (er.code === "ENOENT") {
|
|
58806
58806
|
this[_flags] = "w";
|
|
58807
58807
|
return this[_open]();
|
|
58808
58808
|
} else throw er;
|
|
58809
58809
|
}
|
|
58810
|
-
else fd = fs$
|
|
58810
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58811
58811
|
this[_onopen](null, fd);
|
|
58812
58812
|
}
|
|
58813
58813
|
[_close]() {
|
|
58814
58814
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58815
58815
|
const fd = this[_fd];
|
|
58816
58816
|
this[_fd] = null;
|
|
58817
|
-
fs$
|
|
58817
|
+
fs$33.closeSync(fd);
|
|
58818
58818
|
this.emit("close");
|
|
58819
58819
|
}
|
|
58820
58820
|
}
|
|
58821
58821
|
[_write](buf) {
|
|
58822
58822
|
let threw = true;
|
|
58823
58823
|
try {
|
|
58824
|
-
this[_onwrite](null, fs$
|
|
58824
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58825
58825
|
threw = false;
|
|
58826
58826
|
} finally {
|
|
58827
58827
|
if (threw) try {
|
|
@@ -59186,7 +59186,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59186
59186
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59187
59187
|
const hlo = require_high_level_opt();
|
|
59188
59188
|
const Parser = require_parse$4();
|
|
59189
|
-
const fs$
|
|
59189
|
+
const fs$32 = require("fs");
|
|
59190
59190
|
const fsm = require_fs_minipass();
|
|
59191
59191
|
const path$31 = require("path");
|
|
59192
59192
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59227,15 +59227,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59227
59227
|
let threw = true;
|
|
59228
59228
|
let fd;
|
|
59229
59229
|
try {
|
|
59230
|
-
const stat = fs$
|
|
59230
|
+
const stat = fs$32.statSync(file);
|
|
59231
59231
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59232
|
-
if (stat.size < readSize) p.end(fs$
|
|
59232
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59233
59233
|
else {
|
|
59234
59234
|
let pos = 0;
|
|
59235
59235
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59236
|
-
fd = fs$
|
|
59236
|
+
fd = fs$32.openSync(file, "r");
|
|
59237
59237
|
while (pos < stat.size) {
|
|
59238
|
-
const bytesRead = fs$
|
|
59238
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59239
59239
|
pos += bytesRead;
|
|
59240
59240
|
p.write(buf.slice(0, bytesRead));
|
|
59241
59241
|
}
|
|
@@ -59244,7 +59244,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59244
59244
|
threw = false;
|
|
59245
59245
|
} finally {
|
|
59246
59246
|
if (threw && fd) try {
|
|
59247
|
-
fs$
|
|
59247
|
+
fs$32.closeSync(fd);
|
|
59248
59248
|
} catch (er) {}
|
|
59249
59249
|
}
|
|
59250
59250
|
};
|
|
@@ -59255,7 +59255,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59255
59255
|
const p = new Promise((resolve, reject) => {
|
|
59256
59256
|
parse.on("error", reject);
|
|
59257
59257
|
parse.on("end", resolve);
|
|
59258
|
-
fs$
|
|
59258
|
+
fs$32.stat(file, (er, stat) => {
|
|
59259
59259
|
if (er) reject(er);
|
|
59260
59260
|
else {
|
|
59261
59261
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59347,7 +59347,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59347
59347
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59348
59348
|
const hlo = require_high_level_opt();
|
|
59349
59349
|
const Pack = require_pack$1();
|
|
59350
|
-
const fs$
|
|
59350
|
+
const fs$31 = require("fs");
|
|
59351
59351
|
const fsm = require_fs_minipass();
|
|
59352
59352
|
const t = require_list();
|
|
59353
59353
|
const path$29 = require("path");
|
|
@@ -59367,16 +59367,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59367
59367
|
let position;
|
|
59368
59368
|
try {
|
|
59369
59369
|
try {
|
|
59370
|
-
fd = fs$
|
|
59370
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59371
59371
|
} catch (er) {
|
|
59372
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59372
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59373
59373
|
else throw er;
|
|
59374
59374
|
}
|
|
59375
|
-
const st = fs$
|
|
59375
|
+
const st = fs$31.fstatSync(fd);
|
|
59376
59376
|
const headBuf = Buffer.alloc(512);
|
|
59377
59377
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59378
59378
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59379
|
-
bytes = fs$
|
|
59379
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59380
59380
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59381
59381
|
if (!bytes) break POSITION;
|
|
59382
59382
|
}
|
|
@@ -59391,7 +59391,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59391
59391
|
streamSync(opt, p, position, fd, files);
|
|
59392
59392
|
} finally {
|
|
59393
59393
|
if (threw) try {
|
|
59394
|
-
fs$
|
|
59394
|
+
fs$31.closeSync(fd);
|
|
59395
59395
|
} catch (er) {}
|
|
59396
59396
|
}
|
|
59397
59397
|
};
|
|
@@ -59408,7 +59408,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59408
59408
|
const p = new Pack(opt);
|
|
59409
59409
|
const getPos = (fd, size, cb_) => {
|
|
59410
59410
|
const cb = (er, pos) => {
|
|
59411
|
-
if (er) fs$
|
|
59411
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59412
59412
|
else cb_(null, pos);
|
|
59413
59413
|
};
|
|
59414
59414
|
let position = 0;
|
|
@@ -59418,7 +59418,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59418
59418
|
const onread = (er, bytes) => {
|
|
59419
59419
|
if (er) return cb(er);
|
|
59420
59420
|
bufPos += bytes;
|
|
59421
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59421
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59422
59422
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59423
59423
|
if (bufPos < 512) return cb(null, position);
|
|
59424
59424
|
const h = new Header(headBuf);
|
|
@@ -59429,9 +59429,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59429
59429
|
if (position >= size) return cb(null, position);
|
|
59430
59430
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59431
59431
|
bufPos = 0;
|
|
59432
|
-
fs$
|
|
59432
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59433
59433
|
};
|
|
59434
|
-
fs$
|
|
59434
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59435
59435
|
};
|
|
59436
59436
|
const promise = new Promise((resolve, reject) => {
|
|
59437
59437
|
p.on("error", reject);
|
|
@@ -59439,11 +59439,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59439
59439
|
const onopen = (er, fd) => {
|
|
59440
59440
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59441
59441
|
flag = "w+";
|
|
59442
|
-
return fs$
|
|
59442
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59443
59443
|
}
|
|
59444
59444
|
if (er) return reject(er);
|
|
59445
|
-
fs$
|
|
59446
|
-
if (er) return fs$
|
|
59445
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59446
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59447
59447
|
getPos(fd, st.size, (er, position) => {
|
|
59448
59448
|
if (er) return reject(er);
|
|
59449
59449
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59457,7 +59457,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59457
59457
|
});
|
|
59458
59458
|
});
|
|
59459
59459
|
};
|
|
59460
|
-
fs$
|
|
59460
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59461
59461
|
});
|
|
59462
59462
|
return cb ? promise.then(cb, cb) : promise;
|
|
59463
59463
|
};
|
|
@@ -59510,32 +59510,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59510
59510
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59511
59511
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59512
59512
|
const { promisify: promisify$1 } = require("util");
|
|
59513
|
-
const fs$
|
|
59513
|
+
const fs$30 = require("fs");
|
|
59514
59514
|
const optsArg = (opts) => {
|
|
59515
59515
|
if (!opts) opts = {
|
|
59516
59516
|
mode: 511,
|
|
59517
|
-
fs: fs$
|
|
59517
|
+
fs: fs$30
|
|
59518
59518
|
};
|
|
59519
59519
|
else if (typeof opts === "object") opts = {
|
|
59520
59520
|
mode: 511,
|
|
59521
|
-
fs: fs$
|
|
59521
|
+
fs: fs$30,
|
|
59522
59522
|
...opts
|
|
59523
59523
|
};
|
|
59524
59524
|
else if (typeof opts === "number") opts = {
|
|
59525
59525
|
mode: opts,
|
|
59526
|
-
fs: fs$
|
|
59526
|
+
fs: fs$30
|
|
59527
59527
|
};
|
|
59528
59528
|
else if (typeof opts === "string") opts = {
|
|
59529
59529
|
mode: parseInt(opts, 8),
|
|
59530
|
-
fs: fs$
|
|
59530
|
+
fs: fs$30
|
|
59531
59531
|
};
|
|
59532
59532
|
else throw new TypeError("invalid options argument");
|
|
59533
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59533
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59534
59534
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59535
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59535
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59536
59536
|
opts.statAsync = promisify$1(opts.stat);
|
|
59537
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59538
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59537
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59538
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59539
59539
|
return opts;
|
|
59540
59540
|
};
|
|
59541
59541
|
module.exports = optsArg;
|
|
@@ -59566,17 +59566,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59566
59566
|
//#endregion
|
|
59567
59567
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59568
59568
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59569
|
-
const { dirname: dirname$
|
|
59569
|
+
const { dirname: dirname$15 } = require("path");
|
|
59570
59570
|
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59571
59571
|
if (path$82 === parent) return Promise.resolve();
|
|
59572
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59572
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$15(parent), parent) : void 0);
|
|
59573
59573
|
};
|
|
59574
59574
|
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59575
59575
|
if (path$83 === parent) return void 0;
|
|
59576
59576
|
try {
|
|
59577
59577
|
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59578
59578
|
} catch (er) {
|
|
59579
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59579
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$15(parent), parent) : void 0;
|
|
59580
59580
|
}
|
|
59581
59581
|
};
|
|
59582
59582
|
module.exports = {
|
|
@@ -59587,10 +59587,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59587
59587
|
//#endregion
|
|
59588
59588
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59589
59589
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59590
|
-
const { dirname: dirname$
|
|
59590
|
+
const { dirname: dirname$14 } = require("path");
|
|
59591
59591
|
const mkdirpManual = (path$80, opts, made) => {
|
|
59592
59592
|
opts.recursive = false;
|
|
59593
|
-
const parent = dirname$
|
|
59593
|
+
const parent = dirname$14(path$80);
|
|
59594
59594
|
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59595
59595
|
if (er.code !== "EISDIR") throw er;
|
|
59596
59596
|
});
|
|
@@ -59606,7 +59606,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59606
59606
|
});
|
|
59607
59607
|
};
|
|
59608
59608
|
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59609
|
-
const parent = dirname$
|
|
59609
|
+
const parent = dirname$14(path$81);
|
|
59610
59610
|
opts.recursive = false;
|
|
59611
59611
|
if (parent === path$81) try {
|
|
59612
59612
|
return opts.mkdirSync(path$81, opts);
|
|
@@ -59635,12 +59635,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59635
59635
|
//#endregion
|
|
59636
59636
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59637
59637
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59638
|
-
const { dirname: dirname$
|
|
59638
|
+
const { dirname: dirname$13 } = require("path");
|
|
59639
59639
|
const { findMade, findMadeSync } = require_find_made();
|
|
59640
59640
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59641
59641
|
const mkdirpNative = (path$78, opts) => {
|
|
59642
59642
|
opts.recursive = true;
|
|
59643
|
-
if (dirname$
|
|
59643
|
+
if (dirname$13(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59644
59644
|
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59645
59645
|
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59646
59646
|
else throw er;
|
|
@@ -59648,7 +59648,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59648
59648
|
};
|
|
59649
59649
|
const mkdirpNativeSync = (path$79, opts) => {
|
|
59650
59650
|
opts.recursive = true;
|
|
59651
|
-
if (dirname$
|
|
59651
|
+
if (dirname$13(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59652
59652
|
const made = findMadeSync(opts, path$79);
|
|
59653
59653
|
try {
|
|
59654
59654
|
opts.mkdirSync(path$79, opts);
|
|
@@ -59666,12 +59666,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59666
59666
|
//#endregion
|
|
59667
59667
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59668
59668
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59669
|
-
const fs$
|
|
59669
|
+
const fs$29 = require("fs");
|
|
59670
59670
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59671
59671
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59672
59672
|
module.exports = {
|
|
59673
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59674
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59673
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59674
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59675
59675
|
};
|
|
59676
59676
|
}));
|
|
59677
59677
|
//#endregion
|
|
@@ -59702,17 +59702,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59702
59702
|
//#endregion
|
|
59703
59703
|
//#region ../../node_modules/chownr/chownr.js
|
|
59704
59704
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59705
|
-
const fs$
|
|
59705
|
+
const fs$28 = require("fs");
|
|
59706
59706
|
const path$28 = require("path");
|
|
59707
59707
|
/* istanbul ignore next */
|
|
59708
|
-
const LCHOWN = fs$
|
|
59708
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59709
59709
|
/* istanbul ignore next */
|
|
59710
|
-
const LCHOWNSYNC = fs$
|
|
59710
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59711
59711
|
/* istanbul ignore next */
|
|
59712
|
-
const needEISDIRHandled = fs$
|
|
59712
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59713
59713
|
const lchownSync = (path$70, uid, gid) => {
|
|
59714
59714
|
try {
|
|
59715
|
-
return fs$
|
|
59715
|
+
return fs$28[LCHOWNSYNC](path$70, uid, gid);
|
|
59716
59716
|
} catch (er) {
|
|
59717
59717
|
if (er.code !== "ENOENT") throw er;
|
|
59718
59718
|
}
|
|
@@ -59720,7 +59720,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59720
59720
|
/* istanbul ignore next */
|
|
59721
59721
|
const chownSync = (path$71, uid, gid) => {
|
|
59722
59722
|
try {
|
|
59723
|
-
return fs$
|
|
59723
|
+
return fs$28.chownSync(path$71, uid, gid);
|
|
59724
59724
|
} catch (er) {
|
|
59725
59725
|
if (er.code !== "ENOENT") throw er;
|
|
59726
59726
|
}
|
|
@@ -59728,7 +59728,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59728
59728
|
/* istanbul ignore next */
|
|
59729
59729
|
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59730
59730
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59731
|
-
else fs$
|
|
59731
|
+
else fs$28.chown(path$72, uid, gid, cb);
|
|
59732
59732
|
} : (_, __, ___, cb) => cb;
|
|
59733
59733
|
/* istanbul ignore next */
|
|
59734
59734
|
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
@@ -59740,17 +59740,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59740
59740
|
}
|
|
59741
59741
|
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59742
59742
|
const nodeVersion = process.version;
|
|
59743
|
-
let readdir = (path$75, options, cb) => fs$
|
|
59744
|
-
let readdirSync = (path$76, options) => fs$
|
|
59743
|
+
let readdir = (path$75, options, cb) => fs$28.readdir(path$75, options, cb);
|
|
59744
|
+
let readdirSync = (path$76, options) => fs$28.readdirSync(path$76, options);
|
|
59745
59745
|
/* istanbul ignore next */
|
|
59746
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$
|
|
59746
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$28.readdir(path$77, cb);
|
|
59747
59747
|
const chown = (cpath, uid, gid, cb) => {
|
|
59748
|
-
fs$
|
|
59748
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59749
59749
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59750
59750
|
}));
|
|
59751
59751
|
};
|
|
59752
59752
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59753
|
-
if (typeof child === "string") return fs$
|
|
59753
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59754
59754
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59755
59755
|
stats.name = child;
|
|
59756
59756
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59780,7 +59780,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59780
59780
|
};
|
|
59781
59781
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59782
59782
|
if (typeof child === "string") try {
|
|
59783
|
-
const stats = fs$
|
|
59783
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
59784
59784
|
stats.name = child;
|
|
59785
59785
|
child = stats;
|
|
59786
59786
|
} catch (er) {
|
|
@@ -59809,7 +59809,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59809
59809
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59810
59810
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59811
59811
|
const mkdirp = require_mkdirp();
|
|
59812
|
-
const fs$
|
|
59812
|
+
const fs$27 = require("fs");
|
|
59813
59813
|
const path$27 = require("path");
|
|
59814
59814
|
const chownr = require_chownr();
|
|
59815
59815
|
const normPath = require_normalize_windows_path();
|
|
@@ -59836,7 +59836,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59836
59836
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59837
59837
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59838
59838
|
const checkCwd = (dir, cb) => {
|
|
59839
|
-
fs$
|
|
59839
|
+
fs$27.stat(dir, (er, st) => {
|
|
59840
59840
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59841
59841
|
cb(er);
|
|
59842
59842
|
});
|
|
@@ -59858,7 +59858,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59858
59858
|
else {
|
|
59859
59859
|
cSet(cache, dir, true);
|
|
59860
59860
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59861
|
-
else if (needChmod) fs$
|
|
59861
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59862
59862
|
else cb();
|
|
59863
59863
|
}
|
|
59864
59864
|
};
|
|
@@ -59872,17 +59872,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59872
59872
|
const p = parts.shift();
|
|
59873
59873
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59874
59874
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59875
|
-
fs$
|
|
59875
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59876
59876
|
};
|
|
59877
59877
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59878
|
-
if (er) fs$
|
|
59878
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59879
59879
|
if (statEr) {
|
|
59880
59880
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59881
59881
|
cb(statEr);
|
|
59882
59882
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59883
|
-
else if (unlink) fs$
|
|
59883
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59884
59884
|
if (er) return cb(er);
|
|
59885
|
-
fs$
|
|
59885
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59886
59886
|
});
|
|
59887
59887
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59888
59888
|
else cb(er);
|
|
@@ -59896,7 +59896,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59896
59896
|
let ok = false;
|
|
59897
59897
|
let code = "ENOTDIR";
|
|
59898
59898
|
try {
|
|
59899
|
-
ok = fs$
|
|
59899
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59900
59900
|
} catch (er) {
|
|
59901
59901
|
code = er.code;
|
|
59902
59902
|
} finally {
|
|
@@ -59918,7 +59918,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59918
59918
|
const done = (created) => {
|
|
59919
59919
|
cSet(cache, dir, true);
|
|
59920
59920
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59921
|
-
if (needChmod) fs$
|
|
59921
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59922
59922
|
};
|
|
59923
59923
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59924
59924
|
if (dir === cwd) {
|
|
@@ -59932,17 +59932,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59932
59932
|
part = normPath(path$27.resolve(part));
|
|
59933
59933
|
if (cGet(cache, part)) continue;
|
|
59934
59934
|
try {
|
|
59935
|
-
fs$
|
|
59935
|
+
fs$27.mkdirSync(part, mode);
|
|
59936
59936
|
created = created || part;
|
|
59937
59937
|
cSet(cache, part, true);
|
|
59938
59938
|
} catch (er) {
|
|
59939
|
-
const st = fs$
|
|
59939
|
+
const st = fs$27.lstatSync(part);
|
|
59940
59940
|
if (st.isDirectory()) {
|
|
59941
59941
|
cSet(cache, part, true);
|
|
59942
59942
|
continue;
|
|
59943
59943
|
} else if (unlink) {
|
|
59944
|
-
fs$
|
|
59945
|
-
fs$
|
|
59944
|
+
fs$27.unlinkSync(part);
|
|
59945
|
+
fs$27.mkdirSync(part, mode);
|
|
59946
59946
|
created = created || part;
|
|
59947
59947
|
cSet(cache, part, true);
|
|
59948
59948
|
continue;
|
|
@@ -59968,14 +59968,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59968
59968
|
const assert$1 = require("assert");
|
|
59969
59969
|
const normalize = require_normalize_unicode();
|
|
59970
59970
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59971
|
-
const { join: join$
|
|
59971
|
+
const { join: join$17 } = require("path");
|
|
59972
59972
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59973
59973
|
module.exports = () => {
|
|
59974
59974
|
const queues = /* @__PURE__ */ new Map();
|
|
59975
59975
|
const reservations = /* @__PURE__ */ new Map();
|
|
59976
59976
|
const getDirs = (path$61) => {
|
|
59977
59977
|
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
59978
|
-
if (set.length) path$62 = join$
|
|
59978
|
+
if (set.length) path$62 = join$17(set[set.length - 1], path$62);
|
|
59979
59979
|
set.push(path$62 || "/");
|
|
59980
59980
|
return set;
|
|
59981
59981
|
}, []);
|
|
@@ -60029,7 +60029,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60029
60029
|
};
|
|
60030
60030
|
const reserve = (paths, fn) => {
|
|
60031
60031
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60032
|
-
return stripSlashes(join$
|
|
60032
|
+
return stripSlashes(join$17(normalize(p))).toLowerCase();
|
|
60033
60033
|
});
|
|
60034
60034
|
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60035
60035
|
reservations.set(fn, {
|
|
@@ -60071,7 +60071,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60071
60071
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60072
60072
|
const assert = require("assert");
|
|
60073
60073
|
const Parser = require_parse$4();
|
|
60074
|
-
const fs$
|
|
60074
|
+
const fs$26 = require("fs");
|
|
60075
60075
|
const fsm = require_fs_minipass();
|
|
60076
60076
|
const path$26 = require("path");
|
|
60077
60077
|
const mkdir = require_mkdir();
|
|
@@ -60112,19 +60112,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60112
60112
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60113
60113
|
/* istanbul ignore next */
|
|
60114
60114
|
const unlinkFile = (path$57, cb) => {
|
|
60115
|
-
if (!isWindows) return fs$
|
|
60115
|
+
if (!isWindows) return fs$26.unlink(path$57, cb);
|
|
60116
60116
|
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60117
|
-
fs$
|
|
60117
|
+
fs$26.rename(path$57, name, (er) => {
|
|
60118
60118
|
if (er) return cb(er);
|
|
60119
|
-
fs$
|
|
60119
|
+
fs$26.unlink(name, cb);
|
|
60120
60120
|
});
|
|
60121
60121
|
};
|
|
60122
60122
|
/* istanbul ignore next */
|
|
60123
60123
|
const unlinkFileSync = (path$58) => {
|
|
60124
|
-
if (!isWindows) return fs$
|
|
60124
|
+
if (!isWindows) return fs$26.unlinkSync(path$58);
|
|
60125
60125
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60126
|
-
fs$
|
|
60127
|
-
fs$
|
|
60126
|
+
fs$26.renameSync(path$58, name);
|
|
60127
|
+
fs$26.unlinkSync(name);
|
|
60128
60128
|
};
|
|
60129
60129
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60130
60130
|
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
@@ -60310,7 +60310,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60310
60310
|
autoClose: false
|
|
60311
60311
|
});
|
|
60312
60312
|
stream.on("error", (er) => {
|
|
60313
|
-
if (stream.fd) fs$
|
|
60313
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60314
60314
|
stream.write = () => true;
|
|
60315
60315
|
this[ONERROR](er, entry);
|
|
60316
60316
|
fullyDone();
|
|
@@ -60319,12 +60319,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60319
60319
|
const done = (er) => {
|
|
60320
60320
|
if (er) {
|
|
60321
60321
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60322
|
-
if (stream.fd) fs$
|
|
60322
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60323
60323
|
this[ONERROR](er, entry);
|
|
60324
60324
|
fullyDone();
|
|
60325
60325
|
return;
|
|
60326
60326
|
}
|
|
60327
|
-
if (--actions === 0) fs$
|
|
60327
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60328
60328
|
if (er) this[ONERROR](er, entry);
|
|
60329
60329
|
else this[UNPEND]();
|
|
60330
60330
|
fullyDone();
|
|
@@ -60337,13 +60337,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60337
60337
|
actions++;
|
|
60338
60338
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60339
60339
|
const mtime = entry.mtime;
|
|
60340
|
-
fs$
|
|
60340
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60341
60341
|
}
|
|
60342
60342
|
if (this[DOCHOWN](entry)) {
|
|
60343
60343
|
actions++;
|
|
60344
60344
|
const uid = this[UID](entry);
|
|
60345
60345
|
const gid = this[GID](entry);
|
|
60346
|
-
fs$
|
|
60346
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60347
60347
|
}
|
|
60348
60348
|
done();
|
|
60349
60349
|
});
|
|
@@ -60375,11 +60375,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60375
60375
|
};
|
|
60376
60376
|
if (entry.mtime && !this.noMtime) {
|
|
60377
60377
|
actions++;
|
|
60378
|
-
fs$
|
|
60378
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60379
60379
|
}
|
|
60380
60380
|
if (this[DOCHOWN](entry)) {
|
|
60381
60381
|
actions++;
|
|
60382
|
-
fs$
|
|
60382
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60383
60383
|
}
|
|
60384
60384
|
done();
|
|
60385
60385
|
});
|
|
@@ -60452,7 +60452,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60452
60452
|
afterMakeParent();
|
|
60453
60453
|
};
|
|
60454
60454
|
const afterMakeParent = () => {
|
|
60455
|
-
fs$
|
|
60455
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60456
60456
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60457
60457
|
this[SKIP](entry);
|
|
60458
60458
|
done();
|
|
@@ -60464,9 +60464,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60464
60464
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60465
60465
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60466
60466
|
if (!needChmod) return afterChmod();
|
|
60467
|
-
return fs$
|
|
60467
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60468
60468
|
}
|
|
60469
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60469
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60470
60470
|
}
|
|
60471
60471
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60472
60472
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60492,7 +60492,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60492
60492
|
}
|
|
60493
60493
|
}
|
|
60494
60494
|
[LINK](entry, linkpath, link, done) {
|
|
60495
|
-
fs$
|
|
60495
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60496
60496
|
if (er) this[ONERROR](er, entry);
|
|
60497
60497
|
else {
|
|
60498
60498
|
this[UNPEND]();
|
|
@@ -60527,17 +60527,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60527
60527
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60528
60528
|
}
|
|
60529
60529
|
}
|
|
60530
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60530
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60531
60531
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60532
60532
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60533
60533
|
if (st.isDirectory()) {
|
|
60534
60534
|
if (entry.type === "Directory") {
|
|
60535
60535
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60536
|
-
fs$
|
|
60536
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60537
60537
|
}) : [];
|
|
60538
60538
|
return this[MAKEFS](er, entry);
|
|
60539
60539
|
}
|
|
60540
|
-
const [er] = callSync(() => fs$
|
|
60540
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60541
60541
|
this[MAKEFS](er, entry);
|
|
60542
60542
|
}
|
|
60543
60543
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60548,7 +60548,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60548
60548
|
const oner = (er) => {
|
|
60549
60549
|
let closeError;
|
|
60550
60550
|
try {
|
|
60551
|
-
fs$
|
|
60551
|
+
fs$26.closeSync(fd);
|
|
60552
60552
|
} catch (e) {
|
|
60553
60553
|
closeError = e;
|
|
60554
60554
|
}
|
|
@@ -60557,7 +60557,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60557
60557
|
};
|
|
60558
60558
|
let fd;
|
|
60559
60559
|
try {
|
|
60560
|
-
fd = fs$
|
|
60560
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60561
60561
|
} catch (er) {
|
|
60562
60562
|
return oner(er);
|
|
60563
60563
|
}
|
|
@@ -60568,7 +60568,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60568
60568
|
}
|
|
60569
60569
|
tx.on("data", (chunk) => {
|
|
60570
60570
|
try {
|
|
60571
|
-
fs$
|
|
60571
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60572
60572
|
} catch (er) {
|
|
60573
60573
|
oner(er);
|
|
60574
60574
|
}
|
|
@@ -60579,10 +60579,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60579
60579
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60580
60580
|
const mtime = entry.mtime;
|
|
60581
60581
|
try {
|
|
60582
|
-
fs$
|
|
60582
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60583
60583
|
} catch (futimeser) {
|
|
60584
60584
|
try {
|
|
60585
|
-
fs$
|
|
60585
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60586
60586
|
} catch (utimeser) {
|
|
60587
60587
|
er = futimeser;
|
|
60588
60588
|
}
|
|
@@ -60592,10 +60592,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60592
60592
|
const uid = this[UID](entry);
|
|
60593
60593
|
const gid = this[GID](entry);
|
|
60594
60594
|
try {
|
|
60595
|
-
fs$
|
|
60595
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60596
60596
|
} catch (fchowner) {
|
|
60597
60597
|
try {
|
|
60598
|
-
fs$
|
|
60598
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60599
60599
|
} catch (chowner) {
|
|
60600
60600
|
er = er || fchowner;
|
|
60601
60601
|
}
|
|
@@ -60613,10 +60613,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60613
60613
|
return;
|
|
60614
60614
|
}
|
|
60615
60615
|
if (entry.mtime && !this.noMtime) try {
|
|
60616
|
-
fs$
|
|
60616
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60617
60617
|
} catch (er) {}
|
|
60618
60618
|
if (this[DOCHOWN](entry)) try {
|
|
60619
|
-
fs$
|
|
60619
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60620
60620
|
} catch (er) {}
|
|
60621
60621
|
done();
|
|
60622
60622
|
entry.resume();
|
|
@@ -60641,7 +60641,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60641
60641
|
}
|
|
60642
60642
|
[LINK](entry, linkpath, link, done) {
|
|
60643
60643
|
try {
|
|
60644
|
-
fs$
|
|
60644
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60645
60645
|
done();
|
|
60646
60646
|
entry.resume();
|
|
60647
60647
|
} catch (er) {
|
|
@@ -60657,7 +60657,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60657
60657
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60658
60658
|
const hlo = require_high_level_opt();
|
|
60659
60659
|
const Unpack = require_unpack();
|
|
60660
|
-
const fs$
|
|
60660
|
+
const fs$25 = require("fs");
|
|
60661
60661
|
const fsm = require_fs_minipass();
|
|
60662
60662
|
const path$25 = require("path");
|
|
60663
60663
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60687,7 +60687,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60687
60687
|
const extractFileSync = (opt) => {
|
|
60688
60688
|
const u = new Unpack.Sync(opt);
|
|
60689
60689
|
const file = opt.file;
|
|
60690
|
-
const stat = fs$
|
|
60690
|
+
const stat = fs$25.statSync(file);
|
|
60691
60691
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60692
60692
|
new fsm.ReadStreamSync(file, {
|
|
60693
60693
|
readSize,
|
|
@@ -60701,7 +60701,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60701
60701
|
const p = new Promise((resolve, reject) => {
|
|
60702
60702
|
u.on("error", reject);
|
|
60703
60703
|
u.on("close", resolve);
|
|
60704
|
-
fs$
|
|
60704
|
+
fs$25.stat(file, (er, stat) => {
|
|
60705
60705
|
if (er) reject(er);
|
|
60706
60706
|
else {
|
|
60707
60707
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60784,7 +60784,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60784
60784
|
//#endregion
|
|
60785
60785
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60786
60786
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60787
|
-
var fs$
|
|
60787
|
+
var fs$24 = require("fs");
|
|
60788
60788
|
var util$9 = require("util");
|
|
60789
60789
|
var stream$1 = require("stream");
|
|
60790
60790
|
var Readable = stream$1.Readable;
|
|
@@ -60809,7 +60809,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60809
60809
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60810
60810
|
var self = this;
|
|
60811
60811
|
self.pend.go(function(cb) {
|
|
60812
|
-
fs$
|
|
60812
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60813
60813
|
cb();
|
|
60814
60814
|
callback(err, bytesRead, buffer);
|
|
60815
60815
|
});
|
|
@@ -60818,7 +60818,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60818
60818
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60819
60819
|
var self = this;
|
|
60820
60820
|
self.pend.go(function(cb) {
|
|
60821
|
-
fs$
|
|
60821
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60822
60822
|
cb();
|
|
60823
60823
|
callback(err, written, buffer);
|
|
60824
60824
|
});
|
|
@@ -60838,7 +60838,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60838
60838
|
self.refCount -= 1;
|
|
60839
60839
|
if (self.refCount > 0) return;
|
|
60840
60840
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60841
|
-
if (self.autoClose) fs$
|
|
60841
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60842
60842
|
function onCloseDone(err) {
|
|
60843
60843
|
if (err) self.emit("error", err);
|
|
60844
60844
|
else self.emit("close");
|
|
@@ -60869,7 +60869,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60869
60869
|
self.context.pend.go(function(cb) {
|
|
60870
60870
|
if (self.destroyed) return cb();
|
|
60871
60871
|
var buffer = new Buffer(toRead);
|
|
60872
|
-
fs$
|
|
60872
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60873
60873
|
if (err) self.destroy(err);
|
|
60874
60874
|
else if (bytesRead === 0) {
|
|
60875
60875
|
self.destroyed = true;
|
|
@@ -60915,7 +60915,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60915
60915
|
}
|
|
60916
60916
|
self.context.pend.go(function(cb) {
|
|
60917
60917
|
if (self.destroyed) return cb();
|
|
60918
|
-
fs$
|
|
60918
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60919
60919
|
if (err) {
|
|
60920
60920
|
self.destroy();
|
|
60921
60921
|
cb();
|
|
@@ -61322,7 +61322,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61322
61322
|
//#endregion
|
|
61323
61323
|
//#region ../../node_modules/yauzl/index.js
|
|
61324
61324
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61325
|
-
var fs$
|
|
61325
|
+
var fs$23 = require("fs");
|
|
61326
61326
|
var zlib$1 = require("zlib");
|
|
61327
61327
|
var fd_slicer = require_fd_slicer();
|
|
61328
61328
|
var crc32 = require_buffer_crc32();
|
|
@@ -61344,10 +61344,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61344
61344
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61345
61345
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61346
61346
|
if (callback == null) callback = defaultCallback;
|
|
61347
|
-
fs$
|
|
61347
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61348
61348
|
if (err) return callback(err);
|
|
61349
61349
|
fromFd(fd, options, function(err, zipfile) {
|
|
61350
|
-
if (err) fs$
|
|
61350
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61351
61351
|
callback(err, zipfile);
|
|
61352
61352
|
});
|
|
61353
61353
|
});
|
|
@@ -61364,7 +61364,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61364
61364
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61365
61365
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61366
61366
|
if (callback == null) callback = defaultCallback;
|
|
61367
|
-
fs$
|
|
61367
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61368
61368
|
if (err) return callback(err);
|
|
61369
61369
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61370
61370
|
});
|
|
@@ -62592,13 +62592,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62592
62592
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62593
62593
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62594
62594
|
module.exports = readdirGlob;
|
|
62595
|
-
const fs$
|
|
62595
|
+
const fs$22 = require("fs");
|
|
62596
62596
|
const { EventEmitter } = require("events");
|
|
62597
62597
|
const { Minimatch } = require_minimatch$1();
|
|
62598
62598
|
const { resolve: resolve$12 } = require("path");
|
|
62599
62599
|
function readdir(dir, strict) {
|
|
62600
62600
|
return new Promise((resolve, reject) => {
|
|
62601
|
-
fs$
|
|
62601
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62602
62602
|
if (err) switch (err.code) {
|
|
62603
62603
|
case "ENOTDIR":
|
|
62604
62604
|
if (strict) reject(err);
|
|
@@ -62620,7 +62620,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62620
62620
|
}
|
|
62621
62621
|
function stat(file, followSymlinks) {
|
|
62622
62622
|
return new Promise((resolve, reject) => {
|
|
62623
|
-
(followSymlinks ? fs$
|
|
62623
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62624
62624
|
if (err) switch (err.code) {
|
|
62625
62625
|
case "ENOENT":
|
|
62626
62626
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68659,7 +68659,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68659
68659
|
//#endregion
|
|
68660
68660
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68661
68661
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68662
|
-
var fs$
|
|
68662
|
+
var fs$21 = require("fs");
|
|
68663
68663
|
var polyfills = require_polyfills();
|
|
68664
68664
|
var legacy = require_legacy_streams();
|
|
68665
68665
|
var clone = require_clone$1();
|
|
@@ -68688,36 +68688,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68688
68688
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68689
68689
|
console.error(m);
|
|
68690
68690
|
};
|
|
68691
|
-
if (!fs$
|
|
68692
|
-
publishQueue(fs$
|
|
68693
|
-
fs$
|
|
68691
|
+
if (!fs$21[gracefulQueue]) {
|
|
68692
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68693
|
+
fs$21.close = (function(fs$close) {
|
|
68694
68694
|
function close(fd, cb) {
|
|
68695
|
-
return fs$close.call(fs$
|
|
68695
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68696
68696
|
if (!err) resetQueue();
|
|
68697
68697
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68698
68698
|
});
|
|
68699
68699
|
}
|
|
68700
68700
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68701
68701
|
return close;
|
|
68702
|
-
})(fs$
|
|
68703
|
-
fs$
|
|
68702
|
+
})(fs$21.close);
|
|
68703
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68704
68704
|
function closeSync(fd) {
|
|
68705
|
-
fs$closeSync.apply(fs$
|
|
68705
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68706
68706
|
resetQueue();
|
|
68707
68707
|
}
|
|
68708
68708
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68709
68709
|
return closeSync;
|
|
68710
|
-
})(fs$
|
|
68710
|
+
})(fs$21.closeSync);
|
|
68711
68711
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68712
|
-
debug(fs$
|
|
68713
|
-
require("assert").equal(fs$
|
|
68712
|
+
debug(fs$21[gracefulQueue]);
|
|
68713
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68714
68714
|
});
|
|
68715
68715
|
}
|
|
68716
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68717
|
-
module.exports = patch(clone(fs$
|
|
68718
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68719
|
-
module.exports = patch(fs$
|
|
68720
|
-
fs$
|
|
68716
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68717
|
+
module.exports = patch(clone(fs$21));
|
|
68718
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68719
|
+
module.exports = patch(fs$21);
|
|
68720
|
+
fs$21.__patched = true;
|
|
68721
68721
|
}
|
|
68722
68722
|
function patch(fs) {
|
|
68723
68723
|
polyfills(fs);
|
|
@@ -68972,23 +68972,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68972
68972
|
}
|
|
68973
68973
|
function enqueue(elem) {
|
|
68974
68974
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
68975
|
-
fs$
|
|
68975
|
+
fs$21[gracefulQueue].push(elem);
|
|
68976
68976
|
retry();
|
|
68977
68977
|
}
|
|
68978
68978
|
var retryTimer;
|
|
68979
68979
|
function resetQueue() {
|
|
68980
68980
|
var now = Date.now();
|
|
68981
|
-
for (var i = 0; i < fs$
|
|
68982
|
-
fs$
|
|
68983
|
-
fs$
|
|
68981
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
68982
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
68983
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
68984
68984
|
}
|
|
68985
68985
|
retry();
|
|
68986
68986
|
}
|
|
68987
68987
|
function retry() {
|
|
68988
68988
|
clearTimeout(retryTimer);
|
|
68989
68989
|
retryTimer = void 0;
|
|
68990
|
-
if (fs$
|
|
68991
|
-
var elem = fs$
|
|
68990
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
68991
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
68992
68992
|
var fn = elem[0];
|
|
68993
68993
|
var args = elem[1];
|
|
68994
68994
|
var err = elem[2];
|
|
@@ -69007,7 +69007,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69007
69007
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69008
69008
|
debug("RETRY", fn.name, args);
|
|
69009
69009
|
fn.apply(null, args.concat([startTime]));
|
|
69010
|
-
} else fs$
|
|
69010
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69011
69011
|
}
|
|
69012
69012
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69013
69013
|
}
|
|
@@ -84404,7 +84404,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84404
84404
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84405
84405
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84406
84406
|
*/
|
|
84407
|
-
var fs$
|
|
84407
|
+
var fs$20 = require("fs");
|
|
84408
84408
|
var glob = require_readdir_glob();
|
|
84409
84409
|
var async = require_async();
|
|
84410
84410
|
var path$22 = require("path");
|
|
@@ -84481,7 +84481,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84481
84481
|
data.sourcePath = filepath;
|
|
84482
84482
|
task.data = data;
|
|
84483
84483
|
this._entriesCount++;
|
|
84484
|
-
if (data.stats && data.stats instanceof fs$
|
|
84484
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84485
84485
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84486
84486
|
if (task) {
|
|
84487
84487
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84711,7 +84711,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84711
84711
|
callback();
|
|
84712
84712
|
return;
|
|
84713
84713
|
}
|
|
84714
|
-
fs$
|
|
84714
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84715
84715
|
if (this._state.aborted) {
|
|
84716
84716
|
setImmediate(callback);
|
|
84717
84717
|
return;
|
|
@@ -84777,7 +84777,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84777
84777
|
task.data.sourceType = "buffer";
|
|
84778
84778
|
task.source = Buffer.concat([]);
|
|
84779
84779
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84780
|
-
var linkPath = fs$
|
|
84780
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84781
84781
|
var dirName = path$22.dirname(task.filepath);
|
|
84782
84782
|
task.data.type = "symlink";
|
|
84783
84783
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -95826,7 +95826,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95826
95826
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95827
95827
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95828
95828
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95829
|
-
const { join: join$
|
|
95829
|
+
const { join: join$14, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95830
95830
|
const isWindows = process.platform === "win32";
|
|
95831
95831
|
/* istanbul ignore next */
|
|
95832
95832
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95856,7 +95856,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95856
95856
|
};
|
|
95857
95857
|
const getPathPart = (raw, cmd) => {
|
|
95858
95858
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95859
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95859
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
95860
95860
|
};
|
|
95861
95861
|
const which = async (cmd, opt = {}) => {
|
|
95862
95862
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96435,7 +96435,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96435
96435
|
//#endregion
|
|
96436
96436
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96437
96437
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96438
|
-
const fs$
|
|
96438
|
+
const fs$18 = require("node:fs");
|
|
96439
96439
|
const os$2 = require("node:os");
|
|
96440
96440
|
const path$20 = require("node:path");
|
|
96441
96441
|
const ini = require_ini();
|
|
@@ -96444,8 +96444,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96444
96444
|
const loadGitConfig = () => {
|
|
96445
96445
|
if (cachedConfig === null) try {
|
|
96446
96446
|
cachedConfig = {};
|
|
96447
|
-
if (fs$
|
|
96448
|
-
const configContent = fs$
|
|
96447
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96448
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96449
96449
|
cachedConfig = ini.parse(configContent);
|
|
96450
96450
|
}
|
|
96451
96451
|
} catch (error) {
|
|
@@ -96605,7 +96605,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96605
96605
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96606
96606
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96607
96607
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96608
|
-
const { join: join$
|
|
96608
|
+
const { join: join$13, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96609
96609
|
const isWindows = process.platform === "win32";
|
|
96610
96610
|
/* istanbul ignore next */
|
|
96611
96611
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96635,7 +96635,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96635
96635
|
};
|
|
96636
96636
|
const getPathPart = (raw, cmd) => {
|
|
96637
96637
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96638
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96638
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
96639
96639
|
};
|
|
96640
96640
|
const which = async (cmd, opt = {}) => {
|
|
96641
96641
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98314,7 +98314,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98314
98314
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98315
98315
|
const process$1 = require("node:process");
|
|
98316
98316
|
const nodeOs = require("node:os");
|
|
98317
|
-
const fs$
|
|
98317
|
+
const fs$17 = require("node:fs");
|
|
98318
98318
|
function isMusl(file) {
|
|
98319
98319
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98320
98320
|
}
|
|
@@ -98327,7 +98327,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98327
98327
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98328
98328
|
function getFamilyFromFilesystem() {
|
|
98329
98329
|
try {
|
|
98330
|
-
const content = fs$
|
|
98330
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98331
98331
|
if (content.includes("musl")) return "musl";
|
|
98332
98332
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98333
98333
|
return null;
|
|
@@ -98533,7 +98533,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98533
98533
|
//#endregion
|
|
98534
98534
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98535
98535
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98536
|
-
const { join: join$
|
|
98536
|
+
const { join: join$12, basename: basename$4 } = require("path");
|
|
98537
98537
|
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);
|
|
98538
98538
|
const normalizeString = (pkg) => {
|
|
98539
98539
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98556,9 +98556,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98556
98556
|
const clean = {};
|
|
98557
98557
|
let hasBins = false;
|
|
98558
98558
|
Object.keys(orig).forEach((binKey) => {
|
|
98559
|
-
const base = join$
|
|
98559
|
+
const base = join$12("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98560
98560
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98561
|
-
const binTarget = join$
|
|
98561
|
+
const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98562
98562
|
if (!binTarget) return;
|
|
98563
98563
|
clean[base] = binTarget;
|
|
98564
98564
|
hasBins = true;
|
|
@@ -98716,7 +98716,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98716
98716
|
const spawn = require_spawn();
|
|
98717
98717
|
const { isWindows } = require_utils$3();
|
|
98718
98718
|
const pickManifest = require_lib$20();
|
|
98719
|
-
const fs$
|
|
98719
|
+
const fs$16 = require("fs/promises");
|
|
98720
98720
|
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));
|
|
98721
98721
|
const maybeShallow = (repo, opts) => {
|
|
98722
98722
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98751,7 +98751,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98751
98751
|
...opts,
|
|
98752
98752
|
cwd: target
|
|
98753
98753
|
});
|
|
98754
|
-
return fs$
|
|
98754
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98755
98755
|
"config",
|
|
98756
98756
|
"--local",
|
|
98757
98757
|
"--add",
|
|
@@ -98789,7 +98789,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98789
98789
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98790
98790
|
};
|
|
98791
98791
|
const updateSubmodules = async (target, opts) => {
|
|
98792
|
-
if (!await fs$
|
|
98792
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98793
98793
|
return spawn([
|
|
98794
98794
|
"submodule",
|
|
98795
98795
|
"update",
|
|
@@ -98814,7 +98814,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98814
98814
|
...opts,
|
|
98815
98815
|
cwd: target
|
|
98816
98816
|
});
|
|
98817
|
-
return fs$
|
|
98817
|
+
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([
|
|
98818
98818
|
"rev-parse",
|
|
98819
98819
|
"--revs-only",
|
|
98820
98820
|
"HEAD"
|
|
@@ -98831,11 +98831,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98831
98831
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98832
98832
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98833
98833
|
const is = require_is();
|
|
98834
|
-
const { dirname: dirname$
|
|
98834
|
+
const { dirname: dirname$11 } = require("path");
|
|
98835
98835
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98836
98836
|
while (true) {
|
|
98837
98837
|
if (await is({ cwd })) return cwd;
|
|
98838
|
-
const next = dirname$
|
|
98838
|
+
const next = dirname$11(cwd);
|
|
98839
98839
|
if (cwd === root || cwd === next) return null;
|
|
98840
98840
|
cwd = next;
|
|
98841
98841
|
}
|
|
@@ -98869,7 +98869,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98869
98869
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98870
98870
|
const valid = require_valid$3();
|
|
98871
98871
|
const clean = require_clean$1();
|
|
98872
|
-
const fs$
|
|
98872
|
+
const fs$15 = require("node:fs/promises");
|
|
98873
98873
|
const path$17 = require("node:path");
|
|
98874
98874
|
const { log } = require_lib$29();
|
|
98875
98875
|
const moduleBuiltin = require("node:module");
|
|
@@ -99153,13 +99153,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99153
99153
|
}
|
|
99154
99154
|
}
|
|
99155
99155
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99156
|
-
await fs$
|
|
99156
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
99157
99157
|
scripts.start = "node server.js";
|
|
99158
99158
|
data.scripts = scripts;
|
|
99159
99159
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99160
99160
|
} catch {}
|
|
99161
99161
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99162
|
-
data.contributors = (await fs$
|
|
99162
|
+
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);
|
|
99163
99163
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99164
99164
|
} catch {}
|
|
99165
99165
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99178,7 +99178,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99178
99178
|
if (file.endsWith("README")) readmeFile = file;
|
|
99179
99179
|
}
|
|
99180
99180
|
if (readmeFile) {
|
|
99181
|
-
data.readme = await fs$
|
|
99181
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
99182
99182
|
data.readmeFilename = readmeFile;
|
|
99183
99183
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99184
99184
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99210,20 +99210,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99210
99210
|
});
|
|
99211
99211
|
let head;
|
|
99212
99212
|
if (gitRoot) try {
|
|
99213
|
-
head = await fs$
|
|
99213
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99214
99214
|
} catch (err) {}
|
|
99215
99215
|
let headData;
|
|
99216
99216
|
if (head) if (head.startsWith("ref: ")) {
|
|
99217
99217
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99218
99218
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
99219
99219
|
try {
|
|
99220
|
-
headData = await fs$
|
|
99220
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99221
99221
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99222
99222
|
} catch (err) {}
|
|
99223
99223
|
if (!headData) {
|
|
99224
99224
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
99225
99225
|
try {
|
|
99226
|
-
let refs = await fs$
|
|
99226
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99227
99227
|
if (refs) {
|
|
99228
99228
|
refs = refs.split("\n");
|
|
99229
99229
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99244,12 +99244,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99244
99244
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99245
99245
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
99246
99246
|
if (!("types" in data || "typings" in data)) try {
|
|
99247
|
-
await fs$
|
|
99247
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
99248
99248
|
data.types = dts.split(path$17.sep).join("/");
|
|
99249
99249
|
} catch {}
|
|
99250
99250
|
}
|
|
99251
99251
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99252
|
-
await fs$
|
|
99252
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
99253
99253
|
} catch {
|
|
99254
99254
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99255
99255
|
}
|
|
@@ -100631,7 +100631,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100631
100631
|
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();
|
|
100632
100632
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100633
100633
|
const { chmod: chmod$3, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100634
|
-
const { dirname: dirname$
|
|
100634
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100635
100635
|
const { fileURLToPath } = require("url");
|
|
100636
100636
|
const defaultOptions = {
|
|
100637
100637
|
dereference: false,
|
|
@@ -100705,7 +100705,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100705
100705
|
})]);
|
|
100706
100706
|
}
|
|
100707
100707
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100708
|
-
const destParent = dirname$
|
|
100708
|
+
const destParent = dirname$10(dest);
|
|
100709
100709
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100710
100710
|
await mkdir$8(destParent, { recursive: true });
|
|
100711
100711
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100718,8 +100718,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100718
100718
|
);
|
|
100719
100719
|
}
|
|
100720
100720
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100721
|
-
const srcParent = resolve$10(dirname$
|
|
100722
|
-
const destParent = resolve$10(dirname$
|
|
100721
|
+
const srcParent = resolve$10(dirname$10(src));
|
|
100722
|
+
const destParent = resolve$10(dirname$10(dest));
|
|
100723
100723
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100724
100724
|
let destStat;
|
|
100725
100725
|
try {
|
|
@@ -100840,15 +100840,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100840
100840
|
const dir = await readdir$6(src);
|
|
100841
100841
|
for (let i = 0; i < dir.length; i++) {
|
|
100842
100842
|
const item = dir[i];
|
|
100843
|
-
const srcItem = join$
|
|
100844
|
-
const destItem = join$
|
|
100843
|
+
const srcItem = join$11(src, item);
|
|
100844
|
+
const destItem = join$11(dest, item);
|
|
100845
100845
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100846
100846
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100847
100847
|
}
|
|
100848
100848
|
}
|
|
100849
100849
|
async function onLink(destStat, src, dest) {
|
|
100850
100850
|
let resolvedSrc = await readlink(src);
|
|
100851
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100851
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$10(src), resolvedSrc);
|
|
100852
100852
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100853
100853
|
let resolvedDest;
|
|
100854
100854
|
try {
|
|
@@ -100859,7 +100859,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100859
100859
|
// istanbul ignore next: should not be possible
|
|
100860
100860
|
throw err;
|
|
100861
100861
|
}
|
|
100862
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100862
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$10(dest), resolvedDest);
|
|
100863
100863
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100864
100864
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100865
100865
|
path: dest,
|
|
@@ -100883,7 +100883,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100883
100883
|
//#endregion
|
|
100884
100884
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100885
100885
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100886
|
-
const fs$
|
|
100886
|
+
const fs$14 = require("fs/promises");
|
|
100887
100887
|
const getOptions = require_get_options();
|
|
100888
100888
|
const node = require_node$1();
|
|
100889
100889
|
const polyfill = require_polyfill();
|
|
@@ -100898,20 +100898,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100898
100898
|
"recursive"
|
|
100899
100899
|
] });
|
|
100900
100900
|
// istanbul ignore next
|
|
100901
|
-
return useNative ? fs$
|
|
100901
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100902
100902
|
};
|
|
100903
100903
|
module.exports = cp;
|
|
100904
100904
|
}));
|
|
100905
100905
|
//#endregion
|
|
100906
100906
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100907
100907
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100908
|
-
const { join: join$
|
|
100908
|
+
const { join: join$10, sep: sep$1 } = require("path");
|
|
100909
100909
|
const getOptions = require_get_options();
|
|
100910
100910
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$9 } = require("fs/promises");
|
|
100911
100911
|
const withTempDir = async (root, fn, opts) => {
|
|
100912
100912
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100913
100913
|
await mkdir$7(root, { recursive: true });
|
|
100914
|
-
const target = await mkdtemp(join$
|
|
100914
|
+
const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100915
100915
|
let err;
|
|
100916
100916
|
let result;
|
|
100917
100917
|
try {
|
|
@@ -100934,10 +100934,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100934
100934
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100935
100935
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100936
100936
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100937
|
-
const { join: join$
|
|
100937
|
+
const { join: join$9 } = require("path");
|
|
100938
100938
|
const readdirScoped = async (dir) => {
|
|
100939
100939
|
const results = [];
|
|
100940
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100940
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$9(dir, item))) results.push(join$9(item, scopedItem));
|
|
100941
100941
|
else results.push(item);
|
|
100942
100942
|
return results;
|
|
100943
100943
|
};
|
|
@@ -100946,11 +100946,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100946
100946
|
//#endregion
|
|
100947
100947
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100948
100948
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100949
|
-
const { dirname: dirname$
|
|
100950
|
-
const fs$
|
|
100949
|
+
const { dirname: dirname$9, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100950
|
+
const fs$13 = require("fs/promises");
|
|
100951
100951
|
const pathExists = async (path$53) => {
|
|
100952
100952
|
try {
|
|
100953
|
-
await fs$
|
|
100953
|
+
await fs$13.access(path$53);
|
|
100954
100954
|
return true;
|
|
100955
100955
|
} catch (er) {
|
|
100956
100956
|
return er.code !== "ENOENT";
|
|
@@ -100963,34 +100963,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100963
100963
|
...options
|
|
100964
100964
|
};
|
|
100965
100965
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
100966
|
-
await fs$
|
|
100966
|
+
await fs$13.mkdir(dirname$9(destination), { recursive: true });
|
|
100967
100967
|
try {
|
|
100968
|
-
await fs$
|
|
100968
|
+
await fs$13.rename(source, destination);
|
|
100969
100969
|
} catch (error) {
|
|
100970
100970
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
100971
|
-
const sourceStat = await fs$
|
|
100971
|
+
const sourceStat = await fs$13.lstat(source);
|
|
100972
100972
|
if (sourceStat.isDirectory()) {
|
|
100973
|
-
const files = await fs$
|
|
100974
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100973
|
+
const files = await fs$13.readdir(source);
|
|
100974
|
+
await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
|
|
100975
100975
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
100976
100976
|
source,
|
|
100977
100977
|
destination
|
|
100978
100978
|
});
|
|
100979
|
-
else await fs$
|
|
100979
|
+
else await fs$13.copyFile(source, destination);
|
|
100980
100980
|
} else throw error;
|
|
100981
100981
|
}
|
|
100982
100982
|
if (root) {
|
|
100983
100983
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
100984
|
-
let target = await fs$
|
|
100984
|
+
let target = await fs$13.readlink(symSource);
|
|
100985
100985
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
100986
100986
|
let targetStat = "file";
|
|
100987
100987
|
try {
|
|
100988
|
-
targetStat = await fs$
|
|
100988
|
+
targetStat = await fs$13.stat(resolve$9(dirname$9(symSource), target));
|
|
100989
100989
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
100990
100990
|
} catch {}
|
|
100991
|
-
await fs$
|
|
100991
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
100992
100992
|
}));
|
|
100993
|
-
await fs$
|
|
100993
|
+
await fs$13.rm(source, {
|
|
100994
100994
|
recursive: true,
|
|
100995
100995
|
force: true
|
|
100996
100996
|
});
|
|
@@ -101013,7 +101013,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101013
101013
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101014
101014
|
const crypto$2 = require("crypto");
|
|
101015
101015
|
const { withTempDir } = require_lib$16();
|
|
101016
|
-
const fs$
|
|
101016
|
+
const fs$12 = require("fs/promises");
|
|
101017
101017
|
const path$16 = require("path");
|
|
101018
101018
|
module.exports.mkdir = mktmpdir;
|
|
101019
101019
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101023,12 +101023,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101023
101023
|
async function mktmpdir(cache, opts = {}) {
|
|
101024
101024
|
const { tmpPrefix } = opts;
|
|
101025
101025
|
const tmpDir = path$16.join(cache, "tmp");
|
|
101026
|
-
await fs$
|
|
101026
|
+
await fs$12.mkdir(tmpDir, {
|
|
101027
101027
|
recursive: true,
|
|
101028
101028
|
owner: "inherit"
|
|
101029
101029
|
});
|
|
101030
101030
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
101031
|
-
return fs$
|
|
101031
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101032
101032
|
}
|
|
101033
101033
|
module.exports.withTmp = withTmp;
|
|
101034
101034
|
function withTmp(cache, opts, cb) {
|
|
@@ -101408,8 +101408,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101408
101408
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101409
101409
|
const { Minipass } = require_commonjs$10();
|
|
101410
101410
|
const EE$4 = require("events").EventEmitter;
|
|
101411
|
-
const fs$
|
|
101412
|
-
const writev = fs$
|
|
101411
|
+
const fs$11 = require("fs");
|
|
101412
|
+
const writev = fs$11.writev;
|
|
101413
101413
|
const _autoClose = Symbol("_autoClose");
|
|
101414
101414
|
const _close = Symbol("_close");
|
|
101415
101415
|
const _ended = Symbol("_ended");
|
|
@@ -101469,7 +101469,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101469
101469
|
throw new TypeError("this is a readable stream");
|
|
101470
101470
|
}
|
|
101471
101471
|
[_open]() {
|
|
101472
|
-
fs$
|
|
101472
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101473
101473
|
}
|
|
101474
101474
|
[_onopen](er, fd) {
|
|
101475
101475
|
if (er) this[_onerror](er);
|
|
@@ -101488,7 +101488,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101488
101488
|
const buf = this[_makeBuf]();
|
|
101489
101489
|
/* istanbul ignore if */
|
|
101490
101490
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101491
|
-
fs$
|
|
101491
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101492
101492
|
}
|
|
101493
101493
|
}
|
|
101494
101494
|
[_onread](er, br, buf) {
|
|
@@ -101500,7 +101500,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101500
101500
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101501
101501
|
const fd = this[_fd];
|
|
101502
101502
|
this[_fd] = null;
|
|
101503
|
-
fs$
|
|
101503
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101504
101504
|
}
|
|
101505
101505
|
}
|
|
101506
101506
|
[_onerror](er) {
|
|
@@ -101538,7 +101538,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101538
101538
|
[_open]() {
|
|
101539
101539
|
let threw = true;
|
|
101540
101540
|
try {
|
|
101541
|
-
this[_onopen](null, fs$
|
|
101541
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101542
101542
|
threw = false;
|
|
101543
101543
|
} finally {
|
|
101544
101544
|
if (threw) this[_close]();
|
|
@@ -101552,7 +101552,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101552
101552
|
do {
|
|
101553
101553
|
const buf = this[_makeBuf]();
|
|
101554
101554
|
/* istanbul ignore next */
|
|
101555
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101555
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101556
101556
|
if (!this[_handleChunk](br, buf)) break;
|
|
101557
101557
|
} while (true);
|
|
101558
101558
|
this[_reading] = false;
|
|
@@ -101566,7 +101566,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101566
101566
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101567
101567
|
const fd = this[_fd];
|
|
101568
101568
|
this[_fd] = null;
|
|
101569
|
-
fs$
|
|
101569
|
+
fs$11.closeSync(fd);
|
|
101570
101570
|
this.emit("close");
|
|
101571
101571
|
}
|
|
101572
101572
|
}
|
|
@@ -101611,7 +101611,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101611
101611
|
this.emit("error", er);
|
|
101612
101612
|
}
|
|
101613
101613
|
[_open]() {
|
|
101614
|
-
fs$
|
|
101614
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101615
101615
|
}
|
|
101616
101616
|
[_onopen](er, fd) {
|
|
101617
101617
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101646,7 +101646,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101646
101646
|
return true;
|
|
101647
101647
|
}
|
|
101648
101648
|
[_write](buf) {
|
|
101649
|
-
fs$
|
|
101649
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101650
101650
|
}
|
|
101651
101651
|
[_onwrite](er, bw) {
|
|
101652
101652
|
if (er) this[_onerror](er);
|
|
@@ -101680,7 +101680,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101680
101680
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101681
101681
|
const fd = this[_fd];
|
|
101682
101682
|
this[_fd] = null;
|
|
101683
|
-
fs$
|
|
101683
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101684
101684
|
}
|
|
101685
101685
|
}
|
|
101686
101686
|
};
|
|
@@ -101688,28 +101688,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101688
101688
|
[_open]() {
|
|
101689
101689
|
let fd;
|
|
101690
101690
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101691
|
-
fd = fs$
|
|
101691
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101692
101692
|
} catch (er) {
|
|
101693
101693
|
if (er.code === "ENOENT") {
|
|
101694
101694
|
this[_flags] = "w";
|
|
101695
101695
|
return this[_open]();
|
|
101696
101696
|
} else throw er;
|
|
101697
101697
|
}
|
|
101698
|
-
else fd = fs$
|
|
101698
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101699
101699
|
this[_onopen](null, fd);
|
|
101700
101700
|
}
|
|
101701
101701
|
[_close]() {
|
|
101702
101702
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101703
101703
|
const fd = this[_fd];
|
|
101704
101704
|
this[_fd] = null;
|
|
101705
|
-
fs$
|
|
101705
|
+
fs$11.closeSync(fd);
|
|
101706
101706
|
this.emit("close");
|
|
101707
101707
|
}
|
|
101708
101708
|
}
|
|
101709
101709
|
[_write](buf) {
|
|
101710
101710
|
let threw = true;
|
|
101711
101711
|
try {
|
|
101712
|
-
this[_onwrite](null, fs$
|
|
101712
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101713
101713
|
threw = false;
|
|
101714
101714
|
} finally {
|
|
101715
101715
|
if (threw) try {
|
|
@@ -101726,7 +101726,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101726
101726
|
//#endregion
|
|
101727
101727
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101728
101728
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101729
|
-
const fs$
|
|
101729
|
+
const fs$10 = require("fs/promises");
|
|
101730
101730
|
const fsm = require_lib$15();
|
|
101731
101731
|
const ssri = require_lib$17();
|
|
101732
101732
|
const contentPath = require_path();
|
|
@@ -101737,13 +101737,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101737
101737
|
const { size } = opts;
|
|
101738
101738
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101739
101739
|
return {
|
|
101740
|
-
stat: size ? { size } : await fs$
|
|
101740
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101741
101741
|
cpath,
|
|
101742
101742
|
sri
|
|
101743
101743
|
};
|
|
101744
101744
|
});
|
|
101745
101745
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101746
|
-
const data = await fs$
|
|
101746
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101747
101747
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101748
101748
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101749
101749
|
return data;
|
|
@@ -101766,7 +101766,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101766
101766
|
Promise.resolve().then(async () => {
|
|
101767
101767
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101768
101768
|
return {
|
|
101769
|
-
stat: size ? { size } : await fs$
|
|
101769
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101770
101770
|
cpath,
|
|
101771
101771
|
sri
|
|
101772
101772
|
};
|
|
@@ -101778,7 +101778,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101778
101778
|
module.exports.copy = copy;
|
|
101779
101779
|
function copy(cache, integrity, dest) {
|
|
101780
101780
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101781
|
-
return fs$
|
|
101781
|
+
return fs$10.copyFile(cpath, dest);
|
|
101782
101782
|
});
|
|
101783
101783
|
}
|
|
101784
101784
|
module.exports.hasContent = hasContent;
|
|
@@ -101786,7 +101786,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101786
101786
|
if (!integrity) return false;
|
|
101787
101787
|
try {
|
|
101788
101788
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101789
|
-
const stat = await fs$
|
|
101789
|
+
const stat = await fs$10.stat(cpath);
|
|
101790
101790
|
return {
|
|
101791
101791
|
size: stat.size,
|
|
101792
101792
|
sri,
|
|
@@ -102426,7 +102426,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102426
102426
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102427
102427
|
const events = require("events");
|
|
102428
102428
|
const contentPath = require_path();
|
|
102429
|
-
const fs$
|
|
102429
|
+
const fs$9 = require("fs/promises");
|
|
102430
102430
|
const { moveFile } = require_lib$16();
|
|
102431
102431
|
const { Minipass } = require_commonjs$10();
|
|
102432
102432
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102446,10 +102446,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102446
102446
|
const tmp = await makeTmp(cache, opts);
|
|
102447
102447
|
const hash = sri[algo].toString();
|
|
102448
102448
|
try {
|
|
102449
|
-
await fs$
|
|
102449
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102450
102450
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102451
102451
|
} finally {
|
|
102452
|
-
if (!tmp.moved) await fs$
|
|
102452
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102453
102453
|
recursive: true,
|
|
102454
102454
|
force: true
|
|
102455
102455
|
});
|
|
@@ -102503,7 +102503,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102503
102503
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102504
102504
|
return res;
|
|
102505
102505
|
} finally {
|
|
102506
|
-
if (!tmp.moved) await fs$
|
|
102506
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102507
102507
|
recursive: true,
|
|
102508
102508
|
force: true
|
|
102509
102509
|
});
|
|
@@ -102543,7 +102543,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102543
102543
|
}
|
|
102544
102544
|
async function makeTmp(cache, opts) {
|
|
102545
102545
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102546
|
-
await fs$
|
|
102546
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
102547
102547
|
return {
|
|
102548
102548
|
target: tmpTarget,
|
|
102549
102549
|
moved: false
|
|
@@ -102553,7 +102553,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102553
102553
|
const destination = contentPath(cache, sri);
|
|
102554
102554
|
const destDir = path$13.dirname(destination);
|
|
102555
102555
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102556
|
-
moveOperations.set(destination, fs$
|
|
102556
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102557
102557
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102558
102558
|
tmp.moved = true;
|
|
102559
102559
|
return tmp.moved;
|
|
@@ -106011,14 +106011,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106011
106011
|
//#endregion
|
|
106012
106012
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106013
106013
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106014
|
-
const fs$
|
|
106014
|
+
const fs$8 = require("fs/promises");
|
|
106015
106015
|
const contentPath = require_path();
|
|
106016
106016
|
const { hasContent } = require_read();
|
|
106017
106017
|
module.exports = rm;
|
|
106018
106018
|
async function rm(cache, integrity) {
|
|
106019
106019
|
const content = await hasContent(cache, integrity);
|
|
106020
106020
|
if (content && content.sri) {
|
|
106021
|
-
await fs$
|
|
106021
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106022
106022
|
recursive: true,
|
|
106023
106023
|
force: true
|
|
106024
106024
|
});
|
|
@@ -106300,8 +106300,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106300
106300
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106301
106301
|
const { Minipass } = require_commonjs$10();
|
|
106302
106302
|
const EE$2 = require("events").EventEmitter;
|
|
106303
|
-
const fs$
|
|
106304
|
-
const writev = fs$
|
|
106303
|
+
const fs$7 = require("fs");
|
|
106304
|
+
const writev = fs$7.writev;
|
|
106305
106305
|
const _autoClose = Symbol("_autoClose");
|
|
106306
106306
|
const _close = Symbol("_close");
|
|
106307
106307
|
const _ended = Symbol("_ended");
|
|
@@ -106361,7 +106361,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106361
106361
|
throw new TypeError("this is a readable stream");
|
|
106362
106362
|
}
|
|
106363
106363
|
[_open]() {
|
|
106364
|
-
fs$
|
|
106364
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106365
106365
|
}
|
|
106366
106366
|
[_onopen](er, fd) {
|
|
106367
106367
|
if (er) this[_onerror](er);
|
|
@@ -106380,7 +106380,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106380
106380
|
const buf = this[_makeBuf]();
|
|
106381
106381
|
/* istanbul ignore if */
|
|
106382
106382
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106383
|
-
fs$
|
|
106383
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106384
106384
|
}
|
|
106385
106385
|
}
|
|
106386
106386
|
[_onread](er, br, buf) {
|
|
@@ -106392,7 +106392,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106392
106392
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106393
106393
|
const fd = this[_fd];
|
|
106394
106394
|
this[_fd] = null;
|
|
106395
|
-
fs$
|
|
106395
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106396
106396
|
}
|
|
106397
106397
|
}
|
|
106398
106398
|
[_onerror](er) {
|
|
@@ -106430,7 +106430,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106430
106430
|
[_open]() {
|
|
106431
106431
|
let threw = true;
|
|
106432
106432
|
try {
|
|
106433
|
-
this[_onopen](null, fs$
|
|
106433
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106434
106434
|
threw = false;
|
|
106435
106435
|
} finally {
|
|
106436
106436
|
if (threw) this[_close]();
|
|
@@ -106444,7 +106444,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106444
106444
|
do {
|
|
106445
106445
|
const buf = this[_makeBuf]();
|
|
106446
106446
|
/* istanbul ignore next */
|
|
106447
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106447
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106448
106448
|
if (!this[_handleChunk](br, buf)) break;
|
|
106449
106449
|
} while (true);
|
|
106450
106450
|
this[_reading] = false;
|
|
@@ -106458,7 +106458,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106458
106458
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106459
106459
|
const fd = this[_fd];
|
|
106460
106460
|
this[_fd] = null;
|
|
106461
|
-
fs$
|
|
106461
|
+
fs$7.closeSync(fd);
|
|
106462
106462
|
this.emit("close");
|
|
106463
106463
|
}
|
|
106464
106464
|
}
|
|
@@ -106503,7 +106503,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106503
106503
|
this.emit("error", er);
|
|
106504
106504
|
}
|
|
106505
106505
|
[_open]() {
|
|
106506
|
-
fs$
|
|
106506
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106507
106507
|
}
|
|
106508
106508
|
[_onopen](er, fd) {
|
|
106509
106509
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106538,7 +106538,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106538
106538
|
return true;
|
|
106539
106539
|
}
|
|
106540
106540
|
[_write](buf) {
|
|
106541
|
-
fs$
|
|
106541
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106542
106542
|
}
|
|
106543
106543
|
[_onwrite](er, bw) {
|
|
106544
106544
|
if (er) this[_onerror](er);
|
|
@@ -106572,7 +106572,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106572
106572
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106573
106573
|
const fd = this[_fd];
|
|
106574
106574
|
this[_fd] = null;
|
|
106575
|
-
fs$
|
|
106575
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106576
106576
|
}
|
|
106577
106577
|
}
|
|
106578
106578
|
};
|
|
@@ -106580,28 +106580,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106580
106580
|
[_open]() {
|
|
106581
106581
|
let fd;
|
|
106582
106582
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106583
|
-
fd = fs$
|
|
106583
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106584
106584
|
} catch (er) {
|
|
106585
106585
|
if (er.code === "ENOENT") {
|
|
106586
106586
|
this[_flags] = "w";
|
|
106587
106587
|
return this[_open]();
|
|
106588
106588
|
} else throw er;
|
|
106589
106589
|
}
|
|
106590
|
-
else fd = fs$
|
|
106590
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106591
106591
|
this[_onopen](null, fd);
|
|
106592
106592
|
}
|
|
106593
106593
|
[_close]() {
|
|
106594
106594
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106595
106595
|
const fd = this[_fd];
|
|
106596
106596
|
this[_fd] = null;
|
|
106597
|
-
fs$
|
|
106597
|
+
fs$7.closeSync(fd);
|
|
106598
106598
|
this.emit("close");
|
|
106599
106599
|
}
|
|
106600
106600
|
}
|
|
106601
106601
|
[_write](buf) {
|
|
106602
106602
|
let threw = true;
|
|
106603
106603
|
try {
|
|
106604
|
-
this[_onwrite](null, fs$
|
|
106604
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106605
106605
|
threw = false;
|
|
106606
106606
|
} finally {
|
|
106607
106607
|
if (threw) try {
|
|
@@ -106618,7 +106618,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106618
106618
|
//#endregion
|
|
106619
106619
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106620
106620
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106621
|
-
const fs$
|
|
106621
|
+
const fs$6 = require("fs");
|
|
106622
106622
|
const path$9 = require("path");
|
|
106623
106623
|
const EE$1 = require("events").EventEmitter;
|
|
106624
106624
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106674,7 +106674,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106674
106674
|
return this;
|
|
106675
106675
|
}
|
|
106676
106676
|
readPackageJson(pj) {
|
|
106677
|
-
fs$
|
|
106677
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106678
106678
|
}
|
|
106679
106679
|
onPackageJson(pj, data) {
|
|
106680
106680
|
try {
|
|
@@ -106732,7 +106732,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106732
106732
|
}
|
|
106733
106733
|
readPackageJson(pj) {
|
|
106734
106734
|
try {
|
|
106735
|
-
this.onPackageJson(pj, fs$
|
|
106735
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106736
106736
|
} catch {}
|
|
106737
106737
|
return this;
|
|
106738
106738
|
}
|
|
@@ -106751,7 +106751,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106751
106751
|
}
|
|
106752
106752
|
};
|
|
106753
106753
|
const readdirNodeModules = (nm, cb) => {
|
|
106754
|
-
fs$
|
|
106754
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106755
106755
|
if (er) cb(er);
|
|
106756
106756
|
else {
|
|
106757
106757
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106760,7 +106760,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106760
106760
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106761
106761
|
let count = scopes.length;
|
|
106762
106762
|
scopes.forEach((scope) => {
|
|
106763
|
-
fs$
|
|
106763
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106764
106764
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106765
106765
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106766
106766
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106771,11 +106771,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106771
106771
|
});
|
|
106772
106772
|
};
|
|
106773
106773
|
const readdirNodeModulesSync = (nm) => {
|
|
106774
|
-
const set = fs$
|
|
106774
|
+
const set = fs$6.readdirSync(nm);
|
|
106775
106775
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106776
106776
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106777
106777
|
try {
|
|
106778
|
-
const pkgs = fs$
|
|
106778
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106779
106779
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106780
106780
|
} catch (er) {
|
|
106781
106781
|
return [scope];
|
|
@@ -106802,7 +106802,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106802
106802
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106803
106803
|
const bundled = require_lib$12();
|
|
106804
106804
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106805
|
-
const { resolve: resolve$8, basename: basename$3, dirname: dirname$
|
|
106805
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$8 } = require("path");
|
|
106806
106806
|
const normalizePackageBin = require_lib$21();
|
|
106807
106807
|
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106808
106808
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106841,9 +106841,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106841
106841
|
}));
|
|
106842
106842
|
if (pkg) {
|
|
106843
106843
|
if (pkg.bin) {
|
|
106844
|
-
const dir = dirname$
|
|
106844
|
+
const dir = dirname$8(path$50);
|
|
106845
106845
|
const scope = basename$3(dir);
|
|
106846
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106846
|
+
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106847
106847
|
const binFiles = [];
|
|
106848
106848
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106849
106849
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112115,7 +112115,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112115
112115
|
//#endregion
|
|
112116
112116
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112117
112117
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112118
|
-
const fs$
|
|
112118
|
+
const fs$5 = require("fs");
|
|
112119
112119
|
const path$8 = require("path");
|
|
112120
112120
|
const EE = require("events").EventEmitter;
|
|
112121
112121
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112154,7 +112154,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112154
112154
|
return ret;
|
|
112155
112155
|
}
|
|
112156
112156
|
start() {
|
|
112157
|
-
fs$
|
|
112157
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112158
112158
|
return this;
|
|
112159
112159
|
}
|
|
112160
112160
|
isIgnoreFile(e) {
|
|
@@ -112178,7 +112178,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112178
112178
|
}
|
|
112179
112179
|
addIgnoreFile(file, then) {
|
|
112180
112180
|
const ig = path$8.resolve(this.path, file);
|
|
112181
|
-
fs$
|
|
112181
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112182
112182
|
}
|
|
112183
112183
|
onReadIgnoreFile(file, data, then) {
|
|
112184
112184
|
const mmopt = {
|
|
@@ -112234,11 +112234,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112234
112234
|
}
|
|
112235
112235
|
stat({ entry, file, dir }, then) {
|
|
112236
112236
|
const abs = this.path + "/" + entry;
|
|
112237
|
-
fs$
|
|
112237
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112238
112238
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112239
112239
|
else {
|
|
112240
112240
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112241
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112241
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112242
112242
|
if (statErr) this.emit("error", statErr);
|
|
112243
112243
|
else this.onstat({
|
|
112244
112244
|
st: statResult,
|
|
@@ -112292,18 +112292,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112292
112292
|
};
|
|
112293
112293
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112294
112294
|
start() {
|
|
112295
|
-
this.onReaddir(fs$
|
|
112295
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112296
112296
|
return this;
|
|
112297
112297
|
}
|
|
112298
112298
|
addIgnoreFile(file, then) {
|
|
112299
112299
|
const ig = path$8.resolve(this.path, file);
|
|
112300
|
-
this.onReadIgnoreFile(file, fs$
|
|
112300
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112301
112301
|
}
|
|
112302
112302
|
stat({ entry, file, dir }, then) {
|
|
112303
112303
|
const abs = this.path + "/" + entry;
|
|
112304
|
-
let st = fs$
|
|
112304
|
+
let st = fs$5.lstatSync(abs);
|
|
112305
112305
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112306
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112306
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112307
112307
|
this.onstat({
|
|
112308
112308
|
st,
|
|
112309
112309
|
entry,
|
|
@@ -112334,7 +112334,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112334
112334
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112335
112335
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112336
112336
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112337
|
-
const { basename: basename$2, dirname: dirname$
|
|
112337
|
+
const { basename: basename$2, dirname: dirname$7, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
|
|
112338
112338
|
const { log } = require_lib$29();
|
|
112339
112339
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112340
112340
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112367,7 +112367,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112367
112367
|
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112368
112368
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112369
112369
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112370
|
-
const ignoreContent = readFile$4(join$
|
|
112370
|
+
const ignoreContent = readFile$4(join$7(root, file), { encoding: "utf8" });
|
|
112371
112371
|
result.push(ignoreContent);
|
|
112372
112372
|
break;
|
|
112373
112373
|
} catch (err) {
|
|
@@ -112376,8 +112376,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112376
112376
|
}
|
|
112377
112377
|
if (!rel) return result;
|
|
112378
112378
|
const firstRel = rel.split(sep, 1)[0];
|
|
112379
|
-
const newRoot = join$
|
|
112380
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112379
|
+
const newRoot = join$7(root, firstRel);
|
|
112380
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
|
|
112381
112381
|
};
|
|
112382
112382
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112383
112383
|
constructor(tree, opts) {
|
|
@@ -112406,7 +112406,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112406
112406
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112407
112407
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112408
112408
|
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112409
|
-
const relpath = relative(options.prefix, dirname$
|
|
112409
|
+
const relpath = relative(options.prefix, dirname$7(options.path));
|
|
112410
112410
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112411
112411
|
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112412
112412
|
}
|
|
@@ -112444,7 +112444,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112444
112444
|
let ignoreFiles = null;
|
|
112445
112445
|
if (this.tree.workspaces) {
|
|
112446
112446
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112447
|
-
const entryPath = join$
|
|
112447
|
+
const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
|
|
112448
112448
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112449
112449
|
defaultRules,
|
|
112450
112450
|
"package.json",
|
|
@@ -112504,7 +112504,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112504
112504
|
if (file.endsWith("/*")) file += "*";
|
|
112505
112505
|
const inverse = `!${file}`;
|
|
112506
112506
|
try {
|
|
112507
|
-
const stat = lstat$1(join$
|
|
112507
|
+
const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112508
112508
|
if (stat.isFile()) {
|
|
112509
112509
|
strict.unshift(inverse);
|
|
112510
112510
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112561,7 +112561,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112561
112561
|
walker.start();
|
|
112562
112562
|
});
|
|
112563
112563
|
const relativeFrom = relative(this.root, walker.path);
|
|
112564
|
-
for (const file of bundled) this.result.add(join$
|
|
112564
|
+
for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
|
|
112565
112565
|
}
|
|
112566
112566
|
}
|
|
112567
112567
|
};
|
|
@@ -112585,7 +112585,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112585
112585
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112586
112586
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112587
112587
|
const { log } = require_lib$29();
|
|
112588
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112588
|
+
const { resolve: resolve$5, dirname: dirname$6, delimiter: delimiter$2 } = require("path");
|
|
112589
112589
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112590
112590
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112591
112591
|
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);
|
|
@@ -112603,7 +112603,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112603
112603
|
do {
|
|
112604
112604
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112605
112605
|
pp = p;
|
|
112606
|
-
p = dirname$
|
|
112606
|
+
p = dirname$6(p);
|
|
112607
112607
|
} while (p !== pp);
|
|
112608
112608
|
pathArr.push(nodeGypPath, PATH);
|
|
112609
112609
|
const pathVal = pathArr.join(delimiter$2);
|
|
@@ -112671,8 +112671,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112671
112671
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112672
112672
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112673
112673
|
const util$2 = require("util");
|
|
112674
|
-
const fs$
|
|
112675
|
-
const { stat } = fs$
|
|
112674
|
+
const fs$4 = require("fs");
|
|
112675
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112676
112676
|
async function isNodeGypPackage(path) {
|
|
112677
112677
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112678
112678
|
}
|
|
@@ -123644,7 +123644,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123644
123644
|
//#endregion
|
|
123645
123645
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123646
123646
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123647
|
-
const fs$
|
|
123647
|
+
const fs$3 = require("fs");
|
|
123648
123648
|
const npa = require_npa();
|
|
123649
123649
|
const { URL: URL$2 } = require("url");
|
|
123650
123650
|
const regFromURI = (uri, opts) => {
|
|
@@ -123684,7 +123684,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123684
123684
|
};
|
|
123685
123685
|
const maybeReadFile = (file) => {
|
|
123686
123686
|
try {
|
|
123687
|
-
return fs$
|
|
123687
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123688
123688
|
} catch (er) {
|
|
123689
123689
|
if (er.code !== "ENOENT") throw er;
|
|
123690
123690
|
return null;
|
|
@@ -139929,7 +139929,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139929
139929
|
exports.Updater = void 0;
|
|
139930
139930
|
const models_1 = require_dist$4();
|
|
139931
139931
|
const debug_1 = __importDefault(require_src$1());
|
|
139932
|
-
const fs$
|
|
139932
|
+
const fs$2 = __importStar(require("fs"));
|
|
139933
139933
|
const path$7 = __importStar(require("path"));
|
|
139934
139934
|
const package_json_1 = require_package$1();
|
|
139935
139935
|
const config_1 = require_config$1();
|
|
@@ -140000,17 +140000,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140000
140000
|
}
|
|
140001
140001
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140002
140002
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140003
|
-
await targetInfo.verify(fs$
|
|
140003
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140004
140004
|
log("WRITE %s", targetPath);
|
|
140005
|
-
fs$
|
|
140005
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140006
140006
|
});
|
|
140007
140007
|
return targetPath;
|
|
140008
140008
|
}
|
|
140009
140009
|
async findCachedTarget(targetInfo, filePath) {
|
|
140010
140010
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140011
140011
|
try {
|
|
140012
|
-
if (fs$
|
|
140013
|
-
await targetInfo.verify(fs$
|
|
140012
|
+
if (fs$2.existsSync(filePath)) {
|
|
140013
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140014
140014
|
return filePath;
|
|
140015
140015
|
}
|
|
140016
140016
|
} catch (error) {
|
|
@@ -140020,7 +140020,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140020
140020
|
loadLocalMetadata(fileName) {
|
|
140021
140021
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
140022
140022
|
log("READ %s", filePath);
|
|
140023
|
-
return fs$
|
|
140023
|
+
return fs$2.readFileSync(filePath);
|
|
140024
140024
|
}
|
|
140025
140025
|
async loadRoot() {
|
|
140026
140026
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140138,7 +140138,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140138
140138
|
try {
|
|
140139
140139
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
140140
140140
|
log("WRITE %s", filePath);
|
|
140141
|
-
fs$
|
|
140141
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140142
140142
|
} catch (error) {
|
|
140143
140143
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140144
140144
|
}
|
|
@@ -141954,7 +141954,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
141954
141954
|
//#endregion
|
|
141955
141955
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
141956
141956
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
141957
|
-
const { basename: basename$1, dirname: dirname$
|
|
141957
|
+
const { basename: basename$1, dirname: dirname$5 } = require("node:path");
|
|
141958
141958
|
const { rm: rm$5, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
141959
141959
|
const PackageJson = require_lib$18();
|
|
141960
141960
|
const cacache = require_lib$14();
|
|
@@ -142003,7 +142003,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142003
142003
|
this.npmBin = opts.npmBin || "npm";
|
|
142004
142004
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142005
142005
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142006
|
-
`--cache=${dirname$
|
|
142006
|
+
`--cache=${dirname$5(this.cache)}`,
|
|
142007
142007
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142008
142008
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142009
142009
|
`--offline=${!!this.offline}`,
|
|
@@ -142159,7 +142159,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142159
142159
|
}));
|
|
142160
142160
|
}
|
|
142161
142161
|
async tarballFile(dest) {
|
|
142162
|
-
await mkdir$4(dirname$
|
|
142162
|
+
await mkdir$4(dirname$5(dest), { recursive: true });
|
|
142163
142163
|
return this.#toFile(dest);
|
|
142164
142164
|
}
|
|
142165
142165
|
#extract(dest, tarball) {
|
|
@@ -150580,7 +150580,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150580
150580
|
}
|
|
150581
150581
|
})();
|
|
150582
150582
|
}));
|
|
150583
|
-
|
|
150583
|
+
//#endregion
|
|
150584
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150585
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150584
150586
|
const { promisify } = require("util");
|
|
150585
150587
|
const path$3 = require("path");
|
|
150586
150588
|
const { createHash } = require("crypto");
|
|
@@ -151032,12 +151034,13 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151032
151034
|
response.writeHead(response.statusCode || 200, headers);
|
|
151033
151035
|
stream.pipe(response);
|
|
151034
151036
|
};
|
|
151035
|
-
}))
|
|
151037
|
+
}));
|
|
151036
151038
|
require_semver();
|
|
151037
151039
|
require_lib();
|
|
151040
|
+
require_src();
|
|
151038
151041
|
//#endregion
|
|
151039
151042
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151040
|
-
const { join: join$
|
|
151043
|
+
const { join: join$5 } = node_path.default;
|
|
151041
151044
|
//#endregion
|
|
151042
151045
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151043
151046
|
const localPluginsMap = /* @__PURE__ */ new Map();
|