@pipelab/plugin-netlify 1.0.0-beta.19 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +344 -341
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2116,8 +2116,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2116
2116
|
completed: false
|
|
2117
2117
|
}
|
|
2118
2118
|
},
|
|
2119
|
-
plugins: DEFAULT_PLUGINS
|
|
2120
|
-
isInternalMigrationBannerClosed: false
|
|
2119
|
+
plugins: DEFAULT_PLUGINS
|
|
2121
2120
|
});
|
|
2122
2121
|
settingsMigratorInternal.createMigrations({
|
|
2123
2122
|
defaultValue: defaultAppSettings,
|
|
@@ -2168,12 +2167,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2168
2167
|
createMigration({
|
|
2169
2168
|
version: "6.0.0",
|
|
2170
2169
|
up: (state) => {
|
|
2171
|
-
const { cacheFolder
|
|
2170
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2172
2171
|
return {
|
|
2173
2172
|
...rest,
|
|
2173
|
+
cacheFolder,
|
|
2174
2174
|
agents: [],
|
|
2175
|
-
plugins: DEFAULT_PLUGINS
|
|
2176
|
-
isInternalMigrationBannerClosed: false
|
|
2175
|
+
plugins: DEFAULT_PLUGINS
|
|
2177
2176
|
};
|
|
2178
2177
|
}
|
|
2179
2178
|
}),
|
|
@@ -2526,7 +2525,8 @@ object({
|
|
|
2526
2525
|
enabled: boolean(),
|
|
2527
2526
|
description: string()
|
|
2528
2527
|
})),
|
|
2529
|
-
|
|
2528
|
+
cacheFolder: optional(string()),
|
|
2529
|
+
tempFolder: optional(string())
|
|
2530
2530
|
});
|
|
2531
2531
|
const ConnectionValidator = looseObject({
|
|
2532
2532
|
id: string(),
|
|
@@ -49944,7 +49944,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49944
49944
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49945
49945
|
module.exports = isexe;
|
|
49946
49946
|
isexe.sync = sync;
|
|
49947
|
-
var fs$
|
|
49947
|
+
var fs$38 = require("fs");
|
|
49948
49948
|
function checkPathExt(path, options) {
|
|
49949
49949
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49950
49950
|
if (!pathext) return true;
|
|
@@ -49961,12 +49961,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49961
49961
|
return checkPathExt(path, options);
|
|
49962
49962
|
}
|
|
49963
49963
|
function isexe(path, options, cb) {
|
|
49964
|
-
fs$
|
|
49964
|
+
fs$38.stat(path, function(er, stat) {
|
|
49965
49965
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49966
49966
|
});
|
|
49967
49967
|
}
|
|
49968
49968
|
function sync(path, options) {
|
|
49969
|
-
return checkStat(fs$
|
|
49969
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49970
49970
|
}
|
|
49971
49971
|
}));
|
|
49972
49972
|
//#endregion
|
|
@@ -49974,14 +49974,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49974
49974
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49975
49975
|
module.exports = isexe;
|
|
49976
49976
|
isexe.sync = sync;
|
|
49977
|
-
var fs$
|
|
49977
|
+
var fs$37 = require("fs");
|
|
49978
49978
|
function isexe(path, options, cb) {
|
|
49979
|
-
fs$
|
|
49979
|
+
fs$37.stat(path, function(er, stat) {
|
|
49980
49980
|
cb(er, er ? false : checkStat(stat, options));
|
|
49981
49981
|
});
|
|
49982
49982
|
}
|
|
49983
49983
|
function sync(path, options) {
|
|
49984
|
-
return checkStat(fs$
|
|
49984
|
+
return checkStat(fs$37.statSync(path), options);
|
|
49985
49985
|
}
|
|
49986
49986
|
function checkStat(stat, options) {
|
|
49987
49987
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50196,16 +50196,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50196
50196
|
//#endregion
|
|
50197
50197
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50198
50198
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50199
|
-
const fs$
|
|
50199
|
+
const fs$36 = require("fs");
|
|
50200
50200
|
const shebangCommand = require_shebang_command();
|
|
50201
50201
|
function readShebang(command) {
|
|
50202
50202
|
const size = 150;
|
|
50203
50203
|
const buffer = Buffer.alloc(size);
|
|
50204
50204
|
let fd;
|
|
50205
50205
|
try {
|
|
50206
|
-
fd = fs$
|
|
50207
|
-
fs$
|
|
50208
|
-
fs$
|
|
50206
|
+
fd = fs$36.openSync(command, "r");
|
|
50207
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50208
|
+
fs$36.closeSync(fd);
|
|
50209
50209
|
} catch (e) {}
|
|
50210
50210
|
return shebangCommand(buffer.toString());
|
|
50211
50211
|
}
|
|
@@ -57162,7 +57162,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57162
57162
|
const { Minipass } = require_minipass$4();
|
|
57163
57163
|
const Pax = require_pax();
|
|
57164
57164
|
const Header = require_header();
|
|
57165
|
-
const fs$
|
|
57165
|
+
const fs$35 = require("fs");
|
|
57166
57166
|
const path$33 = require("path");
|
|
57167
57167
|
const normPath = require_normalize_windows_path();
|
|
57168
57168
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57250,7 +57250,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57250
57250
|
return super.emit(ev, ...data);
|
|
57251
57251
|
}
|
|
57252
57252
|
[LSTAT]() {
|
|
57253
|
-
fs$
|
|
57253
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57254
57254
|
if (er) return this.emit("error", er);
|
|
57255
57255
|
this[ONLSTAT](stat);
|
|
57256
57256
|
});
|
|
@@ -57315,7 +57315,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57315
57315
|
this.end();
|
|
57316
57316
|
}
|
|
57317
57317
|
[SYMLINK]() {
|
|
57318
|
-
fs$
|
|
57318
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57319
57319
|
if (er) return this.emit("error", er);
|
|
57320
57320
|
this[ONREADLINK](linkpath);
|
|
57321
57321
|
});
|
|
@@ -57346,7 +57346,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57346
57346
|
this[OPENFILE]();
|
|
57347
57347
|
}
|
|
57348
57348
|
[OPENFILE]() {
|
|
57349
|
-
fs$
|
|
57349
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57350
57350
|
if (er) return this.emit("error", er);
|
|
57351
57351
|
this[ONOPENFILE](fd);
|
|
57352
57352
|
});
|
|
@@ -57366,13 +57366,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57366
57366
|
}
|
|
57367
57367
|
[READ]() {
|
|
57368
57368
|
const { fd, buf, offset, length, pos } = this;
|
|
57369
|
-
fs$
|
|
57369
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57370
57370
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57371
57371
|
this[ONREAD](bytesRead);
|
|
57372
57372
|
});
|
|
57373
57373
|
}
|
|
57374
57374
|
[CLOSE](cb) {
|
|
57375
|
-
fs$
|
|
57375
|
+
fs$35.close(this.fd, cb);
|
|
57376
57376
|
}
|
|
57377
57377
|
[ONREAD](bytesRead) {
|
|
57378
57378
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57428,19 +57428,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57428
57428
|
});
|
|
57429
57429
|
var WriteEntrySync = class extends WriteEntry {
|
|
57430
57430
|
[LSTAT]() {
|
|
57431
|
-
this[ONLSTAT](fs$
|
|
57431
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57432
57432
|
}
|
|
57433
57433
|
[SYMLINK]() {
|
|
57434
|
-
this[ONREADLINK](fs$
|
|
57434
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57435
57435
|
}
|
|
57436
57436
|
[OPENFILE]() {
|
|
57437
|
-
this[ONOPENFILE](fs$
|
|
57437
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57438
57438
|
}
|
|
57439
57439
|
[READ]() {
|
|
57440
57440
|
let threw = true;
|
|
57441
57441
|
try {
|
|
57442
57442
|
const { fd, buf, offset, length, pos } = this;
|
|
57443
|
-
const bytesRead = fs$
|
|
57443
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57444
57444
|
this[ONREAD](bytesRead);
|
|
57445
57445
|
threw = false;
|
|
57446
57446
|
} finally {
|
|
@@ -57453,7 +57453,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57453
57453
|
cb();
|
|
57454
57454
|
}
|
|
57455
57455
|
[CLOSE](cb) {
|
|
57456
|
-
fs$
|
|
57456
|
+
fs$35.closeSync(this.fd);
|
|
57457
57457
|
cb();
|
|
57458
57458
|
}
|
|
57459
57459
|
};
|
|
@@ -57850,7 +57850,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57850
57850
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57851
57851
|
const WRITE = Symbol("write");
|
|
57852
57852
|
const ONDRAIN = Symbol("ondrain");
|
|
57853
|
-
const fs$
|
|
57853
|
+
const fs$34 = require("fs");
|
|
57854
57854
|
const path$32 = require("path");
|
|
57855
57855
|
const warner = require_warn_mixin();
|
|
57856
57856
|
const normPath = require_normalize_windows_path();
|
|
@@ -57939,7 +57939,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57939
57939
|
[STAT](job) {
|
|
57940
57940
|
job.pending = true;
|
|
57941
57941
|
this[JOBS] += 1;
|
|
57942
|
-
fs$
|
|
57942
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57943
57943
|
job.pending = false;
|
|
57944
57944
|
this[JOBS] -= 1;
|
|
57945
57945
|
if (er) this.emit("error", er);
|
|
@@ -57955,7 +57955,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57955
57955
|
[READDIR](job) {
|
|
57956
57956
|
job.pending = true;
|
|
57957
57957
|
this[JOBS] += 1;
|
|
57958
|
-
fs$
|
|
57958
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57959
57959
|
job.pending = false;
|
|
57960
57960
|
this[JOBS] -= 1;
|
|
57961
57961
|
if (er) return this.emit("error", er);
|
|
@@ -58073,10 +58073,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58073
58073
|
resume() {}
|
|
58074
58074
|
[STAT](job) {
|
|
58075
58075
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58076
|
-
this[ONSTAT](job, fs$
|
|
58076
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58077
58077
|
}
|
|
58078
58078
|
[READDIR](job, stat) {
|
|
58079
|
-
this[ONREADDIR](job, fs$
|
|
58079
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58080
58080
|
}
|
|
58081
58081
|
[PIPE](job) {
|
|
58082
58082
|
const source = job.entry;
|
|
@@ -58532,8 +58532,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58532
58532
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58533
58533
|
const MiniPass = require_minipass$2();
|
|
58534
58534
|
const EE$11 = require("events").EventEmitter;
|
|
58535
|
-
const fs$
|
|
58536
|
-
let writev = fs$
|
|
58535
|
+
const fs$33 = require("fs");
|
|
58536
|
+
let writev = fs$33.writev;
|
|
58537
58537
|
/* istanbul ignore next */
|
|
58538
58538
|
if (!writev) {
|
|
58539
58539
|
const binding = process.binding("fs");
|
|
@@ -58604,7 +58604,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58604
58604
|
throw new TypeError("this is a readable stream");
|
|
58605
58605
|
}
|
|
58606
58606
|
[_open]() {
|
|
58607
|
-
fs$
|
|
58607
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58608
58608
|
}
|
|
58609
58609
|
[_onopen](er, fd) {
|
|
58610
58610
|
if (er) this[_onerror](er);
|
|
@@ -58623,7 +58623,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58623
58623
|
const buf = this[_makeBuf]();
|
|
58624
58624
|
/* istanbul ignore if */
|
|
58625
58625
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58626
|
-
fs$
|
|
58626
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58627
58627
|
}
|
|
58628
58628
|
}
|
|
58629
58629
|
[_onread](er, br, buf) {
|
|
@@ -58635,7 +58635,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58635
58635
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58636
58636
|
const fd = this[_fd];
|
|
58637
58637
|
this[_fd] = null;
|
|
58638
|
-
fs$
|
|
58638
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58639
58639
|
}
|
|
58640
58640
|
}
|
|
58641
58641
|
[_onerror](er) {
|
|
@@ -58673,7 +58673,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58673
58673
|
[_open]() {
|
|
58674
58674
|
let threw = true;
|
|
58675
58675
|
try {
|
|
58676
|
-
this[_onopen](null, fs$
|
|
58676
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58677
58677
|
threw = false;
|
|
58678
58678
|
} finally {
|
|
58679
58679
|
if (threw) this[_close]();
|
|
@@ -58687,7 +58687,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58687
58687
|
do {
|
|
58688
58688
|
const buf = this[_makeBuf]();
|
|
58689
58689
|
/* istanbul ignore next */
|
|
58690
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58690
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58691
58691
|
if (!this[_handleChunk](br, buf)) break;
|
|
58692
58692
|
} while (true);
|
|
58693
58693
|
this[_reading] = false;
|
|
@@ -58701,7 +58701,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58701
58701
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58702
58702
|
const fd = this[_fd];
|
|
58703
58703
|
this[_fd] = null;
|
|
58704
|
-
fs$
|
|
58704
|
+
fs$33.closeSync(fd);
|
|
58705
58705
|
this.emit("close");
|
|
58706
58706
|
}
|
|
58707
58707
|
}
|
|
@@ -58746,7 +58746,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58746
58746
|
this.emit("error", er);
|
|
58747
58747
|
}
|
|
58748
58748
|
[_open]() {
|
|
58749
|
-
fs$
|
|
58749
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58750
58750
|
}
|
|
58751
58751
|
[_onopen](er, fd) {
|
|
58752
58752
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58781,7 +58781,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58781
58781
|
return true;
|
|
58782
58782
|
}
|
|
58783
58783
|
[_write](buf) {
|
|
58784
|
-
fs$
|
|
58784
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58785
58785
|
}
|
|
58786
58786
|
[_onwrite](er, bw) {
|
|
58787
58787
|
if (er) this[_onerror](er);
|
|
@@ -58815,7 +58815,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58815
58815
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58816
58816
|
const fd = this[_fd];
|
|
58817
58817
|
this[_fd] = null;
|
|
58818
|
-
fs$
|
|
58818
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58819
58819
|
}
|
|
58820
58820
|
}
|
|
58821
58821
|
};
|
|
@@ -58823,28 +58823,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58823
58823
|
[_open]() {
|
|
58824
58824
|
let fd;
|
|
58825
58825
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58826
|
-
fd = fs$
|
|
58826
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58827
58827
|
} catch (er) {
|
|
58828
58828
|
if (er.code === "ENOENT") {
|
|
58829
58829
|
this[_flags] = "w";
|
|
58830
58830
|
return this[_open]();
|
|
58831
58831
|
} else throw er;
|
|
58832
58832
|
}
|
|
58833
|
-
else fd = fs$
|
|
58833
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58834
58834
|
this[_onopen](null, fd);
|
|
58835
58835
|
}
|
|
58836
58836
|
[_close]() {
|
|
58837
58837
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58838
58838
|
const fd = this[_fd];
|
|
58839
58839
|
this[_fd] = null;
|
|
58840
|
-
fs$
|
|
58840
|
+
fs$33.closeSync(fd);
|
|
58841
58841
|
this.emit("close");
|
|
58842
58842
|
}
|
|
58843
58843
|
}
|
|
58844
58844
|
[_write](buf) {
|
|
58845
58845
|
let threw = true;
|
|
58846
58846
|
try {
|
|
58847
|
-
this[_onwrite](null, fs$
|
|
58847
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58848
58848
|
threw = false;
|
|
58849
58849
|
} finally {
|
|
58850
58850
|
if (threw) try {
|
|
@@ -59209,7 +59209,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59209
59209
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59210
59210
|
const hlo = require_high_level_opt();
|
|
59211
59211
|
const Parser = require_parse$4();
|
|
59212
|
-
const fs$
|
|
59212
|
+
const fs$32 = require("fs");
|
|
59213
59213
|
const fsm = require_fs_minipass();
|
|
59214
59214
|
const path$31 = require("path");
|
|
59215
59215
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59250,15 +59250,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59250
59250
|
let threw = true;
|
|
59251
59251
|
let fd;
|
|
59252
59252
|
try {
|
|
59253
|
-
const stat = fs$
|
|
59253
|
+
const stat = fs$32.statSync(file);
|
|
59254
59254
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59255
|
-
if (stat.size < readSize) p.end(fs$
|
|
59255
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59256
59256
|
else {
|
|
59257
59257
|
let pos = 0;
|
|
59258
59258
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59259
|
-
fd = fs$
|
|
59259
|
+
fd = fs$32.openSync(file, "r");
|
|
59260
59260
|
while (pos < stat.size) {
|
|
59261
|
-
const bytesRead = fs$
|
|
59261
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59262
59262
|
pos += bytesRead;
|
|
59263
59263
|
p.write(buf.slice(0, bytesRead));
|
|
59264
59264
|
}
|
|
@@ -59267,7 +59267,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59267
59267
|
threw = false;
|
|
59268
59268
|
} finally {
|
|
59269
59269
|
if (threw && fd) try {
|
|
59270
|
-
fs$
|
|
59270
|
+
fs$32.closeSync(fd);
|
|
59271
59271
|
} catch (er) {}
|
|
59272
59272
|
}
|
|
59273
59273
|
};
|
|
@@ -59278,7 +59278,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59278
59278
|
const p = new Promise((resolve, reject) => {
|
|
59279
59279
|
parse.on("error", reject);
|
|
59280
59280
|
parse.on("end", resolve);
|
|
59281
|
-
fs$
|
|
59281
|
+
fs$32.stat(file, (er, stat) => {
|
|
59282
59282
|
if (er) reject(er);
|
|
59283
59283
|
else {
|
|
59284
59284
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59370,7 +59370,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59370
59370
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59371
59371
|
const hlo = require_high_level_opt();
|
|
59372
59372
|
const Pack = require_pack$1();
|
|
59373
|
-
const fs$
|
|
59373
|
+
const fs$31 = require("fs");
|
|
59374
59374
|
const fsm = require_fs_minipass();
|
|
59375
59375
|
const t = require_list();
|
|
59376
59376
|
const path$29 = require("path");
|
|
@@ -59390,16 +59390,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59390
59390
|
let position;
|
|
59391
59391
|
try {
|
|
59392
59392
|
try {
|
|
59393
|
-
fd = fs$
|
|
59393
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59394
59394
|
} catch (er) {
|
|
59395
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59395
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59396
59396
|
else throw er;
|
|
59397
59397
|
}
|
|
59398
|
-
const st = fs$
|
|
59398
|
+
const st = fs$31.fstatSync(fd);
|
|
59399
59399
|
const headBuf = Buffer.alloc(512);
|
|
59400
59400
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59401
59401
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59402
|
-
bytes = fs$
|
|
59402
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59403
59403
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59404
59404
|
if (!bytes) break POSITION;
|
|
59405
59405
|
}
|
|
@@ -59414,7 +59414,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59414
59414
|
streamSync(opt, p, position, fd, files);
|
|
59415
59415
|
} finally {
|
|
59416
59416
|
if (threw) try {
|
|
59417
|
-
fs$
|
|
59417
|
+
fs$31.closeSync(fd);
|
|
59418
59418
|
} catch (er) {}
|
|
59419
59419
|
}
|
|
59420
59420
|
};
|
|
@@ -59431,7 +59431,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59431
59431
|
const p = new Pack(opt);
|
|
59432
59432
|
const getPos = (fd, size, cb_) => {
|
|
59433
59433
|
const cb = (er, pos) => {
|
|
59434
|
-
if (er) fs$
|
|
59434
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59435
59435
|
else cb_(null, pos);
|
|
59436
59436
|
};
|
|
59437
59437
|
let position = 0;
|
|
@@ -59441,7 +59441,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59441
59441
|
const onread = (er, bytes) => {
|
|
59442
59442
|
if (er) return cb(er);
|
|
59443
59443
|
bufPos += bytes;
|
|
59444
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59444
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59445
59445
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59446
59446
|
if (bufPos < 512) return cb(null, position);
|
|
59447
59447
|
const h = new Header(headBuf);
|
|
@@ -59452,9 +59452,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59452
59452
|
if (position >= size) return cb(null, position);
|
|
59453
59453
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59454
59454
|
bufPos = 0;
|
|
59455
|
-
fs$
|
|
59455
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59456
59456
|
};
|
|
59457
|
-
fs$
|
|
59457
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59458
59458
|
};
|
|
59459
59459
|
const promise = new Promise((resolve, reject) => {
|
|
59460
59460
|
p.on("error", reject);
|
|
@@ -59462,11 +59462,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59462
59462
|
const onopen = (er, fd) => {
|
|
59463
59463
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59464
59464
|
flag = "w+";
|
|
59465
|
-
return fs$
|
|
59465
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59466
59466
|
}
|
|
59467
59467
|
if (er) return reject(er);
|
|
59468
|
-
fs$
|
|
59469
|
-
if (er) return fs$
|
|
59468
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59469
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59470
59470
|
getPos(fd, st.size, (er, position) => {
|
|
59471
59471
|
if (er) return reject(er);
|
|
59472
59472
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59480,7 +59480,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59480
59480
|
});
|
|
59481
59481
|
});
|
|
59482
59482
|
};
|
|
59483
|
-
fs$
|
|
59483
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59484
59484
|
});
|
|
59485
59485
|
return cb ? promise.then(cb, cb) : promise;
|
|
59486
59486
|
};
|
|
@@ -59533,32 +59533,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59533
59533
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59534
59534
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59535
59535
|
const { promisify: promisify$1 } = require("util");
|
|
59536
|
-
const fs$
|
|
59536
|
+
const fs$30 = require("fs");
|
|
59537
59537
|
const optsArg = (opts) => {
|
|
59538
59538
|
if (!opts) opts = {
|
|
59539
59539
|
mode: 511,
|
|
59540
|
-
fs: fs$
|
|
59540
|
+
fs: fs$30
|
|
59541
59541
|
};
|
|
59542
59542
|
else if (typeof opts === "object") opts = {
|
|
59543
59543
|
mode: 511,
|
|
59544
|
-
fs: fs$
|
|
59544
|
+
fs: fs$30,
|
|
59545
59545
|
...opts
|
|
59546
59546
|
};
|
|
59547
59547
|
else if (typeof opts === "number") opts = {
|
|
59548
59548
|
mode: opts,
|
|
59549
|
-
fs: fs$
|
|
59549
|
+
fs: fs$30
|
|
59550
59550
|
};
|
|
59551
59551
|
else if (typeof opts === "string") opts = {
|
|
59552
59552
|
mode: parseInt(opts, 8),
|
|
59553
|
-
fs: fs$
|
|
59553
|
+
fs: fs$30
|
|
59554
59554
|
};
|
|
59555
59555
|
else throw new TypeError("invalid options argument");
|
|
59556
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59556
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59557
59557
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59558
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59558
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59559
59559
|
opts.statAsync = promisify$1(opts.stat);
|
|
59560
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59561
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59560
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59561
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59562
59562
|
return opts;
|
|
59563
59563
|
};
|
|
59564
59564
|
module.exports = optsArg;
|
|
@@ -59589,17 +59589,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59589
59589
|
//#endregion
|
|
59590
59590
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59591
59591
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59592
|
-
const { dirname: dirname$
|
|
59592
|
+
const { dirname: dirname$14 } = require("path");
|
|
59593
59593
|
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59594
59594
|
if (path$82 === parent) return Promise.resolve();
|
|
59595
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59595
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59596
59596
|
};
|
|
59597
59597
|
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59598
59598
|
if (path$83 === parent) return void 0;
|
|
59599
59599
|
try {
|
|
59600
59600
|
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59601
59601
|
} catch (er) {
|
|
59602
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59602
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59603
59603
|
}
|
|
59604
59604
|
};
|
|
59605
59605
|
module.exports = {
|
|
@@ -59610,10 +59610,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59610
59610
|
//#endregion
|
|
59611
59611
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59612
59612
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59613
|
-
const { dirname: dirname$
|
|
59613
|
+
const { dirname: dirname$13 } = require("path");
|
|
59614
59614
|
const mkdirpManual = (path$80, opts, made) => {
|
|
59615
59615
|
opts.recursive = false;
|
|
59616
|
-
const parent = dirname$
|
|
59616
|
+
const parent = dirname$13(path$80);
|
|
59617
59617
|
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59618
59618
|
if (er.code !== "EISDIR") throw er;
|
|
59619
59619
|
});
|
|
@@ -59629,7 +59629,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59629
59629
|
});
|
|
59630
59630
|
};
|
|
59631
59631
|
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59632
|
-
const parent = dirname$
|
|
59632
|
+
const parent = dirname$13(path$81);
|
|
59633
59633
|
opts.recursive = false;
|
|
59634
59634
|
if (parent === path$81) try {
|
|
59635
59635
|
return opts.mkdirSync(path$81, opts);
|
|
@@ -59658,12 +59658,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59658
59658
|
//#endregion
|
|
59659
59659
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59660
59660
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59661
|
-
const { dirname: dirname$
|
|
59661
|
+
const { dirname: dirname$12 } = require("path");
|
|
59662
59662
|
const { findMade, findMadeSync } = require_find_made();
|
|
59663
59663
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59664
59664
|
const mkdirpNative = (path$78, opts) => {
|
|
59665
59665
|
opts.recursive = true;
|
|
59666
|
-
if (dirname$
|
|
59666
|
+
if (dirname$12(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59667
59667
|
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59668
59668
|
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59669
59669
|
else throw er;
|
|
@@ -59671,7 +59671,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59671
59671
|
};
|
|
59672
59672
|
const mkdirpNativeSync = (path$79, opts) => {
|
|
59673
59673
|
opts.recursive = true;
|
|
59674
|
-
if (dirname$
|
|
59674
|
+
if (dirname$12(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59675
59675
|
const made = findMadeSync(opts, path$79);
|
|
59676
59676
|
try {
|
|
59677
59677
|
opts.mkdirSync(path$79, opts);
|
|
@@ -59689,12 +59689,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59689
59689
|
//#endregion
|
|
59690
59690
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59691
59691
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59692
|
-
const fs$
|
|
59692
|
+
const fs$29 = require("fs");
|
|
59693
59693
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59694
59694
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59695
59695
|
module.exports = {
|
|
59696
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59697
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59696
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59697
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59698
59698
|
};
|
|
59699
59699
|
}));
|
|
59700
59700
|
//#endregion
|
|
@@ -59725,17 +59725,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59725
59725
|
//#endregion
|
|
59726
59726
|
//#region ../../node_modules/chownr/chownr.js
|
|
59727
59727
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59728
|
-
const fs$
|
|
59728
|
+
const fs$28 = require("fs");
|
|
59729
59729
|
const path$28 = require("path");
|
|
59730
59730
|
/* istanbul ignore next */
|
|
59731
|
-
const LCHOWN = fs$
|
|
59731
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59732
59732
|
/* istanbul ignore next */
|
|
59733
|
-
const LCHOWNSYNC = fs$
|
|
59733
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59734
59734
|
/* istanbul ignore next */
|
|
59735
|
-
const needEISDIRHandled = fs$
|
|
59735
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59736
59736
|
const lchownSync = (path$70, uid, gid) => {
|
|
59737
59737
|
try {
|
|
59738
|
-
return fs$
|
|
59738
|
+
return fs$28[LCHOWNSYNC](path$70, uid, gid);
|
|
59739
59739
|
} catch (er) {
|
|
59740
59740
|
if (er.code !== "ENOENT") throw er;
|
|
59741
59741
|
}
|
|
@@ -59743,7 +59743,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59743
59743
|
/* istanbul ignore next */
|
|
59744
59744
|
const chownSync = (path$71, uid, gid) => {
|
|
59745
59745
|
try {
|
|
59746
|
-
return fs$
|
|
59746
|
+
return fs$28.chownSync(path$71, uid, gid);
|
|
59747
59747
|
} catch (er) {
|
|
59748
59748
|
if (er.code !== "ENOENT") throw er;
|
|
59749
59749
|
}
|
|
@@ -59751,7 +59751,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59751
59751
|
/* istanbul ignore next */
|
|
59752
59752
|
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59753
59753
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59754
|
-
else fs$
|
|
59754
|
+
else fs$28.chown(path$72, uid, gid, cb);
|
|
59755
59755
|
} : (_, __, ___, cb) => cb;
|
|
59756
59756
|
/* istanbul ignore next */
|
|
59757
59757
|
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
@@ -59763,17 +59763,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59763
59763
|
}
|
|
59764
59764
|
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59765
59765
|
const nodeVersion = process.version;
|
|
59766
|
-
let readdir = (path$75, options, cb) => fs$
|
|
59767
|
-
let readdirSync = (path$76, options) => fs$
|
|
59766
|
+
let readdir = (path$75, options, cb) => fs$28.readdir(path$75, options, cb);
|
|
59767
|
+
let readdirSync = (path$76, options) => fs$28.readdirSync(path$76, options);
|
|
59768
59768
|
/* istanbul ignore next */
|
|
59769
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$
|
|
59769
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$28.readdir(path$77, cb);
|
|
59770
59770
|
const chown = (cpath, uid, gid, cb) => {
|
|
59771
|
-
fs$
|
|
59771
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59772
59772
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59773
59773
|
}));
|
|
59774
59774
|
};
|
|
59775
59775
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59776
|
-
if (typeof child === "string") return fs$
|
|
59776
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59777
59777
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59778
59778
|
stats.name = child;
|
|
59779
59779
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59803,7 +59803,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59803
59803
|
};
|
|
59804
59804
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59805
59805
|
if (typeof child === "string") try {
|
|
59806
|
-
const stats = fs$
|
|
59806
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
59807
59807
|
stats.name = child;
|
|
59808
59808
|
child = stats;
|
|
59809
59809
|
} catch (er) {
|
|
@@ -59832,7 +59832,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59832
59832
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59833
59833
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59834
59834
|
const mkdirp = require_mkdirp();
|
|
59835
|
-
const fs$
|
|
59835
|
+
const fs$27 = require("fs");
|
|
59836
59836
|
const path$27 = require("path");
|
|
59837
59837
|
const chownr = require_chownr();
|
|
59838
59838
|
const normPath = require_normalize_windows_path();
|
|
@@ -59859,7 +59859,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59859
59859
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59860
59860
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59861
59861
|
const checkCwd = (dir, cb) => {
|
|
59862
|
-
fs$
|
|
59862
|
+
fs$27.stat(dir, (er, st) => {
|
|
59863
59863
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59864
59864
|
cb(er);
|
|
59865
59865
|
});
|
|
@@ -59881,7 +59881,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59881
59881
|
else {
|
|
59882
59882
|
cSet(cache, dir, true);
|
|
59883
59883
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59884
|
-
else if (needChmod) fs$
|
|
59884
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59885
59885
|
else cb();
|
|
59886
59886
|
}
|
|
59887
59887
|
};
|
|
@@ -59895,17 +59895,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59895
59895
|
const p = parts.shift();
|
|
59896
59896
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59897
59897
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59898
|
-
fs$
|
|
59898
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59899
59899
|
};
|
|
59900
59900
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59901
|
-
if (er) fs$
|
|
59901
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59902
59902
|
if (statEr) {
|
|
59903
59903
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59904
59904
|
cb(statEr);
|
|
59905
59905
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59906
|
-
else if (unlink) fs$
|
|
59906
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59907
59907
|
if (er) return cb(er);
|
|
59908
|
-
fs$
|
|
59908
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59909
59909
|
});
|
|
59910
59910
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59911
59911
|
else cb(er);
|
|
@@ -59919,7 +59919,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59919
59919
|
let ok = false;
|
|
59920
59920
|
let code = "ENOTDIR";
|
|
59921
59921
|
try {
|
|
59922
|
-
ok = fs$
|
|
59922
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59923
59923
|
} catch (er) {
|
|
59924
59924
|
code = er.code;
|
|
59925
59925
|
} finally {
|
|
@@ -59941,7 +59941,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59941
59941
|
const done = (created) => {
|
|
59942
59942
|
cSet(cache, dir, true);
|
|
59943
59943
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59944
|
-
if (needChmod) fs$
|
|
59944
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59945
59945
|
};
|
|
59946
59946
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59947
59947
|
if (dir === cwd) {
|
|
@@ -59955,17 +59955,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59955
59955
|
part = normPath(path$27.resolve(part));
|
|
59956
59956
|
if (cGet(cache, part)) continue;
|
|
59957
59957
|
try {
|
|
59958
|
-
fs$
|
|
59958
|
+
fs$27.mkdirSync(part, mode);
|
|
59959
59959
|
created = created || part;
|
|
59960
59960
|
cSet(cache, part, true);
|
|
59961
59961
|
} catch (er) {
|
|
59962
|
-
const st = fs$
|
|
59962
|
+
const st = fs$27.lstatSync(part);
|
|
59963
59963
|
if (st.isDirectory()) {
|
|
59964
59964
|
cSet(cache, part, true);
|
|
59965
59965
|
continue;
|
|
59966
59966
|
} else if (unlink) {
|
|
59967
|
-
fs$
|
|
59968
|
-
fs$
|
|
59967
|
+
fs$27.unlinkSync(part);
|
|
59968
|
+
fs$27.mkdirSync(part, mode);
|
|
59969
59969
|
created = created || part;
|
|
59970
59970
|
cSet(cache, part, true);
|
|
59971
59971
|
continue;
|
|
@@ -59991,14 +59991,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59991
59991
|
const assert$1 = require("assert");
|
|
59992
59992
|
const normalize = require_normalize_unicode();
|
|
59993
59993
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59994
|
-
const { join: join$
|
|
59994
|
+
const { join: join$18 } = require("path");
|
|
59995
59995
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59996
59996
|
module.exports = () => {
|
|
59997
59997
|
const queues = /* @__PURE__ */ new Map();
|
|
59998
59998
|
const reservations = /* @__PURE__ */ new Map();
|
|
59999
59999
|
const getDirs = (path$61) => {
|
|
60000
60000
|
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
60001
|
-
if (set.length) path$62 = join$
|
|
60001
|
+
if (set.length) path$62 = join$18(set[set.length - 1], path$62);
|
|
60002
60002
|
set.push(path$62 || "/");
|
|
60003
60003
|
return set;
|
|
60004
60004
|
}, []);
|
|
@@ -60052,7 +60052,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60052
60052
|
};
|
|
60053
60053
|
const reserve = (paths, fn) => {
|
|
60054
60054
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60055
|
-
return stripSlashes(join$
|
|
60055
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
60056
60056
|
});
|
|
60057
60057
|
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60058
60058
|
reservations.set(fn, {
|
|
@@ -60094,7 +60094,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60094
60094
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60095
60095
|
const assert = require("assert");
|
|
60096
60096
|
const Parser = require_parse$4();
|
|
60097
|
-
const fs$
|
|
60097
|
+
const fs$26 = require("fs");
|
|
60098
60098
|
const fsm = require_fs_minipass();
|
|
60099
60099
|
const path$26 = require("path");
|
|
60100
60100
|
const mkdir = require_mkdir();
|
|
@@ -60135,19 +60135,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60135
60135
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60136
60136
|
/* istanbul ignore next */
|
|
60137
60137
|
const unlinkFile = (path$57, cb) => {
|
|
60138
|
-
if (!isWindows) return fs$
|
|
60138
|
+
if (!isWindows) return fs$26.unlink(path$57, cb);
|
|
60139
60139
|
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60140
|
-
fs$
|
|
60140
|
+
fs$26.rename(path$57, name, (er) => {
|
|
60141
60141
|
if (er) return cb(er);
|
|
60142
|
-
fs$
|
|
60142
|
+
fs$26.unlink(name, cb);
|
|
60143
60143
|
});
|
|
60144
60144
|
};
|
|
60145
60145
|
/* istanbul ignore next */
|
|
60146
60146
|
const unlinkFileSync = (path$58) => {
|
|
60147
|
-
if (!isWindows) return fs$
|
|
60147
|
+
if (!isWindows) return fs$26.unlinkSync(path$58);
|
|
60148
60148
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60149
|
-
fs$
|
|
60150
|
-
fs$
|
|
60149
|
+
fs$26.renameSync(path$58, name);
|
|
60150
|
+
fs$26.unlinkSync(name);
|
|
60151
60151
|
};
|
|
60152
60152
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60153
60153
|
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
@@ -60333,7 +60333,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60333
60333
|
autoClose: false
|
|
60334
60334
|
});
|
|
60335
60335
|
stream.on("error", (er) => {
|
|
60336
|
-
if (stream.fd) fs$
|
|
60336
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60337
60337
|
stream.write = () => true;
|
|
60338
60338
|
this[ONERROR](er, entry);
|
|
60339
60339
|
fullyDone();
|
|
@@ -60342,12 +60342,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60342
60342
|
const done = (er) => {
|
|
60343
60343
|
if (er) {
|
|
60344
60344
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60345
|
-
if (stream.fd) fs$
|
|
60345
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60346
60346
|
this[ONERROR](er, entry);
|
|
60347
60347
|
fullyDone();
|
|
60348
60348
|
return;
|
|
60349
60349
|
}
|
|
60350
|
-
if (--actions === 0) fs$
|
|
60350
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60351
60351
|
if (er) this[ONERROR](er, entry);
|
|
60352
60352
|
else this[UNPEND]();
|
|
60353
60353
|
fullyDone();
|
|
@@ -60360,13 +60360,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60360
60360
|
actions++;
|
|
60361
60361
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60362
60362
|
const mtime = entry.mtime;
|
|
60363
|
-
fs$
|
|
60363
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60364
60364
|
}
|
|
60365
60365
|
if (this[DOCHOWN](entry)) {
|
|
60366
60366
|
actions++;
|
|
60367
60367
|
const uid = this[UID](entry);
|
|
60368
60368
|
const gid = this[GID](entry);
|
|
60369
|
-
fs$
|
|
60369
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60370
60370
|
}
|
|
60371
60371
|
done();
|
|
60372
60372
|
});
|
|
@@ -60398,11 +60398,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60398
60398
|
};
|
|
60399
60399
|
if (entry.mtime && !this.noMtime) {
|
|
60400
60400
|
actions++;
|
|
60401
|
-
fs$
|
|
60401
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60402
60402
|
}
|
|
60403
60403
|
if (this[DOCHOWN](entry)) {
|
|
60404
60404
|
actions++;
|
|
60405
|
-
fs$
|
|
60405
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60406
60406
|
}
|
|
60407
60407
|
done();
|
|
60408
60408
|
});
|
|
@@ -60475,7 +60475,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60475
60475
|
afterMakeParent();
|
|
60476
60476
|
};
|
|
60477
60477
|
const afterMakeParent = () => {
|
|
60478
|
-
fs$
|
|
60478
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60479
60479
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60480
60480
|
this[SKIP](entry);
|
|
60481
60481
|
done();
|
|
@@ -60487,9 +60487,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60487
60487
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60488
60488
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60489
60489
|
if (!needChmod) return afterChmod();
|
|
60490
|
-
return fs$
|
|
60490
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60491
60491
|
}
|
|
60492
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60492
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60493
60493
|
}
|
|
60494
60494
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60495
60495
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60515,7 +60515,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60515
60515
|
}
|
|
60516
60516
|
}
|
|
60517
60517
|
[LINK](entry, linkpath, link, done) {
|
|
60518
|
-
fs$
|
|
60518
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60519
60519
|
if (er) this[ONERROR](er, entry);
|
|
60520
60520
|
else {
|
|
60521
60521
|
this[UNPEND]();
|
|
@@ -60550,17 +60550,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60550
60550
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60551
60551
|
}
|
|
60552
60552
|
}
|
|
60553
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60553
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60554
60554
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60555
60555
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60556
60556
|
if (st.isDirectory()) {
|
|
60557
60557
|
if (entry.type === "Directory") {
|
|
60558
60558
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60559
|
-
fs$
|
|
60559
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60560
60560
|
}) : [];
|
|
60561
60561
|
return this[MAKEFS](er, entry);
|
|
60562
60562
|
}
|
|
60563
|
-
const [er] = callSync(() => fs$
|
|
60563
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60564
60564
|
this[MAKEFS](er, entry);
|
|
60565
60565
|
}
|
|
60566
60566
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60571,7 +60571,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60571
60571
|
const oner = (er) => {
|
|
60572
60572
|
let closeError;
|
|
60573
60573
|
try {
|
|
60574
|
-
fs$
|
|
60574
|
+
fs$26.closeSync(fd);
|
|
60575
60575
|
} catch (e) {
|
|
60576
60576
|
closeError = e;
|
|
60577
60577
|
}
|
|
@@ -60580,7 +60580,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60580
60580
|
};
|
|
60581
60581
|
let fd;
|
|
60582
60582
|
try {
|
|
60583
|
-
fd = fs$
|
|
60583
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60584
60584
|
} catch (er) {
|
|
60585
60585
|
return oner(er);
|
|
60586
60586
|
}
|
|
@@ -60591,7 +60591,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60591
60591
|
}
|
|
60592
60592
|
tx.on("data", (chunk) => {
|
|
60593
60593
|
try {
|
|
60594
|
-
fs$
|
|
60594
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60595
60595
|
} catch (er) {
|
|
60596
60596
|
oner(er);
|
|
60597
60597
|
}
|
|
@@ -60602,10 +60602,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60602
60602
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60603
60603
|
const mtime = entry.mtime;
|
|
60604
60604
|
try {
|
|
60605
|
-
fs$
|
|
60605
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60606
60606
|
} catch (futimeser) {
|
|
60607
60607
|
try {
|
|
60608
|
-
fs$
|
|
60608
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60609
60609
|
} catch (utimeser) {
|
|
60610
60610
|
er = futimeser;
|
|
60611
60611
|
}
|
|
@@ -60615,10 +60615,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60615
60615
|
const uid = this[UID](entry);
|
|
60616
60616
|
const gid = this[GID](entry);
|
|
60617
60617
|
try {
|
|
60618
|
-
fs$
|
|
60618
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60619
60619
|
} catch (fchowner) {
|
|
60620
60620
|
try {
|
|
60621
|
-
fs$
|
|
60621
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60622
60622
|
} catch (chowner) {
|
|
60623
60623
|
er = er || fchowner;
|
|
60624
60624
|
}
|
|
@@ -60636,10 +60636,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60636
60636
|
return;
|
|
60637
60637
|
}
|
|
60638
60638
|
if (entry.mtime && !this.noMtime) try {
|
|
60639
|
-
fs$
|
|
60639
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60640
60640
|
} catch (er) {}
|
|
60641
60641
|
if (this[DOCHOWN](entry)) try {
|
|
60642
|
-
fs$
|
|
60642
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60643
60643
|
} catch (er) {}
|
|
60644
60644
|
done();
|
|
60645
60645
|
entry.resume();
|
|
@@ -60664,7 +60664,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60664
60664
|
}
|
|
60665
60665
|
[LINK](entry, linkpath, link, done) {
|
|
60666
60666
|
try {
|
|
60667
|
-
fs$
|
|
60667
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60668
60668
|
done();
|
|
60669
60669
|
entry.resume();
|
|
60670
60670
|
} catch (er) {
|
|
@@ -60680,7 +60680,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60680
60680
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60681
60681
|
const hlo = require_high_level_opt();
|
|
60682
60682
|
const Unpack = require_unpack();
|
|
60683
|
-
const fs$
|
|
60683
|
+
const fs$25 = require("fs");
|
|
60684
60684
|
const fsm = require_fs_minipass();
|
|
60685
60685
|
const path$25 = require("path");
|
|
60686
60686
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60710,7 +60710,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60710
60710
|
const extractFileSync = (opt) => {
|
|
60711
60711
|
const u = new Unpack.Sync(opt);
|
|
60712
60712
|
const file = opt.file;
|
|
60713
|
-
const stat = fs$
|
|
60713
|
+
const stat = fs$25.statSync(file);
|
|
60714
60714
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60715
60715
|
new fsm.ReadStreamSync(file, {
|
|
60716
60716
|
readSize,
|
|
@@ -60724,7 +60724,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60724
60724
|
const p = new Promise((resolve, reject) => {
|
|
60725
60725
|
u.on("error", reject);
|
|
60726
60726
|
u.on("close", resolve);
|
|
60727
|
-
fs$
|
|
60727
|
+
fs$25.stat(file, (er, stat) => {
|
|
60728
60728
|
if (er) reject(er);
|
|
60729
60729
|
else {
|
|
60730
60730
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60807,7 +60807,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60807
60807
|
//#endregion
|
|
60808
60808
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60809
60809
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60810
|
-
var fs$
|
|
60810
|
+
var fs$24 = require("fs");
|
|
60811
60811
|
var util$9 = require("util");
|
|
60812
60812
|
var stream$1 = require("stream");
|
|
60813
60813
|
var Readable = stream$1.Readable;
|
|
@@ -60832,7 +60832,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60832
60832
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60833
60833
|
var self = this;
|
|
60834
60834
|
self.pend.go(function(cb) {
|
|
60835
|
-
fs$
|
|
60835
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60836
60836
|
cb();
|
|
60837
60837
|
callback(err, bytesRead, buffer);
|
|
60838
60838
|
});
|
|
@@ -60841,7 +60841,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60841
60841
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60842
60842
|
var self = this;
|
|
60843
60843
|
self.pend.go(function(cb) {
|
|
60844
|
-
fs$
|
|
60844
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60845
60845
|
cb();
|
|
60846
60846
|
callback(err, written, buffer);
|
|
60847
60847
|
});
|
|
@@ -60861,7 +60861,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60861
60861
|
self.refCount -= 1;
|
|
60862
60862
|
if (self.refCount > 0) return;
|
|
60863
60863
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60864
|
-
if (self.autoClose) fs$
|
|
60864
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60865
60865
|
function onCloseDone(err) {
|
|
60866
60866
|
if (err) self.emit("error", err);
|
|
60867
60867
|
else self.emit("close");
|
|
@@ -60892,7 +60892,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60892
60892
|
self.context.pend.go(function(cb) {
|
|
60893
60893
|
if (self.destroyed) return cb();
|
|
60894
60894
|
var buffer = new Buffer(toRead);
|
|
60895
|
-
fs$
|
|
60895
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60896
60896
|
if (err) self.destroy(err);
|
|
60897
60897
|
else if (bytesRead === 0) {
|
|
60898
60898
|
self.destroyed = true;
|
|
@@ -60938,7 +60938,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60938
60938
|
}
|
|
60939
60939
|
self.context.pend.go(function(cb) {
|
|
60940
60940
|
if (self.destroyed) return cb();
|
|
60941
|
-
fs$
|
|
60941
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60942
60942
|
if (err) {
|
|
60943
60943
|
self.destroy();
|
|
60944
60944
|
cb();
|
|
@@ -61345,7 +61345,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61345
61345
|
//#endregion
|
|
61346
61346
|
//#region ../../node_modules/yauzl/index.js
|
|
61347
61347
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61348
|
-
var fs$
|
|
61348
|
+
var fs$23 = require("fs");
|
|
61349
61349
|
var zlib$1 = require("zlib");
|
|
61350
61350
|
var fd_slicer = require_fd_slicer();
|
|
61351
61351
|
var crc32 = require_buffer_crc32();
|
|
@@ -61367,10 +61367,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61367
61367
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61368
61368
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61369
61369
|
if (callback == null) callback = defaultCallback;
|
|
61370
|
-
fs$
|
|
61370
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61371
61371
|
if (err) return callback(err);
|
|
61372
61372
|
fromFd(fd, options, function(err, zipfile) {
|
|
61373
|
-
if (err) fs$
|
|
61373
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61374
61374
|
callback(err, zipfile);
|
|
61375
61375
|
});
|
|
61376
61376
|
});
|
|
@@ -61387,7 +61387,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61387
61387
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61388
61388
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61389
61389
|
if (callback == null) callback = defaultCallback;
|
|
61390
|
-
fs$
|
|
61390
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61391
61391
|
if (err) return callback(err);
|
|
61392
61392
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61393
61393
|
});
|
|
@@ -62615,13 +62615,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62615
62615
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62616
62616
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62617
62617
|
module.exports = readdirGlob;
|
|
62618
|
-
const fs$
|
|
62618
|
+
const fs$22 = require("fs");
|
|
62619
62619
|
const { EventEmitter } = require("events");
|
|
62620
62620
|
const { Minimatch } = require_minimatch$1();
|
|
62621
62621
|
const { resolve: resolve$12 } = require("path");
|
|
62622
62622
|
function readdir(dir, strict) {
|
|
62623
62623
|
return new Promise((resolve, reject) => {
|
|
62624
|
-
fs$
|
|
62624
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62625
62625
|
if (err) switch (err.code) {
|
|
62626
62626
|
case "ENOTDIR":
|
|
62627
62627
|
if (strict) reject(err);
|
|
@@ -62643,7 +62643,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62643
62643
|
}
|
|
62644
62644
|
function stat(file, followSymlinks) {
|
|
62645
62645
|
return new Promise((resolve, reject) => {
|
|
62646
|
-
(followSymlinks ? fs$
|
|
62646
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62647
62647
|
if (err) switch (err.code) {
|
|
62648
62648
|
case "ENOENT":
|
|
62649
62649
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68682,7 +68682,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68682
68682
|
//#endregion
|
|
68683
68683
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68684
68684
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68685
|
-
var fs$
|
|
68685
|
+
var fs$21 = require("fs");
|
|
68686
68686
|
var polyfills = require_polyfills();
|
|
68687
68687
|
var legacy = require_legacy_streams();
|
|
68688
68688
|
var clone = require_clone$1();
|
|
@@ -68711,36 +68711,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68711
68711
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68712
68712
|
console.error(m);
|
|
68713
68713
|
};
|
|
68714
|
-
if (!fs$
|
|
68715
|
-
publishQueue(fs$
|
|
68716
|
-
fs$
|
|
68714
|
+
if (!fs$21[gracefulQueue]) {
|
|
68715
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68716
|
+
fs$21.close = (function(fs$close) {
|
|
68717
68717
|
function close(fd, cb) {
|
|
68718
|
-
return fs$close.call(fs$
|
|
68718
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68719
68719
|
if (!err) resetQueue();
|
|
68720
68720
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68721
68721
|
});
|
|
68722
68722
|
}
|
|
68723
68723
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68724
68724
|
return close;
|
|
68725
|
-
})(fs$
|
|
68726
|
-
fs$
|
|
68725
|
+
})(fs$21.close);
|
|
68726
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68727
68727
|
function closeSync(fd) {
|
|
68728
|
-
fs$closeSync.apply(fs$
|
|
68728
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68729
68729
|
resetQueue();
|
|
68730
68730
|
}
|
|
68731
68731
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68732
68732
|
return closeSync;
|
|
68733
|
-
})(fs$
|
|
68733
|
+
})(fs$21.closeSync);
|
|
68734
68734
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68735
|
-
debug(fs$
|
|
68736
|
-
require("assert").equal(fs$
|
|
68735
|
+
debug(fs$21[gracefulQueue]);
|
|
68736
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68737
68737
|
});
|
|
68738
68738
|
}
|
|
68739
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68740
|
-
module.exports = patch(clone(fs$
|
|
68741
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68742
|
-
module.exports = patch(fs$
|
|
68743
|
-
fs$
|
|
68739
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68740
|
+
module.exports = patch(clone(fs$21));
|
|
68741
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68742
|
+
module.exports = patch(fs$21);
|
|
68743
|
+
fs$21.__patched = true;
|
|
68744
68744
|
}
|
|
68745
68745
|
function patch(fs) {
|
|
68746
68746
|
polyfills(fs);
|
|
@@ -68995,23 +68995,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68995
68995
|
}
|
|
68996
68996
|
function enqueue(elem) {
|
|
68997
68997
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
68998
|
-
fs$
|
|
68998
|
+
fs$21[gracefulQueue].push(elem);
|
|
68999
68999
|
retry();
|
|
69000
69000
|
}
|
|
69001
69001
|
var retryTimer;
|
|
69002
69002
|
function resetQueue() {
|
|
69003
69003
|
var now = Date.now();
|
|
69004
|
-
for (var i = 0; i < fs$
|
|
69005
|
-
fs$
|
|
69006
|
-
fs$
|
|
69004
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
69005
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
69006
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
69007
69007
|
}
|
|
69008
69008
|
retry();
|
|
69009
69009
|
}
|
|
69010
69010
|
function retry() {
|
|
69011
69011
|
clearTimeout(retryTimer);
|
|
69012
69012
|
retryTimer = void 0;
|
|
69013
|
-
if (fs$
|
|
69014
|
-
var elem = fs$
|
|
69013
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
69014
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
69015
69015
|
var fn = elem[0];
|
|
69016
69016
|
var args = elem[1];
|
|
69017
69017
|
var err = elem[2];
|
|
@@ -69030,7 +69030,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69030
69030
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69031
69031
|
debug("RETRY", fn.name, args);
|
|
69032
69032
|
fn.apply(null, args.concat([startTime]));
|
|
69033
|
-
} else fs$
|
|
69033
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69034
69034
|
}
|
|
69035
69035
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69036
69036
|
}
|
|
@@ -84427,7 +84427,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84427
84427
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84428
84428
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84429
84429
|
*/
|
|
84430
|
-
var fs$
|
|
84430
|
+
var fs$20 = require("fs");
|
|
84431
84431
|
var glob = require_readdir_glob();
|
|
84432
84432
|
var async = require_async();
|
|
84433
84433
|
var path$22 = require("path");
|
|
@@ -84504,7 +84504,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84504
84504
|
data.sourcePath = filepath;
|
|
84505
84505
|
task.data = data;
|
|
84506
84506
|
this._entriesCount++;
|
|
84507
|
-
if (data.stats && data.stats instanceof fs$
|
|
84507
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84508
84508
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84509
84509
|
if (task) {
|
|
84510
84510
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84734,7 +84734,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84734
84734
|
callback();
|
|
84735
84735
|
return;
|
|
84736
84736
|
}
|
|
84737
|
-
fs$
|
|
84737
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84738
84738
|
if (this._state.aborted) {
|
|
84739
84739
|
setImmediate(callback);
|
|
84740
84740
|
return;
|
|
@@ -84800,7 +84800,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84800
84800
|
task.data.sourceType = "buffer";
|
|
84801
84801
|
task.source = Buffer.concat([]);
|
|
84802
84802
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84803
|
-
var linkPath = fs$
|
|
84803
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84804
84804
|
var dirName = path$22.dirname(task.filepath);
|
|
84805
84805
|
task.data.type = "symlink";
|
|
84806
84806
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -95859,7 +95859,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95859
95859
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95860
95860
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95861
95861
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95862
|
-
const { join: join$
|
|
95862
|
+
const { join: join$15, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
95863
95863
|
const isWindows = process.platform === "win32";
|
|
95864
95864
|
/* istanbul ignore next */
|
|
95865
95865
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95889,7 +95889,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95889
95889
|
};
|
|
95890
95890
|
const getPathPart = (raw, cmd) => {
|
|
95891
95891
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95892
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95892
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
95893
95893
|
};
|
|
95894
95894
|
const which = async (cmd, opt = {}) => {
|
|
95895
95895
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96468,7 +96468,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96468
96468
|
//#endregion
|
|
96469
96469
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96470
96470
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96471
|
-
const fs$
|
|
96471
|
+
const fs$18 = require("node:fs");
|
|
96472
96472
|
const os$2 = require("node:os");
|
|
96473
96473
|
const path$20 = require("node:path");
|
|
96474
96474
|
const ini = require_ini();
|
|
@@ -96477,8 +96477,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96477
96477
|
const loadGitConfig = () => {
|
|
96478
96478
|
if (cachedConfig === null) try {
|
|
96479
96479
|
cachedConfig = {};
|
|
96480
|
-
if (fs$
|
|
96481
|
-
const configContent = fs$
|
|
96480
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96481
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96482
96482
|
cachedConfig = ini.parse(configContent);
|
|
96483
96483
|
}
|
|
96484
96484
|
} catch (error) {
|
|
@@ -96638,7 +96638,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96638
96638
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96639
96639
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96640
96640
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96641
|
-
const { join: join$
|
|
96641
|
+
const { join: join$14, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
96642
96642
|
const isWindows = process.platform === "win32";
|
|
96643
96643
|
/* istanbul ignore next */
|
|
96644
96644
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96668,7 +96668,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96668
96668
|
};
|
|
96669
96669
|
const getPathPart = (raw, cmd) => {
|
|
96670
96670
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96671
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96671
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
96672
96672
|
};
|
|
96673
96673
|
const which = async (cmd, opt = {}) => {
|
|
96674
96674
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98347,7 +98347,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98347
98347
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98348
98348
|
const process$1 = require("node:process");
|
|
98349
98349
|
const nodeOs = require("node:os");
|
|
98350
|
-
const fs$
|
|
98350
|
+
const fs$17 = require("node:fs");
|
|
98351
98351
|
function isMusl(file) {
|
|
98352
98352
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98353
98353
|
}
|
|
@@ -98360,7 +98360,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98360
98360
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98361
98361
|
function getFamilyFromFilesystem() {
|
|
98362
98362
|
try {
|
|
98363
|
-
const content = fs$
|
|
98363
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98364
98364
|
if (content.includes("musl")) return "musl";
|
|
98365
98365
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98366
98366
|
return null;
|
|
@@ -98566,7 +98566,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98566
98566
|
//#endregion
|
|
98567
98567
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98568
98568
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98569
|
-
const { join: join$
|
|
98569
|
+
const { join: join$13, basename: basename$5 } = require("path");
|
|
98570
98570
|
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);
|
|
98571
98571
|
const normalizeString = (pkg) => {
|
|
98572
98572
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98589,9 +98589,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98589
98589
|
const clean = {};
|
|
98590
98590
|
let hasBins = false;
|
|
98591
98591
|
Object.keys(orig).forEach((binKey) => {
|
|
98592
|
-
const base = join$
|
|
98592
|
+
const base = join$13("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98593
98593
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98594
|
-
const binTarget = join$
|
|
98594
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98595
98595
|
if (!binTarget) return;
|
|
98596
98596
|
clean[base] = binTarget;
|
|
98597
98597
|
hasBins = true;
|
|
@@ -98749,7 +98749,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98749
98749
|
const spawn = require_spawn();
|
|
98750
98750
|
const { isWindows } = require_utils$3();
|
|
98751
98751
|
const pickManifest = require_lib$20();
|
|
98752
|
-
const fs$
|
|
98752
|
+
const fs$16 = require("fs/promises");
|
|
98753
98753
|
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));
|
|
98754
98754
|
const maybeShallow = (repo, opts) => {
|
|
98755
98755
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98784,7 +98784,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98784
98784
|
...opts,
|
|
98785
98785
|
cwd: target
|
|
98786
98786
|
});
|
|
98787
|
-
return fs$
|
|
98787
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98788
98788
|
"config",
|
|
98789
98789
|
"--local",
|
|
98790
98790
|
"--add",
|
|
@@ -98822,7 +98822,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98822
98822
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98823
98823
|
};
|
|
98824
98824
|
const updateSubmodules = async (target, opts) => {
|
|
98825
|
-
if (!await fs$
|
|
98825
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98826
98826
|
return spawn([
|
|
98827
98827
|
"submodule",
|
|
98828
98828
|
"update",
|
|
@@ -98847,7 +98847,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98847
98847
|
...opts,
|
|
98848
98848
|
cwd: target
|
|
98849
98849
|
});
|
|
98850
|
-
return fs$
|
|
98850
|
+
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([
|
|
98851
98851
|
"rev-parse",
|
|
98852
98852
|
"--revs-only",
|
|
98853
98853
|
"HEAD"
|
|
@@ -98864,11 +98864,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98864
98864
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98865
98865
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98866
98866
|
const is = require_is();
|
|
98867
|
-
const { dirname: dirname$
|
|
98867
|
+
const { dirname: dirname$10 } = require("path");
|
|
98868
98868
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98869
98869
|
while (true) {
|
|
98870
98870
|
if (await is({ cwd })) return cwd;
|
|
98871
|
-
const next = dirname$
|
|
98871
|
+
const next = dirname$10(cwd);
|
|
98872
98872
|
if (cwd === root || cwd === next) return null;
|
|
98873
98873
|
cwd = next;
|
|
98874
98874
|
}
|
|
@@ -98902,7 +98902,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98902
98902
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98903
98903
|
const valid = require_valid$3();
|
|
98904
98904
|
const clean = require_clean$1();
|
|
98905
|
-
const fs$
|
|
98905
|
+
const fs$15 = require("node:fs/promises");
|
|
98906
98906
|
const path$17 = require("node:path");
|
|
98907
98907
|
const { log } = require_lib$29();
|
|
98908
98908
|
const moduleBuiltin = require("node:module");
|
|
@@ -99186,13 +99186,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99186
99186
|
}
|
|
99187
99187
|
}
|
|
99188
99188
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99189
|
-
await fs$
|
|
99189
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
99190
99190
|
scripts.start = "node server.js";
|
|
99191
99191
|
data.scripts = scripts;
|
|
99192
99192
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99193
99193
|
} catch {}
|
|
99194
99194
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99195
|
-
data.contributors = (await fs$
|
|
99195
|
+
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);
|
|
99196
99196
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99197
99197
|
} catch {}
|
|
99198
99198
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99211,7 +99211,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99211
99211
|
if (file.endsWith("README")) readmeFile = file;
|
|
99212
99212
|
}
|
|
99213
99213
|
if (readmeFile) {
|
|
99214
|
-
data.readme = await fs$
|
|
99214
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
99215
99215
|
data.readmeFilename = readmeFile;
|
|
99216
99216
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99217
99217
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99243,20 +99243,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99243
99243
|
});
|
|
99244
99244
|
let head;
|
|
99245
99245
|
if (gitRoot) try {
|
|
99246
|
-
head = await fs$
|
|
99246
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99247
99247
|
} catch (err) {}
|
|
99248
99248
|
let headData;
|
|
99249
99249
|
if (head) if (head.startsWith("ref: ")) {
|
|
99250
99250
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99251
99251
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
99252
99252
|
try {
|
|
99253
|
-
headData = await fs$
|
|
99253
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99254
99254
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99255
99255
|
} catch (err) {}
|
|
99256
99256
|
if (!headData) {
|
|
99257
99257
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
99258
99258
|
try {
|
|
99259
|
-
let refs = await fs$
|
|
99259
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99260
99260
|
if (refs) {
|
|
99261
99261
|
refs = refs.split("\n");
|
|
99262
99262
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99277,12 +99277,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99277
99277
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99278
99278
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
99279
99279
|
if (!("types" in data || "typings" in data)) try {
|
|
99280
|
-
await fs$
|
|
99280
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
99281
99281
|
data.types = dts.split(path$17.sep).join("/");
|
|
99282
99282
|
} catch {}
|
|
99283
99283
|
}
|
|
99284
99284
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99285
|
-
await fs$
|
|
99285
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
99286
99286
|
} catch {
|
|
99287
99287
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99288
99288
|
}
|
|
@@ -100664,7 +100664,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100664
100664
|
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();
|
|
100665
100665
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100666
100666
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$9, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100667
|
-
const { dirname: dirname$
|
|
100667
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100668
100668
|
const { fileURLToPath } = require("url");
|
|
100669
100669
|
const defaultOptions = {
|
|
100670
100670
|
dereference: false,
|
|
@@ -100738,7 +100738,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100738
100738
|
})]);
|
|
100739
100739
|
}
|
|
100740
100740
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100741
|
-
const destParent = dirname$
|
|
100741
|
+
const destParent = dirname$9(dest);
|
|
100742
100742
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100743
100743
|
await mkdir$9(destParent, { recursive: true });
|
|
100744
100744
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100751,8 +100751,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100751
100751
|
);
|
|
100752
100752
|
}
|
|
100753
100753
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100754
|
-
const srcParent = resolve$10(dirname$
|
|
100755
|
-
const destParent = resolve$10(dirname$
|
|
100754
|
+
const srcParent = resolve$10(dirname$9(src));
|
|
100755
|
+
const destParent = resolve$10(dirname$9(dest));
|
|
100756
100756
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100757
100757
|
let destStat;
|
|
100758
100758
|
try {
|
|
@@ -100873,15 +100873,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100873
100873
|
const dir = await readdir$6(src);
|
|
100874
100874
|
for (let i = 0; i < dir.length; i++) {
|
|
100875
100875
|
const item = dir[i];
|
|
100876
|
-
const srcItem = join$
|
|
100877
|
-
const destItem = join$
|
|
100876
|
+
const srcItem = join$12(src, item);
|
|
100877
|
+
const destItem = join$12(dest, item);
|
|
100878
100878
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100879
100879
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100880
100880
|
}
|
|
100881
100881
|
}
|
|
100882
100882
|
async function onLink(destStat, src, dest) {
|
|
100883
100883
|
let resolvedSrc = await readlink(src);
|
|
100884
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100884
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$9(src), resolvedSrc);
|
|
100885
100885
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100886
100886
|
let resolvedDest;
|
|
100887
100887
|
try {
|
|
@@ -100892,7 +100892,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100892
100892
|
// istanbul ignore next: should not be possible
|
|
100893
100893
|
throw err;
|
|
100894
100894
|
}
|
|
100895
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100895
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$9(dest), resolvedDest);
|
|
100896
100896
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100897
100897
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100898
100898
|
path: dest,
|
|
@@ -100916,7 +100916,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100916
100916
|
//#endregion
|
|
100917
100917
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100918
100918
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100919
|
-
const fs$
|
|
100919
|
+
const fs$14 = require("fs/promises");
|
|
100920
100920
|
const getOptions = require_get_options();
|
|
100921
100921
|
const node = require_node$1();
|
|
100922
100922
|
const polyfill = require_polyfill();
|
|
@@ -100931,20 +100931,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100931
100931
|
"recursive"
|
|
100932
100932
|
] });
|
|
100933
100933
|
// istanbul ignore next
|
|
100934
|
-
return useNative ? fs$
|
|
100934
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100935
100935
|
};
|
|
100936
100936
|
module.exports = cp;
|
|
100937
100937
|
}));
|
|
100938
100938
|
//#endregion
|
|
100939
100939
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100940
100940
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100941
|
-
const { join: join$
|
|
100941
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
100942
100942
|
const getOptions = require_get_options();
|
|
100943
100943
|
const { mkdir: mkdir$8, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100944
100944
|
const withTempDir = async (root, fn, opts) => {
|
|
100945
100945
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100946
100946
|
await mkdir$8(root, { recursive: true });
|
|
100947
|
-
const target = await mkdtemp(join$
|
|
100947
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100948
100948
|
let err;
|
|
100949
100949
|
let result;
|
|
100950
100950
|
try {
|
|
@@ -100967,10 +100967,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100967
100967
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100968
100968
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100969
100969
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100970
|
-
const { join: join$
|
|
100970
|
+
const { join: join$10 } = require("path");
|
|
100971
100971
|
const readdirScoped = async (dir) => {
|
|
100972
100972
|
const results = [];
|
|
100973
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100973
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$10(dir, item))) results.push(join$10(item, scopedItem));
|
|
100974
100974
|
else results.push(item);
|
|
100975
100975
|
return results;
|
|
100976
100976
|
};
|
|
@@ -100979,11 +100979,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100979
100979
|
//#endregion
|
|
100980
100980
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100981
100981
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100982
|
-
const { dirname: dirname$
|
|
100983
|
-
const fs$
|
|
100982
|
+
const { dirname: dirname$8, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100983
|
+
const fs$13 = require("fs/promises");
|
|
100984
100984
|
const pathExists = async (path$53) => {
|
|
100985
100985
|
try {
|
|
100986
|
-
await fs$
|
|
100986
|
+
await fs$13.access(path$53);
|
|
100987
100987
|
return true;
|
|
100988
100988
|
} catch (er) {
|
|
100989
100989
|
return er.code !== "ENOENT";
|
|
@@ -100996,34 +100996,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100996
100996
|
...options
|
|
100997
100997
|
};
|
|
100998
100998
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
100999
|
-
await fs$
|
|
100999
|
+
await fs$13.mkdir(dirname$8(destination), { recursive: true });
|
|
101000
101000
|
try {
|
|
101001
|
-
await fs$
|
|
101001
|
+
await fs$13.rename(source, destination);
|
|
101002
101002
|
} catch (error) {
|
|
101003
101003
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
101004
|
-
const sourceStat = await fs$
|
|
101004
|
+
const sourceStat = await fs$13.lstat(source);
|
|
101005
101005
|
if (sourceStat.isDirectory()) {
|
|
101006
|
-
const files = await fs$
|
|
101007
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101006
|
+
const files = await fs$13.readdir(source);
|
|
101007
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
101008
101008
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101009
101009
|
source,
|
|
101010
101010
|
destination
|
|
101011
101011
|
});
|
|
101012
|
-
else await fs$
|
|
101012
|
+
else await fs$13.copyFile(source, destination);
|
|
101013
101013
|
} else throw error;
|
|
101014
101014
|
}
|
|
101015
101015
|
if (root) {
|
|
101016
101016
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101017
|
-
let target = await fs$
|
|
101017
|
+
let target = await fs$13.readlink(symSource);
|
|
101018
101018
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101019
101019
|
let targetStat = "file";
|
|
101020
101020
|
try {
|
|
101021
|
-
targetStat = await fs$
|
|
101021
|
+
targetStat = await fs$13.stat(resolve$9(dirname$8(symSource), target));
|
|
101022
101022
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101023
101023
|
} catch {}
|
|
101024
|
-
await fs$
|
|
101024
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
101025
101025
|
}));
|
|
101026
|
-
await fs$
|
|
101026
|
+
await fs$13.rm(source, {
|
|
101027
101027
|
recursive: true,
|
|
101028
101028
|
force: true
|
|
101029
101029
|
});
|
|
@@ -101046,7 +101046,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101046
101046
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101047
101047
|
const crypto$2 = require("crypto");
|
|
101048
101048
|
const { withTempDir } = require_lib$16();
|
|
101049
|
-
const fs$
|
|
101049
|
+
const fs$12 = require("fs/promises");
|
|
101050
101050
|
const path$16 = require("path");
|
|
101051
101051
|
module.exports.mkdir = mktmpdir;
|
|
101052
101052
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101056,12 +101056,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101056
101056
|
async function mktmpdir(cache, opts = {}) {
|
|
101057
101057
|
const { tmpPrefix } = opts;
|
|
101058
101058
|
const tmpDir = path$16.join(cache, "tmp");
|
|
101059
|
-
await fs$
|
|
101059
|
+
await fs$12.mkdir(tmpDir, {
|
|
101060
101060
|
recursive: true,
|
|
101061
101061
|
owner: "inherit"
|
|
101062
101062
|
});
|
|
101063
101063
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
101064
|
-
return fs$
|
|
101064
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101065
101065
|
}
|
|
101066
101066
|
module.exports.withTmp = withTmp;
|
|
101067
101067
|
function withTmp(cache, opts, cb) {
|
|
@@ -101441,8 +101441,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101441
101441
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101442
101442
|
const { Minipass } = require_commonjs$10();
|
|
101443
101443
|
const EE$4 = require("events").EventEmitter;
|
|
101444
|
-
const fs$
|
|
101445
|
-
const writev = fs$
|
|
101444
|
+
const fs$11 = require("fs");
|
|
101445
|
+
const writev = fs$11.writev;
|
|
101446
101446
|
const _autoClose = Symbol("_autoClose");
|
|
101447
101447
|
const _close = Symbol("_close");
|
|
101448
101448
|
const _ended = Symbol("_ended");
|
|
@@ -101502,7 +101502,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101502
101502
|
throw new TypeError("this is a readable stream");
|
|
101503
101503
|
}
|
|
101504
101504
|
[_open]() {
|
|
101505
|
-
fs$
|
|
101505
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101506
101506
|
}
|
|
101507
101507
|
[_onopen](er, fd) {
|
|
101508
101508
|
if (er) this[_onerror](er);
|
|
@@ -101521,7 +101521,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101521
101521
|
const buf = this[_makeBuf]();
|
|
101522
101522
|
/* istanbul ignore if */
|
|
101523
101523
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101524
|
-
fs$
|
|
101524
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101525
101525
|
}
|
|
101526
101526
|
}
|
|
101527
101527
|
[_onread](er, br, buf) {
|
|
@@ -101533,7 +101533,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101533
101533
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101534
101534
|
const fd = this[_fd];
|
|
101535
101535
|
this[_fd] = null;
|
|
101536
|
-
fs$
|
|
101536
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101537
101537
|
}
|
|
101538
101538
|
}
|
|
101539
101539
|
[_onerror](er) {
|
|
@@ -101571,7 +101571,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101571
101571
|
[_open]() {
|
|
101572
101572
|
let threw = true;
|
|
101573
101573
|
try {
|
|
101574
|
-
this[_onopen](null, fs$
|
|
101574
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101575
101575
|
threw = false;
|
|
101576
101576
|
} finally {
|
|
101577
101577
|
if (threw) this[_close]();
|
|
@@ -101585,7 +101585,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101585
101585
|
do {
|
|
101586
101586
|
const buf = this[_makeBuf]();
|
|
101587
101587
|
/* istanbul ignore next */
|
|
101588
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101588
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101589
101589
|
if (!this[_handleChunk](br, buf)) break;
|
|
101590
101590
|
} while (true);
|
|
101591
101591
|
this[_reading] = false;
|
|
@@ -101599,7 +101599,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101599
101599
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101600
101600
|
const fd = this[_fd];
|
|
101601
101601
|
this[_fd] = null;
|
|
101602
|
-
fs$
|
|
101602
|
+
fs$11.closeSync(fd);
|
|
101603
101603
|
this.emit("close");
|
|
101604
101604
|
}
|
|
101605
101605
|
}
|
|
@@ -101644,7 +101644,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101644
101644
|
this.emit("error", er);
|
|
101645
101645
|
}
|
|
101646
101646
|
[_open]() {
|
|
101647
|
-
fs$
|
|
101647
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101648
101648
|
}
|
|
101649
101649
|
[_onopen](er, fd) {
|
|
101650
101650
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101679,7 +101679,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101679
101679
|
return true;
|
|
101680
101680
|
}
|
|
101681
101681
|
[_write](buf) {
|
|
101682
|
-
fs$
|
|
101682
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101683
101683
|
}
|
|
101684
101684
|
[_onwrite](er, bw) {
|
|
101685
101685
|
if (er) this[_onerror](er);
|
|
@@ -101713,7 +101713,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101713
101713
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101714
101714
|
const fd = this[_fd];
|
|
101715
101715
|
this[_fd] = null;
|
|
101716
|
-
fs$
|
|
101716
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101717
101717
|
}
|
|
101718
101718
|
}
|
|
101719
101719
|
};
|
|
@@ -101721,28 +101721,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101721
101721
|
[_open]() {
|
|
101722
101722
|
let fd;
|
|
101723
101723
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101724
|
-
fd = fs$
|
|
101724
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101725
101725
|
} catch (er) {
|
|
101726
101726
|
if (er.code === "ENOENT") {
|
|
101727
101727
|
this[_flags] = "w";
|
|
101728
101728
|
return this[_open]();
|
|
101729
101729
|
} else throw er;
|
|
101730
101730
|
}
|
|
101731
|
-
else fd = fs$
|
|
101731
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101732
101732
|
this[_onopen](null, fd);
|
|
101733
101733
|
}
|
|
101734
101734
|
[_close]() {
|
|
101735
101735
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101736
101736
|
const fd = this[_fd];
|
|
101737
101737
|
this[_fd] = null;
|
|
101738
|
-
fs$
|
|
101738
|
+
fs$11.closeSync(fd);
|
|
101739
101739
|
this.emit("close");
|
|
101740
101740
|
}
|
|
101741
101741
|
}
|
|
101742
101742
|
[_write](buf) {
|
|
101743
101743
|
let threw = true;
|
|
101744
101744
|
try {
|
|
101745
|
-
this[_onwrite](null, fs$
|
|
101745
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101746
101746
|
threw = false;
|
|
101747
101747
|
} finally {
|
|
101748
101748
|
if (threw) try {
|
|
@@ -101759,7 +101759,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101759
101759
|
//#endregion
|
|
101760
101760
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101761
101761
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101762
|
-
const fs$
|
|
101762
|
+
const fs$10 = require("fs/promises");
|
|
101763
101763
|
const fsm = require_lib$15();
|
|
101764
101764
|
const ssri = require_lib$17();
|
|
101765
101765
|
const contentPath = require_path();
|
|
@@ -101770,13 +101770,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101770
101770
|
const { size } = opts;
|
|
101771
101771
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101772
101772
|
return {
|
|
101773
|
-
stat: size ? { size } : await fs$
|
|
101773
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101774
101774
|
cpath,
|
|
101775
101775
|
sri
|
|
101776
101776
|
};
|
|
101777
101777
|
});
|
|
101778
101778
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101779
|
-
const data = await fs$
|
|
101779
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101780
101780
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101781
101781
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101782
101782
|
return data;
|
|
@@ -101799,7 +101799,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101799
101799
|
Promise.resolve().then(async () => {
|
|
101800
101800
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101801
101801
|
return {
|
|
101802
|
-
stat: size ? { size } : await fs$
|
|
101802
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101803
101803
|
cpath,
|
|
101804
101804
|
sri
|
|
101805
101805
|
};
|
|
@@ -101811,7 +101811,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101811
101811
|
module.exports.copy = copy;
|
|
101812
101812
|
function copy(cache, integrity, dest) {
|
|
101813
101813
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101814
|
-
return fs$
|
|
101814
|
+
return fs$10.copyFile(cpath, dest);
|
|
101815
101815
|
});
|
|
101816
101816
|
}
|
|
101817
101817
|
module.exports.hasContent = hasContent;
|
|
@@ -101819,7 +101819,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101819
101819
|
if (!integrity) return false;
|
|
101820
101820
|
try {
|
|
101821
101821
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101822
|
-
const stat = await fs$
|
|
101822
|
+
const stat = await fs$10.stat(cpath);
|
|
101823
101823
|
return {
|
|
101824
101824
|
size: stat.size,
|
|
101825
101825
|
sri,
|
|
@@ -102459,7 +102459,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102459
102459
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102460
102460
|
const events = require("events");
|
|
102461
102461
|
const contentPath = require_path();
|
|
102462
|
-
const fs$
|
|
102462
|
+
const fs$9 = require("fs/promises");
|
|
102463
102463
|
const { moveFile } = require_lib$16();
|
|
102464
102464
|
const { Minipass } = require_commonjs$10();
|
|
102465
102465
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102479,10 +102479,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102479
102479
|
const tmp = await makeTmp(cache, opts);
|
|
102480
102480
|
const hash = sri[algo].toString();
|
|
102481
102481
|
try {
|
|
102482
|
-
await fs$
|
|
102482
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102483
102483
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102484
102484
|
} finally {
|
|
102485
|
-
if (!tmp.moved) await fs$
|
|
102485
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102486
102486
|
recursive: true,
|
|
102487
102487
|
force: true
|
|
102488
102488
|
});
|
|
@@ -102536,7 +102536,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102536
102536
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102537
102537
|
return res;
|
|
102538
102538
|
} finally {
|
|
102539
|
-
if (!tmp.moved) await fs$
|
|
102539
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102540
102540
|
recursive: true,
|
|
102541
102541
|
force: true
|
|
102542
102542
|
});
|
|
@@ -102576,7 +102576,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102576
102576
|
}
|
|
102577
102577
|
async function makeTmp(cache, opts) {
|
|
102578
102578
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102579
|
-
await fs$
|
|
102579
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
102580
102580
|
return {
|
|
102581
102581
|
target: tmpTarget,
|
|
102582
102582
|
moved: false
|
|
@@ -102586,7 +102586,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102586
102586
|
const destination = contentPath(cache, sri);
|
|
102587
102587
|
const destDir = path$13.dirname(destination);
|
|
102588
102588
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102589
|
-
moveOperations.set(destination, fs$
|
|
102589
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102590
102590
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102591
102591
|
tmp.moved = true;
|
|
102592
102592
|
return tmp.moved;
|
|
@@ -106044,14 +106044,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106044
106044
|
//#endregion
|
|
106045
106045
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106046
106046
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106047
|
-
const fs$
|
|
106047
|
+
const fs$8 = require("fs/promises");
|
|
106048
106048
|
const contentPath = require_path();
|
|
106049
106049
|
const { hasContent } = require_read();
|
|
106050
106050
|
module.exports = rm;
|
|
106051
106051
|
async function rm(cache, integrity) {
|
|
106052
106052
|
const content = await hasContent(cache, integrity);
|
|
106053
106053
|
if (content && content.sri) {
|
|
106054
|
-
await fs$
|
|
106054
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106055
106055
|
recursive: true,
|
|
106056
106056
|
force: true
|
|
106057
106057
|
});
|
|
@@ -106333,8 +106333,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106333
106333
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106334
106334
|
const { Minipass } = require_commonjs$10();
|
|
106335
106335
|
const EE$2 = require("events").EventEmitter;
|
|
106336
|
-
const fs$
|
|
106337
|
-
const writev = fs$
|
|
106336
|
+
const fs$7 = require("fs");
|
|
106337
|
+
const writev = fs$7.writev;
|
|
106338
106338
|
const _autoClose = Symbol("_autoClose");
|
|
106339
106339
|
const _close = Symbol("_close");
|
|
106340
106340
|
const _ended = Symbol("_ended");
|
|
@@ -106394,7 +106394,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106394
106394
|
throw new TypeError("this is a readable stream");
|
|
106395
106395
|
}
|
|
106396
106396
|
[_open]() {
|
|
106397
|
-
fs$
|
|
106397
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106398
106398
|
}
|
|
106399
106399
|
[_onopen](er, fd) {
|
|
106400
106400
|
if (er) this[_onerror](er);
|
|
@@ -106413,7 +106413,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106413
106413
|
const buf = this[_makeBuf]();
|
|
106414
106414
|
/* istanbul ignore if */
|
|
106415
106415
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106416
|
-
fs$
|
|
106416
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106417
106417
|
}
|
|
106418
106418
|
}
|
|
106419
106419
|
[_onread](er, br, buf) {
|
|
@@ -106425,7 +106425,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106425
106425
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106426
106426
|
const fd = this[_fd];
|
|
106427
106427
|
this[_fd] = null;
|
|
106428
|
-
fs$
|
|
106428
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106429
106429
|
}
|
|
106430
106430
|
}
|
|
106431
106431
|
[_onerror](er) {
|
|
@@ -106463,7 +106463,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106463
106463
|
[_open]() {
|
|
106464
106464
|
let threw = true;
|
|
106465
106465
|
try {
|
|
106466
|
-
this[_onopen](null, fs$
|
|
106466
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106467
106467
|
threw = false;
|
|
106468
106468
|
} finally {
|
|
106469
106469
|
if (threw) this[_close]();
|
|
@@ -106477,7 +106477,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106477
106477
|
do {
|
|
106478
106478
|
const buf = this[_makeBuf]();
|
|
106479
106479
|
/* istanbul ignore next */
|
|
106480
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106480
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106481
106481
|
if (!this[_handleChunk](br, buf)) break;
|
|
106482
106482
|
} while (true);
|
|
106483
106483
|
this[_reading] = false;
|
|
@@ -106491,7 +106491,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106491
106491
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106492
106492
|
const fd = this[_fd];
|
|
106493
106493
|
this[_fd] = null;
|
|
106494
|
-
fs$
|
|
106494
|
+
fs$7.closeSync(fd);
|
|
106495
106495
|
this.emit("close");
|
|
106496
106496
|
}
|
|
106497
106497
|
}
|
|
@@ -106536,7 +106536,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106536
106536
|
this.emit("error", er);
|
|
106537
106537
|
}
|
|
106538
106538
|
[_open]() {
|
|
106539
|
-
fs$
|
|
106539
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106540
106540
|
}
|
|
106541
106541
|
[_onopen](er, fd) {
|
|
106542
106542
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106571,7 +106571,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106571
106571
|
return true;
|
|
106572
106572
|
}
|
|
106573
106573
|
[_write](buf) {
|
|
106574
|
-
fs$
|
|
106574
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106575
106575
|
}
|
|
106576
106576
|
[_onwrite](er, bw) {
|
|
106577
106577
|
if (er) this[_onerror](er);
|
|
@@ -106605,7 +106605,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106605
106605
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106606
106606
|
const fd = this[_fd];
|
|
106607
106607
|
this[_fd] = null;
|
|
106608
|
-
fs$
|
|
106608
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106609
106609
|
}
|
|
106610
106610
|
}
|
|
106611
106611
|
};
|
|
@@ -106613,28 +106613,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106613
106613
|
[_open]() {
|
|
106614
106614
|
let fd;
|
|
106615
106615
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106616
|
-
fd = fs$
|
|
106616
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106617
106617
|
} catch (er) {
|
|
106618
106618
|
if (er.code === "ENOENT") {
|
|
106619
106619
|
this[_flags] = "w";
|
|
106620
106620
|
return this[_open]();
|
|
106621
106621
|
} else throw er;
|
|
106622
106622
|
}
|
|
106623
|
-
else fd = fs$
|
|
106623
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106624
106624
|
this[_onopen](null, fd);
|
|
106625
106625
|
}
|
|
106626
106626
|
[_close]() {
|
|
106627
106627
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106628
106628
|
const fd = this[_fd];
|
|
106629
106629
|
this[_fd] = null;
|
|
106630
|
-
fs$
|
|
106630
|
+
fs$7.closeSync(fd);
|
|
106631
106631
|
this.emit("close");
|
|
106632
106632
|
}
|
|
106633
106633
|
}
|
|
106634
106634
|
[_write](buf) {
|
|
106635
106635
|
let threw = true;
|
|
106636
106636
|
try {
|
|
106637
|
-
this[_onwrite](null, fs$
|
|
106637
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106638
106638
|
threw = false;
|
|
106639
106639
|
} finally {
|
|
106640
106640
|
if (threw) try {
|
|
@@ -106651,7 +106651,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106651
106651
|
//#endregion
|
|
106652
106652
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106653
106653
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106654
|
-
const fs$
|
|
106654
|
+
const fs$6 = require("fs");
|
|
106655
106655
|
const path$9 = require("path");
|
|
106656
106656
|
const EE$1 = require("events").EventEmitter;
|
|
106657
106657
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106707,7 +106707,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106707
106707
|
return this;
|
|
106708
106708
|
}
|
|
106709
106709
|
readPackageJson(pj) {
|
|
106710
|
-
fs$
|
|
106710
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106711
106711
|
}
|
|
106712
106712
|
onPackageJson(pj, data) {
|
|
106713
106713
|
try {
|
|
@@ -106765,7 +106765,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106765
106765
|
}
|
|
106766
106766
|
readPackageJson(pj) {
|
|
106767
106767
|
try {
|
|
106768
|
-
this.onPackageJson(pj, fs$
|
|
106768
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106769
106769
|
} catch {}
|
|
106770
106770
|
return this;
|
|
106771
106771
|
}
|
|
@@ -106784,7 +106784,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106784
106784
|
}
|
|
106785
106785
|
};
|
|
106786
106786
|
const readdirNodeModules = (nm, cb) => {
|
|
106787
|
-
fs$
|
|
106787
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106788
106788
|
if (er) cb(er);
|
|
106789
106789
|
else {
|
|
106790
106790
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106793,7 +106793,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106793
106793
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106794
106794
|
let count = scopes.length;
|
|
106795
106795
|
scopes.forEach((scope) => {
|
|
106796
|
-
fs$
|
|
106796
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106797
106797
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106798
106798
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106799
106799
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106804,11 +106804,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106804
106804
|
});
|
|
106805
106805
|
};
|
|
106806
106806
|
const readdirNodeModulesSync = (nm) => {
|
|
106807
|
-
const set = fs$
|
|
106807
|
+
const set = fs$6.readdirSync(nm);
|
|
106808
106808
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106809
106809
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106810
106810
|
try {
|
|
106811
|
-
const pkgs = fs$
|
|
106811
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106812
106812
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106813
106813
|
} catch (er) {
|
|
106814
106814
|
return [scope];
|
|
@@ -106835,7 +106835,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106835
106835
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106836
106836
|
const bundled = require_lib$12();
|
|
106837
106837
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106838
|
-
const { resolve: resolve$8, basename: basename$4, dirname: dirname$
|
|
106838
|
+
const { resolve: resolve$8, basename: basename$4, dirname: dirname$7 } = require("path");
|
|
106839
106839
|
const normalizePackageBin = require_lib$21();
|
|
106840
106840
|
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106841
106841
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106874,9 +106874,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106874
106874
|
}));
|
|
106875
106875
|
if (pkg) {
|
|
106876
106876
|
if (pkg.bin) {
|
|
106877
|
-
const dir = dirname$
|
|
106877
|
+
const dir = dirname$7(path$50);
|
|
106878
106878
|
const scope = basename$4(dir);
|
|
106879
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106879
|
+
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106880
106880
|
const binFiles = [];
|
|
106881
106881
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106882
106882
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112148,7 +112148,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112148
112148
|
//#endregion
|
|
112149
112149
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112150
112150
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112151
|
-
const fs$
|
|
112151
|
+
const fs$5 = require("fs");
|
|
112152
112152
|
const path$8 = require("path");
|
|
112153
112153
|
const EE = require("events").EventEmitter;
|
|
112154
112154
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112187,7 +112187,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112187
112187
|
return ret;
|
|
112188
112188
|
}
|
|
112189
112189
|
start() {
|
|
112190
|
-
fs$
|
|
112190
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112191
112191
|
return this;
|
|
112192
112192
|
}
|
|
112193
112193
|
isIgnoreFile(e) {
|
|
@@ -112211,7 +112211,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112211
112211
|
}
|
|
112212
112212
|
addIgnoreFile(file, then) {
|
|
112213
112213
|
const ig = path$8.resolve(this.path, file);
|
|
112214
|
-
fs$
|
|
112214
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112215
112215
|
}
|
|
112216
112216
|
onReadIgnoreFile(file, data, then) {
|
|
112217
112217
|
const mmopt = {
|
|
@@ -112267,11 +112267,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112267
112267
|
}
|
|
112268
112268
|
stat({ entry, file, dir }, then) {
|
|
112269
112269
|
const abs = this.path + "/" + entry;
|
|
112270
|
-
fs$
|
|
112270
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112271
112271
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112272
112272
|
else {
|
|
112273
112273
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112274
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112274
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112275
112275
|
if (statErr) this.emit("error", statErr);
|
|
112276
112276
|
else this.onstat({
|
|
112277
112277
|
st: statResult,
|
|
@@ -112325,18 +112325,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112325
112325
|
};
|
|
112326
112326
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112327
112327
|
start() {
|
|
112328
|
-
this.onReaddir(fs$
|
|
112328
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112329
112329
|
return this;
|
|
112330
112330
|
}
|
|
112331
112331
|
addIgnoreFile(file, then) {
|
|
112332
112332
|
const ig = path$8.resolve(this.path, file);
|
|
112333
|
-
this.onReadIgnoreFile(file, fs$
|
|
112333
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112334
112334
|
}
|
|
112335
112335
|
stat({ entry, file, dir }, then) {
|
|
112336
112336
|
const abs = this.path + "/" + entry;
|
|
112337
|
-
let st = fs$
|
|
112337
|
+
let st = fs$5.lstatSync(abs);
|
|
112338
112338
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112339
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112339
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112340
112340
|
this.onstat({
|
|
112341
112341
|
st,
|
|
112342
112342
|
entry,
|
|
@@ -112367,7 +112367,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112367
112367
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112368
112368
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112369
112369
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112370
|
-
const { basename: basename$3, dirname: dirname$
|
|
112370
|
+
const { basename: basename$3, dirname: dirname$6, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
|
|
112371
112371
|
const { log } = require_lib$29();
|
|
112372
112372
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112373
112373
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112400,7 +112400,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112400
112400
|
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112401
112401
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112402
112402
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112403
|
-
const ignoreContent = readFile$4(join$
|
|
112403
|
+
const ignoreContent = readFile$4(join$8(root, file), { encoding: "utf8" });
|
|
112404
112404
|
result.push(ignoreContent);
|
|
112405
112405
|
break;
|
|
112406
112406
|
} catch (err) {
|
|
@@ -112409,8 +112409,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112409
112409
|
}
|
|
112410
112410
|
if (!rel) return result;
|
|
112411
112411
|
const firstRel = rel.split(sep, 1)[0];
|
|
112412
|
-
const newRoot = join$
|
|
112413
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112412
|
+
const newRoot = join$8(root, firstRel);
|
|
112413
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
112414
112414
|
};
|
|
112415
112415
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112416
112416
|
constructor(tree, opts) {
|
|
@@ -112439,7 +112439,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112439
112439
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112440
112440
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112441
112441
|
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112442
|
-
const relpath = relative(options.prefix, dirname$
|
|
112442
|
+
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112443
112443
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112444
112444
|
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112445
112445
|
}
|
|
@@ -112477,7 +112477,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112477
112477
|
let ignoreFiles = null;
|
|
112478
112478
|
if (this.tree.workspaces) {
|
|
112479
112479
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112480
|
-
const entryPath = join$
|
|
112480
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
112481
112481
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112482
112482
|
defaultRules,
|
|
112483
112483
|
"package.json",
|
|
@@ -112537,7 +112537,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112537
112537
|
if (file.endsWith("/*")) file += "*";
|
|
112538
112538
|
const inverse = `!${file}`;
|
|
112539
112539
|
try {
|
|
112540
|
-
const stat = lstat$1(join$
|
|
112540
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112541
112541
|
if (stat.isFile()) {
|
|
112542
112542
|
strict.unshift(inverse);
|
|
112543
112543
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112594,7 +112594,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112594
112594
|
walker.start();
|
|
112595
112595
|
});
|
|
112596
112596
|
const relativeFrom = relative(this.root, walker.path);
|
|
112597
|
-
for (const file of bundled) this.result.add(join$
|
|
112597
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
112598
112598
|
}
|
|
112599
112599
|
}
|
|
112600
112600
|
};
|
|
@@ -112618,7 +112618,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112618
112618
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112619
112619
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112620
112620
|
const { log } = require_lib$29();
|
|
112621
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112621
|
+
const { resolve: resolve$5, dirname: dirname$5, delimiter: delimiter$1 } = require("path");
|
|
112622
112622
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112623
112623
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112624
112624
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
|
|
@@ -112636,7 +112636,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112636
112636
|
do {
|
|
112637
112637
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112638
112638
|
pp = p;
|
|
112639
|
-
p = dirname$
|
|
112639
|
+
p = dirname$5(p);
|
|
112640
112640
|
} while (p !== pp);
|
|
112641
112641
|
pathArr.push(nodeGypPath, PATH);
|
|
112642
112642
|
const pathVal = pathArr.join(delimiter$1);
|
|
@@ -112704,8 +112704,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112704
112704
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112705
112705
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112706
112706
|
const util$2 = require("util");
|
|
112707
|
-
const fs$
|
|
112708
|
-
const { stat } = fs$
|
|
112707
|
+
const fs$4 = require("fs");
|
|
112708
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112709
112709
|
async function isNodeGypPackage(path) {
|
|
112710
112710
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112711
112711
|
}
|
|
@@ -123677,7 +123677,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123677
123677
|
//#endregion
|
|
123678
123678
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123679
123679
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123680
|
-
const fs$
|
|
123680
|
+
const fs$3 = require("fs");
|
|
123681
123681
|
const npa = require_npa();
|
|
123682
123682
|
const { URL: URL$2 } = require("url");
|
|
123683
123683
|
const regFromURI = (uri, opts) => {
|
|
@@ -123717,7 +123717,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123717
123717
|
};
|
|
123718
123718
|
const maybeReadFile = (file) => {
|
|
123719
123719
|
try {
|
|
123720
|
-
return fs$
|
|
123720
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123721
123721
|
} catch (er) {
|
|
123722
123722
|
if (er.code !== "ENOENT") throw er;
|
|
123723
123723
|
return null;
|
|
@@ -139962,7 +139962,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139962
139962
|
exports.Updater = void 0;
|
|
139963
139963
|
const models_1 = require_dist$4();
|
|
139964
139964
|
const debug_1 = __importDefault(require_src$1());
|
|
139965
|
-
const fs$
|
|
139965
|
+
const fs$2 = __importStar(require("fs"));
|
|
139966
139966
|
const path$7 = __importStar(require("path"));
|
|
139967
139967
|
const package_json_1 = require_package$1();
|
|
139968
139968
|
const config_1 = require_config$1();
|
|
@@ -140033,17 +140033,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140033
140033
|
}
|
|
140034
140034
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140035
140035
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140036
|
-
await targetInfo.verify(fs$
|
|
140036
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140037
140037
|
log("WRITE %s", targetPath);
|
|
140038
|
-
fs$
|
|
140038
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140039
140039
|
});
|
|
140040
140040
|
return targetPath;
|
|
140041
140041
|
}
|
|
140042
140042
|
async findCachedTarget(targetInfo, filePath) {
|
|
140043
140043
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140044
140044
|
try {
|
|
140045
|
-
if (fs$
|
|
140046
|
-
await targetInfo.verify(fs$
|
|
140045
|
+
if (fs$2.existsSync(filePath)) {
|
|
140046
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140047
140047
|
return filePath;
|
|
140048
140048
|
}
|
|
140049
140049
|
} catch (error) {
|
|
@@ -140053,7 +140053,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140053
140053
|
loadLocalMetadata(fileName) {
|
|
140054
140054
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
140055
140055
|
log("READ %s", filePath);
|
|
140056
|
-
return fs$
|
|
140056
|
+
return fs$2.readFileSync(filePath);
|
|
140057
140057
|
}
|
|
140058
140058
|
async loadRoot() {
|
|
140059
140059
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140171,7 +140171,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140171
140171
|
try {
|
|
140172
140172
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
140173
140173
|
log("WRITE %s", filePath);
|
|
140174
|
-
fs$
|
|
140174
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140175
140175
|
} catch (error) {
|
|
140176
140176
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140177
140177
|
}
|
|
@@ -141987,7 +141987,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
141987
141987
|
//#endregion
|
|
141988
141988
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
141989
141989
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
141990
|
-
const { basename: basename$2, dirname: dirname$
|
|
141990
|
+
const { basename: basename$2, dirname: dirname$4 } = require("node:path");
|
|
141991
141991
|
const { rm: rm$4, mkdir: mkdir$5 } = require("node:fs/promises");
|
|
141992
141992
|
const PackageJson = require_lib$18();
|
|
141993
141993
|
const cacache = require_lib$14();
|
|
@@ -142036,7 +142036,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142036
142036
|
this.npmBin = opts.npmBin || "npm";
|
|
142037
142037
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142038
142038
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142039
|
-
`--cache=${dirname$
|
|
142039
|
+
`--cache=${dirname$4(this.cache)}`,
|
|
142040
142040
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142041
142041
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142042
142042
|
`--offline=${!!this.offline}`,
|
|
@@ -142192,7 +142192,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142192
142192
|
}));
|
|
142193
142193
|
}
|
|
142194
142194
|
async tarballFile(dest) {
|
|
142195
|
-
await mkdir$5(dirname$
|
|
142195
|
+
await mkdir$5(dirname$4(dest), { recursive: true });
|
|
142196
142196
|
return this.#toFile(dest);
|
|
142197
142197
|
}
|
|
142198
142198
|
#extract(dest, tarball) {
|
|
@@ -150613,7 +150613,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150613
150613
|
}
|
|
150614
150614
|
})();
|
|
150615
150615
|
}));
|
|
150616
|
-
|
|
150616
|
+
//#endregion
|
|
150617
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150618
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150617
150619
|
const { promisify } = require("util");
|
|
150618
150620
|
const path$3 = require("path");
|
|
150619
150621
|
const { createHash } = require("crypto");
|
|
@@ -151065,11 +151067,12 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151065
151067
|
response.writeHead(response.statusCode || 200, headers);
|
|
151066
151068
|
stream.pipe(response);
|
|
151067
151069
|
};
|
|
151068
|
-
}))
|
|
151069
|
-
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151070
|
-
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151070
|
+
}));
|
|
151071
151071
|
//#endregion
|
|
151072
151072
|
//#region ../../packages/core-node/src/server.ts
|
|
151073
|
+
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151074
|
+
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151075
|
+
require_src();
|
|
151073
151076
|
const sendStartupProgress = (message) => {
|
|
151074
151077
|
console.log(`[Startup Progress] ${message}`);
|
|
151075
151078
|
webSocketServer.broadcast("startup:progress", {
|
|
@@ -151511,7 +151514,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151511
151514
|
}
|
|
151512
151515
|
//#endregion
|
|
151513
151516
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151514
|
-
const { join: join$
|
|
151517
|
+
const { join: join$6 } = node_path.default;
|
|
151515
151518
|
//#endregion
|
|
151516
151519
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151517
151520
|
const localPluginsMap = /* @__PURE__ */ new Map();
|