@pipelab/plugin-poki 1.0.0-beta.19 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +344 -341
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2116,8 +2116,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2116
2116
|
completed: false
|
|
2117
2117
|
}
|
|
2118
2118
|
},
|
|
2119
|
-
plugins: DEFAULT_PLUGINS
|
|
2120
|
-
isInternalMigrationBannerClosed: false
|
|
2119
|
+
plugins: DEFAULT_PLUGINS
|
|
2121
2120
|
});
|
|
2122
2121
|
settingsMigratorInternal.createMigrations({
|
|
2123
2122
|
defaultValue: defaultAppSettings,
|
|
@@ -2168,12 +2167,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2168
2167
|
createMigration({
|
|
2169
2168
|
version: "6.0.0",
|
|
2170
2169
|
up: (state) => {
|
|
2171
|
-
const { cacheFolder
|
|
2170
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2172
2171
|
return {
|
|
2173
2172
|
...rest,
|
|
2173
|
+
cacheFolder,
|
|
2174
2174
|
agents: [],
|
|
2175
|
-
plugins: DEFAULT_PLUGINS
|
|
2176
|
-
isInternalMigrationBannerClosed: false
|
|
2175
|
+
plugins: DEFAULT_PLUGINS
|
|
2177
2176
|
};
|
|
2178
2177
|
}
|
|
2179
2178
|
}),
|
|
@@ -2526,7 +2525,8 @@ object({
|
|
|
2526
2525
|
enabled: boolean(),
|
|
2527
2526
|
description: string()
|
|
2528
2527
|
})),
|
|
2529
|
-
|
|
2528
|
+
cacheFolder: optional(string()),
|
|
2529
|
+
tempFolder: optional(string())
|
|
2530
2530
|
});
|
|
2531
2531
|
const ConnectionValidator = looseObject({
|
|
2532
2532
|
id: string(),
|
|
@@ -49930,7 +49930,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49930
49930
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49931
49931
|
module.exports = isexe;
|
|
49932
49932
|
isexe.sync = sync;
|
|
49933
|
-
var fs$
|
|
49933
|
+
var fs$38 = require("fs");
|
|
49934
49934
|
function checkPathExt(path, options) {
|
|
49935
49935
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49936
49936
|
if (!pathext) return true;
|
|
@@ -49947,12 +49947,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49947
49947
|
return checkPathExt(path, options);
|
|
49948
49948
|
}
|
|
49949
49949
|
function isexe(path, options, cb) {
|
|
49950
|
-
fs$
|
|
49950
|
+
fs$38.stat(path, function(er, stat) {
|
|
49951
49951
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49952
49952
|
});
|
|
49953
49953
|
}
|
|
49954
49954
|
function sync(path, options) {
|
|
49955
|
-
return checkStat(fs$
|
|
49955
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49956
49956
|
}
|
|
49957
49957
|
}));
|
|
49958
49958
|
//#endregion
|
|
@@ -49960,14 +49960,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49960
49960
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49961
49961
|
module.exports = isexe;
|
|
49962
49962
|
isexe.sync = sync;
|
|
49963
|
-
var fs$
|
|
49963
|
+
var fs$37 = require("fs");
|
|
49964
49964
|
function isexe(path, options, cb) {
|
|
49965
|
-
fs$
|
|
49965
|
+
fs$37.stat(path, function(er, stat) {
|
|
49966
49966
|
cb(er, er ? false : checkStat(stat, options));
|
|
49967
49967
|
});
|
|
49968
49968
|
}
|
|
49969
49969
|
function sync(path, options) {
|
|
49970
|
-
return checkStat(fs$
|
|
49970
|
+
return checkStat(fs$37.statSync(path), options);
|
|
49971
49971
|
}
|
|
49972
49972
|
function checkStat(stat, options) {
|
|
49973
49973
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50182,16 +50182,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50182
50182
|
//#endregion
|
|
50183
50183
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50184
50184
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50185
|
-
const fs$
|
|
50185
|
+
const fs$36 = require("fs");
|
|
50186
50186
|
const shebangCommand = require_shebang_command();
|
|
50187
50187
|
function readShebang(command) {
|
|
50188
50188
|
const size = 150;
|
|
50189
50189
|
const buffer = Buffer.alloc(size);
|
|
50190
50190
|
let fd;
|
|
50191
50191
|
try {
|
|
50192
|
-
fd = fs$
|
|
50193
|
-
fs$
|
|
50194
|
-
fs$
|
|
50192
|
+
fd = fs$36.openSync(command, "r");
|
|
50193
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50194
|
+
fs$36.closeSync(fd);
|
|
50195
50195
|
} catch (e) {}
|
|
50196
50196
|
return shebangCommand(buffer.toString());
|
|
50197
50197
|
}
|
|
@@ -57148,7 +57148,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57148
57148
|
const { Minipass } = require_minipass$4();
|
|
57149
57149
|
const Pax = require_pax();
|
|
57150
57150
|
const Header = require_header();
|
|
57151
|
-
const fs$
|
|
57151
|
+
const fs$35 = require("fs");
|
|
57152
57152
|
const path$33 = require("path");
|
|
57153
57153
|
const normPath = require_normalize_windows_path();
|
|
57154
57154
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57236,7 +57236,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57236
57236
|
return super.emit(ev, ...data);
|
|
57237
57237
|
}
|
|
57238
57238
|
[LSTAT]() {
|
|
57239
|
-
fs$
|
|
57239
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57240
57240
|
if (er) return this.emit("error", er);
|
|
57241
57241
|
this[ONLSTAT](stat);
|
|
57242
57242
|
});
|
|
@@ -57301,7 +57301,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57301
57301
|
this.end();
|
|
57302
57302
|
}
|
|
57303
57303
|
[SYMLINK]() {
|
|
57304
|
-
fs$
|
|
57304
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57305
57305
|
if (er) return this.emit("error", er);
|
|
57306
57306
|
this[ONREADLINK](linkpath);
|
|
57307
57307
|
});
|
|
@@ -57332,7 +57332,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57332
57332
|
this[OPENFILE]();
|
|
57333
57333
|
}
|
|
57334
57334
|
[OPENFILE]() {
|
|
57335
|
-
fs$
|
|
57335
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57336
57336
|
if (er) return this.emit("error", er);
|
|
57337
57337
|
this[ONOPENFILE](fd);
|
|
57338
57338
|
});
|
|
@@ -57352,13 +57352,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57352
57352
|
}
|
|
57353
57353
|
[READ]() {
|
|
57354
57354
|
const { fd, buf, offset, length, pos } = this;
|
|
57355
|
-
fs$
|
|
57355
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57356
57356
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57357
57357
|
this[ONREAD](bytesRead);
|
|
57358
57358
|
});
|
|
57359
57359
|
}
|
|
57360
57360
|
[CLOSE](cb) {
|
|
57361
|
-
fs$
|
|
57361
|
+
fs$35.close(this.fd, cb);
|
|
57362
57362
|
}
|
|
57363
57363
|
[ONREAD](bytesRead) {
|
|
57364
57364
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57414,19 +57414,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57414
57414
|
});
|
|
57415
57415
|
var WriteEntrySync = class extends WriteEntry {
|
|
57416
57416
|
[LSTAT]() {
|
|
57417
|
-
this[ONLSTAT](fs$
|
|
57417
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57418
57418
|
}
|
|
57419
57419
|
[SYMLINK]() {
|
|
57420
|
-
this[ONREADLINK](fs$
|
|
57420
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57421
57421
|
}
|
|
57422
57422
|
[OPENFILE]() {
|
|
57423
|
-
this[ONOPENFILE](fs$
|
|
57423
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57424
57424
|
}
|
|
57425
57425
|
[READ]() {
|
|
57426
57426
|
let threw = true;
|
|
57427
57427
|
try {
|
|
57428
57428
|
const { fd, buf, offset, length, pos } = this;
|
|
57429
|
-
const bytesRead = fs$
|
|
57429
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57430
57430
|
this[ONREAD](bytesRead);
|
|
57431
57431
|
threw = false;
|
|
57432
57432
|
} finally {
|
|
@@ -57439,7 +57439,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57439
57439
|
cb();
|
|
57440
57440
|
}
|
|
57441
57441
|
[CLOSE](cb) {
|
|
57442
|
-
fs$
|
|
57442
|
+
fs$35.closeSync(this.fd);
|
|
57443
57443
|
cb();
|
|
57444
57444
|
}
|
|
57445
57445
|
};
|
|
@@ -57836,7 +57836,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57836
57836
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57837
57837
|
const WRITE = Symbol("write");
|
|
57838
57838
|
const ONDRAIN = Symbol("ondrain");
|
|
57839
|
-
const fs$
|
|
57839
|
+
const fs$34 = require("fs");
|
|
57840
57840
|
const path$32 = require("path");
|
|
57841
57841
|
const warner = require_warn_mixin();
|
|
57842
57842
|
const normPath = require_normalize_windows_path();
|
|
@@ -57925,7 +57925,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57925
57925
|
[STAT](job) {
|
|
57926
57926
|
job.pending = true;
|
|
57927
57927
|
this[JOBS] += 1;
|
|
57928
|
-
fs$
|
|
57928
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57929
57929
|
job.pending = false;
|
|
57930
57930
|
this[JOBS] -= 1;
|
|
57931
57931
|
if (er) this.emit("error", er);
|
|
@@ -57941,7 +57941,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57941
57941
|
[READDIR](job) {
|
|
57942
57942
|
job.pending = true;
|
|
57943
57943
|
this[JOBS] += 1;
|
|
57944
|
-
fs$
|
|
57944
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57945
57945
|
job.pending = false;
|
|
57946
57946
|
this[JOBS] -= 1;
|
|
57947
57947
|
if (er) return this.emit("error", er);
|
|
@@ -58059,10 +58059,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58059
58059
|
resume() {}
|
|
58060
58060
|
[STAT](job) {
|
|
58061
58061
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58062
|
-
this[ONSTAT](job, fs$
|
|
58062
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58063
58063
|
}
|
|
58064
58064
|
[READDIR](job, stat) {
|
|
58065
|
-
this[ONREADDIR](job, fs$
|
|
58065
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58066
58066
|
}
|
|
58067
58067
|
[PIPE](job) {
|
|
58068
58068
|
const source = job.entry;
|
|
@@ -58518,8 +58518,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58518
58518
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58519
58519
|
const MiniPass = require_minipass$2();
|
|
58520
58520
|
const EE$11 = require("events").EventEmitter;
|
|
58521
|
-
const fs$
|
|
58522
|
-
let writev = fs$
|
|
58521
|
+
const fs$33 = require("fs");
|
|
58522
|
+
let writev = fs$33.writev;
|
|
58523
58523
|
/* istanbul ignore next */
|
|
58524
58524
|
if (!writev) {
|
|
58525
58525
|
const binding = process.binding("fs");
|
|
@@ -58590,7 +58590,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58590
58590
|
throw new TypeError("this is a readable stream");
|
|
58591
58591
|
}
|
|
58592
58592
|
[_open]() {
|
|
58593
|
-
fs$
|
|
58593
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58594
58594
|
}
|
|
58595
58595
|
[_onopen](er, fd) {
|
|
58596
58596
|
if (er) this[_onerror](er);
|
|
@@ -58609,7 +58609,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58609
58609
|
const buf = this[_makeBuf]();
|
|
58610
58610
|
/* istanbul ignore if */
|
|
58611
58611
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58612
|
-
fs$
|
|
58612
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58613
58613
|
}
|
|
58614
58614
|
}
|
|
58615
58615
|
[_onread](er, br, buf) {
|
|
@@ -58621,7 +58621,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58621
58621
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58622
58622
|
const fd = this[_fd];
|
|
58623
58623
|
this[_fd] = null;
|
|
58624
|
-
fs$
|
|
58624
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58625
58625
|
}
|
|
58626
58626
|
}
|
|
58627
58627
|
[_onerror](er) {
|
|
@@ -58659,7 +58659,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58659
58659
|
[_open]() {
|
|
58660
58660
|
let threw = true;
|
|
58661
58661
|
try {
|
|
58662
|
-
this[_onopen](null, fs$
|
|
58662
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58663
58663
|
threw = false;
|
|
58664
58664
|
} finally {
|
|
58665
58665
|
if (threw) this[_close]();
|
|
@@ -58673,7 +58673,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58673
58673
|
do {
|
|
58674
58674
|
const buf = this[_makeBuf]();
|
|
58675
58675
|
/* istanbul ignore next */
|
|
58676
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58676
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58677
58677
|
if (!this[_handleChunk](br, buf)) break;
|
|
58678
58678
|
} while (true);
|
|
58679
58679
|
this[_reading] = false;
|
|
@@ -58687,7 +58687,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58687
58687
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58688
58688
|
const fd = this[_fd];
|
|
58689
58689
|
this[_fd] = null;
|
|
58690
|
-
fs$
|
|
58690
|
+
fs$33.closeSync(fd);
|
|
58691
58691
|
this.emit("close");
|
|
58692
58692
|
}
|
|
58693
58693
|
}
|
|
@@ -58732,7 +58732,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58732
58732
|
this.emit("error", er);
|
|
58733
58733
|
}
|
|
58734
58734
|
[_open]() {
|
|
58735
|
-
fs$
|
|
58735
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58736
58736
|
}
|
|
58737
58737
|
[_onopen](er, fd) {
|
|
58738
58738
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58767,7 +58767,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58767
58767
|
return true;
|
|
58768
58768
|
}
|
|
58769
58769
|
[_write](buf) {
|
|
58770
|
-
fs$
|
|
58770
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58771
58771
|
}
|
|
58772
58772
|
[_onwrite](er, bw) {
|
|
58773
58773
|
if (er) this[_onerror](er);
|
|
@@ -58801,7 +58801,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58801
58801
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58802
58802
|
const fd = this[_fd];
|
|
58803
58803
|
this[_fd] = null;
|
|
58804
|
-
fs$
|
|
58804
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58805
58805
|
}
|
|
58806
58806
|
}
|
|
58807
58807
|
};
|
|
@@ -58809,28 +58809,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58809
58809
|
[_open]() {
|
|
58810
58810
|
let fd;
|
|
58811
58811
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58812
|
-
fd = fs$
|
|
58812
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58813
58813
|
} catch (er) {
|
|
58814
58814
|
if (er.code === "ENOENT") {
|
|
58815
58815
|
this[_flags] = "w";
|
|
58816
58816
|
return this[_open]();
|
|
58817
58817
|
} else throw er;
|
|
58818
58818
|
}
|
|
58819
|
-
else fd = fs$
|
|
58819
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58820
58820
|
this[_onopen](null, fd);
|
|
58821
58821
|
}
|
|
58822
58822
|
[_close]() {
|
|
58823
58823
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58824
58824
|
const fd = this[_fd];
|
|
58825
58825
|
this[_fd] = null;
|
|
58826
|
-
fs$
|
|
58826
|
+
fs$33.closeSync(fd);
|
|
58827
58827
|
this.emit("close");
|
|
58828
58828
|
}
|
|
58829
58829
|
}
|
|
58830
58830
|
[_write](buf) {
|
|
58831
58831
|
let threw = true;
|
|
58832
58832
|
try {
|
|
58833
|
-
this[_onwrite](null, fs$
|
|
58833
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58834
58834
|
threw = false;
|
|
58835
58835
|
} finally {
|
|
58836
58836
|
if (threw) try {
|
|
@@ -59195,7 +59195,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59195
59195
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59196
59196
|
const hlo = require_high_level_opt();
|
|
59197
59197
|
const Parser = require_parse$4();
|
|
59198
|
-
const fs$
|
|
59198
|
+
const fs$32 = require("fs");
|
|
59199
59199
|
const fsm = require_fs_minipass();
|
|
59200
59200
|
const path$31 = require("path");
|
|
59201
59201
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59236,15 +59236,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59236
59236
|
let threw = true;
|
|
59237
59237
|
let fd;
|
|
59238
59238
|
try {
|
|
59239
|
-
const stat = fs$
|
|
59239
|
+
const stat = fs$32.statSync(file);
|
|
59240
59240
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59241
|
-
if (stat.size < readSize) p.end(fs$
|
|
59241
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59242
59242
|
else {
|
|
59243
59243
|
let pos = 0;
|
|
59244
59244
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59245
|
-
fd = fs$
|
|
59245
|
+
fd = fs$32.openSync(file, "r");
|
|
59246
59246
|
while (pos < stat.size) {
|
|
59247
|
-
const bytesRead = fs$
|
|
59247
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59248
59248
|
pos += bytesRead;
|
|
59249
59249
|
p.write(buf.slice(0, bytesRead));
|
|
59250
59250
|
}
|
|
@@ -59253,7 +59253,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59253
59253
|
threw = false;
|
|
59254
59254
|
} finally {
|
|
59255
59255
|
if (threw && fd) try {
|
|
59256
|
-
fs$
|
|
59256
|
+
fs$32.closeSync(fd);
|
|
59257
59257
|
} catch (er) {}
|
|
59258
59258
|
}
|
|
59259
59259
|
};
|
|
@@ -59264,7 +59264,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59264
59264
|
const p = new Promise((resolve, reject) => {
|
|
59265
59265
|
parse.on("error", reject);
|
|
59266
59266
|
parse.on("end", resolve);
|
|
59267
|
-
fs$
|
|
59267
|
+
fs$32.stat(file, (er, stat) => {
|
|
59268
59268
|
if (er) reject(er);
|
|
59269
59269
|
else {
|
|
59270
59270
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59356,7 +59356,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59356
59356
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59357
59357
|
const hlo = require_high_level_opt();
|
|
59358
59358
|
const Pack = require_pack$1();
|
|
59359
|
-
const fs$
|
|
59359
|
+
const fs$31 = require("fs");
|
|
59360
59360
|
const fsm = require_fs_minipass();
|
|
59361
59361
|
const t = require_list();
|
|
59362
59362
|
const path$29 = require("path");
|
|
@@ -59376,16 +59376,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59376
59376
|
let position;
|
|
59377
59377
|
try {
|
|
59378
59378
|
try {
|
|
59379
|
-
fd = fs$
|
|
59379
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59380
59380
|
} catch (er) {
|
|
59381
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59381
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59382
59382
|
else throw er;
|
|
59383
59383
|
}
|
|
59384
|
-
const st = fs$
|
|
59384
|
+
const st = fs$31.fstatSync(fd);
|
|
59385
59385
|
const headBuf = Buffer.alloc(512);
|
|
59386
59386
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59387
59387
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59388
|
-
bytes = fs$
|
|
59388
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59389
59389
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59390
59390
|
if (!bytes) break POSITION;
|
|
59391
59391
|
}
|
|
@@ -59400,7 +59400,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59400
59400
|
streamSync(opt, p, position, fd, files);
|
|
59401
59401
|
} finally {
|
|
59402
59402
|
if (threw) try {
|
|
59403
|
-
fs$
|
|
59403
|
+
fs$31.closeSync(fd);
|
|
59404
59404
|
} catch (er) {}
|
|
59405
59405
|
}
|
|
59406
59406
|
};
|
|
@@ -59417,7 +59417,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59417
59417
|
const p = new Pack(opt);
|
|
59418
59418
|
const getPos = (fd, size, cb_) => {
|
|
59419
59419
|
const cb = (er, pos) => {
|
|
59420
|
-
if (er) fs$
|
|
59420
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59421
59421
|
else cb_(null, pos);
|
|
59422
59422
|
};
|
|
59423
59423
|
let position = 0;
|
|
@@ -59427,7 +59427,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59427
59427
|
const onread = (er, bytes) => {
|
|
59428
59428
|
if (er) return cb(er);
|
|
59429
59429
|
bufPos += bytes;
|
|
59430
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59430
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59431
59431
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59432
59432
|
if (bufPos < 512) return cb(null, position);
|
|
59433
59433
|
const h = new Header(headBuf);
|
|
@@ -59438,9 +59438,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59438
59438
|
if (position >= size) return cb(null, position);
|
|
59439
59439
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59440
59440
|
bufPos = 0;
|
|
59441
|
-
fs$
|
|
59441
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59442
59442
|
};
|
|
59443
|
-
fs$
|
|
59443
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59444
59444
|
};
|
|
59445
59445
|
const promise = new Promise((resolve, reject) => {
|
|
59446
59446
|
p.on("error", reject);
|
|
@@ -59448,11 +59448,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59448
59448
|
const onopen = (er, fd) => {
|
|
59449
59449
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59450
59450
|
flag = "w+";
|
|
59451
|
-
return fs$
|
|
59451
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59452
59452
|
}
|
|
59453
59453
|
if (er) return reject(er);
|
|
59454
|
-
fs$
|
|
59455
|
-
if (er) return fs$
|
|
59454
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59455
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59456
59456
|
getPos(fd, st.size, (er, position) => {
|
|
59457
59457
|
if (er) return reject(er);
|
|
59458
59458
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59466,7 +59466,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59466
59466
|
});
|
|
59467
59467
|
});
|
|
59468
59468
|
};
|
|
59469
|
-
fs$
|
|
59469
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59470
59470
|
});
|
|
59471
59471
|
return cb ? promise.then(cb, cb) : promise;
|
|
59472
59472
|
};
|
|
@@ -59519,32 +59519,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59519
59519
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59520
59520
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59521
59521
|
const { promisify: promisify$1 } = require("util");
|
|
59522
|
-
const fs$
|
|
59522
|
+
const fs$30 = require("fs");
|
|
59523
59523
|
const optsArg = (opts) => {
|
|
59524
59524
|
if (!opts) opts = {
|
|
59525
59525
|
mode: 511,
|
|
59526
|
-
fs: fs$
|
|
59526
|
+
fs: fs$30
|
|
59527
59527
|
};
|
|
59528
59528
|
else if (typeof opts === "object") opts = {
|
|
59529
59529
|
mode: 511,
|
|
59530
|
-
fs: fs$
|
|
59530
|
+
fs: fs$30,
|
|
59531
59531
|
...opts
|
|
59532
59532
|
};
|
|
59533
59533
|
else if (typeof opts === "number") opts = {
|
|
59534
59534
|
mode: opts,
|
|
59535
|
-
fs: fs$
|
|
59535
|
+
fs: fs$30
|
|
59536
59536
|
};
|
|
59537
59537
|
else if (typeof opts === "string") opts = {
|
|
59538
59538
|
mode: parseInt(opts, 8),
|
|
59539
|
-
fs: fs$
|
|
59539
|
+
fs: fs$30
|
|
59540
59540
|
};
|
|
59541
59541
|
else throw new TypeError("invalid options argument");
|
|
59542
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59542
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59543
59543
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59544
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59544
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59545
59545
|
opts.statAsync = promisify$1(opts.stat);
|
|
59546
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59547
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59546
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59547
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59548
59548
|
return opts;
|
|
59549
59549
|
};
|
|
59550
59550
|
module.exports = optsArg;
|
|
@@ -59575,17 +59575,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59575
59575
|
//#endregion
|
|
59576
59576
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59577
59577
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59578
|
-
const { dirname: dirname$
|
|
59578
|
+
const { dirname: dirname$15 } = require("path");
|
|
59579
59579
|
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59580
59580
|
if (path$82 === parent) return Promise.resolve();
|
|
59581
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59581
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$15(parent), parent) : void 0);
|
|
59582
59582
|
};
|
|
59583
59583
|
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59584
59584
|
if (path$83 === parent) return void 0;
|
|
59585
59585
|
try {
|
|
59586
59586
|
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59587
59587
|
} catch (er) {
|
|
59588
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59588
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$15(parent), parent) : void 0;
|
|
59589
59589
|
}
|
|
59590
59590
|
};
|
|
59591
59591
|
module.exports = {
|
|
@@ -59596,10 +59596,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59596
59596
|
//#endregion
|
|
59597
59597
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59598
59598
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59599
|
-
const { dirname: dirname$
|
|
59599
|
+
const { dirname: dirname$14 } = require("path");
|
|
59600
59600
|
const mkdirpManual = (path$80, opts, made) => {
|
|
59601
59601
|
opts.recursive = false;
|
|
59602
|
-
const parent = dirname$
|
|
59602
|
+
const parent = dirname$14(path$80);
|
|
59603
59603
|
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59604
59604
|
if (er.code !== "EISDIR") throw er;
|
|
59605
59605
|
});
|
|
@@ -59615,7 +59615,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59615
59615
|
});
|
|
59616
59616
|
};
|
|
59617
59617
|
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59618
|
-
const parent = dirname$
|
|
59618
|
+
const parent = dirname$14(path$81);
|
|
59619
59619
|
opts.recursive = false;
|
|
59620
59620
|
if (parent === path$81) try {
|
|
59621
59621
|
return opts.mkdirSync(path$81, opts);
|
|
@@ -59644,12 +59644,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59644
59644
|
//#endregion
|
|
59645
59645
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59646
59646
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59647
|
-
const { dirname: dirname$
|
|
59647
|
+
const { dirname: dirname$13 } = require("path");
|
|
59648
59648
|
const { findMade, findMadeSync } = require_find_made();
|
|
59649
59649
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59650
59650
|
const mkdirpNative = (path$78, opts) => {
|
|
59651
59651
|
opts.recursive = true;
|
|
59652
|
-
if (dirname$
|
|
59652
|
+
if (dirname$13(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59653
59653
|
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59654
59654
|
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59655
59655
|
else throw er;
|
|
@@ -59657,7 +59657,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59657
59657
|
};
|
|
59658
59658
|
const mkdirpNativeSync = (path$79, opts) => {
|
|
59659
59659
|
opts.recursive = true;
|
|
59660
|
-
if (dirname$
|
|
59660
|
+
if (dirname$13(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59661
59661
|
const made = findMadeSync(opts, path$79);
|
|
59662
59662
|
try {
|
|
59663
59663
|
opts.mkdirSync(path$79, opts);
|
|
@@ -59675,12 +59675,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59675
59675
|
//#endregion
|
|
59676
59676
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59677
59677
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59678
|
-
const fs$
|
|
59678
|
+
const fs$29 = require("fs");
|
|
59679
59679
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59680
59680
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59681
59681
|
module.exports = {
|
|
59682
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59683
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59682
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59683
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59684
59684
|
};
|
|
59685
59685
|
}));
|
|
59686
59686
|
//#endregion
|
|
@@ -59711,17 +59711,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59711
59711
|
//#endregion
|
|
59712
59712
|
//#region ../../node_modules/chownr/chownr.js
|
|
59713
59713
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59714
|
-
const fs$
|
|
59714
|
+
const fs$28 = require("fs");
|
|
59715
59715
|
const path$28 = require("path");
|
|
59716
59716
|
/* istanbul ignore next */
|
|
59717
|
-
const LCHOWN = fs$
|
|
59717
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59718
59718
|
/* istanbul ignore next */
|
|
59719
|
-
const LCHOWNSYNC = fs$
|
|
59719
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59720
59720
|
/* istanbul ignore next */
|
|
59721
|
-
const needEISDIRHandled = fs$
|
|
59721
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59722
59722
|
const lchownSync = (path$70, uid, gid) => {
|
|
59723
59723
|
try {
|
|
59724
|
-
return fs$
|
|
59724
|
+
return fs$28[LCHOWNSYNC](path$70, 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 chownSync = (path$71, uid, gid) => {
|
|
59731
59731
|
try {
|
|
59732
|
-
return fs$
|
|
59732
|
+
return fs$28.chownSync(path$71, uid, gid);
|
|
59733
59733
|
} catch (er) {
|
|
59734
59734
|
if (er.code !== "ENOENT") throw er;
|
|
59735
59735
|
}
|
|
@@ -59737,7 +59737,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59737
59737
|
/* istanbul ignore next */
|
|
59738
59738
|
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59739
59739
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59740
|
-
else fs$
|
|
59740
|
+
else fs$28.chown(path$72, uid, gid, cb);
|
|
59741
59741
|
} : (_, __, ___, cb) => cb;
|
|
59742
59742
|
/* istanbul ignore next */
|
|
59743
59743
|
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
@@ -59749,17 +59749,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59749
59749
|
}
|
|
59750
59750
|
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59751
59751
|
const nodeVersion = process.version;
|
|
59752
|
-
let readdir = (path$75, options, cb) => fs$
|
|
59753
|
-
let readdirSync = (path$76, options) => fs$
|
|
59752
|
+
let readdir = (path$75, options, cb) => fs$28.readdir(path$75, options, cb);
|
|
59753
|
+
let readdirSync = (path$76, options) => fs$28.readdirSync(path$76, options);
|
|
59754
59754
|
/* istanbul ignore next */
|
|
59755
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$
|
|
59755
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$28.readdir(path$77, cb);
|
|
59756
59756
|
const chown = (cpath, uid, gid, cb) => {
|
|
59757
|
-
fs$
|
|
59757
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59758
59758
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59759
59759
|
}));
|
|
59760
59760
|
};
|
|
59761
59761
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59762
|
-
if (typeof child === "string") return fs$
|
|
59762
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59763
59763
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59764
59764
|
stats.name = child;
|
|
59765
59765
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59789,7 +59789,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59789
59789
|
};
|
|
59790
59790
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59791
59791
|
if (typeof child === "string") try {
|
|
59792
|
-
const stats = fs$
|
|
59792
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
59793
59793
|
stats.name = child;
|
|
59794
59794
|
child = stats;
|
|
59795
59795
|
} catch (er) {
|
|
@@ -59818,7 +59818,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59818
59818
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59819
59819
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59820
59820
|
const mkdirp = require_mkdirp();
|
|
59821
|
-
const fs$
|
|
59821
|
+
const fs$27 = require("fs");
|
|
59822
59822
|
const path$27 = require("path");
|
|
59823
59823
|
const chownr = require_chownr();
|
|
59824
59824
|
const normPath = require_normalize_windows_path();
|
|
@@ -59845,7 +59845,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59845
59845
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59846
59846
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59847
59847
|
const checkCwd = (dir, cb) => {
|
|
59848
|
-
fs$
|
|
59848
|
+
fs$27.stat(dir, (er, st) => {
|
|
59849
59849
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59850
59850
|
cb(er);
|
|
59851
59851
|
});
|
|
@@ -59867,7 +59867,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59867
59867
|
else {
|
|
59868
59868
|
cSet(cache, dir, true);
|
|
59869
59869
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59870
|
-
else if (needChmod) fs$
|
|
59870
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59871
59871
|
else cb();
|
|
59872
59872
|
}
|
|
59873
59873
|
};
|
|
@@ -59881,17 +59881,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59881
59881
|
const p = parts.shift();
|
|
59882
59882
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59883
59883
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59884
|
-
fs$
|
|
59884
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59885
59885
|
};
|
|
59886
59886
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59887
|
-
if (er) fs$
|
|
59887
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59888
59888
|
if (statEr) {
|
|
59889
59889
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59890
59890
|
cb(statEr);
|
|
59891
59891
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59892
|
-
else if (unlink) fs$
|
|
59892
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59893
59893
|
if (er) return cb(er);
|
|
59894
|
-
fs$
|
|
59894
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59895
59895
|
});
|
|
59896
59896
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59897
59897
|
else cb(er);
|
|
@@ -59905,7 +59905,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59905
59905
|
let ok = false;
|
|
59906
59906
|
let code = "ENOTDIR";
|
|
59907
59907
|
try {
|
|
59908
|
-
ok = fs$
|
|
59908
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59909
59909
|
} catch (er) {
|
|
59910
59910
|
code = er.code;
|
|
59911
59911
|
} finally {
|
|
@@ -59927,7 +59927,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59927
59927
|
const done = (created) => {
|
|
59928
59928
|
cSet(cache, dir, true);
|
|
59929
59929
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59930
|
-
if (needChmod) fs$
|
|
59930
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59931
59931
|
};
|
|
59932
59932
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59933
59933
|
if (dir === cwd) {
|
|
@@ -59941,17 +59941,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59941
59941
|
part = normPath(path$27.resolve(part));
|
|
59942
59942
|
if (cGet(cache, part)) continue;
|
|
59943
59943
|
try {
|
|
59944
|
-
fs$
|
|
59944
|
+
fs$27.mkdirSync(part, mode);
|
|
59945
59945
|
created = created || part;
|
|
59946
59946
|
cSet(cache, part, true);
|
|
59947
59947
|
} catch (er) {
|
|
59948
|
-
const st = fs$
|
|
59948
|
+
const st = fs$27.lstatSync(part);
|
|
59949
59949
|
if (st.isDirectory()) {
|
|
59950
59950
|
cSet(cache, part, true);
|
|
59951
59951
|
continue;
|
|
59952
59952
|
} else if (unlink) {
|
|
59953
|
-
fs$
|
|
59954
|
-
fs$
|
|
59953
|
+
fs$27.unlinkSync(part);
|
|
59954
|
+
fs$27.mkdirSync(part, mode);
|
|
59955
59955
|
created = created || part;
|
|
59956
59956
|
cSet(cache, part, true);
|
|
59957
59957
|
continue;
|
|
@@ -59977,14 +59977,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59977
59977
|
const assert$1 = require("assert");
|
|
59978
59978
|
const normalize = require_normalize_unicode();
|
|
59979
59979
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59980
|
-
const { join: join$
|
|
59980
|
+
const { join: join$17 } = require("path");
|
|
59981
59981
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59982
59982
|
module.exports = () => {
|
|
59983
59983
|
const queues = /* @__PURE__ */ new Map();
|
|
59984
59984
|
const reservations = /* @__PURE__ */ new Map();
|
|
59985
59985
|
const getDirs = (path$61) => {
|
|
59986
59986
|
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
59987
|
-
if (set.length) path$62 = join$
|
|
59987
|
+
if (set.length) path$62 = join$17(set[set.length - 1], path$62);
|
|
59988
59988
|
set.push(path$62 || "/");
|
|
59989
59989
|
return set;
|
|
59990
59990
|
}, []);
|
|
@@ -60038,7 +60038,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60038
60038
|
};
|
|
60039
60039
|
const reserve = (paths, fn) => {
|
|
60040
60040
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60041
|
-
return stripSlashes(join$
|
|
60041
|
+
return stripSlashes(join$17(normalize(p))).toLowerCase();
|
|
60042
60042
|
});
|
|
60043
60043
|
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60044
60044
|
reservations.set(fn, {
|
|
@@ -60080,7 +60080,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60080
60080
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60081
60081
|
const assert = require("assert");
|
|
60082
60082
|
const Parser = require_parse$4();
|
|
60083
|
-
const fs$
|
|
60083
|
+
const fs$26 = require("fs");
|
|
60084
60084
|
const fsm = require_fs_minipass();
|
|
60085
60085
|
const path$26 = require("path");
|
|
60086
60086
|
const mkdir = require_mkdir();
|
|
@@ -60121,19 +60121,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60121
60121
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60122
60122
|
/* istanbul ignore next */
|
|
60123
60123
|
const unlinkFile = (path$57, cb) => {
|
|
60124
|
-
if (!isWindows) return fs$
|
|
60124
|
+
if (!isWindows) return fs$26.unlink(path$57, cb);
|
|
60125
60125
|
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60126
|
-
fs$
|
|
60126
|
+
fs$26.rename(path$57, name, (er) => {
|
|
60127
60127
|
if (er) return cb(er);
|
|
60128
|
-
fs$
|
|
60128
|
+
fs$26.unlink(name, cb);
|
|
60129
60129
|
});
|
|
60130
60130
|
};
|
|
60131
60131
|
/* istanbul ignore next */
|
|
60132
60132
|
const unlinkFileSync = (path$58) => {
|
|
60133
|
-
if (!isWindows) return fs$
|
|
60133
|
+
if (!isWindows) return fs$26.unlinkSync(path$58);
|
|
60134
60134
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60135
|
-
fs$
|
|
60136
|
-
fs$
|
|
60135
|
+
fs$26.renameSync(path$58, name);
|
|
60136
|
+
fs$26.unlinkSync(name);
|
|
60137
60137
|
};
|
|
60138
60138
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60139
60139
|
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
@@ -60319,7 +60319,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60319
60319
|
autoClose: false
|
|
60320
60320
|
});
|
|
60321
60321
|
stream.on("error", (er) => {
|
|
60322
|
-
if (stream.fd) fs$
|
|
60322
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60323
60323
|
stream.write = () => true;
|
|
60324
60324
|
this[ONERROR](er, entry);
|
|
60325
60325
|
fullyDone();
|
|
@@ -60328,12 +60328,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60328
60328
|
const done = (er) => {
|
|
60329
60329
|
if (er) {
|
|
60330
60330
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60331
|
-
if (stream.fd) fs$
|
|
60331
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60332
60332
|
this[ONERROR](er, entry);
|
|
60333
60333
|
fullyDone();
|
|
60334
60334
|
return;
|
|
60335
60335
|
}
|
|
60336
|
-
if (--actions === 0) fs$
|
|
60336
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60337
60337
|
if (er) this[ONERROR](er, entry);
|
|
60338
60338
|
else this[UNPEND]();
|
|
60339
60339
|
fullyDone();
|
|
@@ -60346,13 +60346,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60346
60346
|
actions++;
|
|
60347
60347
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60348
60348
|
const mtime = entry.mtime;
|
|
60349
|
-
fs$
|
|
60349
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60350
60350
|
}
|
|
60351
60351
|
if (this[DOCHOWN](entry)) {
|
|
60352
60352
|
actions++;
|
|
60353
60353
|
const uid = this[UID](entry);
|
|
60354
60354
|
const gid = this[GID](entry);
|
|
60355
|
-
fs$
|
|
60355
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60356
60356
|
}
|
|
60357
60357
|
done();
|
|
60358
60358
|
});
|
|
@@ -60384,11 +60384,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60384
60384
|
};
|
|
60385
60385
|
if (entry.mtime && !this.noMtime) {
|
|
60386
60386
|
actions++;
|
|
60387
|
-
fs$
|
|
60387
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60388
60388
|
}
|
|
60389
60389
|
if (this[DOCHOWN](entry)) {
|
|
60390
60390
|
actions++;
|
|
60391
|
-
fs$
|
|
60391
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60392
60392
|
}
|
|
60393
60393
|
done();
|
|
60394
60394
|
});
|
|
@@ -60461,7 +60461,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60461
60461
|
afterMakeParent();
|
|
60462
60462
|
};
|
|
60463
60463
|
const afterMakeParent = () => {
|
|
60464
|
-
fs$
|
|
60464
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60465
60465
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60466
60466
|
this[SKIP](entry);
|
|
60467
60467
|
done();
|
|
@@ -60473,9 +60473,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60473
60473
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60474
60474
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60475
60475
|
if (!needChmod) return afterChmod();
|
|
60476
|
-
return fs$
|
|
60476
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60477
60477
|
}
|
|
60478
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60478
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60479
60479
|
}
|
|
60480
60480
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60481
60481
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60501,7 +60501,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60501
60501
|
}
|
|
60502
60502
|
}
|
|
60503
60503
|
[LINK](entry, linkpath, link, done) {
|
|
60504
|
-
fs$
|
|
60504
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60505
60505
|
if (er) this[ONERROR](er, entry);
|
|
60506
60506
|
else {
|
|
60507
60507
|
this[UNPEND]();
|
|
@@ -60536,17 +60536,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60536
60536
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60537
60537
|
}
|
|
60538
60538
|
}
|
|
60539
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60539
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60540
60540
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60541
60541
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60542
60542
|
if (st.isDirectory()) {
|
|
60543
60543
|
if (entry.type === "Directory") {
|
|
60544
60544
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60545
|
-
fs$
|
|
60545
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60546
60546
|
}) : [];
|
|
60547
60547
|
return this[MAKEFS](er, entry);
|
|
60548
60548
|
}
|
|
60549
|
-
const [er] = callSync(() => fs$
|
|
60549
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60550
60550
|
this[MAKEFS](er, entry);
|
|
60551
60551
|
}
|
|
60552
60552
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60557,7 +60557,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60557
60557
|
const oner = (er) => {
|
|
60558
60558
|
let closeError;
|
|
60559
60559
|
try {
|
|
60560
|
-
fs$
|
|
60560
|
+
fs$26.closeSync(fd);
|
|
60561
60561
|
} catch (e) {
|
|
60562
60562
|
closeError = e;
|
|
60563
60563
|
}
|
|
@@ -60566,7 +60566,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60566
60566
|
};
|
|
60567
60567
|
let fd;
|
|
60568
60568
|
try {
|
|
60569
|
-
fd = fs$
|
|
60569
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60570
60570
|
} catch (er) {
|
|
60571
60571
|
return oner(er);
|
|
60572
60572
|
}
|
|
@@ -60577,7 +60577,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60577
60577
|
}
|
|
60578
60578
|
tx.on("data", (chunk) => {
|
|
60579
60579
|
try {
|
|
60580
|
-
fs$
|
|
60580
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60581
60581
|
} catch (er) {
|
|
60582
60582
|
oner(er);
|
|
60583
60583
|
}
|
|
@@ -60588,10 +60588,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60588
60588
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60589
60589
|
const mtime = entry.mtime;
|
|
60590
60590
|
try {
|
|
60591
|
-
fs$
|
|
60591
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60592
60592
|
} catch (futimeser) {
|
|
60593
60593
|
try {
|
|
60594
|
-
fs$
|
|
60594
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60595
60595
|
} catch (utimeser) {
|
|
60596
60596
|
er = futimeser;
|
|
60597
60597
|
}
|
|
@@ -60601,10 +60601,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60601
60601
|
const uid = this[UID](entry);
|
|
60602
60602
|
const gid = this[GID](entry);
|
|
60603
60603
|
try {
|
|
60604
|
-
fs$
|
|
60604
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60605
60605
|
} catch (fchowner) {
|
|
60606
60606
|
try {
|
|
60607
|
-
fs$
|
|
60607
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60608
60608
|
} catch (chowner) {
|
|
60609
60609
|
er = er || fchowner;
|
|
60610
60610
|
}
|
|
@@ -60622,10 +60622,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60622
60622
|
return;
|
|
60623
60623
|
}
|
|
60624
60624
|
if (entry.mtime && !this.noMtime) try {
|
|
60625
|
-
fs$
|
|
60625
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60626
60626
|
} catch (er) {}
|
|
60627
60627
|
if (this[DOCHOWN](entry)) try {
|
|
60628
|
-
fs$
|
|
60628
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60629
60629
|
} catch (er) {}
|
|
60630
60630
|
done();
|
|
60631
60631
|
entry.resume();
|
|
@@ -60650,7 +60650,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60650
60650
|
}
|
|
60651
60651
|
[LINK](entry, linkpath, link, done) {
|
|
60652
60652
|
try {
|
|
60653
|
-
fs$
|
|
60653
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60654
60654
|
done();
|
|
60655
60655
|
entry.resume();
|
|
60656
60656
|
} catch (er) {
|
|
@@ -60666,7 +60666,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60666
60666
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60667
60667
|
const hlo = require_high_level_opt();
|
|
60668
60668
|
const Unpack = require_unpack();
|
|
60669
|
-
const fs$
|
|
60669
|
+
const fs$25 = require("fs");
|
|
60670
60670
|
const fsm = require_fs_minipass();
|
|
60671
60671
|
const path$25 = require("path");
|
|
60672
60672
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60696,7 +60696,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60696
60696
|
const extractFileSync = (opt) => {
|
|
60697
60697
|
const u = new Unpack.Sync(opt);
|
|
60698
60698
|
const file = opt.file;
|
|
60699
|
-
const stat = fs$
|
|
60699
|
+
const stat = fs$25.statSync(file);
|
|
60700
60700
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60701
60701
|
new fsm.ReadStreamSync(file, {
|
|
60702
60702
|
readSize,
|
|
@@ -60710,7 +60710,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60710
60710
|
const p = new Promise((resolve, reject) => {
|
|
60711
60711
|
u.on("error", reject);
|
|
60712
60712
|
u.on("close", resolve);
|
|
60713
|
-
fs$
|
|
60713
|
+
fs$25.stat(file, (er, stat) => {
|
|
60714
60714
|
if (er) reject(er);
|
|
60715
60715
|
else {
|
|
60716
60716
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60793,7 +60793,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60793
60793
|
//#endregion
|
|
60794
60794
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60795
60795
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60796
|
-
var fs$
|
|
60796
|
+
var fs$24 = require("fs");
|
|
60797
60797
|
var util$9 = require("util");
|
|
60798
60798
|
var stream$1 = require("stream");
|
|
60799
60799
|
var Readable = stream$1.Readable;
|
|
@@ -60818,7 +60818,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60818
60818
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60819
60819
|
var self = this;
|
|
60820
60820
|
self.pend.go(function(cb) {
|
|
60821
|
-
fs$
|
|
60821
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60822
60822
|
cb();
|
|
60823
60823
|
callback(err, bytesRead, buffer);
|
|
60824
60824
|
});
|
|
@@ -60827,7 +60827,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60827
60827
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60828
60828
|
var self = this;
|
|
60829
60829
|
self.pend.go(function(cb) {
|
|
60830
|
-
fs$
|
|
60830
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60831
60831
|
cb();
|
|
60832
60832
|
callback(err, written, buffer);
|
|
60833
60833
|
});
|
|
@@ -60847,7 +60847,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60847
60847
|
self.refCount -= 1;
|
|
60848
60848
|
if (self.refCount > 0) return;
|
|
60849
60849
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60850
|
-
if (self.autoClose) fs$
|
|
60850
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60851
60851
|
function onCloseDone(err) {
|
|
60852
60852
|
if (err) self.emit("error", err);
|
|
60853
60853
|
else self.emit("close");
|
|
@@ -60878,7 +60878,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60878
60878
|
self.context.pend.go(function(cb) {
|
|
60879
60879
|
if (self.destroyed) return cb();
|
|
60880
60880
|
var buffer = new Buffer(toRead);
|
|
60881
|
-
fs$
|
|
60881
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60882
60882
|
if (err) self.destroy(err);
|
|
60883
60883
|
else if (bytesRead === 0) {
|
|
60884
60884
|
self.destroyed = true;
|
|
@@ -60924,7 +60924,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60924
60924
|
}
|
|
60925
60925
|
self.context.pend.go(function(cb) {
|
|
60926
60926
|
if (self.destroyed) return cb();
|
|
60927
|
-
fs$
|
|
60927
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60928
60928
|
if (err) {
|
|
60929
60929
|
self.destroy();
|
|
60930
60930
|
cb();
|
|
@@ -61331,7 +61331,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61331
61331
|
//#endregion
|
|
61332
61332
|
//#region ../../node_modules/yauzl/index.js
|
|
61333
61333
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61334
|
-
var fs$
|
|
61334
|
+
var fs$23 = require("fs");
|
|
61335
61335
|
var zlib$1 = require("zlib");
|
|
61336
61336
|
var fd_slicer = require_fd_slicer();
|
|
61337
61337
|
var crc32 = require_buffer_crc32();
|
|
@@ -61353,10 +61353,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61353
61353
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61354
61354
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61355
61355
|
if (callback == null) callback = defaultCallback;
|
|
61356
|
-
fs$
|
|
61356
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61357
61357
|
if (err) return callback(err);
|
|
61358
61358
|
fromFd(fd, options, function(err, zipfile) {
|
|
61359
|
-
if (err) fs$
|
|
61359
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61360
61360
|
callback(err, zipfile);
|
|
61361
61361
|
});
|
|
61362
61362
|
});
|
|
@@ -61373,7 +61373,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61373
61373
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61374
61374
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61375
61375
|
if (callback == null) callback = defaultCallback;
|
|
61376
|
-
fs$
|
|
61376
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61377
61377
|
if (err) return callback(err);
|
|
61378
61378
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61379
61379
|
});
|
|
@@ -62601,13 +62601,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62601
62601
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62602
62602
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62603
62603
|
module.exports = readdirGlob;
|
|
62604
|
-
const fs$
|
|
62604
|
+
const fs$22 = require("fs");
|
|
62605
62605
|
const { EventEmitter } = require("events");
|
|
62606
62606
|
const { Minimatch } = require_minimatch$1();
|
|
62607
62607
|
const { resolve: resolve$12 } = require("path");
|
|
62608
62608
|
function readdir(dir, strict) {
|
|
62609
62609
|
return new Promise((resolve, reject) => {
|
|
62610
|
-
fs$
|
|
62610
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62611
62611
|
if (err) switch (err.code) {
|
|
62612
62612
|
case "ENOTDIR":
|
|
62613
62613
|
if (strict) reject(err);
|
|
@@ -62629,7 +62629,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62629
62629
|
}
|
|
62630
62630
|
function stat(file, followSymlinks) {
|
|
62631
62631
|
return new Promise((resolve, reject) => {
|
|
62632
|
-
(followSymlinks ? fs$
|
|
62632
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62633
62633
|
if (err) switch (err.code) {
|
|
62634
62634
|
case "ENOENT":
|
|
62635
62635
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68668,7 +68668,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68668
68668
|
//#endregion
|
|
68669
68669
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68670
68670
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68671
|
-
var fs$
|
|
68671
|
+
var fs$21 = require("fs");
|
|
68672
68672
|
var polyfills = require_polyfills();
|
|
68673
68673
|
var legacy = require_legacy_streams();
|
|
68674
68674
|
var clone = require_clone$1();
|
|
@@ -68697,36 +68697,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68697
68697
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68698
68698
|
console.error(m);
|
|
68699
68699
|
};
|
|
68700
|
-
if (!fs$
|
|
68701
|
-
publishQueue(fs$
|
|
68702
|
-
fs$
|
|
68700
|
+
if (!fs$21[gracefulQueue]) {
|
|
68701
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68702
|
+
fs$21.close = (function(fs$close) {
|
|
68703
68703
|
function close(fd, cb) {
|
|
68704
|
-
return fs$close.call(fs$
|
|
68704
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68705
68705
|
if (!err) resetQueue();
|
|
68706
68706
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68707
68707
|
});
|
|
68708
68708
|
}
|
|
68709
68709
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68710
68710
|
return close;
|
|
68711
|
-
})(fs$
|
|
68712
|
-
fs$
|
|
68711
|
+
})(fs$21.close);
|
|
68712
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68713
68713
|
function closeSync(fd) {
|
|
68714
|
-
fs$closeSync.apply(fs$
|
|
68714
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68715
68715
|
resetQueue();
|
|
68716
68716
|
}
|
|
68717
68717
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68718
68718
|
return closeSync;
|
|
68719
|
-
})(fs$
|
|
68719
|
+
})(fs$21.closeSync);
|
|
68720
68720
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68721
|
-
debug(fs$
|
|
68722
|
-
require("assert").equal(fs$
|
|
68721
|
+
debug(fs$21[gracefulQueue]);
|
|
68722
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68723
68723
|
});
|
|
68724
68724
|
}
|
|
68725
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68726
|
-
module.exports = patch(clone(fs$
|
|
68727
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68728
|
-
module.exports = patch(fs$
|
|
68729
|
-
fs$
|
|
68725
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68726
|
+
module.exports = patch(clone(fs$21));
|
|
68727
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68728
|
+
module.exports = patch(fs$21);
|
|
68729
|
+
fs$21.__patched = true;
|
|
68730
68730
|
}
|
|
68731
68731
|
function patch(fs) {
|
|
68732
68732
|
polyfills(fs);
|
|
@@ -68981,23 +68981,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68981
68981
|
}
|
|
68982
68982
|
function enqueue(elem) {
|
|
68983
68983
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
68984
|
-
fs$
|
|
68984
|
+
fs$21[gracefulQueue].push(elem);
|
|
68985
68985
|
retry();
|
|
68986
68986
|
}
|
|
68987
68987
|
var retryTimer;
|
|
68988
68988
|
function resetQueue() {
|
|
68989
68989
|
var now = Date.now();
|
|
68990
|
-
for (var i = 0; i < fs$
|
|
68991
|
-
fs$
|
|
68992
|
-
fs$
|
|
68990
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
68991
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
68992
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
68993
68993
|
}
|
|
68994
68994
|
retry();
|
|
68995
68995
|
}
|
|
68996
68996
|
function retry() {
|
|
68997
68997
|
clearTimeout(retryTimer);
|
|
68998
68998
|
retryTimer = void 0;
|
|
68999
|
-
if (fs$
|
|
69000
|
-
var elem = fs$
|
|
68999
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
69000
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
69001
69001
|
var fn = elem[0];
|
|
69002
69002
|
var args = elem[1];
|
|
69003
69003
|
var err = elem[2];
|
|
@@ -69016,7 +69016,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69016
69016
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69017
69017
|
debug("RETRY", fn.name, args);
|
|
69018
69018
|
fn.apply(null, args.concat([startTime]));
|
|
69019
|
-
} else fs$
|
|
69019
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69020
69020
|
}
|
|
69021
69021
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69022
69022
|
}
|
|
@@ -84413,7 +84413,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84413
84413
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84414
84414
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84415
84415
|
*/
|
|
84416
|
-
var fs$
|
|
84416
|
+
var fs$20 = require("fs");
|
|
84417
84417
|
var glob = require_readdir_glob();
|
|
84418
84418
|
var async = require_async();
|
|
84419
84419
|
var path$22 = require("path");
|
|
@@ -84490,7 +84490,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84490
84490
|
data.sourcePath = filepath;
|
|
84491
84491
|
task.data = data;
|
|
84492
84492
|
this._entriesCount++;
|
|
84493
|
-
if (data.stats && data.stats instanceof fs$
|
|
84493
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84494
84494
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84495
84495
|
if (task) {
|
|
84496
84496
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84720,7 +84720,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84720
84720
|
callback();
|
|
84721
84721
|
return;
|
|
84722
84722
|
}
|
|
84723
|
-
fs$
|
|
84723
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84724
84724
|
if (this._state.aborted) {
|
|
84725
84725
|
setImmediate(callback);
|
|
84726
84726
|
return;
|
|
@@ -84786,7 +84786,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84786
84786
|
task.data.sourceType = "buffer";
|
|
84787
84787
|
task.source = Buffer.concat([]);
|
|
84788
84788
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84789
|
-
var linkPath = fs$
|
|
84789
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84790
84790
|
var dirName = path$22.dirname(task.filepath);
|
|
84791
84791
|
task.data.type = "symlink";
|
|
84792
84792
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -95875,7 +95875,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95875
95875
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95876
95876
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95877
95877
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95878
|
-
const { join: join$
|
|
95878
|
+
const { join: join$14, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95879
95879
|
const isWindows = process.platform === "win32";
|
|
95880
95880
|
/* istanbul ignore next */
|
|
95881
95881
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95905,7 +95905,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95905
95905
|
};
|
|
95906
95906
|
const getPathPart = (raw, cmd) => {
|
|
95907
95907
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95908
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95908
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
95909
95909
|
};
|
|
95910
95910
|
const which = async (cmd, opt = {}) => {
|
|
95911
95911
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96484,7 +96484,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96484
96484
|
//#endregion
|
|
96485
96485
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96486
96486
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96487
|
-
const fs$
|
|
96487
|
+
const fs$18 = require("node:fs");
|
|
96488
96488
|
const os$2 = require("node:os");
|
|
96489
96489
|
const path$20 = require("node:path");
|
|
96490
96490
|
const ini = require_ini();
|
|
@@ -96493,8 +96493,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96493
96493
|
const loadGitConfig = () => {
|
|
96494
96494
|
if (cachedConfig === null) try {
|
|
96495
96495
|
cachedConfig = {};
|
|
96496
|
-
if (fs$
|
|
96497
|
-
const configContent = fs$
|
|
96496
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96497
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96498
96498
|
cachedConfig = ini.parse(configContent);
|
|
96499
96499
|
}
|
|
96500
96500
|
} catch (error) {
|
|
@@ -96654,7 +96654,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96654
96654
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96655
96655
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96656
96656
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96657
|
-
const { join: join$
|
|
96657
|
+
const { join: join$13, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96658
96658
|
const isWindows = process.platform === "win32";
|
|
96659
96659
|
/* istanbul ignore next */
|
|
96660
96660
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96684,7 +96684,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96684
96684
|
};
|
|
96685
96685
|
const getPathPart = (raw, cmd) => {
|
|
96686
96686
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96687
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96687
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
96688
96688
|
};
|
|
96689
96689
|
const which = async (cmd, opt = {}) => {
|
|
96690
96690
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98363,7 +98363,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98363
98363
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98364
98364
|
const process$1 = require("node:process");
|
|
98365
98365
|
const nodeOs = require("node:os");
|
|
98366
|
-
const fs$
|
|
98366
|
+
const fs$17 = require("node:fs");
|
|
98367
98367
|
function isMusl(file) {
|
|
98368
98368
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98369
98369
|
}
|
|
@@ -98376,7 +98376,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98376
98376
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98377
98377
|
function getFamilyFromFilesystem() {
|
|
98378
98378
|
try {
|
|
98379
|
-
const content = fs$
|
|
98379
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98380
98380
|
if (content.includes("musl")) return "musl";
|
|
98381
98381
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98382
98382
|
return null;
|
|
@@ -98582,7 +98582,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98582
98582
|
//#endregion
|
|
98583
98583
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98584
98584
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98585
|
-
const { join: join$
|
|
98585
|
+
const { join: join$12, basename: basename$4 } = require("path");
|
|
98586
98586
|
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);
|
|
98587
98587
|
const normalizeString = (pkg) => {
|
|
98588
98588
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98605,9 +98605,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98605
98605
|
const clean = {};
|
|
98606
98606
|
let hasBins = false;
|
|
98607
98607
|
Object.keys(orig).forEach((binKey) => {
|
|
98608
|
-
const base = join$
|
|
98608
|
+
const base = join$12("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98609
98609
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98610
|
-
const binTarget = join$
|
|
98610
|
+
const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98611
98611
|
if (!binTarget) return;
|
|
98612
98612
|
clean[base] = binTarget;
|
|
98613
98613
|
hasBins = true;
|
|
@@ -98765,7 +98765,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98765
98765
|
const spawn = require_spawn();
|
|
98766
98766
|
const { isWindows } = require_utils$3();
|
|
98767
98767
|
const pickManifest = require_lib$20();
|
|
98768
|
-
const fs$
|
|
98768
|
+
const fs$16 = require("fs/promises");
|
|
98769
98769
|
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));
|
|
98770
98770
|
const maybeShallow = (repo, opts) => {
|
|
98771
98771
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98800,7 +98800,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98800
98800
|
...opts,
|
|
98801
98801
|
cwd: target
|
|
98802
98802
|
});
|
|
98803
|
-
return fs$
|
|
98803
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98804
98804
|
"config",
|
|
98805
98805
|
"--local",
|
|
98806
98806
|
"--add",
|
|
@@ -98838,7 +98838,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98838
98838
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98839
98839
|
};
|
|
98840
98840
|
const updateSubmodules = async (target, opts) => {
|
|
98841
|
-
if (!await fs$
|
|
98841
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98842
98842
|
return spawn([
|
|
98843
98843
|
"submodule",
|
|
98844
98844
|
"update",
|
|
@@ -98863,7 +98863,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98863
98863
|
...opts,
|
|
98864
98864
|
cwd: target
|
|
98865
98865
|
});
|
|
98866
|
-
return fs$
|
|
98866
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(cloneArgs.concat(lp))).then(() => git(["init"])).then(() => git(["checkout", ref])).then(() => updateSubmodules(target, opts)).then(() => git([
|
|
98867
98867
|
"rev-parse",
|
|
98868
98868
|
"--revs-only",
|
|
98869
98869
|
"HEAD"
|
|
@@ -98880,11 +98880,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98880
98880
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98881
98881
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98882
98882
|
const is = require_is();
|
|
98883
|
-
const { dirname: dirname$
|
|
98883
|
+
const { dirname: dirname$11 } = require("path");
|
|
98884
98884
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98885
98885
|
while (true) {
|
|
98886
98886
|
if (await is({ cwd })) return cwd;
|
|
98887
|
-
const next = dirname$
|
|
98887
|
+
const next = dirname$11(cwd);
|
|
98888
98888
|
if (cwd === root || cwd === next) return null;
|
|
98889
98889
|
cwd = next;
|
|
98890
98890
|
}
|
|
@@ -98918,7 +98918,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98918
98918
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98919
98919
|
const valid = require_valid$3();
|
|
98920
98920
|
const clean = require_clean$1();
|
|
98921
|
-
const fs$
|
|
98921
|
+
const fs$15 = require("node:fs/promises");
|
|
98922
98922
|
const path$17 = require("node:path");
|
|
98923
98923
|
const { log } = require_lib$29();
|
|
98924
98924
|
const moduleBuiltin = require("node:module");
|
|
@@ -99202,13 +99202,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99202
99202
|
}
|
|
99203
99203
|
}
|
|
99204
99204
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99205
|
-
await fs$
|
|
99205
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
99206
99206
|
scripts.start = "node server.js";
|
|
99207
99207
|
data.scripts = scripts;
|
|
99208
99208
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99209
99209
|
} catch {}
|
|
99210
99210
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99211
|
-
data.contributors = (await fs$
|
|
99211
|
+
data.contributors = (await fs$15.readFile(path$17.join(pkg.path, "AUTHORS"), "utf8")).split(/\r?\n/g).map((line) => line.replace(/^\s*#.*$/, "").trim()).filter((line) => line);
|
|
99212
99212
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99213
99213
|
} catch {}
|
|
99214
99214
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99227,7 +99227,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99227
99227
|
if (file.endsWith("README")) readmeFile = file;
|
|
99228
99228
|
}
|
|
99229
99229
|
if (readmeFile) {
|
|
99230
|
-
data.readme = await fs$
|
|
99230
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
99231
99231
|
data.readmeFilename = readmeFile;
|
|
99232
99232
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99233
99233
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99259,20 +99259,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99259
99259
|
});
|
|
99260
99260
|
let head;
|
|
99261
99261
|
if (gitRoot) try {
|
|
99262
|
-
head = await fs$
|
|
99262
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99263
99263
|
} catch (err) {}
|
|
99264
99264
|
let headData;
|
|
99265
99265
|
if (head) if (head.startsWith("ref: ")) {
|
|
99266
99266
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99267
99267
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
99268
99268
|
try {
|
|
99269
|
-
headData = await fs$
|
|
99269
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99270
99270
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99271
99271
|
} catch (err) {}
|
|
99272
99272
|
if (!headData) {
|
|
99273
99273
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
99274
99274
|
try {
|
|
99275
|
-
let refs = await fs$
|
|
99275
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99276
99276
|
if (refs) {
|
|
99277
99277
|
refs = refs.split("\n");
|
|
99278
99278
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99293,12 +99293,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99293
99293
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99294
99294
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
99295
99295
|
if (!("types" in data || "typings" in data)) try {
|
|
99296
|
-
await fs$
|
|
99296
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
99297
99297
|
data.types = dts.split(path$17.sep).join("/");
|
|
99298
99298
|
} catch {}
|
|
99299
99299
|
}
|
|
99300
99300
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99301
|
-
await fs$
|
|
99301
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
99302
99302
|
} catch {
|
|
99303
99303
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99304
99304
|
}
|
|
@@ -100680,7 +100680,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100680
100680
|
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();
|
|
100681
100681
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100682
100682
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100683
|
-
const { dirname: dirname$
|
|
100683
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100684
100684
|
const { fileURLToPath } = require("url");
|
|
100685
100685
|
const defaultOptions = {
|
|
100686
100686
|
dereference: false,
|
|
@@ -100754,7 +100754,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100754
100754
|
})]);
|
|
100755
100755
|
}
|
|
100756
100756
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100757
|
-
const destParent = dirname$
|
|
100757
|
+
const destParent = dirname$10(dest);
|
|
100758
100758
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100759
100759
|
await mkdir$8(destParent, { recursive: true });
|
|
100760
100760
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100767,8 +100767,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100767
100767
|
);
|
|
100768
100768
|
}
|
|
100769
100769
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100770
|
-
const srcParent = resolve$10(dirname$
|
|
100771
|
-
const destParent = resolve$10(dirname$
|
|
100770
|
+
const srcParent = resolve$10(dirname$10(src));
|
|
100771
|
+
const destParent = resolve$10(dirname$10(dest));
|
|
100772
100772
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100773
100773
|
let destStat;
|
|
100774
100774
|
try {
|
|
@@ -100889,15 +100889,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100889
100889
|
const dir = await readdir$6(src);
|
|
100890
100890
|
for (let i = 0; i < dir.length; i++) {
|
|
100891
100891
|
const item = dir[i];
|
|
100892
|
-
const srcItem = join$
|
|
100893
|
-
const destItem = join$
|
|
100892
|
+
const srcItem = join$11(src, item);
|
|
100893
|
+
const destItem = join$11(dest, item);
|
|
100894
100894
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100895
100895
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100896
100896
|
}
|
|
100897
100897
|
}
|
|
100898
100898
|
async function onLink(destStat, src, dest) {
|
|
100899
100899
|
let resolvedSrc = await readlink(src);
|
|
100900
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100900
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$10(src), resolvedSrc);
|
|
100901
100901
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100902
100902
|
let resolvedDest;
|
|
100903
100903
|
try {
|
|
@@ -100908,7 +100908,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100908
100908
|
// istanbul ignore next: should not be possible
|
|
100909
100909
|
throw err;
|
|
100910
100910
|
}
|
|
100911
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100911
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$10(dest), resolvedDest);
|
|
100912
100912
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100913
100913
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100914
100914
|
path: dest,
|
|
@@ -100932,7 +100932,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100932
100932
|
//#endregion
|
|
100933
100933
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100934
100934
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100935
|
-
const fs$
|
|
100935
|
+
const fs$14 = require("fs/promises");
|
|
100936
100936
|
const getOptions = require_get_options();
|
|
100937
100937
|
const node = require_node$1();
|
|
100938
100938
|
const polyfill = require_polyfill();
|
|
@@ -100947,20 +100947,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100947
100947
|
"recursive"
|
|
100948
100948
|
] });
|
|
100949
100949
|
// istanbul ignore next
|
|
100950
|
-
return useNative ? fs$
|
|
100950
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100951
100951
|
};
|
|
100952
100952
|
module.exports = cp;
|
|
100953
100953
|
}));
|
|
100954
100954
|
//#endregion
|
|
100955
100955
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100956
100956
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100957
|
-
const { join: join$
|
|
100957
|
+
const { join: join$10, sep: sep$1 } = require("path");
|
|
100958
100958
|
const getOptions = require_get_options();
|
|
100959
100959
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100960
100960
|
const withTempDir = async (root, fn, opts) => {
|
|
100961
100961
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100962
100962
|
await mkdir$7(root, { recursive: true });
|
|
100963
|
-
const target = await mkdtemp(join$
|
|
100963
|
+
const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100964
100964
|
let err;
|
|
100965
100965
|
let result;
|
|
100966
100966
|
try {
|
|
@@ -100983,10 +100983,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100983
100983
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100984
100984
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100985
100985
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100986
|
-
const { join: join$
|
|
100986
|
+
const { join: join$9 } = require("path");
|
|
100987
100987
|
const readdirScoped = async (dir) => {
|
|
100988
100988
|
const results = [];
|
|
100989
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100989
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$9(dir, item))) results.push(join$9(item, scopedItem));
|
|
100990
100990
|
else results.push(item);
|
|
100991
100991
|
return results;
|
|
100992
100992
|
};
|
|
@@ -100995,11 +100995,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100995
100995
|
//#endregion
|
|
100996
100996
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100997
100997
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100998
|
-
const { dirname: dirname$
|
|
100999
|
-
const fs$
|
|
100998
|
+
const { dirname: dirname$9, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100999
|
+
const fs$13 = require("fs/promises");
|
|
101000
101000
|
const pathExists = async (path$53) => {
|
|
101001
101001
|
try {
|
|
101002
|
-
await fs$
|
|
101002
|
+
await fs$13.access(path$53);
|
|
101003
101003
|
return true;
|
|
101004
101004
|
} catch (er) {
|
|
101005
101005
|
return er.code !== "ENOENT";
|
|
@@ -101012,34 +101012,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101012
101012
|
...options
|
|
101013
101013
|
};
|
|
101014
101014
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
101015
|
-
await fs$
|
|
101015
|
+
await fs$13.mkdir(dirname$9(destination), { recursive: true });
|
|
101016
101016
|
try {
|
|
101017
|
-
await fs$
|
|
101017
|
+
await fs$13.rename(source, destination);
|
|
101018
101018
|
} catch (error) {
|
|
101019
101019
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
101020
|
-
const sourceStat = await fs$
|
|
101020
|
+
const sourceStat = await fs$13.lstat(source);
|
|
101021
101021
|
if (sourceStat.isDirectory()) {
|
|
101022
|
-
const files = await fs$
|
|
101023
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101022
|
+
const files = await fs$13.readdir(source);
|
|
101023
|
+
await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
|
|
101024
101024
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101025
101025
|
source,
|
|
101026
101026
|
destination
|
|
101027
101027
|
});
|
|
101028
|
-
else await fs$
|
|
101028
|
+
else await fs$13.copyFile(source, destination);
|
|
101029
101029
|
} else throw error;
|
|
101030
101030
|
}
|
|
101031
101031
|
if (root) {
|
|
101032
101032
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101033
|
-
let target = await fs$
|
|
101033
|
+
let target = await fs$13.readlink(symSource);
|
|
101034
101034
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101035
101035
|
let targetStat = "file";
|
|
101036
101036
|
try {
|
|
101037
|
-
targetStat = await fs$
|
|
101037
|
+
targetStat = await fs$13.stat(resolve$9(dirname$9(symSource), target));
|
|
101038
101038
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101039
101039
|
} catch {}
|
|
101040
|
-
await fs$
|
|
101040
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
101041
101041
|
}));
|
|
101042
|
-
await fs$
|
|
101042
|
+
await fs$13.rm(source, {
|
|
101043
101043
|
recursive: true,
|
|
101044
101044
|
force: true
|
|
101045
101045
|
});
|
|
@@ -101062,7 +101062,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101062
101062
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101063
101063
|
const crypto$2 = require("crypto");
|
|
101064
101064
|
const { withTempDir } = require_lib$16();
|
|
101065
|
-
const fs$
|
|
101065
|
+
const fs$12 = require("fs/promises");
|
|
101066
101066
|
const path$16 = require("path");
|
|
101067
101067
|
module.exports.mkdir = mktmpdir;
|
|
101068
101068
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101072,12 +101072,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101072
101072
|
async function mktmpdir(cache, opts = {}) {
|
|
101073
101073
|
const { tmpPrefix } = opts;
|
|
101074
101074
|
const tmpDir = path$16.join(cache, "tmp");
|
|
101075
|
-
await fs$
|
|
101075
|
+
await fs$12.mkdir(tmpDir, {
|
|
101076
101076
|
recursive: true,
|
|
101077
101077
|
owner: "inherit"
|
|
101078
101078
|
});
|
|
101079
101079
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
101080
|
-
return fs$
|
|
101080
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101081
101081
|
}
|
|
101082
101082
|
module.exports.withTmp = withTmp;
|
|
101083
101083
|
function withTmp(cache, opts, cb) {
|
|
@@ -101457,8 +101457,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101457
101457
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101458
101458
|
const { Minipass } = require_commonjs$10();
|
|
101459
101459
|
const EE$4 = require("events").EventEmitter;
|
|
101460
|
-
const fs$
|
|
101461
|
-
const writev = fs$
|
|
101460
|
+
const fs$11 = require("fs");
|
|
101461
|
+
const writev = fs$11.writev;
|
|
101462
101462
|
const _autoClose = Symbol("_autoClose");
|
|
101463
101463
|
const _close = Symbol("_close");
|
|
101464
101464
|
const _ended = Symbol("_ended");
|
|
@@ -101518,7 +101518,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101518
101518
|
throw new TypeError("this is a readable stream");
|
|
101519
101519
|
}
|
|
101520
101520
|
[_open]() {
|
|
101521
|
-
fs$
|
|
101521
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101522
101522
|
}
|
|
101523
101523
|
[_onopen](er, fd) {
|
|
101524
101524
|
if (er) this[_onerror](er);
|
|
@@ -101537,7 +101537,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101537
101537
|
const buf = this[_makeBuf]();
|
|
101538
101538
|
/* istanbul ignore if */
|
|
101539
101539
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101540
|
-
fs$
|
|
101540
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101541
101541
|
}
|
|
101542
101542
|
}
|
|
101543
101543
|
[_onread](er, br, buf) {
|
|
@@ -101549,7 +101549,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101549
101549
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101550
101550
|
const fd = this[_fd];
|
|
101551
101551
|
this[_fd] = null;
|
|
101552
|
-
fs$
|
|
101552
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101553
101553
|
}
|
|
101554
101554
|
}
|
|
101555
101555
|
[_onerror](er) {
|
|
@@ -101587,7 +101587,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101587
101587
|
[_open]() {
|
|
101588
101588
|
let threw = true;
|
|
101589
101589
|
try {
|
|
101590
|
-
this[_onopen](null, fs$
|
|
101590
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101591
101591
|
threw = false;
|
|
101592
101592
|
} finally {
|
|
101593
101593
|
if (threw) this[_close]();
|
|
@@ -101601,7 +101601,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101601
101601
|
do {
|
|
101602
101602
|
const buf = this[_makeBuf]();
|
|
101603
101603
|
/* istanbul ignore next */
|
|
101604
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101604
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101605
101605
|
if (!this[_handleChunk](br, buf)) break;
|
|
101606
101606
|
} while (true);
|
|
101607
101607
|
this[_reading] = false;
|
|
@@ -101615,7 +101615,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101615
101615
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101616
101616
|
const fd = this[_fd];
|
|
101617
101617
|
this[_fd] = null;
|
|
101618
|
-
fs$
|
|
101618
|
+
fs$11.closeSync(fd);
|
|
101619
101619
|
this.emit("close");
|
|
101620
101620
|
}
|
|
101621
101621
|
}
|
|
@@ -101660,7 +101660,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101660
101660
|
this.emit("error", er);
|
|
101661
101661
|
}
|
|
101662
101662
|
[_open]() {
|
|
101663
|
-
fs$
|
|
101663
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101664
101664
|
}
|
|
101665
101665
|
[_onopen](er, fd) {
|
|
101666
101666
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101695,7 +101695,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101695
101695
|
return true;
|
|
101696
101696
|
}
|
|
101697
101697
|
[_write](buf) {
|
|
101698
|
-
fs$
|
|
101698
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101699
101699
|
}
|
|
101700
101700
|
[_onwrite](er, bw) {
|
|
101701
101701
|
if (er) this[_onerror](er);
|
|
@@ -101729,7 +101729,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101729
101729
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101730
101730
|
const fd = this[_fd];
|
|
101731
101731
|
this[_fd] = null;
|
|
101732
|
-
fs$
|
|
101732
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101733
101733
|
}
|
|
101734
101734
|
}
|
|
101735
101735
|
};
|
|
@@ -101737,28 +101737,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101737
101737
|
[_open]() {
|
|
101738
101738
|
let fd;
|
|
101739
101739
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101740
|
-
fd = fs$
|
|
101740
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101741
101741
|
} catch (er) {
|
|
101742
101742
|
if (er.code === "ENOENT") {
|
|
101743
101743
|
this[_flags] = "w";
|
|
101744
101744
|
return this[_open]();
|
|
101745
101745
|
} else throw er;
|
|
101746
101746
|
}
|
|
101747
|
-
else fd = fs$
|
|
101747
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101748
101748
|
this[_onopen](null, fd);
|
|
101749
101749
|
}
|
|
101750
101750
|
[_close]() {
|
|
101751
101751
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101752
101752
|
const fd = this[_fd];
|
|
101753
101753
|
this[_fd] = null;
|
|
101754
|
-
fs$
|
|
101754
|
+
fs$11.closeSync(fd);
|
|
101755
101755
|
this.emit("close");
|
|
101756
101756
|
}
|
|
101757
101757
|
}
|
|
101758
101758
|
[_write](buf) {
|
|
101759
101759
|
let threw = true;
|
|
101760
101760
|
try {
|
|
101761
|
-
this[_onwrite](null, fs$
|
|
101761
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101762
101762
|
threw = false;
|
|
101763
101763
|
} finally {
|
|
101764
101764
|
if (threw) try {
|
|
@@ -101775,7 +101775,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101775
101775
|
//#endregion
|
|
101776
101776
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101777
101777
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101778
|
-
const fs$
|
|
101778
|
+
const fs$10 = require("fs/promises");
|
|
101779
101779
|
const fsm = require_lib$15();
|
|
101780
101780
|
const ssri = require_lib$17();
|
|
101781
101781
|
const contentPath = require_path();
|
|
@@ -101786,13 +101786,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101786
101786
|
const { size } = opts;
|
|
101787
101787
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101788
101788
|
return {
|
|
101789
|
-
stat: size ? { size } : await fs$
|
|
101789
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101790
101790
|
cpath,
|
|
101791
101791
|
sri
|
|
101792
101792
|
};
|
|
101793
101793
|
});
|
|
101794
101794
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101795
|
-
const data = await fs$
|
|
101795
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101796
101796
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101797
101797
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101798
101798
|
return data;
|
|
@@ -101815,7 +101815,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101815
101815
|
Promise.resolve().then(async () => {
|
|
101816
101816
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101817
101817
|
return {
|
|
101818
|
-
stat: size ? { size } : await fs$
|
|
101818
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101819
101819
|
cpath,
|
|
101820
101820
|
sri
|
|
101821
101821
|
};
|
|
@@ -101827,7 +101827,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101827
101827
|
module.exports.copy = copy;
|
|
101828
101828
|
function copy(cache, integrity, dest) {
|
|
101829
101829
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101830
|
-
return fs$
|
|
101830
|
+
return fs$10.copyFile(cpath, dest);
|
|
101831
101831
|
});
|
|
101832
101832
|
}
|
|
101833
101833
|
module.exports.hasContent = hasContent;
|
|
@@ -101835,7 +101835,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101835
101835
|
if (!integrity) return false;
|
|
101836
101836
|
try {
|
|
101837
101837
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101838
|
-
const stat = await fs$
|
|
101838
|
+
const stat = await fs$10.stat(cpath);
|
|
101839
101839
|
return {
|
|
101840
101840
|
size: stat.size,
|
|
101841
101841
|
sri,
|
|
@@ -102475,7 +102475,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102475
102475
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102476
102476
|
const events = require("events");
|
|
102477
102477
|
const contentPath = require_path();
|
|
102478
|
-
const fs$
|
|
102478
|
+
const fs$9 = require("fs/promises");
|
|
102479
102479
|
const { moveFile } = require_lib$16();
|
|
102480
102480
|
const { Minipass } = require_commonjs$10();
|
|
102481
102481
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102495,10 +102495,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102495
102495
|
const tmp = await makeTmp(cache, opts);
|
|
102496
102496
|
const hash = sri[algo].toString();
|
|
102497
102497
|
try {
|
|
102498
|
-
await fs$
|
|
102498
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102499
102499
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102500
102500
|
} finally {
|
|
102501
|
-
if (!tmp.moved) await fs$
|
|
102501
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102502
102502
|
recursive: true,
|
|
102503
102503
|
force: true
|
|
102504
102504
|
});
|
|
@@ -102552,7 +102552,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102552
102552
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102553
102553
|
return res;
|
|
102554
102554
|
} finally {
|
|
102555
|
-
if (!tmp.moved) await fs$
|
|
102555
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102556
102556
|
recursive: true,
|
|
102557
102557
|
force: true
|
|
102558
102558
|
});
|
|
@@ -102592,7 +102592,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102592
102592
|
}
|
|
102593
102593
|
async function makeTmp(cache, opts) {
|
|
102594
102594
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102595
|
-
await fs$
|
|
102595
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
102596
102596
|
return {
|
|
102597
102597
|
target: tmpTarget,
|
|
102598
102598
|
moved: false
|
|
@@ -102602,7 +102602,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102602
102602
|
const destination = contentPath(cache, sri);
|
|
102603
102603
|
const destDir = path$13.dirname(destination);
|
|
102604
102604
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102605
|
-
moveOperations.set(destination, fs$
|
|
102605
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102606
102606
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102607
102607
|
tmp.moved = true;
|
|
102608
102608
|
return tmp.moved;
|
|
@@ -106060,14 +106060,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106060
106060
|
//#endregion
|
|
106061
106061
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106062
106062
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106063
|
-
const fs$
|
|
106063
|
+
const fs$8 = require("fs/promises");
|
|
106064
106064
|
const contentPath = require_path();
|
|
106065
106065
|
const { hasContent } = require_read();
|
|
106066
106066
|
module.exports = rm;
|
|
106067
106067
|
async function rm(cache, integrity) {
|
|
106068
106068
|
const content = await hasContent(cache, integrity);
|
|
106069
106069
|
if (content && content.sri) {
|
|
106070
|
-
await fs$
|
|
106070
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106071
106071
|
recursive: true,
|
|
106072
106072
|
force: true
|
|
106073
106073
|
});
|
|
@@ -106349,8 +106349,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106349
106349
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106350
106350
|
const { Minipass } = require_commonjs$10();
|
|
106351
106351
|
const EE$2 = require("events").EventEmitter;
|
|
106352
|
-
const fs$
|
|
106353
|
-
const writev = fs$
|
|
106352
|
+
const fs$7 = require("fs");
|
|
106353
|
+
const writev = fs$7.writev;
|
|
106354
106354
|
const _autoClose = Symbol("_autoClose");
|
|
106355
106355
|
const _close = Symbol("_close");
|
|
106356
106356
|
const _ended = Symbol("_ended");
|
|
@@ -106410,7 +106410,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106410
106410
|
throw new TypeError("this is a readable stream");
|
|
106411
106411
|
}
|
|
106412
106412
|
[_open]() {
|
|
106413
|
-
fs$
|
|
106413
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106414
106414
|
}
|
|
106415
106415
|
[_onopen](er, fd) {
|
|
106416
106416
|
if (er) this[_onerror](er);
|
|
@@ -106429,7 +106429,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106429
106429
|
const buf = this[_makeBuf]();
|
|
106430
106430
|
/* istanbul ignore if */
|
|
106431
106431
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106432
|
-
fs$
|
|
106432
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106433
106433
|
}
|
|
106434
106434
|
}
|
|
106435
106435
|
[_onread](er, br, buf) {
|
|
@@ -106441,7 +106441,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106441
106441
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106442
106442
|
const fd = this[_fd];
|
|
106443
106443
|
this[_fd] = null;
|
|
106444
|
-
fs$
|
|
106444
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106445
106445
|
}
|
|
106446
106446
|
}
|
|
106447
106447
|
[_onerror](er) {
|
|
@@ -106479,7 +106479,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106479
106479
|
[_open]() {
|
|
106480
106480
|
let threw = true;
|
|
106481
106481
|
try {
|
|
106482
|
-
this[_onopen](null, fs$
|
|
106482
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106483
106483
|
threw = false;
|
|
106484
106484
|
} finally {
|
|
106485
106485
|
if (threw) this[_close]();
|
|
@@ -106493,7 +106493,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106493
106493
|
do {
|
|
106494
106494
|
const buf = this[_makeBuf]();
|
|
106495
106495
|
/* istanbul ignore next */
|
|
106496
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106496
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106497
106497
|
if (!this[_handleChunk](br, buf)) break;
|
|
106498
106498
|
} while (true);
|
|
106499
106499
|
this[_reading] = false;
|
|
@@ -106507,7 +106507,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106507
106507
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106508
106508
|
const fd = this[_fd];
|
|
106509
106509
|
this[_fd] = null;
|
|
106510
|
-
fs$
|
|
106510
|
+
fs$7.closeSync(fd);
|
|
106511
106511
|
this.emit("close");
|
|
106512
106512
|
}
|
|
106513
106513
|
}
|
|
@@ -106552,7 +106552,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106552
106552
|
this.emit("error", er);
|
|
106553
106553
|
}
|
|
106554
106554
|
[_open]() {
|
|
106555
|
-
fs$
|
|
106555
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106556
106556
|
}
|
|
106557
106557
|
[_onopen](er, fd) {
|
|
106558
106558
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106587,7 +106587,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106587
106587
|
return true;
|
|
106588
106588
|
}
|
|
106589
106589
|
[_write](buf) {
|
|
106590
|
-
fs$
|
|
106590
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106591
106591
|
}
|
|
106592
106592
|
[_onwrite](er, bw) {
|
|
106593
106593
|
if (er) this[_onerror](er);
|
|
@@ -106621,7 +106621,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106621
106621
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106622
106622
|
const fd = this[_fd];
|
|
106623
106623
|
this[_fd] = null;
|
|
106624
|
-
fs$
|
|
106624
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106625
106625
|
}
|
|
106626
106626
|
}
|
|
106627
106627
|
};
|
|
@@ -106629,28 +106629,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106629
106629
|
[_open]() {
|
|
106630
106630
|
let fd;
|
|
106631
106631
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106632
|
-
fd = fs$
|
|
106632
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106633
106633
|
} catch (er) {
|
|
106634
106634
|
if (er.code === "ENOENT") {
|
|
106635
106635
|
this[_flags] = "w";
|
|
106636
106636
|
return this[_open]();
|
|
106637
106637
|
} else throw er;
|
|
106638
106638
|
}
|
|
106639
|
-
else fd = fs$
|
|
106639
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106640
106640
|
this[_onopen](null, fd);
|
|
106641
106641
|
}
|
|
106642
106642
|
[_close]() {
|
|
106643
106643
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106644
106644
|
const fd = this[_fd];
|
|
106645
106645
|
this[_fd] = null;
|
|
106646
|
-
fs$
|
|
106646
|
+
fs$7.closeSync(fd);
|
|
106647
106647
|
this.emit("close");
|
|
106648
106648
|
}
|
|
106649
106649
|
}
|
|
106650
106650
|
[_write](buf) {
|
|
106651
106651
|
let threw = true;
|
|
106652
106652
|
try {
|
|
106653
|
-
this[_onwrite](null, fs$
|
|
106653
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106654
106654
|
threw = false;
|
|
106655
106655
|
} finally {
|
|
106656
106656
|
if (threw) try {
|
|
@@ -106667,7 +106667,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106667
106667
|
//#endregion
|
|
106668
106668
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106669
106669
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106670
|
-
const fs$
|
|
106670
|
+
const fs$6 = require("fs");
|
|
106671
106671
|
const path$9 = require("path");
|
|
106672
106672
|
const EE$1 = require("events").EventEmitter;
|
|
106673
106673
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106723,7 +106723,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106723
106723
|
return this;
|
|
106724
106724
|
}
|
|
106725
106725
|
readPackageJson(pj) {
|
|
106726
|
-
fs$
|
|
106726
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106727
106727
|
}
|
|
106728
106728
|
onPackageJson(pj, data) {
|
|
106729
106729
|
try {
|
|
@@ -106781,7 +106781,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106781
106781
|
}
|
|
106782
106782
|
readPackageJson(pj) {
|
|
106783
106783
|
try {
|
|
106784
|
-
this.onPackageJson(pj, fs$
|
|
106784
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106785
106785
|
} catch {}
|
|
106786
106786
|
return this;
|
|
106787
106787
|
}
|
|
@@ -106800,7 +106800,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106800
106800
|
}
|
|
106801
106801
|
};
|
|
106802
106802
|
const readdirNodeModules = (nm, cb) => {
|
|
106803
|
-
fs$
|
|
106803
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106804
106804
|
if (er) cb(er);
|
|
106805
106805
|
else {
|
|
106806
106806
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106809,7 +106809,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106809
106809
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106810
106810
|
let count = scopes.length;
|
|
106811
106811
|
scopes.forEach((scope) => {
|
|
106812
|
-
fs$
|
|
106812
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106813
106813
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106814
106814
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106815
106815
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106820,11 +106820,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106820
106820
|
});
|
|
106821
106821
|
};
|
|
106822
106822
|
const readdirNodeModulesSync = (nm) => {
|
|
106823
|
-
const set = fs$
|
|
106823
|
+
const set = fs$6.readdirSync(nm);
|
|
106824
106824
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106825
106825
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106826
106826
|
try {
|
|
106827
|
-
const pkgs = fs$
|
|
106827
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106828
106828
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106829
106829
|
} catch (er) {
|
|
106830
106830
|
return [scope];
|
|
@@ -106851,7 +106851,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106851
106851
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106852
106852
|
const bundled = require_lib$12();
|
|
106853
106853
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106854
|
-
const { resolve: resolve$8, basename: basename$3, dirname: dirname$
|
|
106854
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$8 } = require("path");
|
|
106855
106855
|
const normalizePackageBin = require_lib$21();
|
|
106856
106856
|
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106857
106857
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106890,9 +106890,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106890
106890
|
}));
|
|
106891
106891
|
if (pkg) {
|
|
106892
106892
|
if (pkg.bin) {
|
|
106893
|
-
const dir = dirname$
|
|
106893
|
+
const dir = dirname$8(path$50);
|
|
106894
106894
|
const scope = basename$3(dir);
|
|
106895
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106895
|
+
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106896
106896
|
const binFiles = [];
|
|
106897
106897
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106898
106898
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112164,7 +112164,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112164
112164
|
//#endregion
|
|
112165
112165
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112166
112166
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112167
|
-
const fs$
|
|
112167
|
+
const fs$5 = require("fs");
|
|
112168
112168
|
const path$8 = require("path");
|
|
112169
112169
|
const EE = require("events").EventEmitter;
|
|
112170
112170
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112203,7 +112203,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112203
112203
|
return ret;
|
|
112204
112204
|
}
|
|
112205
112205
|
start() {
|
|
112206
|
-
fs$
|
|
112206
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112207
112207
|
return this;
|
|
112208
112208
|
}
|
|
112209
112209
|
isIgnoreFile(e) {
|
|
@@ -112227,7 +112227,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112227
112227
|
}
|
|
112228
112228
|
addIgnoreFile(file, then) {
|
|
112229
112229
|
const ig = path$8.resolve(this.path, file);
|
|
112230
|
-
fs$
|
|
112230
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112231
112231
|
}
|
|
112232
112232
|
onReadIgnoreFile(file, data, then) {
|
|
112233
112233
|
const mmopt = {
|
|
@@ -112283,11 +112283,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112283
112283
|
}
|
|
112284
112284
|
stat({ entry, file, dir }, then) {
|
|
112285
112285
|
const abs = this.path + "/" + entry;
|
|
112286
|
-
fs$
|
|
112286
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112287
112287
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112288
112288
|
else {
|
|
112289
112289
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112290
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112290
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112291
112291
|
if (statErr) this.emit("error", statErr);
|
|
112292
112292
|
else this.onstat({
|
|
112293
112293
|
st: statResult,
|
|
@@ -112341,18 +112341,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112341
112341
|
};
|
|
112342
112342
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112343
112343
|
start() {
|
|
112344
|
-
this.onReaddir(fs$
|
|
112344
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112345
112345
|
return this;
|
|
112346
112346
|
}
|
|
112347
112347
|
addIgnoreFile(file, then) {
|
|
112348
112348
|
const ig = path$8.resolve(this.path, file);
|
|
112349
|
-
this.onReadIgnoreFile(file, fs$
|
|
112349
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112350
112350
|
}
|
|
112351
112351
|
stat({ entry, file, dir }, then) {
|
|
112352
112352
|
const abs = this.path + "/" + entry;
|
|
112353
|
-
let st = fs$
|
|
112353
|
+
let st = fs$5.lstatSync(abs);
|
|
112354
112354
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112355
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112355
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112356
112356
|
this.onstat({
|
|
112357
112357
|
st,
|
|
112358
112358
|
entry,
|
|
@@ -112383,7 +112383,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112383
112383
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112384
112384
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112385
112385
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112386
|
-
const { basename: basename$2, dirname: dirname$
|
|
112386
|
+
const { basename: basename$2, dirname: dirname$7, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
|
|
112387
112387
|
const { log } = require_lib$29();
|
|
112388
112388
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112389
112389
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112416,7 +112416,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112416
112416
|
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112417
112417
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112418
112418
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112419
|
-
const ignoreContent = readFile$4(join$
|
|
112419
|
+
const ignoreContent = readFile$4(join$7(root, file), { encoding: "utf8" });
|
|
112420
112420
|
result.push(ignoreContent);
|
|
112421
112421
|
break;
|
|
112422
112422
|
} catch (err) {
|
|
@@ -112425,8 +112425,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112425
112425
|
}
|
|
112426
112426
|
if (!rel) return result;
|
|
112427
112427
|
const firstRel = rel.split(sep, 1)[0];
|
|
112428
|
-
const newRoot = join$
|
|
112429
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112428
|
+
const newRoot = join$7(root, firstRel);
|
|
112429
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
|
|
112430
112430
|
};
|
|
112431
112431
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112432
112432
|
constructor(tree, opts) {
|
|
@@ -112455,7 +112455,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112455
112455
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112456
112456
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112457
112457
|
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112458
|
-
const relpath = relative(options.prefix, dirname$
|
|
112458
|
+
const relpath = relative(options.prefix, dirname$7(options.path));
|
|
112459
112459
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112460
112460
|
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112461
112461
|
}
|
|
@@ -112493,7 +112493,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112493
112493
|
let ignoreFiles = null;
|
|
112494
112494
|
if (this.tree.workspaces) {
|
|
112495
112495
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112496
|
-
const entryPath = join$
|
|
112496
|
+
const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
|
|
112497
112497
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112498
112498
|
defaultRules,
|
|
112499
112499
|
"package.json",
|
|
@@ -112553,7 +112553,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112553
112553
|
if (file.endsWith("/*")) file += "*";
|
|
112554
112554
|
const inverse = `!${file}`;
|
|
112555
112555
|
try {
|
|
112556
|
-
const stat = lstat$1(join$
|
|
112556
|
+
const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112557
112557
|
if (stat.isFile()) {
|
|
112558
112558
|
strict.unshift(inverse);
|
|
112559
112559
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112610,7 +112610,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112610
112610
|
walker.start();
|
|
112611
112611
|
});
|
|
112612
112612
|
const relativeFrom = relative(this.root, walker.path);
|
|
112613
|
-
for (const file of bundled) this.result.add(join$
|
|
112613
|
+
for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
|
|
112614
112614
|
}
|
|
112615
112615
|
}
|
|
112616
112616
|
};
|
|
@@ -112634,7 +112634,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112634
112634
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112635
112635
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112636
112636
|
const { log } = require_lib$29();
|
|
112637
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112637
|
+
const { resolve: resolve$5, dirname: dirname$6, delimiter: delimiter$2 } = require("path");
|
|
112638
112638
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112639
112639
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112640
112640
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$2)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$2);
|
|
@@ -112652,7 +112652,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112652
112652
|
do {
|
|
112653
112653
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112654
112654
|
pp = p;
|
|
112655
|
-
p = dirname$
|
|
112655
|
+
p = dirname$6(p);
|
|
112656
112656
|
} while (p !== pp);
|
|
112657
112657
|
pathArr.push(nodeGypPath, PATH);
|
|
112658
112658
|
const pathVal = pathArr.join(delimiter$2);
|
|
@@ -112720,8 +112720,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112720
112720
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112721
112721
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112722
112722
|
const util$2 = require("util");
|
|
112723
|
-
const fs$
|
|
112724
|
-
const { stat } = fs$
|
|
112723
|
+
const fs$4 = require("fs");
|
|
112724
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112725
112725
|
async function isNodeGypPackage(path) {
|
|
112726
112726
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112727
112727
|
}
|
|
@@ -123693,7 +123693,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123693
123693
|
//#endregion
|
|
123694
123694
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123695
123695
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123696
|
-
const fs$
|
|
123696
|
+
const fs$3 = require("fs");
|
|
123697
123697
|
const npa = require_npa();
|
|
123698
123698
|
const { URL: URL$2 } = require("url");
|
|
123699
123699
|
const regFromURI = (uri, opts) => {
|
|
@@ -123733,7 +123733,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123733
123733
|
};
|
|
123734
123734
|
const maybeReadFile = (file) => {
|
|
123735
123735
|
try {
|
|
123736
|
-
return fs$
|
|
123736
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123737
123737
|
} catch (er) {
|
|
123738
123738
|
if (er.code !== "ENOENT") throw er;
|
|
123739
123739
|
return null;
|
|
@@ -139978,7 +139978,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139978
139978
|
exports.Updater = void 0;
|
|
139979
139979
|
const models_1 = require_dist$4();
|
|
139980
139980
|
const debug_1 = __importDefault(require_src$1());
|
|
139981
|
-
const fs$
|
|
139981
|
+
const fs$2 = __importStar(require("fs"));
|
|
139982
139982
|
const path$7 = __importStar(require("path"));
|
|
139983
139983
|
const package_json_1 = require_package$1();
|
|
139984
139984
|
const config_1 = require_config$1();
|
|
@@ -140049,17 +140049,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140049
140049
|
}
|
|
140050
140050
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140051
140051
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140052
|
-
await targetInfo.verify(fs$
|
|
140052
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140053
140053
|
log("WRITE %s", targetPath);
|
|
140054
|
-
fs$
|
|
140054
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140055
140055
|
});
|
|
140056
140056
|
return targetPath;
|
|
140057
140057
|
}
|
|
140058
140058
|
async findCachedTarget(targetInfo, filePath) {
|
|
140059
140059
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140060
140060
|
try {
|
|
140061
|
-
if (fs$
|
|
140062
|
-
await targetInfo.verify(fs$
|
|
140061
|
+
if (fs$2.existsSync(filePath)) {
|
|
140062
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140063
140063
|
return filePath;
|
|
140064
140064
|
}
|
|
140065
140065
|
} catch (error) {
|
|
@@ -140069,7 +140069,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140069
140069
|
loadLocalMetadata(fileName) {
|
|
140070
140070
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
140071
140071
|
log("READ %s", filePath);
|
|
140072
|
-
return fs$
|
|
140072
|
+
return fs$2.readFileSync(filePath);
|
|
140073
140073
|
}
|
|
140074
140074
|
async loadRoot() {
|
|
140075
140075
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140187,7 +140187,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140187
140187
|
try {
|
|
140188
140188
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
140189
140189
|
log("WRITE %s", filePath);
|
|
140190
|
-
fs$
|
|
140190
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140191
140191
|
} catch (error) {
|
|
140192
140192
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140193
140193
|
}
|
|
@@ -142003,7 +142003,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142003
142003
|
//#endregion
|
|
142004
142004
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142005
142005
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142006
|
-
const { basename: basename$1, dirname: dirname$
|
|
142006
|
+
const { basename: basename$1, dirname: dirname$5 } = require("node:path");
|
|
142007
142007
|
const { rm: rm$4, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
142008
142008
|
const PackageJson = require_lib$18();
|
|
142009
142009
|
const cacache = require_lib$14();
|
|
@@ -142052,7 +142052,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142052
142052
|
this.npmBin = opts.npmBin || "npm";
|
|
142053
142053
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142054
142054
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142055
|
-
`--cache=${dirname$
|
|
142055
|
+
`--cache=${dirname$5(this.cache)}`,
|
|
142056
142056
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142057
142057
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142058
142058
|
`--offline=${!!this.offline}`,
|
|
@@ -142208,7 +142208,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142208
142208
|
}));
|
|
142209
142209
|
}
|
|
142210
142210
|
async tarballFile(dest) {
|
|
142211
|
-
await mkdir$4(dirname$
|
|
142211
|
+
await mkdir$4(dirname$5(dest), { recursive: true });
|
|
142212
142212
|
return this.#toFile(dest);
|
|
142213
142213
|
}
|
|
142214
142214
|
#extract(dest, tarball) {
|
|
@@ -150629,7 +150629,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150629
150629
|
}
|
|
150630
150630
|
})();
|
|
150631
150631
|
}));
|
|
150632
|
-
|
|
150632
|
+
//#endregion
|
|
150633
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150634
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150633
150635
|
const { promisify } = require("util");
|
|
150634
150636
|
const path$3 = require("path");
|
|
150635
150637
|
const { createHash } = require("crypto");
|
|
@@ -151081,11 +151083,12 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151081
151083
|
response.writeHead(response.statusCode || 200, headers);
|
|
151082
151084
|
stream.pipe(response);
|
|
151083
151085
|
};
|
|
151084
|
-
}))
|
|
151085
|
-
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151086
|
-
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151086
|
+
}));
|
|
151087
151087
|
//#endregion
|
|
151088
151088
|
//#region ../../packages/core-node/src/server.ts
|
|
151089
|
+
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151090
|
+
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151091
|
+
require_src();
|
|
151089
151092
|
const sendStartupProgress = (message) => {
|
|
151090
151093
|
console.log(`[Startup Progress] ${message}`);
|
|
151091
151094
|
webSocketServer.broadcast("startup:progress", {
|
|
@@ -151519,7 +151522,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151519
151522
|
}
|
|
151520
151523
|
//#endregion
|
|
151521
151524
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151522
|
-
const { join: join$
|
|
151525
|
+
const { join: join$5 } = node_path.default;
|
|
151523
151526
|
//#endregion
|
|
151524
151527
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151525
151528
|
const localPluginsMap = /* @__PURE__ */ new Map();
|