@pipelab/plugin-filesystem 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 +338 -335
- package/dist/index.mjs +11 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2115,8 +2115,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2115
2115
|
completed: false
|
|
2116
2116
|
}
|
|
2117
2117
|
},
|
|
2118
|
-
plugins: DEFAULT_PLUGINS
|
|
2119
|
-
isInternalMigrationBannerClosed: false
|
|
2118
|
+
plugins: DEFAULT_PLUGINS
|
|
2120
2119
|
});
|
|
2121
2120
|
settingsMigratorInternal.createMigrations({
|
|
2122
2121
|
defaultValue: defaultAppSettings,
|
|
@@ -2167,12 +2166,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2167
2166
|
createMigration({
|
|
2168
2167
|
version: "6.0.0",
|
|
2169
2168
|
up: (state) => {
|
|
2170
|
-
const { cacheFolder
|
|
2169
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2171
2170
|
return {
|
|
2172
2171
|
...rest,
|
|
2172
|
+
cacheFolder,
|
|
2173
2173
|
agents: [],
|
|
2174
|
-
plugins: DEFAULT_PLUGINS
|
|
2175
|
-
isInternalMigrationBannerClosed: false
|
|
2174
|
+
plugins: DEFAULT_PLUGINS
|
|
2176
2175
|
};
|
|
2177
2176
|
}
|
|
2178
2177
|
}),
|
|
@@ -2525,7 +2524,8 @@ object({
|
|
|
2525
2524
|
enabled: boolean(),
|
|
2526
2525
|
description: string()
|
|
2527
2526
|
})),
|
|
2528
|
-
|
|
2527
|
+
cacheFolder: optional(string()),
|
|
2528
|
+
tempFolder: optional(string())
|
|
2529
2529
|
});
|
|
2530
2530
|
const ConnectionValidator = looseObject({
|
|
2531
2531
|
id: string(),
|
|
@@ -49922,7 +49922,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49922
49922
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49923
49923
|
module.exports = isexe;
|
|
49924
49924
|
isexe.sync = sync;
|
|
49925
|
-
var fs$
|
|
49925
|
+
var fs$39 = require("fs");
|
|
49926
49926
|
function checkPathExt(path, options) {
|
|
49927
49927
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49928
49928
|
if (!pathext) return true;
|
|
@@ -49939,12 +49939,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49939
49939
|
return checkPathExt(path, options);
|
|
49940
49940
|
}
|
|
49941
49941
|
function isexe(path, options, cb) {
|
|
49942
|
-
fs$
|
|
49942
|
+
fs$39.stat(path, function(er, stat) {
|
|
49943
49943
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49944
49944
|
});
|
|
49945
49945
|
}
|
|
49946
49946
|
function sync(path, options) {
|
|
49947
|
-
return checkStat(fs$
|
|
49947
|
+
return checkStat(fs$39.statSync(path), path, options);
|
|
49948
49948
|
}
|
|
49949
49949
|
}));
|
|
49950
49950
|
//#endregion
|
|
@@ -49952,14 +49952,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49952
49952
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49953
49953
|
module.exports = isexe;
|
|
49954
49954
|
isexe.sync = sync;
|
|
49955
|
-
var fs$
|
|
49955
|
+
var fs$38 = require("fs");
|
|
49956
49956
|
function isexe(path, options, cb) {
|
|
49957
|
-
fs$
|
|
49957
|
+
fs$38.stat(path, function(er, stat) {
|
|
49958
49958
|
cb(er, er ? false : checkStat(stat, options));
|
|
49959
49959
|
});
|
|
49960
49960
|
}
|
|
49961
49961
|
function sync(path, options) {
|
|
49962
|
-
return checkStat(fs$
|
|
49962
|
+
return checkStat(fs$38.statSync(path), options);
|
|
49963
49963
|
}
|
|
49964
49964
|
function checkStat(stat, options) {
|
|
49965
49965
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50174,16 +50174,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50174
50174
|
//#endregion
|
|
50175
50175
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50176
50176
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50177
|
-
const fs$
|
|
50177
|
+
const fs$37 = require("fs");
|
|
50178
50178
|
const shebangCommand = require_shebang_command();
|
|
50179
50179
|
function readShebang(command) {
|
|
50180
50180
|
const size = 150;
|
|
50181
50181
|
const buffer = Buffer.alloc(size);
|
|
50182
50182
|
let fd;
|
|
50183
50183
|
try {
|
|
50184
|
-
fd = fs$
|
|
50185
|
-
fs$
|
|
50186
|
-
fs$
|
|
50184
|
+
fd = fs$37.openSync(command, "r");
|
|
50185
|
+
fs$37.readSync(fd, buffer, 0, size, 0);
|
|
50186
|
+
fs$37.closeSync(fd);
|
|
50187
50187
|
} catch (e) {}
|
|
50188
50188
|
return shebangCommand(buffer.toString());
|
|
50189
50189
|
}
|
|
@@ -57140,7 +57140,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57140
57140
|
const { Minipass } = require_minipass$4();
|
|
57141
57141
|
const Pax = require_pax();
|
|
57142
57142
|
const Header = require_header();
|
|
57143
|
-
const fs$
|
|
57143
|
+
const fs$36 = require("fs");
|
|
57144
57144
|
const path$34 = require("path");
|
|
57145
57145
|
const normPath = require_normalize_windows_path();
|
|
57146
57146
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57228,7 +57228,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57228
57228
|
return super.emit(ev, ...data);
|
|
57229
57229
|
}
|
|
57230
57230
|
[LSTAT]() {
|
|
57231
|
-
fs$
|
|
57231
|
+
fs$36.lstat(this.absolute, (er, stat) => {
|
|
57232
57232
|
if (er) return this.emit("error", er);
|
|
57233
57233
|
this[ONLSTAT](stat);
|
|
57234
57234
|
});
|
|
@@ -57293,7 +57293,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57293
57293
|
this.end();
|
|
57294
57294
|
}
|
|
57295
57295
|
[SYMLINK]() {
|
|
57296
|
-
fs$
|
|
57296
|
+
fs$36.readlink(this.absolute, (er, linkpath) => {
|
|
57297
57297
|
if (er) return this.emit("error", er);
|
|
57298
57298
|
this[ONREADLINK](linkpath);
|
|
57299
57299
|
});
|
|
@@ -57324,7 +57324,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57324
57324
|
this[OPENFILE]();
|
|
57325
57325
|
}
|
|
57326
57326
|
[OPENFILE]() {
|
|
57327
|
-
fs$
|
|
57327
|
+
fs$36.open(this.absolute, "r", (er, fd) => {
|
|
57328
57328
|
if (er) return this.emit("error", er);
|
|
57329
57329
|
this[ONOPENFILE](fd);
|
|
57330
57330
|
});
|
|
@@ -57344,13 +57344,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57344
57344
|
}
|
|
57345
57345
|
[READ]() {
|
|
57346
57346
|
const { fd, buf, offset, length, pos } = this;
|
|
57347
|
-
fs$
|
|
57347
|
+
fs$36.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57348
57348
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57349
57349
|
this[ONREAD](bytesRead);
|
|
57350
57350
|
});
|
|
57351
57351
|
}
|
|
57352
57352
|
[CLOSE](cb) {
|
|
57353
|
-
fs$
|
|
57353
|
+
fs$36.close(this.fd, cb);
|
|
57354
57354
|
}
|
|
57355
57355
|
[ONREAD](bytesRead) {
|
|
57356
57356
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57406,19 +57406,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57406
57406
|
});
|
|
57407
57407
|
var WriteEntrySync = class extends WriteEntry {
|
|
57408
57408
|
[LSTAT]() {
|
|
57409
|
-
this[ONLSTAT](fs$
|
|
57409
|
+
this[ONLSTAT](fs$36.lstatSync(this.absolute));
|
|
57410
57410
|
}
|
|
57411
57411
|
[SYMLINK]() {
|
|
57412
|
-
this[ONREADLINK](fs$
|
|
57412
|
+
this[ONREADLINK](fs$36.readlinkSync(this.absolute));
|
|
57413
57413
|
}
|
|
57414
57414
|
[OPENFILE]() {
|
|
57415
|
-
this[ONOPENFILE](fs$
|
|
57415
|
+
this[ONOPENFILE](fs$36.openSync(this.absolute, "r"));
|
|
57416
57416
|
}
|
|
57417
57417
|
[READ]() {
|
|
57418
57418
|
let threw = true;
|
|
57419
57419
|
try {
|
|
57420
57420
|
const { fd, buf, offset, length, pos } = this;
|
|
57421
|
-
const bytesRead = fs$
|
|
57421
|
+
const bytesRead = fs$36.readSync(fd, buf, offset, length, pos);
|
|
57422
57422
|
this[ONREAD](bytesRead);
|
|
57423
57423
|
threw = false;
|
|
57424
57424
|
} finally {
|
|
@@ -57431,7 +57431,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57431
57431
|
cb();
|
|
57432
57432
|
}
|
|
57433
57433
|
[CLOSE](cb) {
|
|
57434
|
-
fs$
|
|
57434
|
+
fs$36.closeSync(this.fd);
|
|
57435
57435
|
cb();
|
|
57436
57436
|
}
|
|
57437
57437
|
};
|
|
@@ -57828,7 +57828,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57828
57828
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57829
57829
|
const WRITE = Symbol("write");
|
|
57830
57830
|
const ONDRAIN = Symbol("ondrain");
|
|
57831
|
-
const fs$
|
|
57831
|
+
const fs$35 = require("fs");
|
|
57832
57832
|
const path$33 = require("path");
|
|
57833
57833
|
const warner = require_warn_mixin();
|
|
57834
57834
|
const normPath = require_normalize_windows_path();
|
|
@@ -57917,7 +57917,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57917
57917
|
[STAT](job) {
|
|
57918
57918
|
job.pending = true;
|
|
57919
57919
|
this[JOBS] += 1;
|
|
57920
|
-
fs$
|
|
57920
|
+
fs$35[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57921
57921
|
job.pending = false;
|
|
57922
57922
|
this[JOBS] -= 1;
|
|
57923
57923
|
if (er) this.emit("error", er);
|
|
@@ -57933,7 +57933,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57933
57933
|
[READDIR](job) {
|
|
57934
57934
|
job.pending = true;
|
|
57935
57935
|
this[JOBS] += 1;
|
|
57936
|
-
fs$
|
|
57936
|
+
fs$35.readdir(job.absolute, (er, entries) => {
|
|
57937
57937
|
job.pending = false;
|
|
57938
57938
|
this[JOBS] -= 1;
|
|
57939
57939
|
if (er) return this.emit("error", er);
|
|
@@ -58051,10 +58051,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58051
58051
|
resume() {}
|
|
58052
58052
|
[STAT](job) {
|
|
58053
58053
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58054
|
-
this[ONSTAT](job, fs$
|
|
58054
|
+
this[ONSTAT](job, fs$35[stat](job.absolute));
|
|
58055
58055
|
}
|
|
58056
58056
|
[READDIR](job, stat) {
|
|
58057
|
-
this[ONREADDIR](job, fs$
|
|
58057
|
+
this[ONREADDIR](job, fs$35.readdirSync(job.absolute));
|
|
58058
58058
|
}
|
|
58059
58059
|
[PIPE](job) {
|
|
58060
58060
|
const source = job.entry;
|
|
@@ -58510,8 +58510,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58510
58510
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58511
58511
|
const MiniPass = require_minipass$2();
|
|
58512
58512
|
const EE$11 = require("events").EventEmitter;
|
|
58513
|
-
const fs$
|
|
58514
|
-
let writev = fs$
|
|
58513
|
+
const fs$34 = require("fs");
|
|
58514
|
+
let writev = fs$34.writev;
|
|
58515
58515
|
/* istanbul ignore next */
|
|
58516
58516
|
if (!writev) {
|
|
58517
58517
|
const binding = process.binding("fs");
|
|
@@ -58582,7 +58582,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58582
58582
|
throw new TypeError("this is a readable stream");
|
|
58583
58583
|
}
|
|
58584
58584
|
[_open]() {
|
|
58585
|
-
fs$
|
|
58585
|
+
fs$34.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58586
58586
|
}
|
|
58587
58587
|
[_onopen](er, fd) {
|
|
58588
58588
|
if (er) this[_onerror](er);
|
|
@@ -58601,7 +58601,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58601
58601
|
const buf = this[_makeBuf]();
|
|
58602
58602
|
/* istanbul ignore if */
|
|
58603
58603
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58604
|
-
fs$
|
|
58604
|
+
fs$34.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58605
58605
|
}
|
|
58606
58606
|
}
|
|
58607
58607
|
[_onread](er, br, buf) {
|
|
@@ -58613,7 +58613,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58613
58613
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58614
58614
|
const fd = this[_fd];
|
|
58615
58615
|
this[_fd] = null;
|
|
58616
|
-
fs$
|
|
58616
|
+
fs$34.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58617
58617
|
}
|
|
58618
58618
|
}
|
|
58619
58619
|
[_onerror](er) {
|
|
@@ -58651,7 +58651,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58651
58651
|
[_open]() {
|
|
58652
58652
|
let threw = true;
|
|
58653
58653
|
try {
|
|
58654
|
-
this[_onopen](null, fs$
|
|
58654
|
+
this[_onopen](null, fs$34.openSync(this[_path], "r"));
|
|
58655
58655
|
threw = false;
|
|
58656
58656
|
} finally {
|
|
58657
58657
|
if (threw) this[_close]();
|
|
@@ -58665,7 +58665,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58665
58665
|
do {
|
|
58666
58666
|
const buf = this[_makeBuf]();
|
|
58667
58667
|
/* istanbul ignore next */
|
|
58668
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58668
|
+
const br = buf.length === 0 ? 0 : fs$34.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58669
58669
|
if (!this[_handleChunk](br, buf)) break;
|
|
58670
58670
|
} while (true);
|
|
58671
58671
|
this[_reading] = false;
|
|
@@ -58679,7 +58679,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58679
58679
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58680
58680
|
const fd = this[_fd];
|
|
58681
58681
|
this[_fd] = null;
|
|
58682
|
-
fs$
|
|
58682
|
+
fs$34.closeSync(fd);
|
|
58683
58683
|
this.emit("close");
|
|
58684
58684
|
}
|
|
58685
58685
|
}
|
|
@@ -58724,7 +58724,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58724
58724
|
this.emit("error", er);
|
|
58725
58725
|
}
|
|
58726
58726
|
[_open]() {
|
|
58727
|
-
fs$
|
|
58727
|
+
fs$34.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58728
58728
|
}
|
|
58729
58729
|
[_onopen](er, fd) {
|
|
58730
58730
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58759,7 +58759,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58759
58759
|
return true;
|
|
58760
58760
|
}
|
|
58761
58761
|
[_write](buf) {
|
|
58762
|
-
fs$
|
|
58762
|
+
fs$34.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58763
58763
|
}
|
|
58764
58764
|
[_onwrite](er, bw) {
|
|
58765
58765
|
if (er) this[_onerror](er);
|
|
@@ -58793,7 +58793,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58793
58793
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58794
58794
|
const fd = this[_fd];
|
|
58795
58795
|
this[_fd] = null;
|
|
58796
|
-
fs$
|
|
58796
|
+
fs$34.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58797
58797
|
}
|
|
58798
58798
|
}
|
|
58799
58799
|
};
|
|
@@ -58801,28 +58801,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58801
58801
|
[_open]() {
|
|
58802
58802
|
let fd;
|
|
58803
58803
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58804
|
-
fd = fs$
|
|
58804
|
+
fd = fs$34.openSync(this[_path], this[_flags], this[_mode]);
|
|
58805
58805
|
} catch (er) {
|
|
58806
58806
|
if (er.code === "ENOENT") {
|
|
58807
58807
|
this[_flags] = "w";
|
|
58808
58808
|
return this[_open]();
|
|
58809
58809
|
} else throw er;
|
|
58810
58810
|
}
|
|
58811
|
-
else fd = fs$
|
|
58811
|
+
else fd = fs$34.openSync(this[_path], this[_flags], this[_mode]);
|
|
58812
58812
|
this[_onopen](null, fd);
|
|
58813
58813
|
}
|
|
58814
58814
|
[_close]() {
|
|
58815
58815
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58816
58816
|
const fd = this[_fd];
|
|
58817
58817
|
this[_fd] = null;
|
|
58818
|
-
fs$
|
|
58818
|
+
fs$34.closeSync(fd);
|
|
58819
58819
|
this.emit("close");
|
|
58820
58820
|
}
|
|
58821
58821
|
}
|
|
58822
58822
|
[_write](buf) {
|
|
58823
58823
|
let threw = true;
|
|
58824
58824
|
try {
|
|
58825
|
-
this[_onwrite](null, fs$
|
|
58825
|
+
this[_onwrite](null, fs$34.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58826
58826
|
threw = false;
|
|
58827
58827
|
} finally {
|
|
58828
58828
|
if (threw) try {
|
|
@@ -59187,7 +59187,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59187
59187
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59188
59188
|
const hlo = require_high_level_opt();
|
|
59189
59189
|
const Parser = require_parse$4();
|
|
59190
|
-
const fs$
|
|
59190
|
+
const fs$33 = require("fs");
|
|
59191
59191
|
const fsm = require_fs_minipass();
|
|
59192
59192
|
const path$32 = require("path");
|
|
59193
59193
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59228,15 +59228,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59228
59228
|
let threw = true;
|
|
59229
59229
|
let fd;
|
|
59230
59230
|
try {
|
|
59231
|
-
const stat = fs$
|
|
59231
|
+
const stat = fs$33.statSync(file);
|
|
59232
59232
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59233
|
-
if (stat.size < readSize) p.end(fs$
|
|
59233
|
+
if (stat.size < readSize) p.end(fs$33.readFileSync(file));
|
|
59234
59234
|
else {
|
|
59235
59235
|
let pos = 0;
|
|
59236
59236
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59237
|
-
fd = fs$
|
|
59237
|
+
fd = fs$33.openSync(file, "r");
|
|
59238
59238
|
while (pos < stat.size) {
|
|
59239
|
-
const bytesRead = fs$
|
|
59239
|
+
const bytesRead = fs$33.readSync(fd, buf, 0, readSize, pos);
|
|
59240
59240
|
pos += bytesRead;
|
|
59241
59241
|
p.write(buf.slice(0, bytesRead));
|
|
59242
59242
|
}
|
|
@@ -59245,7 +59245,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59245
59245
|
threw = false;
|
|
59246
59246
|
} finally {
|
|
59247
59247
|
if (threw && fd) try {
|
|
59248
|
-
fs$
|
|
59248
|
+
fs$33.closeSync(fd);
|
|
59249
59249
|
} catch (er) {}
|
|
59250
59250
|
}
|
|
59251
59251
|
};
|
|
@@ -59256,7 +59256,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59256
59256
|
const p = new Promise((resolve, reject) => {
|
|
59257
59257
|
parse.on("error", reject);
|
|
59258
59258
|
parse.on("end", resolve);
|
|
59259
|
-
fs$
|
|
59259
|
+
fs$33.stat(file, (er, stat) => {
|
|
59260
59260
|
if (er) reject(er);
|
|
59261
59261
|
else {
|
|
59262
59262
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59348,7 +59348,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59348
59348
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59349
59349
|
const hlo = require_high_level_opt();
|
|
59350
59350
|
const Pack = require_pack$1();
|
|
59351
|
-
const fs$
|
|
59351
|
+
const fs$32 = require("fs");
|
|
59352
59352
|
const fsm = require_fs_minipass();
|
|
59353
59353
|
const t = require_list();
|
|
59354
59354
|
const path$30 = require("path");
|
|
@@ -59368,16 +59368,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59368
59368
|
let position;
|
|
59369
59369
|
try {
|
|
59370
59370
|
try {
|
|
59371
|
-
fd = fs$
|
|
59371
|
+
fd = fs$32.openSync(opt.file, "r+");
|
|
59372
59372
|
} catch (er) {
|
|
59373
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59373
|
+
if (er.code === "ENOENT") fd = fs$32.openSync(opt.file, "w+");
|
|
59374
59374
|
else throw er;
|
|
59375
59375
|
}
|
|
59376
|
-
const st = fs$
|
|
59376
|
+
const st = fs$32.fstatSync(fd);
|
|
59377
59377
|
const headBuf = Buffer.alloc(512);
|
|
59378
59378
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59379
59379
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59380
|
-
bytes = fs$
|
|
59380
|
+
bytes = fs$32.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59381
59381
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59382
59382
|
if (!bytes) break POSITION;
|
|
59383
59383
|
}
|
|
@@ -59392,7 +59392,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59392
59392
|
streamSync(opt, p, position, fd, files);
|
|
59393
59393
|
} finally {
|
|
59394
59394
|
if (threw) try {
|
|
59395
|
-
fs$
|
|
59395
|
+
fs$32.closeSync(fd);
|
|
59396
59396
|
} catch (er) {}
|
|
59397
59397
|
}
|
|
59398
59398
|
};
|
|
@@ -59409,7 +59409,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59409
59409
|
const p = new Pack(opt);
|
|
59410
59410
|
const getPos = (fd, size, cb_) => {
|
|
59411
59411
|
const cb = (er, pos) => {
|
|
59412
|
-
if (er) fs$
|
|
59412
|
+
if (er) fs$32.close(fd, (_) => cb_(er));
|
|
59413
59413
|
else cb_(null, pos);
|
|
59414
59414
|
};
|
|
59415
59415
|
let position = 0;
|
|
@@ -59419,7 +59419,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59419
59419
|
const onread = (er, bytes) => {
|
|
59420
59420
|
if (er) return cb(er);
|
|
59421
59421
|
bufPos += bytes;
|
|
59422
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59422
|
+
if (bufPos < 512 && bytes) return fs$32.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59423
59423
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59424
59424
|
if (bufPos < 512) return cb(null, position);
|
|
59425
59425
|
const h = new Header(headBuf);
|
|
@@ -59430,9 +59430,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59430
59430
|
if (position >= size) return cb(null, position);
|
|
59431
59431
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59432
59432
|
bufPos = 0;
|
|
59433
|
-
fs$
|
|
59433
|
+
fs$32.read(fd, headBuf, 0, 512, position, onread);
|
|
59434
59434
|
};
|
|
59435
|
-
fs$
|
|
59435
|
+
fs$32.read(fd, headBuf, 0, 512, position, onread);
|
|
59436
59436
|
};
|
|
59437
59437
|
const promise = new Promise((resolve, reject) => {
|
|
59438
59438
|
p.on("error", reject);
|
|
@@ -59440,11 +59440,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59440
59440
|
const onopen = (er, fd) => {
|
|
59441
59441
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59442
59442
|
flag = "w+";
|
|
59443
|
-
return fs$
|
|
59443
|
+
return fs$32.open(opt.file, flag, onopen);
|
|
59444
59444
|
}
|
|
59445
59445
|
if (er) return reject(er);
|
|
59446
|
-
fs$
|
|
59447
|
-
if (er) return fs$
|
|
59446
|
+
fs$32.fstat(fd, (er, st) => {
|
|
59447
|
+
if (er) return fs$32.close(fd, () => reject(er));
|
|
59448
59448
|
getPos(fd, st.size, (er, position) => {
|
|
59449
59449
|
if (er) return reject(er);
|
|
59450
59450
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59458,7 +59458,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59458
59458
|
});
|
|
59459
59459
|
});
|
|
59460
59460
|
};
|
|
59461
|
-
fs$
|
|
59461
|
+
fs$32.open(opt.file, flag, onopen);
|
|
59462
59462
|
});
|
|
59463
59463
|
return cb ? promise.then(cb, cb) : promise;
|
|
59464
59464
|
};
|
|
@@ -59511,32 +59511,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59511
59511
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59512
59512
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59513
59513
|
const { promisify: promisify$1 } = require("util");
|
|
59514
|
-
const fs$
|
|
59514
|
+
const fs$31 = require("fs");
|
|
59515
59515
|
const optsArg = (opts) => {
|
|
59516
59516
|
if (!opts) opts = {
|
|
59517
59517
|
mode: 511,
|
|
59518
|
-
fs: fs$
|
|
59518
|
+
fs: fs$31
|
|
59519
59519
|
};
|
|
59520
59520
|
else if (typeof opts === "object") opts = {
|
|
59521
59521
|
mode: 511,
|
|
59522
|
-
fs: fs$
|
|
59522
|
+
fs: fs$31,
|
|
59523
59523
|
...opts
|
|
59524
59524
|
};
|
|
59525
59525
|
else if (typeof opts === "number") opts = {
|
|
59526
59526
|
mode: opts,
|
|
59527
|
-
fs: fs$
|
|
59527
|
+
fs: fs$31
|
|
59528
59528
|
};
|
|
59529
59529
|
else if (typeof opts === "string") opts = {
|
|
59530
59530
|
mode: parseInt(opts, 8),
|
|
59531
|
-
fs: fs$
|
|
59531
|
+
fs: fs$31
|
|
59532
59532
|
};
|
|
59533
59533
|
else throw new TypeError("invalid options argument");
|
|
59534
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59534
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$31.mkdir;
|
|
59535
59535
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59536
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59536
|
+
opts.stat = opts.stat || opts.fs.stat || fs$31.stat;
|
|
59537
59537
|
opts.statAsync = promisify$1(opts.stat);
|
|
59538
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59539
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59538
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$31.statSync;
|
|
59539
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$31.mkdirSync;
|
|
59540
59540
|
return opts;
|
|
59541
59541
|
};
|
|
59542
59542
|
module.exports = optsArg;
|
|
@@ -59567,17 +59567,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59567
59567
|
//#endregion
|
|
59568
59568
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59569
59569
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59570
|
-
const { dirname: dirname$
|
|
59570
|
+
const { dirname: dirname$15 } = require("path");
|
|
59571
59571
|
const findMade = (opts, parent, path$83 = void 0) => {
|
|
59572
59572
|
if (path$83 === parent) return Promise.resolve();
|
|
59573
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59573
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$83 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$15(parent), parent) : void 0);
|
|
59574
59574
|
};
|
|
59575
59575
|
const findMadeSync = (opts, parent, path$84 = void 0) => {
|
|
59576
59576
|
if (path$84 === parent) return void 0;
|
|
59577
59577
|
try {
|
|
59578
59578
|
return opts.statSync(parent).isDirectory() ? path$84 : void 0;
|
|
59579
59579
|
} catch (er) {
|
|
59580
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59580
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$15(parent), parent) : void 0;
|
|
59581
59581
|
}
|
|
59582
59582
|
};
|
|
59583
59583
|
module.exports = {
|
|
@@ -59588,10 +59588,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59588
59588
|
//#endregion
|
|
59589
59589
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59590
59590
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59591
|
-
const { dirname: dirname$
|
|
59591
|
+
const { dirname: dirname$14 } = require("path");
|
|
59592
59592
|
const mkdirpManual = (path$81, opts, made) => {
|
|
59593
59593
|
opts.recursive = false;
|
|
59594
|
-
const parent = dirname$
|
|
59594
|
+
const parent = dirname$14(path$81);
|
|
59595
59595
|
if (parent === path$81) return opts.mkdirAsync(path$81, opts).catch((er) => {
|
|
59596
59596
|
if (er.code !== "EISDIR") throw er;
|
|
59597
59597
|
});
|
|
@@ -59607,7 +59607,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59607
59607
|
});
|
|
59608
59608
|
};
|
|
59609
59609
|
const mkdirpManualSync = (path$82, opts, made) => {
|
|
59610
|
-
const parent = dirname$
|
|
59610
|
+
const parent = dirname$14(path$82);
|
|
59611
59611
|
opts.recursive = false;
|
|
59612
59612
|
if (parent === path$82) try {
|
|
59613
59613
|
return opts.mkdirSync(path$82, opts);
|
|
@@ -59636,12 +59636,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59636
59636
|
//#endregion
|
|
59637
59637
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59638
59638
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59639
|
-
const { dirname: dirname$
|
|
59639
|
+
const { dirname: dirname$13 } = require("path");
|
|
59640
59640
|
const { findMade, findMadeSync } = require_find_made();
|
|
59641
59641
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59642
59642
|
const mkdirpNative = (path$79, opts) => {
|
|
59643
59643
|
opts.recursive = true;
|
|
59644
|
-
if (dirname$
|
|
59644
|
+
if (dirname$13(path$79) === path$79) return opts.mkdirAsync(path$79, opts);
|
|
59645
59645
|
return findMade(opts, path$79).then((made) => opts.mkdirAsync(path$79, opts).then(() => made).catch((er) => {
|
|
59646
59646
|
if (er.code === "ENOENT") return mkdirpManual(path$79, opts);
|
|
59647
59647
|
else throw er;
|
|
@@ -59649,7 +59649,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59649
59649
|
};
|
|
59650
59650
|
const mkdirpNativeSync = (path$80, opts) => {
|
|
59651
59651
|
opts.recursive = true;
|
|
59652
|
-
if (dirname$
|
|
59652
|
+
if (dirname$13(path$80) === path$80) return opts.mkdirSync(path$80, opts);
|
|
59653
59653
|
const made = findMadeSync(opts, path$80);
|
|
59654
59654
|
try {
|
|
59655
59655
|
opts.mkdirSync(path$80, opts);
|
|
@@ -59667,12 +59667,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59667
59667
|
//#endregion
|
|
59668
59668
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59669
59669
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59670
|
-
const fs$
|
|
59670
|
+
const fs$30 = require("fs");
|
|
59671
59671
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59672
59672
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59673
59673
|
module.exports = {
|
|
59674
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59675
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59674
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$30.mkdir,
|
|
59675
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$30.mkdirSync
|
|
59676
59676
|
};
|
|
59677
59677
|
}));
|
|
59678
59678
|
//#endregion
|
|
@@ -59703,17 +59703,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59703
59703
|
//#endregion
|
|
59704
59704
|
//#region ../../node_modules/chownr/chownr.js
|
|
59705
59705
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59706
|
-
const fs$
|
|
59706
|
+
const fs$29 = require("fs");
|
|
59707
59707
|
const path$29 = require("path");
|
|
59708
59708
|
/* istanbul ignore next */
|
|
59709
|
-
const LCHOWN = fs$
|
|
59709
|
+
const LCHOWN = fs$29.lchown ? "lchown" : "chown";
|
|
59710
59710
|
/* istanbul ignore next */
|
|
59711
|
-
const LCHOWNSYNC = fs$
|
|
59711
|
+
const LCHOWNSYNC = fs$29.lchownSync ? "lchownSync" : "chownSync";
|
|
59712
59712
|
/* istanbul ignore next */
|
|
59713
|
-
const needEISDIRHandled = fs$
|
|
59713
|
+
const needEISDIRHandled = fs$29.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59714
59714
|
const lchownSync = (path$71, uid, gid) => {
|
|
59715
59715
|
try {
|
|
59716
|
-
return fs$
|
|
59716
|
+
return fs$29[LCHOWNSYNC](path$71, uid, gid);
|
|
59717
59717
|
} catch (er) {
|
|
59718
59718
|
if (er.code !== "ENOENT") throw er;
|
|
59719
59719
|
}
|
|
@@ -59721,7 +59721,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59721
59721
|
/* istanbul ignore next */
|
|
59722
59722
|
const chownSync = (path$72, uid, gid) => {
|
|
59723
59723
|
try {
|
|
59724
|
-
return fs$
|
|
59724
|
+
return fs$29.chownSync(path$72, uid, gid);
|
|
59725
59725
|
} catch (er) {
|
|
59726
59726
|
if (er.code !== "ENOENT") throw er;
|
|
59727
59727
|
}
|
|
@@ -59729,7 +59729,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59729
59729
|
/* istanbul ignore next */
|
|
59730
59730
|
const handleEISDIR = needEISDIRHandled ? (path$73, uid, gid, cb) => (er) => {
|
|
59731
59731
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59732
|
-
else fs$
|
|
59732
|
+
else fs$29.chown(path$73, uid, gid, cb);
|
|
59733
59733
|
} : (_, __, ___, cb) => cb;
|
|
59734
59734
|
/* istanbul ignore next */
|
|
59735
59735
|
const handleEISDirSync = needEISDIRHandled ? (path$74, uid, gid) => {
|
|
@@ -59741,17 +59741,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59741
59741
|
}
|
|
59742
59742
|
} : (path$75, uid, gid) => lchownSync(path$75, uid, gid);
|
|
59743
59743
|
const nodeVersion = process.version;
|
|
59744
|
-
let readdir = (path$76, options, cb) => fs$
|
|
59745
|
-
let readdirSync = (path$77, options) => fs$
|
|
59744
|
+
let readdir = (path$76, options, cb) => fs$29.readdir(path$76, options, cb);
|
|
59745
|
+
let readdirSync = (path$77, options) => fs$29.readdirSync(path$77, options);
|
|
59746
59746
|
/* istanbul ignore next */
|
|
59747
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$78, options, cb) => fs$
|
|
59747
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$78, options, cb) => fs$29.readdir(path$78, cb);
|
|
59748
59748
|
const chown = (cpath, uid, gid, cb) => {
|
|
59749
|
-
fs$
|
|
59749
|
+
fs$29[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59750
59750
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59751
59751
|
}));
|
|
59752
59752
|
};
|
|
59753
59753
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59754
|
-
if (typeof child === "string") return fs$
|
|
59754
|
+
if (typeof child === "string") return fs$29.lstat(path$29.resolve(p, child), (er, stats) => {
|
|
59755
59755
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59756
59756
|
stats.name = child;
|
|
59757
59757
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59781,7 +59781,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59781
59781
|
};
|
|
59782
59782
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59783
59783
|
if (typeof child === "string") try {
|
|
59784
|
-
const stats = fs$
|
|
59784
|
+
const stats = fs$29.lstatSync(path$29.resolve(p, child));
|
|
59785
59785
|
stats.name = child;
|
|
59786
59786
|
child = stats;
|
|
59787
59787
|
} catch (er) {
|
|
@@ -59810,7 +59810,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59810
59810
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59811
59811
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59812
59812
|
const mkdirp = require_mkdirp();
|
|
59813
|
-
const fs$
|
|
59813
|
+
const fs$28 = require("fs");
|
|
59814
59814
|
const path$28 = require("path");
|
|
59815
59815
|
const chownr = require_chownr();
|
|
59816
59816
|
const normPath = require_normalize_windows_path();
|
|
@@ -59837,7 +59837,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59837
59837
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59838
59838
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59839
59839
|
const checkCwd = (dir, cb) => {
|
|
59840
|
-
fs$
|
|
59840
|
+
fs$28.stat(dir, (er, st) => {
|
|
59841
59841
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59842
59842
|
cb(er);
|
|
59843
59843
|
});
|
|
@@ -59859,7 +59859,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59859
59859
|
else {
|
|
59860
59860
|
cSet(cache, dir, true);
|
|
59861
59861
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59862
|
-
else if (needChmod) fs$
|
|
59862
|
+
else if (needChmod) fs$28.chmod(dir, mode, cb);
|
|
59863
59863
|
else cb();
|
|
59864
59864
|
}
|
|
59865
59865
|
};
|
|
@@ -59873,17 +59873,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59873
59873
|
const p = parts.shift();
|
|
59874
59874
|
const part = normPath(path$28.resolve(base + "/" + p));
|
|
59875
59875
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59876
|
-
fs$
|
|
59876
|
+
fs$28.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59877
59877
|
};
|
|
59878
59878
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59879
|
-
if (er) fs$
|
|
59879
|
+
if (er) fs$28.lstat(part, (statEr, st) => {
|
|
59880
59880
|
if (statEr) {
|
|
59881
59881
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59882
59882
|
cb(statEr);
|
|
59883
59883
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59884
|
-
else if (unlink) fs$
|
|
59884
|
+
else if (unlink) fs$28.unlink(part, (er) => {
|
|
59885
59885
|
if (er) return cb(er);
|
|
59886
|
-
fs$
|
|
59886
|
+
fs$28.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59887
59887
|
});
|
|
59888
59888
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59889
59889
|
else cb(er);
|
|
@@ -59897,7 +59897,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59897
59897
|
let ok = false;
|
|
59898
59898
|
let code = "ENOTDIR";
|
|
59899
59899
|
try {
|
|
59900
|
-
ok = fs$
|
|
59900
|
+
ok = fs$28.statSync(dir).isDirectory();
|
|
59901
59901
|
} catch (er) {
|
|
59902
59902
|
code = er.code;
|
|
59903
59903
|
} finally {
|
|
@@ -59919,7 +59919,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59919
59919
|
const done = (created) => {
|
|
59920
59920
|
cSet(cache, dir, true);
|
|
59921
59921
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59922
|
-
if (needChmod) fs$
|
|
59922
|
+
if (needChmod) fs$28.chmodSync(dir, mode);
|
|
59923
59923
|
};
|
|
59924
59924
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59925
59925
|
if (dir === cwd) {
|
|
@@ -59933,17 +59933,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59933
59933
|
part = normPath(path$28.resolve(part));
|
|
59934
59934
|
if (cGet(cache, part)) continue;
|
|
59935
59935
|
try {
|
|
59936
|
-
fs$
|
|
59936
|
+
fs$28.mkdirSync(part, mode);
|
|
59937
59937
|
created = created || part;
|
|
59938
59938
|
cSet(cache, part, true);
|
|
59939
59939
|
} catch (er) {
|
|
59940
|
-
const st = fs$
|
|
59940
|
+
const st = fs$28.lstatSync(part);
|
|
59941
59941
|
if (st.isDirectory()) {
|
|
59942
59942
|
cSet(cache, part, true);
|
|
59943
59943
|
continue;
|
|
59944
59944
|
} else if (unlink) {
|
|
59945
|
-
fs$
|
|
59946
|
-
fs$
|
|
59945
|
+
fs$28.unlinkSync(part);
|
|
59946
|
+
fs$28.mkdirSync(part, mode);
|
|
59947
59947
|
created = created || part;
|
|
59948
59948
|
cSet(cache, part, true);
|
|
59949
59949
|
continue;
|
|
@@ -59969,14 +59969,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59969
59969
|
const assert$1 = require("assert");
|
|
59970
59970
|
const normalize = require_normalize_unicode();
|
|
59971
59971
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59972
|
-
const { join: join$
|
|
59972
|
+
const { join: join$19 } = require("path");
|
|
59973
59973
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59974
59974
|
module.exports = () => {
|
|
59975
59975
|
const queues = /* @__PURE__ */ new Map();
|
|
59976
59976
|
const reservations = /* @__PURE__ */ new Map();
|
|
59977
59977
|
const getDirs = (path$62) => {
|
|
59978
59978
|
return path$62.split("/").slice(0, -1).reduce((set, path$63) => {
|
|
59979
|
-
if (set.length) path$63 = join$
|
|
59979
|
+
if (set.length) path$63 = join$19(set[set.length - 1], path$63);
|
|
59980
59980
|
set.push(path$63 || "/");
|
|
59981
59981
|
return set;
|
|
59982
59982
|
}, []);
|
|
@@ -60030,7 +60030,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60030
60030
|
};
|
|
60031
60031
|
const reserve = (paths, fn) => {
|
|
60032
60032
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60033
|
-
return stripSlashes(join$
|
|
60033
|
+
return stripSlashes(join$19(normalize(p))).toLowerCase();
|
|
60034
60034
|
});
|
|
60035
60035
|
const dirs = new Set(paths.map((path$67) => getDirs(path$67)).reduce((a, b) => a.concat(b)));
|
|
60036
60036
|
reservations.set(fn, {
|
|
@@ -60072,7 +60072,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60072
60072
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60073
60073
|
const assert = require("assert");
|
|
60074
60074
|
const Parser = require_parse$4();
|
|
60075
|
-
const fs$
|
|
60075
|
+
const fs$27 = require("fs");
|
|
60076
60076
|
const fsm = require_fs_minipass();
|
|
60077
60077
|
const path$27 = require("path");
|
|
60078
60078
|
const mkdir = require_mkdir();
|
|
@@ -60113,19 +60113,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60113
60113
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60114
60114
|
/* istanbul ignore next */
|
|
60115
60115
|
const unlinkFile = (path$58, cb) => {
|
|
60116
|
-
if (!isWindows) return fs$
|
|
60116
|
+
if (!isWindows) return fs$27.unlink(path$58, cb);
|
|
60117
60117
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60118
|
-
fs$
|
|
60118
|
+
fs$27.rename(path$58, name, (er) => {
|
|
60119
60119
|
if (er) return cb(er);
|
|
60120
|
-
fs$
|
|
60120
|
+
fs$27.unlink(name, cb);
|
|
60121
60121
|
});
|
|
60122
60122
|
};
|
|
60123
60123
|
/* istanbul ignore next */
|
|
60124
60124
|
const unlinkFileSync = (path$59) => {
|
|
60125
|
-
if (!isWindows) return fs$
|
|
60125
|
+
if (!isWindows) return fs$27.unlinkSync(path$59);
|
|
60126
60126
|
const name = path$59 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60127
|
-
fs$
|
|
60128
|
-
fs$
|
|
60127
|
+
fs$27.renameSync(path$59, name);
|
|
60128
|
+
fs$27.unlinkSync(name);
|
|
60129
60129
|
};
|
|
60130
60130
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60131
60131
|
const cacheKeyNormalize = (path$60) => stripSlash(normPath(normalize(path$60))).toLowerCase();
|
|
@@ -60311,7 +60311,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60311
60311
|
autoClose: false
|
|
60312
60312
|
});
|
|
60313
60313
|
stream.on("error", (er) => {
|
|
60314
|
-
if (stream.fd) fs$
|
|
60314
|
+
if (stream.fd) fs$27.close(stream.fd, () => {});
|
|
60315
60315
|
stream.write = () => true;
|
|
60316
60316
|
this[ONERROR](er, entry);
|
|
60317
60317
|
fullyDone();
|
|
@@ -60320,12 +60320,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60320
60320
|
const done = (er) => {
|
|
60321
60321
|
if (er) {
|
|
60322
60322
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60323
|
-
if (stream.fd) fs$
|
|
60323
|
+
if (stream.fd) fs$27.close(stream.fd, () => {});
|
|
60324
60324
|
this[ONERROR](er, entry);
|
|
60325
60325
|
fullyDone();
|
|
60326
60326
|
return;
|
|
60327
60327
|
}
|
|
60328
|
-
if (--actions === 0) fs$
|
|
60328
|
+
if (--actions === 0) fs$27.close(stream.fd, (er) => {
|
|
60329
60329
|
if (er) this[ONERROR](er, entry);
|
|
60330
60330
|
else this[UNPEND]();
|
|
60331
60331
|
fullyDone();
|
|
@@ -60338,13 +60338,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60338
60338
|
actions++;
|
|
60339
60339
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60340
60340
|
const mtime = entry.mtime;
|
|
60341
|
-
fs$
|
|
60341
|
+
fs$27.futimes(fd, atime, mtime, (er) => er ? fs$27.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60342
60342
|
}
|
|
60343
60343
|
if (this[DOCHOWN](entry)) {
|
|
60344
60344
|
actions++;
|
|
60345
60345
|
const uid = this[UID](entry);
|
|
60346
60346
|
const gid = this[GID](entry);
|
|
60347
|
-
fs$
|
|
60347
|
+
fs$27.fchown(fd, uid, gid, (er) => er ? fs$27.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60348
60348
|
}
|
|
60349
60349
|
done();
|
|
60350
60350
|
});
|
|
@@ -60376,11 +60376,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60376
60376
|
};
|
|
60377
60377
|
if (entry.mtime && !this.noMtime) {
|
|
60378
60378
|
actions++;
|
|
60379
|
-
fs$
|
|
60379
|
+
fs$27.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60380
60380
|
}
|
|
60381
60381
|
if (this[DOCHOWN](entry)) {
|
|
60382
60382
|
actions++;
|
|
60383
|
-
fs$
|
|
60383
|
+
fs$27.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60384
60384
|
}
|
|
60385
60385
|
done();
|
|
60386
60386
|
});
|
|
@@ -60453,7 +60453,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60453
60453
|
afterMakeParent();
|
|
60454
60454
|
};
|
|
60455
60455
|
const afterMakeParent = () => {
|
|
60456
|
-
fs$
|
|
60456
|
+
fs$27.lstat(entry.absolute, (lstatEr, st) => {
|
|
60457
60457
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60458
60458
|
this[SKIP](entry);
|
|
60459
60459
|
done();
|
|
@@ -60465,9 +60465,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60465
60465
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60466
60466
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60467
60467
|
if (!needChmod) return afterChmod();
|
|
60468
|
-
return fs$
|
|
60468
|
+
return fs$27.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60469
60469
|
}
|
|
60470
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60470
|
+
if (entry.absolute !== this.cwd) return fs$27.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60471
60471
|
}
|
|
60472
60472
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60473
60473
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60493,7 +60493,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60493
60493
|
}
|
|
60494
60494
|
}
|
|
60495
60495
|
[LINK](entry, linkpath, link, done) {
|
|
60496
|
-
fs$
|
|
60496
|
+
fs$27[link](linkpath, entry.absolute, (er) => {
|
|
60497
60497
|
if (er) this[ONERROR](er, entry);
|
|
60498
60498
|
else {
|
|
60499
60499
|
this[UNPEND]();
|
|
@@ -60528,17 +60528,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60528
60528
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60529
60529
|
}
|
|
60530
60530
|
}
|
|
60531
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60531
|
+
const [lstatEr, st] = callSync(() => fs$27.lstatSync(entry.absolute));
|
|
60532
60532
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60533
60533
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60534
60534
|
if (st.isDirectory()) {
|
|
60535
60535
|
if (entry.type === "Directory") {
|
|
60536
60536
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60537
|
-
fs$
|
|
60537
|
+
fs$27.chmodSync(entry.absolute, entry.mode);
|
|
60538
60538
|
}) : [];
|
|
60539
60539
|
return this[MAKEFS](er, entry);
|
|
60540
60540
|
}
|
|
60541
|
-
const [er] = callSync(() => fs$
|
|
60541
|
+
const [er] = callSync(() => fs$27.rmdirSync(entry.absolute));
|
|
60542
60542
|
this[MAKEFS](er, entry);
|
|
60543
60543
|
}
|
|
60544
60544
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60549,7 +60549,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60549
60549
|
const oner = (er) => {
|
|
60550
60550
|
let closeError;
|
|
60551
60551
|
try {
|
|
60552
|
-
fs$
|
|
60552
|
+
fs$27.closeSync(fd);
|
|
60553
60553
|
} catch (e) {
|
|
60554
60554
|
closeError = e;
|
|
60555
60555
|
}
|
|
@@ -60558,7 +60558,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60558
60558
|
};
|
|
60559
60559
|
let fd;
|
|
60560
60560
|
try {
|
|
60561
|
-
fd = fs$
|
|
60561
|
+
fd = fs$27.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60562
60562
|
} catch (er) {
|
|
60563
60563
|
return oner(er);
|
|
60564
60564
|
}
|
|
@@ -60569,7 +60569,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60569
60569
|
}
|
|
60570
60570
|
tx.on("data", (chunk) => {
|
|
60571
60571
|
try {
|
|
60572
|
-
fs$
|
|
60572
|
+
fs$27.writeSync(fd, chunk, 0, chunk.length);
|
|
60573
60573
|
} catch (er) {
|
|
60574
60574
|
oner(er);
|
|
60575
60575
|
}
|
|
@@ -60580,10 +60580,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60580
60580
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60581
60581
|
const mtime = entry.mtime;
|
|
60582
60582
|
try {
|
|
60583
|
-
fs$
|
|
60583
|
+
fs$27.futimesSync(fd, atime, mtime);
|
|
60584
60584
|
} catch (futimeser) {
|
|
60585
60585
|
try {
|
|
60586
|
-
fs$
|
|
60586
|
+
fs$27.utimesSync(entry.absolute, atime, mtime);
|
|
60587
60587
|
} catch (utimeser) {
|
|
60588
60588
|
er = futimeser;
|
|
60589
60589
|
}
|
|
@@ -60593,10 +60593,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60593
60593
|
const uid = this[UID](entry);
|
|
60594
60594
|
const gid = this[GID](entry);
|
|
60595
60595
|
try {
|
|
60596
|
-
fs$
|
|
60596
|
+
fs$27.fchownSync(fd, uid, gid);
|
|
60597
60597
|
} catch (fchowner) {
|
|
60598
60598
|
try {
|
|
60599
|
-
fs$
|
|
60599
|
+
fs$27.chownSync(entry.absolute, uid, gid);
|
|
60600
60600
|
} catch (chowner) {
|
|
60601
60601
|
er = er || fchowner;
|
|
60602
60602
|
}
|
|
@@ -60614,10 +60614,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60614
60614
|
return;
|
|
60615
60615
|
}
|
|
60616
60616
|
if (entry.mtime && !this.noMtime) try {
|
|
60617
|
-
fs$
|
|
60617
|
+
fs$27.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60618
60618
|
} catch (er) {}
|
|
60619
60619
|
if (this[DOCHOWN](entry)) try {
|
|
60620
|
-
fs$
|
|
60620
|
+
fs$27.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60621
60621
|
} catch (er) {}
|
|
60622
60622
|
done();
|
|
60623
60623
|
entry.resume();
|
|
@@ -60642,7 +60642,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60642
60642
|
}
|
|
60643
60643
|
[LINK](entry, linkpath, link, done) {
|
|
60644
60644
|
try {
|
|
60645
|
-
fs$
|
|
60645
|
+
fs$27[link + "Sync"](linkpath, entry.absolute);
|
|
60646
60646
|
done();
|
|
60647
60647
|
entry.resume();
|
|
60648
60648
|
} catch (er) {
|
|
@@ -60658,7 +60658,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60658
60658
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60659
60659
|
const hlo = require_high_level_opt();
|
|
60660
60660
|
const Unpack = require_unpack();
|
|
60661
|
-
const fs$
|
|
60661
|
+
const fs$26 = require("fs");
|
|
60662
60662
|
const fsm = require_fs_minipass();
|
|
60663
60663
|
const path$26 = require("path");
|
|
60664
60664
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60688,7 +60688,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60688
60688
|
const extractFileSync = (opt) => {
|
|
60689
60689
|
const u = new Unpack.Sync(opt);
|
|
60690
60690
|
const file = opt.file;
|
|
60691
|
-
const stat = fs$
|
|
60691
|
+
const stat = fs$26.statSync(file);
|
|
60692
60692
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60693
60693
|
new fsm.ReadStreamSync(file, {
|
|
60694
60694
|
readSize,
|
|
@@ -60702,7 +60702,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60702
60702
|
const p = new Promise((resolve, reject) => {
|
|
60703
60703
|
u.on("error", reject);
|
|
60704
60704
|
u.on("close", resolve);
|
|
60705
|
-
fs$
|
|
60705
|
+
fs$26.stat(file, (er, stat) => {
|
|
60706
60706
|
if (er) reject(er);
|
|
60707
60707
|
else {
|
|
60708
60708
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60785,7 +60785,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60785
60785
|
//#endregion
|
|
60786
60786
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60787
60787
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60788
|
-
var fs$
|
|
60788
|
+
var fs$25 = require("fs");
|
|
60789
60789
|
var util$10 = require("util");
|
|
60790
60790
|
var stream$2 = require("stream");
|
|
60791
60791
|
var Readable = stream$2.Readable;
|
|
@@ -60810,7 +60810,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60810
60810
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60811
60811
|
var self = this;
|
|
60812
60812
|
self.pend.go(function(cb) {
|
|
60813
|
-
fs$
|
|
60813
|
+
fs$25.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60814
60814
|
cb();
|
|
60815
60815
|
callback(err, bytesRead, buffer);
|
|
60816
60816
|
});
|
|
@@ -60819,7 +60819,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60819
60819
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60820
60820
|
var self = this;
|
|
60821
60821
|
self.pend.go(function(cb) {
|
|
60822
|
-
fs$
|
|
60822
|
+
fs$25.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60823
60823
|
cb();
|
|
60824
60824
|
callback(err, written, buffer);
|
|
60825
60825
|
});
|
|
@@ -60839,7 +60839,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60839
60839
|
self.refCount -= 1;
|
|
60840
60840
|
if (self.refCount > 0) return;
|
|
60841
60841
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60842
|
-
if (self.autoClose) fs$
|
|
60842
|
+
if (self.autoClose) fs$25.close(self.fd, onCloseDone);
|
|
60843
60843
|
function onCloseDone(err) {
|
|
60844
60844
|
if (err) self.emit("error", err);
|
|
60845
60845
|
else self.emit("close");
|
|
@@ -60870,7 +60870,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60870
60870
|
self.context.pend.go(function(cb) {
|
|
60871
60871
|
if (self.destroyed) return cb();
|
|
60872
60872
|
var buffer = new Buffer(toRead);
|
|
60873
|
-
fs$
|
|
60873
|
+
fs$25.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60874
60874
|
if (err) self.destroy(err);
|
|
60875
60875
|
else if (bytesRead === 0) {
|
|
60876
60876
|
self.destroyed = true;
|
|
@@ -60916,7 +60916,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60916
60916
|
}
|
|
60917
60917
|
self.context.pend.go(function(cb) {
|
|
60918
60918
|
if (self.destroyed) return cb();
|
|
60919
|
-
fs$
|
|
60919
|
+
fs$25.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60920
60920
|
if (err) {
|
|
60921
60921
|
self.destroy();
|
|
60922
60922
|
cb();
|
|
@@ -62498,13 +62498,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62498
62498
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62499
62499
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62500
62500
|
module.exports = readdirGlob;
|
|
62501
|
-
const fs$
|
|
62501
|
+
const fs$23 = require("fs");
|
|
62502
62502
|
const { EventEmitter } = require("events");
|
|
62503
62503
|
const { Minimatch } = require_minimatch$1();
|
|
62504
62504
|
const { resolve: resolve$12 } = require("path");
|
|
62505
62505
|
function readdir(dir, strict) {
|
|
62506
62506
|
return new Promise((resolve, reject) => {
|
|
62507
|
-
fs$
|
|
62507
|
+
fs$23.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62508
62508
|
if (err) switch (err.code) {
|
|
62509
62509
|
case "ENOTDIR":
|
|
62510
62510
|
if (strict) reject(err);
|
|
@@ -62526,7 +62526,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62526
62526
|
}
|
|
62527
62527
|
function stat(file, followSymlinks) {
|
|
62528
62528
|
return new Promise((resolve, reject) => {
|
|
62529
|
-
(followSymlinks ? fs$
|
|
62529
|
+
(followSymlinks ? fs$23.stat : fs$23.lstat)(file, (err, stats) => {
|
|
62530
62530
|
if (err) switch (err.code) {
|
|
62531
62531
|
case "ENOENT":
|
|
62532
62532
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68565,7 +68565,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68565
68565
|
//#endregion
|
|
68566
68566
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68567
68567
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68568
|
-
var fs$
|
|
68568
|
+
var fs$22 = require("fs");
|
|
68569
68569
|
var polyfills = require_polyfills();
|
|
68570
68570
|
var legacy = require_legacy_streams();
|
|
68571
68571
|
var clone = require_clone$1();
|
|
@@ -68594,36 +68594,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68594
68594
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68595
68595
|
console.error(m);
|
|
68596
68596
|
};
|
|
68597
|
-
if (!fs$
|
|
68598
|
-
publishQueue(fs$
|
|
68599
|
-
fs$
|
|
68597
|
+
if (!fs$22[gracefulQueue]) {
|
|
68598
|
+
publishQueue(fs$22, global[gracefulQueue] || []);
|
|
68599
|
+
fs$22.close = (function(fs$close) {
|
|
68600
68600
|
function close(fd, cb) {
|
|
68601
|
-
return fs$close.call(fs$
|
|
68601
|
+
return fs$close.call(fs$22, fd, function(err) {
|
|
68602
68602
|
if (!err) resetQueue();
|
|
68603
68603
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68604
68604
|
});
|
|
68605
68605
|
}
|
|
68606
68606
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68607
68607
|
return close;
|
|
68608
|
-
})(fs$
|
|
68609
|
-
fs$
|
|
68608
|
+
})(fs$22.close);
|
|
68609
|
+
fs$22.closeSync = (function(fs$closeSync) {
|
|
68610
68610
|
function closeSync(fd) {
|
|
68611
|
-
fs$closeSync.apply(fs$
|
|
68611
|
+
fs$closeSync.apply(fs$22, arguments);
|
|
68612
68612
|
resetQueue();
|
|
68613
68613
|
}
|
|
68614
68614
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68615
68615
|
return closeSync;
|
|
68616
|
-
})(fs$
|
|
68616
|
+
})(fs$22.closeSync);
|
|
68617
68617
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68618
|
-
debug(fs$
|
|
68619
|
-
require("assert").equal(fs$
|
|
68618
|
+
debug(fs$22[gracefulQueue]);
|
|
68619
|
+
require("assert").equal(fs$22[gracefulQueue].length, 0);
|
|
68620
68620
|
});
|
|
68621
68621
|
}
|
|
68622
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68623
|
-
module.exports = patch(clone(fs$
|
|
68624
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68625
|
-
module.exports = patch(fs$
|
|
68626
|
-
fs$
|
|
68622
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$22[gracefulQueue]);
|
|
68623
|
+
module.exports = patch(clone(fs$22));
|
|
68624
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$22.__patched) {
|
|
68625
|
+
module.exports = patch(fs$22);
|
|
68626
|
+
fs$22.__patched = true;
|
|
68627
68627
|
}
|
|
68628
68628
|
function patch(fs) {
|
|
68629
68629
|
polyfills(fs);
|
|
@@ -68878,23 +68878,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68878
68878
|
}
|
|
68879
68879
|
function enqueue(elem) {
|
|
68880
68880
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
68881
|
-
fs$
|
|
68881
|
+
fs$22[gracefulQueue].push(elem);
|
|
68882
68882
|
retry();
|
|
68883
68883
|
}
|
|
68884
68884
|
var retryTimer;
|
|
68885
68885
|
function resetQueue() {
|
|
68886
68886
|
var now = Date.now();
|
|
68887
|
-
for (var i = 0; i < fs$
|
|
68888
|
-
fs$
|
|
68889
|
-
fs$
|
|
68887
|
+
for (var i = 0; i < fs$22[gracefulQueue].length; ++i) if (fs$22[gracefulQueue][i].length > 2) {
|
|
68888
|
+
fs$22[gracefulQueue][i][3] = now;
|
|
68889
|
+
fs$22[gracefulQueue][i][4] = now;
|
|
68890
68890
|
}
|
|
68891
68891
|
retry();
|
|
68892
68892
|
}
|
|
68893
68893
|
function retry() {
|
|
68894
68894
|
clearTimeout(retryTimer);
|
|
68895
68895
|
retryTimer = void 0;
|
|
68896
|
-
if (fs$
|
|
68897
|
-
var elem = fs$
|
|
68896
|
+
if (fs$22[gracefulQueue].length === 0) return;
|
|
68897
|
+
var elem = fs$22[gracefulQueue].shift();
|
|
68898
68898
|
var fn = elem[0];
|
|
68899
68899
|
var args = elem[1];
|
|
68900
68900
|
var err = elem[2];
|
|
@@ -68913,7 +68913,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68913
68913
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
68914
68914
|
debug("RETRY", fn.name, args);
|
|
68915
68915
|
fn.apply(null, args.concat([startTime]));
|
|
68916
|
-
} else fs$
|
|
68916
|
+
} else fs$22[gracefulQueue].push(elem);
|
|
68917
68917
|
}
|
|
68918
68918
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
68919
68919
|
}
|
|
@@ -84310,7 +84310,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84310
84310
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84311
84311
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84312
84312
|
*/
|
|
84313
|
-
var fs$
|
|
84313
|
+
var fs$21 = require("fs");
|
|
84314
84314
|
var glob = require_readdir_glob();
|
|
84315
84315
|
var async = require_async();
|
|
84316
84316
|
var path$23 = require("path");
|
|
@@ -84387,7 +84387,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84387
84387
|
data.sourcePath = filepath;
|
|
84388
84388
|
task.data = data;
|
|
84389
84389
|
this._entriesCount++;
|
|
84390
|
-
if (data.stats && data.stats instanceof fs$
|
|
84390
|
+
if (data.stats && data.stats instanceof fs$21.Stats) {
|
|
84391
84391
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84392
84392
|
if (task) {
|
|
84393
84393
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84617,7 +84617,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84617
84617
|
callback();
|
|
84618
84618
|
return;
|
|
84619
84619
|
}
|
|
84620
|
-
fs$
|
|
84620
|
+
fs$21.lstat(task.filepath, function(err, stats) {
|
|
84621
84621
|
if (this._state.aborted) {
|
|
84622
84622
|
setImmediate(callback);
|
|
84623
84623
|
return;
|
|
@@ -84683,7 +84683,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84683
84683
|
task.data.sourceType = "buffer";
|
|
84684
84684
|
task.source = Buffer.concat([]);
|
|
84685
84685
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84686
|
-
var linkPath = fs$
|
|
84686
|
+
var linkPath = fs$21.readlinkSync(task.filepath);
|
|
84687
84687
|
var dirName = path$23.dirname(task.filepath);
|
|
84688
84688
|
task.data.type = "symlink";
|
|
84689
84689
|
task.data.linkname = path$23.relative(dirName, path$23.resolve(dirName, linkPath));
|
|
@@ -95711,7 +95711,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95711
95711
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95712
95712
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95713
95713
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95714
|
-
const { join: join$
|
|
95714
|
+
const { join: join$16, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
95715
95715
|
const isWindows = process.platform === "win32";
|
|
95716
95716
|
/* istanbul ignore next */
|
|
95717
95717
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95741,7 +95741,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95741
95741
|
};
|
|
95742
95742
|
const getPathPart = (raw, cmd) => {
|
|
95743
95743
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95744
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95744
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
|
|
95745
95745
|
};
|
|
95746
95746
|
const which = async (cmd, opt = {}) => {
|
|
95747
95747
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96320,7 +96320,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96320
96320
|
//#endregion
|
|
96321
96321
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96322
96322
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96323
|
-
const fs$
|
|
96323
|
+
const fs$19 = require("node:fs");
|
|
96324
96324
|
const os$2 = require("node:os");
|
|
96325
96325
|
const path$21 = require("node:path");
|
|
96326
96326
|
const ini = require_ini();
|
|
@@ -96329,8 +96329,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96329
96329
|
const loadGitConfig = () => {
|
|
96330
96330
|
if (cachedConfig === null) try {
|
|
96331
96331
|
cachedConfig = {};
|
|
96332
|
-
if (fs$
|
|
96333
|
-
const configContent = fs$
|
|
96332
|
+
if (fs$19.existsSync(gitConfigPath)) {
|
|
96333
|
+
const configContent = fs$19.readFileSync(gitConfigPath, "utf-8");
|
|
96334
96334
|
cachedConfig = ini.parse(configContent);
|
|
96335
96335
|
}
|
|
96336
96336
|
} catch (error) {
|
|
@@ -96490,7 +96490,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96490
96490
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96491
96491
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96492
96492
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96493
|
-
const { join: join$
|
|
96493
|
+
const { join: join$15, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
96494
96494
|
const isWindows = process.platform === "win32";
|
|
96495
96495
|
/* istanbul ignore next */
|
|
96496
96496
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96520,7 +96520,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96520
96520
|
};
|
|
96521
96521
|
const getPathPart = (raw, cmd) => {
|
|
96522
96522
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96523
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96523
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
96524
96524
|
};
|
|
96525
96525
|
const which = async (cmd, opt = {}) => {
|
|
96526
96526
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98199,7 +98199,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98199
98199
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98200
98200
|
const process$1 = require("node:process");
|
|
98201
98201
|
const nodeOs = require("node:os");
|
|
98202
|
-
const fs$
|
|
98202
|
+
const fs$18 = require("node:fs");
|
|
98203
98203
|
function isMusl(file) {
|
|
98204
98204
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98205
98205
|
}
|
|
@@ -98212,7 +98212,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98212
98212
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98213
98213
|
function getFamilyFromFilesystem() {
|
|
98214
98214
|
try {
|
|
98215
|
-
const content = fs$
|
|
98215
|
+
const content = fs$18.readFileSync(LDD_PATH, "utf-8");
|
|
98216
98216
|
if (content.includes("musl")) return "musl";
|
|
98217
98217
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98218
98218
|
return null;
|
|
@@ -98418,7 +98418,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98418
98418
|
//#endregion
|
|
98419
98419
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98420
98420
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98421
|
-
const { join: join$
|
|
98421
|
+
const { join: join$14, basename: basename$5 } = require("path");
|
|
98422
98422
|
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);
|
|
98423
98423
|
const normalizeString = (pkg) => {
|
|
98424
98424
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98441,9 +98441,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98441
98441
|
const clean = {};
|
|
98442
98442
|
let hasBins = false;
|
|
98443
98443
|
Object.keys(orig).forEach((binKey) => {
|
|
98444
|
-
const base = join$
|
|
98444
|
+
const base = join$14("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98445
98445
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98446
|
-
const binTarget = join$
|
|
98446
|
+
const binTarget = join$14("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98447
98447
|
if (!binTarget) return;
|
|
98448
98448
|
clean[base] = binTarget;
|
|
98449
98449
|
hasBins = true;
|
|
@@ -98601,7 +98601,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98601
98601
|
const spawn = require_spawn();
|
|
98602
98602
|
const { isWindows } = require_utils$3();
|
|
98603
98603
|
const pickManifest = require_lib$20();
|
|
98604
|
-
const fs$
|
|
98604
|
+
const fs$17 = require("fs/promises");
|
|
98605
98605
|
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));
|
|
98606
98606
|
const maybeShallow = (repo, opts) => {
|
|
98607
98607
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98636,7 +98636,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98636
98636
|
...opts,
|
|
98637
98637
|
cwd: target
|
|
98638
98638
|
});
|
|
98639
|
-
return fs$
|
|
98639
|
+
return fs$17.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98640
98640
|
"config",
|
|
98641
98641
|
"--local",
|
|
98642
98642
|
"--add",
|
|
@@ -98674,7 +98674,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98674
98674
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98675
98675
|
};
|
|
98676
98676
|
const updateSubmodules = async (target, opts) => {
|
|
98677
|
-
if (!await fs$
|
|
98677
|
+
if (!await fs$17.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98678
98678
|
return spawn([
|
|
98679
98679
|
"submodule",
|
|
98680
98680
|
"update",
|
|
@@ -98699,7 +98699,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98699
98699
|
...opts,
|
|
98700
98700
|
cwd: target
|
|
98701
98701
|
});
|
|
98702
|
-
return fs$
|
|
98702
|
+
return fs$17.mkdir(target, { recursive: true }).then(() => git(cloneArgs.concat(lp))).then(() => git(["init"])).then(() => git(["checkout", ref])).then(() => updateSubmodules(target, opts)).then(() => git([
|
|
98703
98703
|
"rev-parse",
|
|
98704
98704
|
"--revs-only",
|
|
98705
98705
|
"HEAD"
|
|
@@ -98716,11 +98716,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98716
98716
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98717
98717
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98718
98718
|
const is = require_is();
|
|
98719
|
-
const { dirname: dirname$
|
|
98719
|
+
const { dirname: dirname$11 } = require("path");
|
|
98720
98720
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98721
98721
|
while (true) {
|
|
98722
98722
|
if (await is({ cwd })) return cwd;
|
|
98723
|
-
const next = dirname$
|
|
98723
|
+
const next = dirname$11(cwd);
|
|
98724
98724
|
if (cwd === root || cwd === next) return null;
|
|
98725
98725
|
cwd = next;
|
|
98726
98726
|
}
|
|
@@ -98754,7 +98754,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98754
98754
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98755
98755
|
const valid = require_valid$3();
|
|
98756
98756
|
const clean = require_clean$1();
|
|
98757
|
-
const fs$
|
|
98757
|
+
const fs$16 = require("node:fs/promises");
|
|
98758
98758
|
const path$18 = require("node:path");
|
|
98759
98759
|
const { log } = require_lib$29();
|
|
98760
98760
|
const moduleBuiltin = require("node:module");
|
|
@@ -99038,13 +99038,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99038
99038
|
}
|
|
99039
99039
|
}
|
|
99040
99040
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99041
|
-
await fs$
|
|
99041
|
+
await fs$16.access(path$18.join(pkg.path, "server.js"));
|
|
99042
99042
|
scripts.start = "node server.js";
|
|
99043
99043
|
data.scripts = scripts;
|
|
99044
99044
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99045
99045
|
} catch {}
|
|
99046
99046
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99047
|
-
data.contributors = (await fs$
|
|
99047
|
+
data.contributors = (await fs$16.readFile(path$18.join(pkg.path, "AUTHORS"), "utf8")).split(/\r?\n/g).map((line) => line.replace(/^\s*#.*$/, "").trim()).filter((line) => line);
|
|
99048
99048
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99049
99049
|
} catch {}
|
|
99050
99050
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99063,7 +99063,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99063
99063
|
if (file.endsWith("README")) readmeFile = file;
|
|
99064
99064
|
}
|
|
99065
99065
|
if (readmeFile) {
|
|
99066
|
-
data.readme = await fs$
|
|
99066
|
+
data.readme = await fs$16.readFile(path$18.join(pkg.path, readmeFile), "utf8");
|
|
99067
99067
|
data.readmeFilename = readmeFile;
|
|
99068
99068
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99069
99069
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99095,20 +99095,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99095
99095
|
});
|
|
99096
99096
|
let head;
|
|
99097
99097
|
if (gitRoot) try {
|
|
99098
|
-
head = await fs$
|
|
99098
|
+
head = await fs$16.readFile(path$18.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99099
99099
|
} catch (err) {}
|
|
99100
99100
|
let headData;
|
|
99101
99101
|
if (head) if (head.startsWith("ref: ")) {
|
|
99102
99102
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99103
99103
|
const headFile = path$18.resolve(gitRoot, ".git", headRef);
|
|
99104
99104
|
try {
|
|
99105
|
-
headData = await fs$
|
|
99105
|
+
headData = await fs$16.readFile(headFile, "utf8");
|
|
99106
99106
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99107
99107
|
} catch (err) {}
|
|
99108
99108
|
if (!headData) {
|
|
99109
99109
|
const packFile = path$18.resolve(gitRoot, ".git/packed-refs");
|
|
99110
99110
|
try {
|
|
99111
|
-
let refs = await fs$
|
|
99111
|
+
let refs = await fs$16.readFile(packFile, "utf8");
|
|
99112
99112
|
if (refs) {
|
|
99113
99113
|
refs = refs.split("\n");
|
|
99114
99114
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99129,12 +99129,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99129
99129
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99130
99130
|
const dts = `./${path$18.join(path$18.dirname(index), path$18.basename(index, path$18.extname(index)))}.d.ts`;
|
|
99131
99131
|
if (!("types" in data || "typings" in data)) try {
|
|
99132
|
-
await fs$
|
|
99132
|
+
await fs$16.access(path$18.join(pkg.path, dts));
|
|
99133
99133
|
data.types = dts.split(path$18.sep).join("/");
|
|
99134
99134
|
} catch {}
|
|
99135
99135
|
}
|
|
99136
99136
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99137
|
-
await fs$
|
|
99137
|
+
await fs$16.access(path$18.resolve(pkg.path, data.bin[key]));
|
|
99138
99138
|
} catch {
|
|
99139
99139
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99140
99140
|
}
|
|
@@ -100516,7 +100516,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100516
100516
|
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();
|
|
100517
100517
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100518
100518
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$6, symlink, unlink, utimes } = require("fs/promises");
|
|
100519
|
-
const { dirname: dirname$
|
|
100519
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100520
100520
|
const { fileURLToPath } = require("url");
|
|
100521
100521
|
const defaultOptions = {
|
|
100522
100522
|
dereference: false,
|
|
@@ -100590,7 +100590,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100590
100590
|
})]);
|
|
100591
100591
|
}
|
|
100592
100592
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100593
|
-
const destParent = dirname$
|
|
100593
|
+
const destParent = dirname$10(dest);
|
|
100594
100594
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100595
100595
|
await mkdir$8(destParent, { recursive: true });
|
|
100596
100596
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100603,8 +100603,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100603
100603
|
);
|
|
100604
100604
|
}
|
|
100605
100605
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100606
|
-
const srcParent = resolve$10(dirname$
|
|
100607
|
-
const destParent = resolve$10(dirname$
|
|
100606
|
+
const srcParent = resolve$10(dirname$10(src));
|
|
100607
|
+
const destParent = resolve$10(dirname$10(dest));
|
|
100608
100608
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100609
100609
|
let destStat;
|
|
100610
100610
|
try {
|
|
@@ -100725,15 +100725,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100725
100725
|
const dir = await readdir$6(src);
|
|
100726
100726
|
for (let i = 0; i < dir.length; i++) {
|
|
100727
100727
|
const item = dir[i];
|
|
100728
|
-
const srcItem = join$
|
|
100729
|
-
const destItem = join$
|
|
100728
|
+
const srcItem = join$13(src, item);
|
|
100729
|
+
const destItem = join$13(dest, item);
|
|
100730
100730
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100731
100731
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100732
100732
|
}
|
|
100733
100733
|
}
|
|
100734
100734
|
async function onLink(destStat, src, dest) {
|
|
100735
100735
|
let resolvedSrc = await readlink(src);
|
|
100736
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100736
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$10(src), resolvedSrc);
|
|
100737
100737
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100738
100738
|
let resolvedDest;
|
|
100739
100739
|
try {
|
|
@@ -100744,7 +100744,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100744
100744
|
// istanbul ignore next: should not be possible
|
|
100745
100745
|
throw err;
|
|
100746
100746
|
}
|
|
100747
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100747
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$10(dest), resolvedDest);
|
|
100748
100748
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100749
100749
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100750
100750
|
path: dest,
|
|
@@ -100768,7 +100768,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100768
100768
|
//#endregion
|
|
100769
100769
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100770
100770
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100771
|
-
const fs$
|
|
100771
|
+
const fs$15 = require("fs/promises");
|
|
100772
100772
|
const getOptions = require_get_options();
|
|
100773
100773
|
const node = require_node$1();
|
|
100774
100774
|
const polyfill = require_polyfill();
|
|
@@ -100783,20 +100783,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100783
100783
|
"recursive"
|
|
100784
100784
|
] });
|
|
100785
100785
|
// istanbul ignore next
|
|
100786
|
-
return useNative ? fs$
|
|
100786
|
+
return useNative ? fs$15.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100787
100787
|
};
|
|
100788
100788
|
module.exports = cp;
|
|
100789
100789
|
}));
|
|
100790
100790
|
//#endregion
|
|
100791
100791
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100792
100792
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100793
|
-
const { join: join$
|
|
100793
|
+
const { join: join$12, sep: sep$1 } = require("path");
|
|
100794
100794
|
const getOptions = require_get_options();
|
|
100795
100795
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$10 } = require("fs/promises");
|
|
100796
100796
|
const withTempDir = async (root, fn, opts) => {
|
|
100797
100797
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100798
100798
|
await mkdir$7(root, { recursive: true });
|
|
100799
|
-
const target = await mkdtemp(join$
|
|
100799
|
+
const target = await mkdtemp(join$12(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100800
100800
|
let err;
|
|
100801
100801
|
let result;
|
|
100802
100802
|
try {
|
|
@@ -100819,10 +100819,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100819
100819
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100820
100820
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100821
100821
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100822
|
-
const { join: join$
|
|
100822
|
+
const { join: join$11 } = require("path");
|
|
100823
100823
|
const readdirScoped = async (dir) => {
|
|
100824
100824
|
const results = [];
|
|
100825
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100825
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$11(dir, item))) results.push(join$11(item, scopedItem));
|
|
100826
100826
|
else results.push(item);
|
|
100827
100827
|
return results;
|
|
100828
100828
|
};
|
|
@@ -100831,11 +100831,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100831
100831
|
//#endregion
|
|
100832
100832
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100833
100833
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100834
|
-
const { dirname: dirname$
|
|
100835
|
-
const fs$
|
|
100834
|
+
const { dirname: dirname$9, join: join$10, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100835
|
+
const fs$14 = require("fs/promises");
|
|
100836
100836
|
const pathExists = async (path$54) => {
|
|
100837
100837
|
try {
|
|
100838
|
-
await fs$
|
|
100838
|
+
await fs$14.access(path$54);
|
|
100839
100839
|
return true;
|
|
100840
100840
|
} catch (er) {
|
|
100841
100841
|
return er.code !== "ENOENT";
|
|
@@ -100848,34 +100848,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100848
100848
|
...options
|
|
100849
100849
|
};
|
|
100850
100850
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
100851
|
-
await fs$
|
|
100851
|
+
await fs$14.mkdir(dirname$9(destination), { recursive: true });
|
|
100852
100852
|
try {
|
|
100853
|
-
await fs$
|
|
100853
|
+
await fs$14.rename(source, destination);
|
|
100854
100854
|
} catch (error) {
|
|
100855
100855
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
100856
|
-
const sourceStat = await fs$
|
|
100856
|
+
const sourceStat = await fs$14.lstat(source);
|
|
100857
100857
|
if (sourceStat.isDirectory()) {
|
|
100858
|
-
const files = await fs$
|
|
100859
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100858
|
+
const files = await fs$14.readdir(source);
|
|
100859
|
+
await Promise.all(files.map((file) => moveFile(join$10(source, file), join$10(destination, file), options, false, symlinks)));
|
|
100860
100860
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
100861
100861
|
source,
|
|
100862
100862
|
destination
|
|
100863
100863
|
});
|
|
100864
|
-
else await fs$
|
|
100864
|
+
else await fs$14.copyFile(source, destination);
|
|
100865
100865
|
} else throw error;
|
|
100866
100866
|
}
|
|
100867
100867
|
if (root) {
|
|
100868
100868
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
100869
|
-
let target = await fs$
|
|
100869
|
+
let target = await fs$14.readlink(symSource);
|
|
100870
100870
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
100871
100871
|
let targetStat = "file";
|
|
100872
100872
|
try {
|
|
100873
|
-
targetStat = await fs$
|
|
100873
|
+
targetStat = await fs$14.stat(resolve$9(dirname$9(symSource), target));
|
|
100874
100874
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
100875
100875
|
} catch {}
|
|
100876
|
-
await fs$
|
|
100876
|
+
await fs$14.symlink(target, symDestination, targetStat);
|
|
100877
100877
|
}));
|
|
100878
|
-
await fs$
|
|
100878
|
+
await fs$14.rm(source, {
|
|
100879
100879
|
recursive: true,
|
|
100880
100880
|
force: true
|
|
100881
100881
|
});
|
|
@@ -100898,7 +100898,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100898
100898
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100899
100899
|
const crypto$2 = require("crypto");
|
|
100900
100900
|
const { withTempDir } = require_lib$16();
|
|
100901
|
-
const fs$
|
|
100901
|
+
const fs$13 = require("fs/promises");
|
|
100902
100902
|
const path$17 = require("path");
|
|
100903
100903
|
module.exports.mkdir = mktmpdir;
|
|
100904
100904
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -100908,12 +100908,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100908
100908
|
async function mktmpdir(cache, opts = {}) {
|
|
100909
100909
|
const { tmpPrefix } = opts;
|
|
100910
100910
|
const tmpDir = path$17.join(cache, "tmp");
|
|
100911
|
-
await fs$
|
|
100911
|
+
await fs$13.mkdir(tmpDir, {
|
|
100912
100912
|
recursive: true,
|
|
100913
100913
|
owner: "inherit"
|
|
100914
100914
|
});
|
|
100915
100915
|
const target = `${tmpDir}${path$17.sep}${tmpPrefix || ""}`;
|
|
100916
|
-
return fs$
|
|
100916
|
+
return fs$13.mkdtemp(target, { owner: "inherit" });
|
|
100917
100917
|
}
|
|
100918
100918
|
module.exports.withTmp = withTmp;
|
|
100919
100919
|
function withTmp(cache, opts, cb) {
|
|
@@ -101293,8 +101293,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101293
101293
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101294
101294
|
const { Minipass } = require_commonjs$10();
|
|
101295
101295
|
const EE$4 = require("events").EventEmitter;
|
|
101296
|
-
const fs$
|
|
101297
|
-
const writev = fs$
|
|
101296
|
+
const fs$12 = require("fs");
|
|
101297
|
+
const writev = fs$12.writev;
|
|
101298
101298
|
const _autoClose = Symbol("_autoClose");
|
|
101299
101299
|
const _close = Symbol("_close");
|
|
101300
101300
|
const _ended = Symbol("_ended");
|
|
@@ -101354,7 +101354,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101354
101354
|
throw new TypeError("this is a readable stream");
|
|
101355
101355
|
}
|
|
101356
101356
|
[_open]() {
|
|
101357
|
-
fs$
|
|
101357
|
+
fs$12.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101358
101358
|
}
|
|
101359
101359
|
[_onopen](er, fd) {
|
|
101360
101360
|
if (er) this[_onerror](er);
|
|
@@ -101373,7 +101373,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101373
101373
|
const buf = this[_makeBuf]();
|
|
101374
101374
|
/* istanbul ignore if */
|
|
101375
101375
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101376
|
-
fs$
|
|
101376
|
+
fs$12.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101377
101377
|
}
|
|
101378
101378
|
}
|
|
101379
101379
|
[_onread](er, br, buf) {
|
|
@@ -101385,7 +101385,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101385
101385
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101386
101386
|
const fd = this[_fd];
|
|
101387
101387
|
this[_fd] = null;
|
|
101388
|
-
fs$
|
|
101388
|
+
fs$12.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101389
101389
|
}
|
|
101390
101390
|
}
|
|
101391
101391
|
[_onerror](er) {
|
|
@@ -101423,7 +101423,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101423
101423
|
[_open]() {
|
|
101424
101424
|
let threw = true;
|
|
101425
101425
|
try {
|
|
101426
|
-
this[_onopen](null, fs$
|
|
101426
|
+
this[_onopen](null, fs$12.openSync(this[_path], "r"));
|
|
101427
101427
|
threw = false;
|
|
101428
101428
|
} finally {
|
|
101429
101429
|
if (threw) this[_close]();
|
|
@@ -101437,7 +101437,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101437
101437
|
do {
|
|
101438
101438
|
const buf = this[_makeBuf]();
|
|
101439
101439
|
/* istanbul ignore next */
|
|
101440
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101440
|
+
const br = buf.length === 0 ? 0 : fs$12.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101441
101441
|
if (!this[_handleChunk](br, buf)) break;
|
|
101442
101442
|
} while (true);
|
|
101443
101443
|
this[_reading] = false;
|
|
@@ -101451,7 +101451,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101451
101451
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101452
101452
|
const fd = this[_fd];
|
|
101453
101453
|
this[_fd] = null;
|
|
101454
|
-
fs$
|
|
101454
|
+
fs$12.closeSync(fd);
|
|
101455
101455
|
this.emit("close");
|
|
101456
101456
|
}
|
|
101457
101457
|
}
|
|
@@ -101496,7 +101496,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101496
101496
|
this.emit("error", er);
|
|
101497
101497
|
}
|
|
101498
101498
|
[_open]() {
|
|
101499
|
-
fs$
|
|
101499
|
+
fs$12.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101500
101500
|
}
|
|
101501
101501
|
[_onopen](er, fd) {
|
|
101502
101502
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101531,7 +101531,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101531
101531
|
return true;
|
|
101532
101532
|
}
|
|
101533
101533
|
[_write](buf) {
|
|
101534
|
-
fs$
|
|
101534
|
+
fs$12.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101535
101535
|
}
|
|
101536
101536
|
[_onwrite](er, bw) {
|
|
101537
101537
|
if (er) this[_onerror](er);
|
|
@@ -101565,7 +101565,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101565
101565
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101566
101566
|
const fd = this[_fd];
|
|
101567
101567
|
this[_fd] = null;
|
|
101568
|
-
fs$
|
|
101568
|
+
fs$12.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101569
101569
|
}
|
|
101570
101570
|
}
|
|
101571
101571
|
};
|
|
@@ -101573,28 +101573,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101573
101573
|
[_open]() {
|
|
101574
101574
|
let fd;
|
|
101575
101575
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101576
|
-
fd = fs$
|
|
101576
|
+
fd = fs$12.openSync(this[_path], this[_flags], this[_mode]);
|
|
101577
101577
|
} catch (er) {
|
|
101578
101578
|
if (er.code === "ENOENT") {
|
|
101579
101579
|
this[_flags] = "w";
|
|
101580
101580
|
return this[_open]();
|
|
101581
101581
|
} else throw er;
|
|
101582
101582
|
}
|
|
101583
|
-
else fd = fs$
|
|
101583
|
+
else fd = fs$12.openSync(this[_path], this[_flags], this[_mode]);
|
|
101584
101584
|
this[_onopen](null, fd);
|
|
101585
101585
|
}
|
|
101586
101586
|
[_close]() {
|
|
101587
101587
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101588
101588
|
const fd = this[_fd];
|
|
101589
101589
|
this[_fd] = null;
|
|
101590
|
-
fs$
|
|
101590
|
+
fs$12.closeSync(fd);
|
|
101591
101591
|
this.emit("close");
|
|
101592
101592
|
}
|
|
101593
101593
|
}
|
|
101594
101594
|
[_write](buf) {
|
|
101595
101595
|
let threw = true;
|
|
101596
101596
|
try {
|
|
101597
|
-
this[_onwrite](null, fs$
|
|
101597
|
+
this[_onwrite](null, fs$12.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101598
101598
|
threw = false;
|
|
101599
101599
|
} finally {
|
|
101600
101600
|
if (threw) try {
|
|
@@ -101611,7 +101611,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101611
101611
|
//#endregion
|
|
101612
101612
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101613
101613
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101614
|
-
const fs$
|
|
101614
|
+
const fs$11 = require("fs/promises");
|
|
101615
101615
|
const fsm = require_lib$15();
|
|
101616
101616
|
const ssri = require_lib$17();
|
|
101617
101617
|
const contentPath = require_path();
|
|
@@ -101622,13 +101622,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101622
101622
|
const { size } = opts;
|
|
101623
101623
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101624
101624
|
return {
|
|
101625
|
-
stat: size ? { size } : await fs$
|
|
101625
|
+
stat: size ? { size } : await fs$11.stat(cpath),
|
|
101626
101626
|
cpath,
|
|
101627
101627
|
sri
|
|
101628
101628
|
};
|
|
101629
101629
|
});
|
|
101630
101630
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101631
|
-
const data = await fs$
|
|
101631
|
+
const data = await fs$11.readFile(cpath, { encoding: null });
|
|
101632
101632
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101633
101633
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101634
101634
|
return data;
|
|
@@ -101651,7 +101651,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101651
101651
|
Promise.resolve().then(async () => {
|
|
101652
101652
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101653
101653
|
return {
|
|
101654
|
-
stat: size ? { size } : await fs$
|
|
101654
|
+
stat: size ? { size } : await fs$11.stat(cpath),
|
|
101655
101655
|
cpath,
|
|
101656
101656
|
sri
|
|
101657
101657
|
};
|
|
@@ -101663,7 +101663,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101663
101663
|
module.exports.copy = copy;
|
|
101664
101664
|
function copy(cache, integrity, dest) {
|
|
101665
101665
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101666
|
-
return fs$
|
|
101666
|
+
return fs$11.copyFile(cpath, dest);
|
|
101667
101667
|
});
|
|
101668
101668
|
}
|
|
101669
101669
|
module.exports.hasContent = hasContent;
|
|
@@ -101671,7 +101671,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101671
101671
|
if (!integrity) return false;
|
|
101672
101672
|
try {
|
|
101673
101673
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101674
|
-
const stat = await fs$
|
|
101674
|
+
const stat = await fs$11.stat(cpath);
|
|
101675
101675
|
return {
|
|
101676
101676
|
size: stat.size,
|
|
101677
101677
|
sri,
|
|
@@ -102311,7 +102311,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102311
102311
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102312
102312
|
const events$1 = require("events");
|
|
102313
102313
|
const contentPath = require_path();
|
|
102314
|
-
const fs$
|
|
102314
|
+
const fs$10 = require("fs/promises");
|
|
102315
102315
|
const { moveFile } = require_lib$16();
|
|
102316
102316
|
const { Minipass } = require_commonjs$10();
|
|
102317
102317
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102331,10 +102331,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102331
102331
|
const tmp = await makeTmp(cache, opts);
|
|
102332
102332
|
const hash = sri[algo].toString();
|
|
102333
102333
|
try {
|
|
102334
|
-
await fs$
|
|
102334
|
+
await fs$10.writeFile(tmp.target, data, { flag: "wx" });
|
|
102335
102335
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102336
102336
|
} finally {
|
|
102337
|
-
if (!tmp.moved) await fs$
|
|
102337
|
+
if (!tmp.moved) await fs$10.rm(tmp.target, {
|
|
102338
102338
|
recursive: true,
|
|
102339
102339
|
force: true
|
|
102340
102340
|
});
|
|
@@ -102388,7 +102388,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102388
102388
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102389
102389
|
return res;
|
|
102390
102390
|
} finally {
|
|
102391
|
-
if (!tmp.moved) await fs$
|
|
102391
|
+
if (!tmp.moved) await fs$10.rm(tmp.target, {
|
|
102392
102392
|
recursive: true,
|
|
102393
102393
|
force: true
|
|
102394
102394
|
});
|
|
@@ -102428,7 +102428,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102428
102428
|
}
|
|
102429
102429
|
async function makeTmp(cache, opts) {
|
|
102430
102430
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102431
|
-
await fs$
|
|
102431
|
+
await fs$10.mkdir(path$14.dirname(tmpTarget), { recursive: true });
|
|
102432
102432
|
return {
|
|
102433
102433
|
target: tmpTarget,
|
|
102434
102434
|
moved: false
|
|
@@ -102438,7 +102438,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102438
102438
|
const destination = contentPath(cache, sri);
|
|
102439
102439
|
const destDir = path$14.dirname(destination);
|
|
102440
102440
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102441
|
-
moveOperations.set(destination, fs$
|
|
102441
|
+
moveOperations.set(destination, fs$10.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102442
102442
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102443
102443
|
tmp.moved = true;
|
|
102444
102444
|
return tmp.moved;
|
|
@@ -105896,14 +105896,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105896
105896
|
//#endregion
|
|
105897
105897
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
105898
105898
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105899
|
-
const fs$
|
|
105899
|
+
const fs$9 = require("fs/promises");
|
|
105900
105900
|
const contentPath = require_path();
|
|
105901
105901
|
const { hasContent } = require_read();
|
|
105902
105902
|
module.exports = rm;
|
|
105903
105903
|
async function rm(cache, integrity) {
|
|
105904
105904
|
const content = await hasContent(cache, integrity);
|
|
105905
105905
|
if (content && content.sri) {
|
|
105906
|
-
await fs$
|
|
105906
|
+
await fs$9.rm(contentPath(cache, content.sri), {
|
|
105907
105907
|
recursive: true,
|
|
105908
105908
|
force: true
|
|
105909
105909
|
});
|
|
@@ -106185,8 +106185,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106185
106185
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106186
106186
|
const { Minipass } = require_commonjs$10();
|
|
106187
106187
|
const EE$2 = require("events").EventEmitter;
|
|
106188
|
-
const fs$
|
|
106189
|
-
const writev = fs$
|
|
106188
|
+
const fs$8 = require("fs");
|
|
106189
|
+
const writev = fs$8.writev;
|
|
106190
106190
|
const _autoClose = Symbol("_autoClose");
|
|
106191
106191
|
const _close = Symbol("_close");
|
|
106192
106192
|
const _ended = Symbol("_ended");
|
|
@@ -106246,7 +106246,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106246
106246
|
throw new TypeError("this is a readable stream");
|
|
106247
106247
|
}
|
|
106248
106248
|
[_open]() {
|
|
106249
|
-
fs$
|
|
106249
|
+
fs$8.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106250
106250
|
}
|
|
106251
106251
|
[_onopen](er, fd) {
|
|
106252
106252
|
if (er) this[_onerror](er);
|
|
@@ -106265,7 +106265,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106265
106265
|
const buf = this[_makeBuf]();
|
|
106266
106266
|
/* istanbul ignore if */
|
|
106267
106267
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106268
|
-
fs$
|
|
106268
|
+
fs$8.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106269
106269
|
}
|
|
106270
106270
|
}
|
|
106271
106271
|
[_onread](er, br, buf) {
|
|
@@ -106277,7 +106277,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106277
106277
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106278
106278
|
const fd = this[_fd];
|
|
106279
106279
|
this[_fd] = null;
|
|
106280
|
-
fs$
|
|
106280
|
+
fs$8.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106281
106281
|
}
|
|
106282
106282
|
}
|
|
106283
106283
|
[_onerror](er) {
|
|
@@ -106315,7 +106315,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106315
106315
|
[_open]() {
|
|
106316
106316
|
let threw = true;
|
|
106317
106317
|
try {
|
|
106318
|
-
this[_onopen](null, fs$
|
|
106318
|
+
this[_onopen](null, fs$8.openSync(this[_path], "r"));
|
|
106319
106319
|
threw = false;
|
|
106320
106320
|
} finally {
|
|
106321
106321
|
if (threw) this[_close]();
|
|
@@ -106329,7 +106329,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106329
106329
|
do {
|
|
106330
106330
|
const buf = this[_makeBuf]();
|
|
106331
106331
|
/* istanbul ignore next */
|
|
106332
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106332
|
+
const br = buf.length === 0 ? 0 : fs$8.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106333
106333
|
if (!this[_handleChunk](br, buf)) break;
|
|
106334
106334
|
} while (true);
|
|
106335
106335
|
this[_reading] = false;
|
|
@@ -106343,7 +106343,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106343
106343
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106344
106344
|
const fd = this[_fd];
|
|
106345
106345
|
this[_fd] = null;
|
|
106346
|
-
fs$
|
|
106346
|
+
fs$8.closeSync(fd);
|
|
106347
106347
|
this.emit("close");
|
|
106348
106348
|
}
|
|
106349
106349
|
}
|
|
@@ -106388,7 +106388,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106388
106388
|
this.emit("error", er);
|
|
106389
106389
|
}
|
|
106390
106390
|
[_open]() {
|
|
106391
|
-
fs$
|
|
106391
|
+
fs$8.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106392
106392
|
}
|
|
106393
106393
|
[_onopen](er, fd) {
|
|
106394
106394
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106423,7 +106423,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106423
106423
|
return true;
|
|
106424
106424
|
}
|
|
106425
106425
|
[_write](buf) {
|
|
106426
|
-
fs$
|
|
106426
|
+
fs$8.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106427
106427
|
}
|
|
106428
106428
|
[_onwrite](er, bw) {
|
|
106429
106429
|
if (er) this[_onerror](er);
|
|
@@ -106457,7 +106457,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106457
106457
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106458
106458
|
const fd = this[_fd];
|
|
106459
106459
|
this[_fd] = null;
|
|
106460
|
-
fs$
|
|
106460
|
+
fs$8.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106461
106461
|
}
|
|
106462
106462
|
}
|
|
106463
106463
|
};
|
|
@@ -106465,28 +106465,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106465
106465
|
[_open]() {
|
|
106466
106466
|
let fd;
|
|
106467
106467
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106468
|
-
fd = fs$
|
|
106468
|
+
fd = fs$8.openSync(this[_path], this[_flags], this[_mode]);
|
|
106469
106469
|
} catch (er) {
|
|
106470
106470
|
if (er.code === "ENOENT") {
|
|
106471
106471
|
this[_flags] = "w";
|
|
106472
106472
|
return this[_open]();
|
|
106473
106473
|
} else throw er;
|
|
106474
106474
|
}
|
|
106475
|
-
else fd = fs$
|
|
106475
|
+
else fd = fs$8.openSync(this[_path], this[_flags], this[_mode]);
|
|
106476
106476
|
this[_onopen](null, fd);
|
|
106477
106477
|
}
|
|
106478
106478
|
[_close]() {
|
|
106479
106479
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106480
106480
|
const fd = this[_fd];
|
|
106481
106481
|
this[_fd] = null;
|
|
106482
|
-
fs$
|
|
106482
|
+
fs$8.closeSync(fd);
|
|
106483
106483
|
this.emit("close");
|
|
106484
106484
|
}
|
|
106485
106485
|
}
|
|
106486
106486
|
[_write](buf) {
|
|
106487
106487
|
let threw = true;
|
|
106488
106488
|
try {
|
|
106489
|
-
this[_onwrite](null, fs$
|
|
106489
|
+
this[_onwrite](null, fs$8.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106490
106490
|
threw = false;
|
|
106491
106491
|
} finally {
|
|
106492
106492
|
if (threw) try {
|
|
@@ -106503,7 +106503,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106503
106503
|
//#endregion
|
|
106504
106504
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106505
106505
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106506
|
-
const fs$
|
|
106506
|
+
const fs$7 = require("fs");
|
|
106507
106507
|
const path$10 = require("path");
|
|
106508
106508
|
const EE$1 = require("events").EventEmitter;
|
|
106509
106509
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106559,7 +106559,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106559
106559
|
return this;
|
|
106560
106560
|
}
|
|
106561
106561
|
readPackageJson(pj) {
|
|
106562
|
-
fs$
|
|
106562
|
+
fs$7.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106563
106563
|
}
|
|
106564
106564
|
onPackageJson(pj, data) {
|
|
106565
106565
|
try {
|
|
@@ -106617,7 +106617,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106617
106617
|
}
|
|
106618
106618
|
readPackageJson(pj) {
|
|
106619
106619
|
try {
|
|
106620
|
-
this.onPackageJson(pj, fs$
|
|
106620
|
+
this.onPackageJson(pj, fs$7.readFileSync(pj));
|
|
106621
106621
|
} catch {}
|
|
106622
106622
|
return this;
|
|
106623
106623
|
}
|
|
@@ -106636,7 +106636,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106636
106636
|
}
|
|
106637
106637
|
};
|
|
106638
106638
|
const readdirNodeModules = (nm, cb) => {
|
|
106639
|
-
fs$
|
|
106639
|
+
fs$7.readdir(nm, (er, set) => {
|
|
106640
106640
|
if (er) cb(er);
|
|
106641
106641
|
else {
|
|
106642
106642
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106645,7 +106645,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106645
106645
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106646
106646
|
let count = scopes.length;
|
|
106647
106647
|
scopes.forEach((scope) => {
|
|
106648
|
-
fs$
|
|
106648
|
+
fs$7.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106649
106649
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106650
106650
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106651
106651
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106656,11 +106656,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106656
106656
|
});
|
|
106657
106657
|
};
|
|
106658
106658
|
const readdirNodeModulesSync = (nm) => {
|
|
106659
|
-
const set = fs$
|
|
106659
|
+
const set = fs$7.readdirSync(nm);
|
|
106660
106660
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106661
106661
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106662
106662
|
try {
|
|
106663
|
-
const pkgs = fs$
|
|
106663
|
+
const pkgs = fs$7.readdirSync(nm + "/" + scope);
|
|
106664
106664
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106665
106665
|
} catch (er) {
|
|
106666
106666
|
return [scope];
|
|
@@ -106687,7 +106687,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106687
106687
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106688
106688
|
const bundled = require_lib$12();
|
|
106689
106689
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$4 } = require("fs/promises");
|
|
106690
|
-
const { resolve: resolve$8, basename: basename$4, dirname: dirname$
|
|
106690
|
+
const { resolve: resolve$8, basename: basename$4, dirname: dirname$8 } = require("path");
|
|
106691
106691
|
const normalizePackageBin = require_lib$21();
|
|
106692
106692
|
const readPackage = ({ path: path$49, packageJsonCache }) => packageJsonCache.has(path$49) ? Promise.resolve(packageJsonCache.get(path$49)) : readFile$5(path$49).then((json) => {
|
|
106693
106693
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106726,9 +106726,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106726
106726
|
}));
|
|
106727
106727
|
if (pkg) {
|
|
106728
106728
|
if (pkg.bin) {
|
|
106729
|
-
const dir = dirname$
|
|
106729
|
+
const dir = dirname$8(path$51);
|
|
106730
106730
|
const scope = basename$4(dir);
|
|
106731
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106731
|
+
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106732
106732
|
const binFiles = [];
|
|
106733
106733
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106734
106734
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112000,7 +112000,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112000
112000
|
//#endregion
|
|
112001
112001
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112002
112002
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112003
|
-
const fs$
|
|
112003
|
+
const fs$6 = require("fs");
|
|
112004
112004
|
const path$9 = require("path");
|
|
112005
112005
|
const EE = require("events").EventEmitter;
|
|
112006
112006
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112039,7 +112039,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112039
112039
|
return ret;
|
|
112040
112040
|
}
|
|
112041
112041
|
start() {
|
|
112042
|
-
fs$
|
|
112042
|
+
fs$6.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112043
112043
|
return this;
|
|
112044
112044
|
}
|
|
112045
112045
|
isIgnoreFile(e) {
|
|
@@ -112063,7 +112063,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112063
112063
|
}
|
|
112064
112064
|
addIgnoreFile(file, then) {
|
|
112065
112065
|
const ig = path$9.resolve(this.path, file);
|
|
112066
|
-
fs$
|
|
112066
|
+
fs$6.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112067
112067
|
}
|
|
112068
112068
|
onReadIgnoreFile(file, data, then) {
|
|
112069
112069
|
const mmopt = {
|
|
@@ -112119,11 +112119,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112119
112119
|
}
|
|
112120
112120
|
stat({ entry, file, dir }, then) {
|
|
112121
112121
|
const abs = this.path + "/" + entry;
|
|
112122
|
-
fs$
|
|
112122
|
+
fs$6.lstat(abs, (lstatErr, lstatResult) => {
|
|
112123
112123
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112124
112124
|
else {
|
|
112125
112125
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112126
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112126
|
+
if (this.follow && isSymbolicLink) fs$6.stat(abs, (statErr, statResult) => {
|
|
112127
112127
|
if (statErr) this.emit("error", statErr);
|
|
112128
112128
|
else this.onstat({
|
|
112129
112129
|
st: statResult,
|
|
@@ -112177,18 +112177,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112177
112177
|
};
|
|
112178
112178
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112179
112179
|
start() {
|
|
112180
|
-
this.onReaddir(fs$
|
|
112180
|
+
this.onReaddir(fs$6.readdirSync(this.path));
|
|
112181
112181
|
return this;
|
|
112182
112182
|
}
|
|
112183
112183
|
addIgnoreFile(file, then) {
|
|
112184
112184
|
const ig = path$9.resolve(this.path, file);
|
|
112185
|
-
this.onReadIgnoreFile(file, fs$
|
|
112185
|
+
this.onReadIgnoreFile(file, fs$6.readFileSync(ig, "utf8"), then);
|
|
112186
112186
|
}
|
|
112187
112187
|
stat({ entry, file, dir }, then) {
|
|
112188
112188
|
const abs = this.path + "/" + entry;
|
|
112189
|
-
let st = fs$
|
|
112189
|
+
let st = fs$6.lstatSync(abs);
|
|
112190
112190
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112191
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112191
|
+
if (this.follow && isSymbolicLink) st = fs$6.statSync(abs);
|
|
112192
112192
|
this.onstat({
|
|
112193
112193
|
st,
|
|
112194
112194
|
entry,
|
|
@@ -112219,7 +112219,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112219
112219
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112220
112220
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112221
112221
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112222
|
-
const { basename: basename$3, dirname: dirname$
|
|
112222
|
+
const { basename: basename$3, dirname: dirname$7, extname: extname$1, join: join$9, relative, resolve: resolve$6, sep } = require("path");
|
|
112223
112223
|
const { log } = require_lib$29();
|
|
112224
112224
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112225
112225
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112252,7 +112252,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112252
112252
|
const normalizePath = (path$46) => path$46.split("\\").join("/");
|
|
112253
112253
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112254
112254
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112255
|
-
const ignoreContent = readFile$4(join$
|
|
112255
|
+
const ignoreContent = readFile$4(join$9(root, file), { encoding: "utf8" });
|
|
112256
112256
|
result.push(ignoreContent);
|
|
112257
112257
|
break;
|
|
112258
112258
|
} catch (err) {
|
|
@@ -112261,8 +112261,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112261
112261
|
}
|
|
112262
112262
|
if (!rel) return result;
|
|
112263
112263
|
const firstRel = rel.split(sep, 1)[0];
|
|
112264
|
-
const newRoot = join$
|
|
112265
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112264
|
+
const newRoot = join$9(root, firstRel);
|
|
112265
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$9(root, rel)), result);
|
|
112266
112266
|
};
|
|
112267
112267
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112268
112268
|
constructor(tree, opts) {
|
|
@@ -112291,7 +112291,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112291
112291
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112292
112292
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112293
112293
|
if (path$47 !== prefix && workspaces.includes(path$47)) {
|
|
112294
|
-
const relpath = relative(options.prefix, dirname$
|
|
112294
|
+
const relpath = relative(options.prefix, dirname$7(options.path));
|
|
112295
112295
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112296
112296
|
} else if (path$47 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112297
112297
|
}
|
|
@@ -112329,7 +112329,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112329
112329
|
let ignoreFiles = null;
|
|
112330
112330
|
if (this.tree.workspaces) {
|
|
112331
112331
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112332
|
-
const entryPath = join$
|
|
112332
|
+
const entryPath = join$9(this.path, entry).replace(/\\/g, "/");
|
|
112333
112333
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112334
112334
|
defaultRules,
|
|
112335
112335
|
"package.json",
|
|
@@ -112389,7 +112389,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112389
112389
|
if (file.endsWith("/*")) file += "*";
|
|
112390
112390
|
const inverse = `!${file}`;
|
|
112391
112391
|
try {
|
|
112392
|
-
const stat = lstat$1(join$
|
|
112392
|
+
const stat = lstat$1(join$9(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112393
112393
|
if (stat.isFile()) {
|
|
112394
112394
|
strict.unshift(inverse);
|
|
112395
112395
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112446,7 +112446,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112446
112446
|
walker.start();
|
|
112447
112447
|
});
|
|
112448
112448
|
const relativeFrom = relative(this.root, walker.path);
|
|
112449
|
-
for (const file of bundled) this.result.add(join$
|
|
112449
|
+
for (const file of bundled) this.result.add(join$9(relativeFrom, file).replace(/\\/g, "/"));
|
|
112450
112450
|
}
|
|
112451
112451
|
}
|
|
112452
112452
|
};
|
|
@@ -112470,7 +112470,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112470
112470
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112471
112471
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112472
112472
|
const { log } = require_lib$29();
|
|
112473
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112473
|
+
const { resolve: resolve$5, dirname: dirname$6, delimiter: delimiter$1 } = require("path");
|
|
112474
112474
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112475
112475
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112476
112476
|
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);
|
|
@@ -112488,7 +112488,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112488
112488
|
do {
|
|
112489
112489
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112490
112490
|
pp = p;
|
|
112491
|
-
p = dirname$
|
|
112491
|
+
p = dirname$6(p);
|
|
112492
112492
|
} while (p !== pp);
|
|
112493
112493
|
pathArr.push(nodeGypPath, PATH);
|
|
112494
112494
|
const pathVal = pathArr.join(delimiter$1);
|
|
@@ -112556,8 +112556,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112556
112556
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112557
112557
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112558
112558
|
const util$3 = require("util");
|
|
112559
|
-
const fs$
|
|
112560
|
-
const { stat } = fs$
|
|
112559
|
+
const fs$5 = require("fs");
|
|
112560
|
+
const { stat } = fs$5.promises || { stat: util$3.promisify(fs$5.stat) };
|
|
112561
112561
|
async function isNodeGypPackage(path) {
|
|
112562
112562
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112563
112563
|
}
|
|
@@ -123529,7 +123529,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123529
123529
|
//#endregion
|
|
123530
123530
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123531
123531
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123532
|
-
const fs$
|
|
123532
|
+
const fs$4 = require("fs");
|
|
123533
123533
|
const npa = require_npa();
|
|
123534
123534
|
const { URL: URL$2 } = require("url");
|
|
123535
123535
|
const regFromURI = (uri, opts) => {
|
|
@@ -123569,7 +123569,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123569
123569
|
};
|
|
123570
123570
|
const maybeReadFile = (file) => {
|
|
123571
123571
|
try {
|
|
123572
|
-
return fs$
|
|
123572
|
+
return fs$4.readFileSync(file, "utf8");
|
|
123573
123573
|
} catch (er) {
|
|
123574
123574
|
if (er.code !== "ENOENT") throw er;
|
|
123575
123575
|
return null;
|
|
@@ -139814,7 +139814,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139814
139814
|
exports.Updater = void 0;
|
|
139815
139815
|
const models_1 = require_dist$4();
|
|
139816
139816
|
const debug_1 = __importDefault(require_src$1());
|
|
139817
|
-
const fs$
|
|
139817
|
+
const fs$3 = __importStar(require("fs"));
|
|
139818
139818
|
const path$8 = __importStar(require("path"));
|
|
139819
139819
|
const package_json_1 = require_package$1();
|
|
139820
139820
|
const config_1 = require_config$1();
|
|
@@ -139885,17 +139885,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139885
139885
|
}
|
|
139886
139886
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
139887
139887
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
139888
|
-
await targetInfo.verify(fs$
|
|
139888
|
+
await targetInfo.verify(fs$3.createReadStream(fileName));
|
|
139889
139889
|
log("WRITE %s", targetPath);
|
|
139890
|
-
fs$
|
|
139890
|
+
fs$3.copyFileSync(fileName, targetPath);
|
|
139891
139891
|
});
|
|
139892
139892
|
return targetPath;
|
|
139893
139893
|
}
|
|
139894
139894
|
async findCachedTarget(targetInfo, filePath) {
|
|
139895
139895
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
139896
139896
|
try {
|
|
139897
|
-
if (fs$
|
|
139898
|
-
await targetInfo.verify(fs$
|
|
139897
|
+
if (fs$3.existsSync(filePath)) {
|
|
139898
|
+
await targetInfo.verify(fs$3.createReadStream(filePath));
|
|
139899
139899
|
return filePath;
|
|
139900
139900
|
}
|
|
139901
139901
|
} catch (error) {
|
|
@@ -139905,7 +139905,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139905
139905
|
loadLocalMetadata(fileName) {
|
|
139906
139906
|
const filePath = path$8.join(this.dir, `${fileName}.json`);
|
|
139907
139907
|
log("READ %s", filePath);
|
|
139908
|
-
return fs$
|
|
139908
|
+
return fs$3.readFileSync(filePath);
|
|
139909
139909
|
}
|
|
139910
139910
|
async loadRoot() {
|
|
139911
139911
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140023,7 +140023,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140023
140023
|
try {
|
|
140024
140024
|
const filePath = path$8.join(this.dir, `${encodedName}.json`);
|
|
140025
140025
|
log("WRITE %s", filePath);
|
|
140026
|
-
fs$
|
|
140026
|
+
fs$3.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140027
140027
|
} catch (error) {
|
|
140028
140028
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140029
140029
|
}
|
|
@@ -141839,7 +141839,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
141839
141839
|
//#endregion
|
|
141840
141840
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
141841
141841
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
141842
|
-
const { basename: basename$2, dirname: dirname$
|
|
141842
|
+
const { basename: basename$2, dirname: dirname$5 } = require("node:path");
|
|
141843
141843
|
const { rm: rm$6, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
141844
141844
|
const PackageJson = require_lib$18();
|
|
141845
141845
|
const cacache = require_lib$14();
|
|
@@ -141888,7 +141888,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
141888
141888
|
this.npmBin = opts.npmBin || "npm";
|
|
141889
141889
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
141890
141890
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
141891
|
-
`--cache=${dirname$
|
|
141891
|
+
`--cache=${dirname$5(this.cache)}`,
|
|
141892
141892
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
141893
141893
|
`--prefer-online=${!!this.preferOnline}`,
|
|
141894
141894
|
`--offline=${!!this.offline}`,
|
|
@@ -142044,7 +142044,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142044
142044
|
}));
|
|
142045
142045
|
}
|
|
142046
142046
|
async tarballFile(dest) {
|
|
142047
|
-
await mkdir$4(dirname$
|
|
142047
|
+
await mkdir$4(dirname$5(dest), { recursive: true });
|
|
142048
142048
|
return this.#toFile(dest);
|
|
142049
142049
|
}
|
|
142050
142050
|
#extract(dest, tarball) {
|
|
@@ -150465,7 +150465,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150465
150465
|
}
|
|
150466
150466
|
})();
|
|
150467
150467
|
}));
|
|
150468
|
-
|
|
150468
|
+
//#endregion
|
|
150469
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150470
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150469
150471
|
const { promisify } = require("util");
|
|
150470
150472
|
const path$4 = require("path");
|
|
150471
150473
|
const { createHash } = require("crypto");
|
|
@@ -150917,12 +150919,13 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150917
150919
|
response.writeHead(response.statusCode || 200, headers);
|
|
150918
150920
|
stream.pipe(response);
|
|
150919
150921
|
};
|
|
150920
|
-
}))
|
|
150922
|
+
}));
|
|
150921
150923
|
require_semver();
|
|
150922
150924
|
require_lib();
|
|
150925
|
+
require_src();
|
|
150923
150926
|
//#endregion
|
|
150924
150927
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
150925
|
-
const { join: join$
|
|
150928
|
+
const { join: join$7 } = node_path.default;
|
|
150926
150929
|
//#endregion
|
|
150927
150930
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
150928
150931
|
const localPluginsMap = /* @__PURE__ */ new Map();
|