@pipelab/plugin-discord 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
|
@@ -2117,8 +2117,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2117
2117
|
completed: false
|
|
2118
2118
|
}
|
|
2119
2119
|
},
|
|
2120
|
-
plugins: DEFAULT_PLUGINS
|
|
2121
|
-
isInternalMigrationBannerClosed: false
|
|
2120
|
+
plugins: DEFAULT_PLUGINS
|
|
2122
2121
|
});
|
|
2123
2122
|
settingsMigratorInternal.createMigrations({
|
|
2124
2123
|
defaultValue: defaultAppSettings,
|
|
@@ -2169,12 +2168,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2169
2168
|
createMigration({
|
|
2170
2169
|
version: "6.0.0",
|
|
2171
2170
|
up: (state) => {
|
|
2172
|
-
const { cacheFolder
|
|
2171
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2173
2172
|
return {
|
|
2174
2173
|
...rest,
|
|
2174
|
+
cacheFolder,
|
|
2175
2175
|
agents: [],
|
|
2176
|
-
plugins: DEFAULT_PLUGINS
|
|
2177
|
-
isInternalMigrationBannerClosed: false
|
|
2176
|
+
plugins: DEFAULT_PLUGINS
|
|
2178
2177
|
};
|
|
2179
2178
|
}
|
|
2180
2179
|
}),
|
|
@@ -2527,7 +2526,8 @@ object({
|
|
|
2527
2526
|
enabled: boolean(),
|
|
2528
2527
|
description: string()
|
|
2529
2528
|
})),
|
|
2530
|
-
|
|
2529
|
+
cacheFolder: optional(string()),
|
|
2530
|
+
tempFolder: optional(string())
|
|
2531
2531
|
});
|
|
2532
2532
|
const ConnectionValidator = looseObject({
|
|
2533
2533
|
id: string(),
|
|
@@ -49931,7 +49931,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
49931
49931
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49932
49932
|
module.exports = isexe;
|
|
49933
49933
|
isexe.sync = sync;
|
|
49934
|
-
var fs$
|
|
49934
|
+
var fs$38 = require("fs");
|
|
49935
49935
|
function checkPathExt(path, options) {
|
|
49936
49936
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49937
49937
|
if (!pathext) return true;
|
|
@@ -49948,12 +49948,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49948
49948
|
return checkPathExt(path, options);
|
|
49949
49949
|
}
|
|
49950
49950
|
function isexe(path, options, cb) {
|
|
49951
|
-
fs$
|
|
49951
|
+
fs$38.stat(path, function(er, stat) {
|
|
49952
49952
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49953
49953
|
});
|
|
49954
49954
|
}
|
|
49955
49955
|
function sync(path, options) {
|
|
49956
|
-
return checkStat(fs$
|
|
49956
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49957
49957
|
}
|
|
49958
49958
|
}));
|
|
49959
49959
|
//#endregion
|
|
@@ -49961,14 +49961,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49961
49961
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49962
49962
|
module.exports = isexe;
|
|
49963
49963
|
isexe.sync = sync;
|
|
49964
|
-
var fs$
|
|
49964
|
+
var fs$37 = require("fs");
|
|
49965
49965
|
function isexe(path, options, cb) {
|
|
49966
|
-
fs$
|
|
49966
|
+
fs$37.stat(path, function(er, stat) {
|
|
49967
49967
|
cb(er, er ? false : checkStat(stat, options));
|
|
49968
49968
|
});
|
|
49969
49969
|
}
|
|
49970
49970
|
function sync(path, options) {
|
|
49971
|
-
return checkStat(fs$
|
|
49971
|
+
return checkStat(fs$37.statSync(path), options);
|
|
49972
49972
|
}
|
|
49973
49973
|
function checkStat(stat, options) {
|
|
49974
49974
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50183,16 +50183,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50183
50183
|
//#endregion
|
|
50184
50184
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50185
50185
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50186
|
-
const fs$
|
|
50186
|
+
const fs$36 = require("fs");
|
|
50187
50187
|
const shebangCommand = require_shebang_command();
|
|
50188
50188
|
function readShebang(command) {
|
|
50189
50189
|
const size = 150;
|
|
50190
50190
|
const buffer = Buffer.alloc(size);
|
|
50191
50191
|
let fd;
|
|
50192
50192
|
try {
|
|
50193
|
-
fd = fs$
|
|
50194
|
-
fs$
|
|
50195
|
-
fs$
|
|
50193
|
+
fd = fs$36.openSync(command, "r");
|
|
50194
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50195
|
+
fs$36.closeSync(fd);
|
|
50196
50196
|
} catch (e) {}
|
|
50197
50197
|
return shebangCommand(buffer.toString());
|
|
50198
50198
|
}
|
|
@@ -57149,7 +57149,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57149
57149
|
const { Minipass } = require_minipass$4();
|
|
57150
57150
|
const Pax = require_pax();
|
|
57151
57151
|
const Header = require_header();
|
|
57152
|
-
const fs$
|
|
57152
|
+
const fs$35 = require("fs");
|
|
57153
57153
|
const path$33 = require("path");
|
|
57154
57154
|
const normPath = require_normalize_windows_path();
|
|
57155
57155
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57237,7 +57237,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57237
57237
|
return super.emit(ev, ...data);
|
|
57238
57238
|
}
|
|
57239
57239
|
[LSTAT]() {
|
|
57240
|
-
fs$
|
|
57240
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57241
57241
|
if (er) return this.emit("error", er);
|
|
57242
57242
|
this[ONLSTAT](stat);
|
|
57243
57243
|
});
|
|
@@ -57302,7 +57302,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57302
57302
|
this.end();
|
|
57303
57303
|
}
|
|
57304
57304
|
[SYMLINK]() {
|
|
57305
|
-
fs$
|
|
57305
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57306
57306
|
if (er) return this.emit("error", er);
|
|
57307
57307
|
this[ONREADLINK](linkpath);
|
|
57308
57308
|
});
|
|
@@ -57333,7 +57333,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57333
57333
|
this[OPENFILE]();
|
|
57334
57334
|
}
|
|
57335
57335
|
[OPENFILE]() {
|
|
57336
|
-
fs$
|
|
57336
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57337
57337
|
if (er) return this.emit("error", er);
|
|
57338
57338
|
this[ONOPENFILE](fd);
|
|
57339
57339
|
});
|
|
@@ -57353,13 +57353,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57353
57353
|
}
|
|
57354
57354
|
[READ]() {
|
|
57355
57355
|
const { fd, buf, offset, length, pos } = this;
|
|
57356
|
-
fs$
|
|
57356
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57357
57357
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57358
57358
|
this[ONREAD](bytesRead);
|
|
57359
57359
|
});
|
|
57360
57360
|
}
|
|
57361
57361
|
[CLOSE](cb) {
|
|
57362
|
-
fs$
|
|
57362
|
+
fs$35.close(this.fd, cb);
|
|
57363
57363
|
}
|
|
57364
57364
|
[ONREAD](bytesRead) {
|
|
57365
57365
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57415,19 +57415,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57415
57415
|
});
|
|
57416
57416
|
var WriteEntrySync = class extends WriteEntry {
|
|
57417
57417
|
[LSTAT]() {
|
|
57418
|
-
this[ONLSTAT](fs$
|
|
57418
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57419
57419
|
}
|
|
57420
57420
|
[SYMLINK]() {
|
|
57421
|
-
this[ONREADLINK](fs$
|
|
57421
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57422
57422
|
}
|
|
57423
57423
|
[OPENFILE]() {
|
|
57424
|
-
this[ONOPENFILE](fs$
|
|
57424
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57425
57425
|
}
|
|
57426
57426
|
[READ]() {
|
|
57427
57427
|
let threw = true;
|
|
57428
57428
|
try {
|
|
57429
57429
|
const { fd, buf, offset, length, pos } = this;
|
|
57430
|
-
const bytesRead = fs$
|
|
57430
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57431
57431
|
this[ONREAD](bytesRead);
|
|
57432
57432
|
threw = false;
|
|
57433
57433
|
} finally {
|
|
@@ -57440,7 +57440,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57440
57440
|
cb();
|
|
57441
57441
|
}
|
|
57442
57442
|
[CLOSE](cb) {
|
|
57443
|
-
fs$
|
|
57443
|
+
fs$35.closeSync(this.fd);
|
|
57444
57444
|
cb();
|
|
57445
57445
|
}
|
|
57446
57446
|
};
|
|
@@ -57837,7 +57837,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57837
57837
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57838
57838
|
const WRITE = Symbol("write");
|
|
57839
57839
|
const ONDRAIN = Symbol("ondrain");
|
|
57840
|
-
const fs$
|
|
57840
|
+
const fs$34 = require("fs");
|
|
57841
57841
|
const path$32 = require("path");
|
|
57842
57842
|
const warner = require_warn_mixin();
|
|
57843
57843
|
const normPath = require_normalize_windows_path();
|
|
@@ -57926,7 +57926,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57926
57926
|
[STAT](job) {
|
|
57927
57927
|
job.pending = true;
|
|
57928
57928
|
this[JOBS] += 1;
|
|
57929
|
-
fs$
|
|
57929
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57930
57930
|
job.pending = false;
|
|
57931
57931
|
this[JOBS] -= 1;
|
|
57932
57932
|
if (er) this.emit("error", er);
|
|
@@ -57942,7 +57942,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57942
57942
|
[READDIR](job) {
|
|
57943
57943
|
job.pending = true;
|
|
57944
57944
|
this[JOBS] += 1;
|
|
57945
|
-
fs$
|
|
57945
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57946
57946
|
job.pending = false;
|
|
57947
57947
|
this[JOBS] -= 1;
|
|
57948
57948
|
if (er) return this.emit("error", er);
|
|
@@ -58060,10 +58060,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58060
58060
|
resume() {}
|
|
58061
58061
|
[STAT](job) {
|
|
58062
58062
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58063
|
-
this[ONSTAT](job, fs$
|
|
58063
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58064
58064
|
}
|
|
58065
58065
|
[READDIR](job, stat) {
|
|
58066
|
-
this[ONREADDIR](job, fs$
|
|
58066
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58067
58067
|
}
|
|
58068
58068
|
[PIPE](job) {
|
|
58069
58069
|
const source = job.entry;
|
|
@@ -58519,8 +58519,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58519
58519
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58520
58520
|
const MiniPass = require_minipass$2();
|
|
58521
58521
|
const EE$11 = require("events").EventEmitter;
|
|
58522
|
-
const fs$
|
|
58523
|
-
let writev = fs$
|
|
58522
|
+
const fs$33 = require("fs");
|
|
58523
|
+
let writev = fs$33.writev;
|
|
58524
58524
|
/* istanbul ignore next */
|
|
58525
58525
|
if (!writev) {
|
|
58526
58526
|
const binding = process.binding("fs");
|
|
@@ -58591,7 +58591,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58591
58591
|
throw new TypeError("this is a readable stream");
|
|
58592
58592
|
}
|
|
58593
58593
|
[_open]() {
|
|
58594
|
-
fs$
|
|
58594
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58595
58595
|
}
|
|
58596
58596
|
[_onopen](er, fd) {
|
|
58597
58597
|
if (er) this[_onerror](er);
|
|
@@ -58610,7 +58610,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58610
58610
|
const buf = this[_makeBuf]();
|
|
58611
58611
|
/* istanbul ignore if */
|
|
58612
58612
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58613
|
-
fs$
|
|
58613
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58614
58614
|
}
|
|
58615
58615
|
}
|
|
58616
58616
|
[_onread](er, br, buf) {
|
|
@@ -58622,7 +58622,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58622
58622
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58623
58623
|
const fd = this[_fd];
|
|
58624
58624
|
this[_fd] = null;
|
|
58625
|
-
fs$
|
|
58625
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58626
58626
|
}
|
|
58627
58627
|
}
|
|
58628
58628
|
[_onerror](er) {
|
|
@@ -58660,7 +58660,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58660
58660
|
[_open]() {
|
|
58661
58661
|
let threw = true;
|
|
58662
58662
|
try {
|
|
58663
|
-
this[_onopen](null, fs$
|
|
58663
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58664
58664
|
threw = false;
|
|
58665
58665
|
} finally {
|
|
58666
58666
|
if (threw) this[_close]();
|
|
@@ -58674,7 +58674,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58674
58674
|
do {
|
|
58675
58675
|
const buf = this[_makeBuf]();
|
|
58676
58676
|
/* istanbul ignore next */
|
|
58677
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58677
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58678
58678
|
if (!this[_handleChunk](br, buf)) break;
|
|
58679
58679
|
} while (true);
|
|
58680
58680
|
this[_reading] = false;
|
|
@@ -58688,7 +58688,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58688
58688
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58689
58689
|
const fd = this[_fd];
|
|
58690
58690
|
this[_fd] = null;
|
|
58691
|
-
fs$
|
|
58691
|
+
fs$33.closeSync(fd);
|
|
58692
58692
|
this.emit("close");
|
|
58693
58693
|
}
|
|
58694
58694
|
}
|
|
@@ -58733,7 +58733,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58733
58733
|
this.emit("error", er);
|
|
58734
58734
|
}
|
|
58735
58735
|
[_open]() {
|
|
58736
|
-
fs$
|
|
58736
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58737
58737
|
}
|
|
58738
58738
|
[_onopen](er, fd) {
|
|
58739
58739
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58768,7 +58768,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58768
58768
|
return true;
|
|
58769
58769
|
}
|
|
58770
58770
|
[_write](buf) {
|
|
58771
|
-
fs$
|
|
58771
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58772
58772
|
}
|
|
58773
58773
|
[_onwrite](er, bw) {
|
|
58774
58774
|
if (er) this[_onerror](er);
|
|
@@ -58802,7 +58802,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58802
58802
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58803
58803
|
const fd = this[_fd];
|
|
58804
58804
|
this[_fd] = null;
|
|
58805
|
-
fs$
|
|
58805
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58806
58806
|
}
|
|
58807
58807
|
}
|
|
58808
58808
|
};
|
|
@@ -58810,28 +58810,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58810
58810
|
[_open]() {
|
|
58811
58811
|
let fd;
|
|
58812
58812
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58813
|
-
fd = fs$
|
|
58813
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58814
58814
|
} catch (er) {
|
|
58815
58815
|
if (er.code === "ENOENT") {
|
|
58816
58816
|
this[_flags] = "w";
|
|
58817
58817
|
return this[_open]();
|
|
58818
58818
|
} else throw er;
|
|
58819
58819
|
}
|
|
58820
|
-
else fd = fs$
|
|
58820
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58821
58821
|
this[_onopen](null, fd);
|
|
58822
58822
|
}
|
|
58823
58823
|
[_close]() {
|
|
58824
58824
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58825
58825
|
const fd = this[_fd];
|
|
58826
58826
|
this[_fd] = null;
|
|
58827
|
-
fs$
|
|
58827
|
+
fs$33.closeSync(fd);
|
|
58828
58828
|
this.emit("close");
|
|
58829
58829
|
}
|
|
58830
58830
|
}
|
|
58831
58831
|
[_write](buf) {
|
|
58832
58832
|
let threw = true;
|
|
58833
58833
|
try {
|
|
58834
|
-
this[_onwrite](null, fs$
|
|
58834
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58835
58835
|
threw = false;
|
|
58836
58836
|
} finally {
|
|
58837
58837
|
if (threw) try {
|
|
@@ -59196,7 +59196,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59196
59196
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59197
59197
|
const hlo = require_high_level_opt();
|
|
59198
59198
|
const Parser = require_parse$4();
|
|
59199
|
-
const fs$
|
|
59199
|
+
const fs$32 = require("fs");
|
|
59200
59200
|
const fsm = require_fs_minipass();
|
|
59201
59201
|
const path$31 = require("path");
|
|
59202
59202
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59237,15 +59237,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59237
59237
|
let threw = true;
|
|
59238
59238
|
let fd;
|
|
59239
59239
|
try {
|
|
59240
|
-
const stat = fs$
|
|
59240
|
+
const stat = fs$32.statSync(file);
|
|
59241
59241
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59242
|
-
if (stat.size < readSize) p.end(fs$
|
|
59242
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59243
59243
|
else {
|
|
59244
59244
|
let pos = 0;
|
|
59245
59245
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59246
|
-
fd = fs$
|
|
59246
|
+
fd = fs$32.openSync(file, "r");
|
|
59247
59247
|
while (pos < stat.size) {
|
|
59248
|
-
const bytesRead = fs$
|
|
59248
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59249
59249
|
pos += bytesRead;
|
|
59250
59250
|
p.write(buf.slice(0, bytesRead));
|
|
59251
59251
|
}
|
|
@@ -59254,7 +59254,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59254
59254
|
threw = false;
|
|
59255
59255
|
} finally {
|
|
59256
59256
|
if (threw && fd) try {
|
|
59257
|
-
fs$
|
|
59257
|
+
fs$32.closeSync(fd);
|
|
59258
59258
|
} catch (er) {}
|
|
59259
59259
|
}
|
|
59260
59260
|
};
|
|
@@ -59265,7 +59265,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59265
59265
|
const p = new Promise((resolve, reject) => {
|
|
59266
59266
|
parse.on("error", reject);
|
|
59267
59267
|
parse.on("end", resolve);
|
|
59268
|
-
fs$
|
|
59268
|
+
fs$32.stat(file, (er, stat) => {
|
|
59269
59269
|
if (er) reject(er);
|
|
59270
59270
|
else {
|
|
59271
59271
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59357,7 +59357,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59357
59357
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59358
59358
|
const hlo = require_high_level_opt();
|
|
59359
59359
|
const Pack = require_pack$1();
|
|
59360
|
-
const fs$
|
|
59360
|
+
const fs$31 = require("fs");
|
|
59361
59361
|
const fsm = require_fs_minipass();
|
|
59362
59362
|
const t = require_list();
|
|
59363
59363
|
const path$29 = require("path");
|
|
@@ -59377,16 +59377,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59377
59377
|
let position;
|
|
59378
59378
|
try {
|
|
59379
59379
|
try {
|
|
59380
|
-
fd = fs$
|
|
59380
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59381
59381
|
} catch (er) {
|
|
59382
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59382
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59383
59383
|
else throw er;
|
|
59384
59384
|
}
|
|
59385
|
-
const st = fs$
|
|
59385
|
+
const st = fs$31.fstatSync(fd);
|
|
59386
59386
|
const headBuf = Buffer.alloc(512);
|
|
59387
59387
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59388
59388
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59389
|
-
bytes = fs$
|
|
59389
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59390
59390
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59391
59391
|
if (!bytes) break POSITION;
|
|
59392
59392
|
}
|
|
@@ -59401,7 +59401,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59401
59401
|
streamSync(opt, p, position, fd, files);
|
|
59402
59402
|
} finally {
|
|
59403
59403
|
if (threw) try {
|
|
59404
|
-
fs$
|
|
59404
|
+
fs$31.closeSync(fd);
|
|
59405
59405
|
} catch (er) {}
|
|
59406
59406
|
}
|
|
59407
59407
|
};
|
|
@@ -59418,7 +59418,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59418
59418
|
const p = new Pack(opt);
|
|
59419
59419
|
const getPos = (fd, size, cb_) => {
|
|
59420
59420
|
const cb = (er, pos) => {
|
|
59421
|
-
if (er) fs$
|
|
59421
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59422
59422
|
else cb_(null, pos);
|
|
59423
59423
|
};
|
|
59424
59424
|
let position = 0;
|
|
@@ -59428,7 +59428,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59428
59428
|
const onread = (er, bytes) => {
|
|
59429
59429
|
if (er) return cb(er);
|
|
59430
59430
|
bufPos += bytes;
|
|
59431
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59431
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59432
59432
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59433
59433
|
if (bufPos < 512) return cb(null, position);
|
|
59434
59434
|
const h = new Header(headBuf);
|
|
@@ -59439,9 +59439,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59439
59439
|
if (position >= size) return cb(null, position);
|
|
59440
59440
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59441
59441
|
bufPos = 0;
|
|
59442
|
-
fs$
|
|
59442
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59443
59443
|
};
|
|
59444
|
-
fs$
|
|
59444
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59445
59445
|
};
|
|
59446
59446
|
const promise = new Promise((resolve, reject) => {
|
|
59447
59447
|
p.on("error", reject);
|
|
@@ -59449,11 +59449,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59449
59449
|
const onopen = (er, fd) => {
|
|
59450
59450
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59451
59451
|
flag = "w+";
|
|
59452
|
-
return fs$
|
|
59452
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59453
59453
|
}
|
|
59454
59454
|
if (er) return reject(er);
|
|
59455
|
-
fs$
|
|
59456
|
-
if (er) return fs$
|
|
59455
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59456
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59457
59457
|
getPos(fd, st.size, (er, position) => {
|
|
59458
59458
|
if (er) return reject(er);
|
|
59459
59459
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59467,7 +59467,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59467
59467
|
});
|
|
59468
59468
|
});
|
|
59469
59469
|
};
|
|
59470
|
-
fs$
|
|
59470
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59471
59471
|
});
|
|
59472
59472
|
return cb ? promise.then(cb, cb) : promise;
|
|
59473
59473
|
};
|
|
@@ -59520,32 +59520,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59520
59520
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59521
59521
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59522
59522
|
const { promisify: promisify$1 } = require("util");
|
|
59523
|
-
const fs$
|
|
59523
|
+
const fs$30 = require("fs");
|
|
59524
59524
|
const optsArg = (opts) => {
|
|
59525
59525
|
if (!opts) opts = {
|
|
59526
59526
|
mode: 511,
|
|
59527
|
-
fs: fs$
|
|
59527
|
+
fs: fs$30
|
|
59528
59528
|
};
|
|
59529
59529
|
else if (typeof opts === "object") opts = {
|
|
59530
59530
|
mode: 511,
|
|
59531
|
-
fs: fs$
|
|
59531
|
+
fs: fs$30,
|
|
59532
59532
|
...opts
|
|
59533
59533
|
};
|
|
59534
59534
|
else if (typeof opts === "number") opts = {
|
|
59535
59535
|
mode: opts,
|
|
59536
|
-
fs: fs$
|
|
59536
|
+
fs: fs$30
|
|
59537
59537
|
};
|
|
59538
59538
|
else if (typeof opts === "string") opts = {
|
|
59539
59539
|
mode: parseInt(opts, 8),
|
|
59540
|
-
fs: fs$
|
|
59540
|
+
fs: fs$30
|
|
59541
59541
|
};
|
|
59542
59542
|
else throw new TypeError("invalid options argument");
|
|
59543
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59543
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59544
59544
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
59545
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59545
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59546
59546
|
opts.statAsync = promisify$1(opts.stat);
|
|
59547
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59548
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59547
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59548
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59549
59549
|
return opts;
|
|
59550
59550
|
};
|
|
59551
59551
|
module.exports = optsArg;
|
|
@@ -59576,17 +59576,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59576
59576
|
//#endregion
|
|
59577
59577
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59578
59578
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59579
|
-
const { dirname: dirname$
|
|
59579
|
+
const { dirname: dirname$14 } = require("path");
|
|
59580
59580
|
const findMade = (opts, parent, path$82 = void 0) => {
|
|
59581
59581
|
if (path$82 === parent) return Promise.resolve();
|
|
59582
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59582
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$82 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
59583
59583
|
};
|
|
59584
59584
|
const findMadeSync = (opts, parent, path$83 = void 0) => {
|
|
59585
59585
|
if (path$83 === parent) return void 0;
|
|
59586
59586
|
try {
|
|
59587
59587
|
return opts.statSync(parent).isDirectory() ? path$83 : void 0;
|
|
59588
59588
|
} catch (er) {
|
|
59589
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59589
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
59590
59590
|
}
|
|
59591
59591
|
};
|
|
59592
59592
|
module.exports = {
|
|
@@ -59597,10 +59597,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59597
59597
|
//#endregion
|
|
59598
59598
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59599
59599
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59600
|
-
const { dirname: dirname$
|
|
59600
|
+
const { dirname: dirname$13 } = require("path");
|
|
59601
59601
|
const mkdirpManual = (path$80, opts, made) => {
|
|
59602
59602
|
opts.recursive = false;
|
|
59603
|
-
const parent = dirname$
|
|
59603
|
+
const parent = dirname$13(path$80);
|
|
59604
59604
|
if (parent === path$80) return opts.mkdirAsync(path$80, opts).catch((er) => {
|
|
59605
59605
|
if (er.code !== "EISDIR") throw er;
|
|
59606
59606
|
});
|
|
@@ -59616,7 +59616,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59616
59616
|
});
|
|
59617
59617
|
};
|
|
59618
59618
|
const mkdirpManualSync = (path$81, opts, made) => {
|
|
59619
|
-
const parent = dirname$
|
|
59619
|
+
const parent = dirname$13(path$81);
|
|
59620
59620
|
opts.recursive = false;
|
|
59621
59621
|
if (parent === path$81) try {
|
|
59622
59622
|
return opts.mkdirSync(path$81, opts);
|
|
@@ -59645,12 +59645,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59645
59645
|
//#endregion
|
|
59646
59646
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59647
59647
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59648
|
-
const { dirname: dirname$
|
|
59648
|
+
const { dirname: dirname$12 } = require("path");
|
|
59649
59649
|
const { findMade, findMadeSync } = require_find_made();
|
|
59650
59650
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59651
59651
|
const mkdirpNative = (path$78, opts) => {
|
|
59652
59652
|
opts.recursive = true;
|
|
59653
|
-
if (dirname$
|
|
59653
|
+
if (dirname$12(path$78) === path$78) return opts.mkdirAsync(path$78, opts);
|
|
59654
59654
|
return findMade(opts, path$78).then((made) => opts.mkdirAsync(path$78, opts).then(() => made).catch((er) => {
|
|
59655
59655
|
if (er.code === "ENOENT") return mkdirpManual(path$78, opts);
|
|
59656
59656
|
else throw er;
|
|
@@ -59658,7 +59658,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59658
59658
|
};
|
|
59659
59659
|
const mkdirpNativeSync = (path$79, opts) => {
|
|
59660
59660
|
opts.recursive = true;
|
|
59661
|
-
if (dirname$
|
|
59661
|
+
if (dirname$12(path$79) === path$79) return opts.mkdirSync(path$79, opts);
|
|
59662
59662
|
const made = findMadeSync(opts, path$79);
|
|
59663
59663
|
try {
|
|
59664
59664
|
opts.mkdirSync(path$79, opts);
|
|
@@ -59676,12 +59676,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59676
59676
|
//#endregion
|
|
59677
59677
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59678
59678
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59679
|
-
const fs$
|
|
59679
|
+
const fs$29 = require("fs");
|
|
59680
59680
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59681
59681
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59682
59682
|
module.exports = {
|
|
59683
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59684
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59683
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59684
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59685
59685
|
};
|
|
59686
59686
|
}));
|
|
59687
59687
|
//#endregion
|
|
@@ -59712,17 +59712,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59712
59712
|
//#endregion
|
|
59713
59713
|
//#region ../../node_modules/chownr/chownr.js
|
|
59714
59714
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59715
|
-
const fs$
|
|
59715
|
+
const fs$28 = require("fs");
|
|
59716
59716
|
const path$28 = require("path");
|
|
59717
59717
|
/* istanbul ignore next */
|
|
59718
|
-
const LCHOWN = fs$
|
|
59718
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59719
59719
|
/* istanbul ignore next */
|
|
59720
|
-
const LCHOWNSYNC = fs$
|
|
59720
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59721
59721
|
/* istanbul ignore next */
|
|
59722
|
-
const needEISDIRHandled = fs$
|
|
59722
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59723
59723
|
const lchownSync = (path$70, uid, gid) => {
|
|
59724
59724
|
try {
|
|
59725
|
-
return fs$
|
|
59725
|
+
return fs$28[LCHOWNSYNC](path$70, uid, gid);
|
|
59726
59726
|
} catch (er) {
|
|
59727
59727
|
if (er.code !== "ENOENT") throw er;
|
|
59728
59728
|
}
|
|
@@ -59730,7 +59730,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59730
59730
|
/* istanbul ignore next */
|
|
59731
59731
|
const chownSync = (path$71, uid, gid) => {
|
|
59732
59732
|
try {
|
|
59733
|
-
return fs$
|
|
59733
|
+
return fs$28.chownSync(path$71, uid, gid);
|
|
59734
59734
|
} catch (er) {
|
|
59735
59735
|
if (er.code !== "ENOENT") throw er;
|
|
59736
59736
|
}
|
|
@@ -59738,7 +59738,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59738
59738
|
/* istanbul ignore next */
|
|
59739
59739
|
const handleEISDIR = needEISDIRHandled ? (path$72, uid, gid, cb) => (er) => {
|
|
59740
59740
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59741
|
-
else fs$
|
|
59741
|
+
else fs$28.chown(path$72, uid, gid, cb);
|
|
59742
59742
|
} : (_, __, ___, cb) => cb;
|
|
59743
59743
|
/* istanbul ignore next */
|
|
59744
59744
|
const handleEISDirSync = needEISDIRHandled ? (path$73, uid, gid) => {
|
|
@@ -59750,17 +59750,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59750
59750
|
}
|
|
59751
59751
|
} : (path$74, uid, gid) => lchownSync(path$74, uid, gid);
|
|
59752
59752
|
const nodeVersion = process.version;
|
|
59753
|
-
let readdir = (path$75, options, cb) => fs$
|
|
59754
|
-
let readdirSync = (path$76, options) => fs$
|
|
59753
|
+
let readdir = (path$75, options, cb) => fs$28.readdir(path$75, options, cb);
|
|
59754
|
+
let readdirSync = (path$76, options) => fs$28.readdirSync(path$76, options);
|
|
59755
59755
|
/* istanbul ignore next */
|
|
59756
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$
|
|
59756
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$77, options, cb) => fs$28.readdir(path$77, cb);
|
|
59757
59757
|
const chown = (cpath, uid, gid, cb) => {
|
|
59758
|
-
fs$
|
|
59758
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59759
59759
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59760
59760
|
}));
|
|
59761
59761
|
};
|
|
59762
59762
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59763
|
-
if (typeof child === "string") return fs$
|
|
59763
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
59764
59764
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59765
59765
|
stats.name = child;
|
|
59766
59766
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59790,7 +59790,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59790
59790
|
};
|
|
59791
59791
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59792
59792
|
if (typeof child === "string") try {
|
|
59793
|
-
const stats = fs$
|
|
59793
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
59794
59794
|
stats.name = child;
|
|
59795
59795
|
child = stats;
|
|
59796
59796
|
} catch (er) {
|
|
@@ -59819,7 +59819,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59819
59819
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59820
59820
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59821
59821
|
const mkdirp = require_mkdirp();
|
|
59822
|
-
const fs$
|
|
59822
|
+
const fs$27 = require("fs");
|
|
59823
59823
|
const path$27 = require("path");
|
|
59824
59824
|
const chownr = require_chownr();
|
|
59825
59825
|
const normPath = require_normalize_windows_path();
|
|
@@ -59846,7 +59846,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59846
59846
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59847
59847
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59848
59848
|
const checkCwd = (dir, cb) => {
|
|
59849
|
-
fs$
|
|
59849
|
+
fs$27.stat(dir, (er, st) => {
|
|
59850
59850
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59851
59851
|
cb(er);
|
|
59852
59852
|
});
|
|
@@ -59868,7 +59868,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59868
59868
|
else {
|
|
59869
59869
|
cSet(cache, dir, true);
|
|
59870
59870
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59871
|
-
else if (needChmod) fs$
|
|
59871
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59872
59872
|
else cb();
|
|
59873
59873
|
}
|
|
59874
59874
|
};
|
|
@@ -59882,17 +59882,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59882
59882
|
const p = parts.shift();
|
|
59883
59883
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
59884
59884
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59885
|
-
fs$
|
|
59885
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59886
59886
|
};
|
|
59887
59887
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59888
|
-
if (er) fs$
|
|
59888
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59889
59889
|
if (statEr) {
|
|
59890
59890
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59891
59891
|
cb(statEr);
|
|
59892
59892
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59893
|
-
else if (unlink) fs$
|
|
59893
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59894
59894
|
if (er) return cb(er);
|
|
59895
|
-
fs$
|
|
59895
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59896
59896
|
});
|
|
59897
59897
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59898
59898
|
else cb(er);
|
|
@@ -59906,7 +59906,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59906
59906
|
let ok = false;
|
|
59907
59907
|
let code = "ENOTDIR";
|
|
59908
59908
|
try {
|
|
59909
|
-
ok = fs$
|
|
59909
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59910
59910
|
} catch (er) {
|
|
59911
59911
|
code = er.code;
|
|
59912
59912
|
} finally {
|
|
@@ -59928,7 +59928,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59928
59928
|
const done = (created) => {
|
|
59929
59929
|
cSet(cache, dir, true);
|
|
59930
59930
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59931
|
-
if (needChmod) fs$
|
|
59931
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59932
59932
|
};
|
|
59933
59933
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59934
59934
|
if (dir === cwd) {
|
|
@@ -59942,17 +59942,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59942
59942
|
part = normPath(path$27.resolve(part));
|
|
59943
59943
|
if (cGet(cache, part)) continue;
|
|
59944
59944
|
try {
|
|
59945
|
-
fs$
|
|
59945
|
+
fs$27.mkdirSync(part, mode);
|
|
59946
59946
|
created = created || part;
|
|
59947
59947
|
cSet(cache, part, true);
|
|
59948
59948
|
} catch (er) {
|
|
59949
|
-
const st = fs$
|
|
59949
|
+
const st = fs$27.lstatSync(part);
|
|
59950
59950
|
if (st.isDirectory()) {
|
|
59951
59951
|
cSet(cache, part, true);
|
|
59952
59952
|
continue;
|
|
59953
59953
|
} else if (unlink) {
|
|
59954
|
-
fs$
|
|
59955
|
-
fs$
|
|
59954
|
+
fs$27.unlinkSync(part);
|
|
59955
|
+
fs$27.mkdirSync(part, mode);
|
|
59956
59956
|
created = created || part;
|
|
59957
59957
|
cSet(cache, part, true);
|
|
59958
59958
|
continue;
|
|
@@ -59978,14 +59978,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
59978
59978
|
const assert$1 = require("assert");
|
|
59979
59979
|
const normalize = require_normalize_unicode();
|
|
59980
59980
|
const stripSlashes = require_strip_trailing_slashes();
|
|
59981
|
-
const { join: join$
|
|
59981
|
+
const { join: join$19 } = require("path");
|
|
59982
59982
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
59983
59983
|
module.exports = () => {
|
|
59984
59984
|
const queues = /* @__PURE__ */ new Map();
|
|
59985
59985
|
const reservations = /* @__PURE__ */ new Map();
|
|
59986
59986
|
const getDirs = (path$61) => {
|
|
59987
59987
|
return path$61.split("/").slice(0, -1).reduce((set, path$62) => {
|
|
59988
|
-
if (set.length) path$62 = join$
|
|
59988
|
+
if (set.length) path$62 = join$19(set[set.length - 1], path$62);
|
|
59989
59989
|
set.push(path$62 || "/");
|
|
59990
59990
|
return set;
|
|
59991
59991
|
}, []);
|
|
@@ -60039,7 +60039,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60039
60039
|
};
|
|
60040
60040
|
const reserve = (paths, fn) => {
|
|
60041
60041
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60042
|
-
return stripSlashes(join$
|
|
60042
|
+
return stripSlashes(join$19(normalize(p))).toLowerCase();
|
|
60043
60043
|
});
|
|
60044
60044
|
const dirs = new Set(paths.map((path$66) => getDirs(path$66)).reduce((a, b) => a.concat(b)));
|
|
60045
60045
|
reservations.set(fn, {
|
|
@@ -60081,7 +60081,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60081
60081
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60082
60082
|
const assert = require("assert");
|
|
60083
60083
|
const Parser = require_parse$4();
|
|
60084
|
-
const fs$
|
|
60084
|
+
const fs$26 = require("fs");
|
|
60085
60085
|
const fsm = require_fs_minipass();
|
|
60086
60086
|
const path$26 = require("path");
|
|
60087
60087
|
const mkdir = require_mkdir();
|
|
@@ -60122,19 +60122,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60122
60122
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60123
60123
|
/* istanbul ignore next */
|
|
60124
60124
|
const unlinkFile = (path$57, cb) => {
|
|
60125
|
-
if (!isWindows) return fs$
|
|
60125
|
+
if (!isWindows) return fs$26.unlink(path$57, cb);
|
|
60126
60126
|
const name = path$57 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60127
|
-
fs$
|
|
60127
|
+
fs$26.rename(path$57, name, (er) => {
|
|
60128
60128
|
if (er) return cb(er);
|
|
60129
|
-
fs$
|
|
60129
|
+
fs$26.unlink(name, cb);
|
|
60130
60130
|
});
|
|
60131
60131
|
};
|
|
60132
60132
|
/* istanbul ignore next */
|
|
60133
60133
|
const unlinkFileSync = (path$58) => {
|
|
60134
|
-
if (!isWindows) return fs$
|
|
60134
|
+
if (!isWindows) return fs$26.unlinkSync(path$58);
|
|
60135
60135
|
const name = path$58 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60136
|
-
fs$
|
|
60137
|
-
fs$
|
|
60136
|
+
fs$26.renameSync(path$58, name);
|
|
60137
|
+
fs$26.unlinkSync(name);
|
|
60138
60138
|
};
|
|
60139
60139
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60140
60140
|
const cacheKeyNormalize = (path$59) => stripSlash(normPath(normalize(path$59))).toLowerCase();
|
|
@@ -60320,7 +60320,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60320
60320
|
autoClose: false
|
|
60321
60321
|
});
|
|
60322
60322
|
stream.on("error", (er) => {
|
|
60323
|
-
if (stream.fd) fs$
|
|
60323
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60324
60324
|
stream.write = () => true;
|
|
60325
60325
|
this[ONERROR](er, entry);
|
|
60326
60326
|
fullyDone();
|
|
@@ -60329,12 +60329,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60329
60329
|
const done = (er) => {
|
|
60330
60330
|
if (er) {
|
|
60331
60331
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60332
|
-
if (stream.fd) fs$
|
|
60332
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60333
60333
|
this[ONERROR](er, entry);
|
|
60334
60334
|
fullyDone();
|
|
60335
60335
|
return;
|
|
60336
60336
|
}
|
|
60337
|
-
if (--actions === 0) fs$
|
|
60337
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60338
60338
|
if (er) this[ONERROR](er, entry);
|
|
60339
60339
|
else this[UNPEND]();
|
|
60340
60340
|
fullyDone();
|
|
@@ -60347,13 +60347,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60347
60347
|
actions++;
|
|
60348
60348
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60349
60349
|
const mtime = entry.mtime;
|
|
60350
|
-
fs$
|
|
60350
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60351
60351
|
}
|
|
60352
60352
|
if (this[DOCHOWN](entry)) {
|
|
60353
60353
|
actions++;
|
|
60354
60354
|
const uid = this[UID](entry);
|
|
60355
60355
|
const gid = this[GID](entry);
|
|
60356
|
-
fs$
|
|
60356
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60357
60357
|
}
|
|
60358
60358
|
done();
|
|
60359
60359
|
});
|
|
@@ -60385,11 +60385,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60385
60385
|
};
|
|
60386
60386
|
if (entry.mtime && !this.noMtime) {
|
|
60387
60387
|
actions++;
|
|
60388
|
-
fs$
|
|
60388
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60389
60389
|
}
|
|
60390
60390
|
if (this[DOCHOWN](entry)) {
|
|
60391
60391
|
actions++;
|
|
60392
|
-
fs$
|
|
60392
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60393
60393
|
}
|
|
60394
60394
|
done();
|
|
60395
60395
|
});
|
|
@@ -60462,7 +60462,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60462
60462
|
afterMakeParent();
|
|
60463
60463
|
};
|
|
60464
60464
|
const afterMakeParent = () => {
|
|
60465
|
-
fs$
|
|
60465
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60466
60466
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60467
60467
|
this[SKIP](entry);
|
|
60468
60468
|
done();
|
|
@@ -60474,9 +60474,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60474
60474
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60475
60475
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60476
60476
|
if (!needChmod) return afterChmod();
|
|
60477
|
-
return fs$
|
|
60477
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60478
60478
|
}
|
|
60479
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60479
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60480
60480
|
}
|
|
60481
60481
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60482
60482
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60502,7 +60502,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60502
60502
|
}
|
|
60503
60503
|
}
|
|
60504
60504
|
[LINK](entry, linkpath, link, done) {
|
|
60505
|
-
fs$
|
|
60505
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60506
60506
|
if (er) this[ONERROR](er, entry);
|
|
60507
60507
|
else {
|
|
60508
60508
|
this[UNPEND]();
|
|
@@ -60537,17 +60537,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60537
60537
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60538
60538
|
}
|
|
60539
60539
|
}
|
|
60540
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60540
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60541
60541
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60542
60542
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60543
60543
|
if (st.isDirectory()) {
|
|
60544
60544
|
if (entry.type === "Directory") {
|
|
60545
60545
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60546
|
-
fs$
|
|
60546
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60547
60547
|
}) : [];
|
|
60548
60548
|
return this[MAKEFS](er, entry);
|
|
60549
60549
|
}
|
|
60550
|
-
const [er] = callSync(() => fs$
|
|
60550
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60551
60551
|
this[MAKEFS](er, entry);
|
|
60552
60552
|
}
|
|
60553
60553
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60558,7 +60558,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60558
60558
|
const oner = (er) => {
|
|
60559
60559
|
let closeError;
|
|
60560
60560
|
try {
|
|
60561
|
-
fs$
|
|
60561
|
+
fs$26.closeSync(fd);
|
|
60562
60562
|
} catch (e) {
|
|
60563
60563
|
closeError = e;
|
|
60564
60564
|
}
|
|
@@ -60567,7 +60567,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60567
60567
|
};
|
|
60568
60568
|
let fd;
|
|
60569
60569
|
try {
|
|
60570
|
-
fd = fs$
|
|
60570
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60571
60571
|
} catch (er) {
|
|
60572
60572
|
return oner(er);
|
|
60573
60573
|
}
|
|
@@ -60578,7 +60578,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60578
60578
|
}
|
|
60579
60579
|
tx.on("data", (chunk) => {
|
|
60580
60580
|
try {
|
|
60581
|
-
fs$
|
|
60581
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60582
60582
|
} catch (er) {
|
|
60583
60583
|
oner(er);
|
|
60584
60584
|
}
|
|
@@ -60589,10 +60589,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60589
60589
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60590
60590
|
const mtime = entry.mtime;
|
|
60591
60591
|
try {
|
|
60592
|
-
fs$
|
|
60592
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60593
60593
|
} catch (futimeser) {
|
|
60594
60594
|
try {
|
|
60595
|
-
fs$
|
|
60595
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60596
60596
|
} catch (utimeser) {
|
|
60597
60597
|
er = futimeser;
|
|
60598
60598
|
}
|
|
@@ -60602,10 +60602,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60602
60602
|
const uid = this[UID](entry);
|
|
60603
60603
|
const gid = this[GID](entry);
|
|
60604
60604
|
try {
|
|
60605
|
-
fs$
|
|
60605
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60606
60606
|
} catch (fchowner) {
|
|
60607
60607
|
try {
|
|
60608
|
-
fs$
|
|
60608
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60609
60609
|
} catch (chowner) {
|
|
60610
60610
|
er = er || fchowner;
|
|
60611
60611
|
}
|
|
@@ -60623,10 +60623,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60623
60623
|
return;
|
|
60624
60624
|
}
|
|
60625
60625
|
if (entry.mtime && !this.noMtime) try {
|
|
60626
|
-
fs$
|
|
60626
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60627
60627
|
} catch (er) {}
|
|
60628
60628
|
if (this[DOCHOWN](entry)) try {
|
|
60629
|
-
fs$
|
|
60629
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60630
60630
|
} catch (er) {}
|
|
60631
60631
|
done();
|
|
60632
60632
|
entry.resume();
|
|
@@ -60651,7 +60651,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60651
60651
|
}
|
|
60652
60652
|
[LINK](entry, linkpath, link, done) {
|
|
60653
60653
|
try {
|
|
60654
|
-
fs$
|
|
60654
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60655
60655
|
done();
|
|
60656
60656
|
entry.resume();
|
|
60657
60657
|
} catch (er) {
|
|
@@ -60667,7 +60667,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60667
60667
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60668
60668
|
const hlo = require_high_level_opt();
|
|
60669
60669
|
const Unpack = require_unpack();
|
|
60670
|
-
const fs$
|
|
60670
|
+
const fs$25 = require("fs");
|
|
60671
60671
|
const fsm = require_fs_minipass();
|
|
60672
60672
|
const path$25 = require("path");
|
|
60673
60673
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60697,7 +60697,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60697
60697
|
const extractFileSync = (opt) => {
|
|
60698
60698
|
const u = new Unpack.Sync(opt);
|
|
60699
60699
|
const file = opt.file;
|
|
60700
|
-
const stat = fs$
|
|
60700
|
+
const stat = fs$25.statSync(file);
|
|
60701
60701
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60702
60702
|
new fsm.ReadStreamSync(file, {
|
|
60703
60703
|
readSize,
|
|
@@ -60711,7 +60711,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60711
60711
|
const p = new Promise((resolve, reject) => {
|
|
60712
60712
|
u.on("error", reject);
|
|
60713
60713
|
u.on("close", resolve);
|
|
60714
|
-
fs$
|
|
60714
|
+
fs$25.stat(file, (er, stat) => {
|
|
60715
60715
|
if (er) reject(er);
|
|
60716
60716
|
else {
|
|
60717
60717
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60794,7 +60794,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60794
60794
|
//#endregion
|
|
60795
60795
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60796
60796
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60797
|
-
var fs$
|
|
60797
|
+
var fs$24 = require("fs");
|
|
60798
60798
|
var util$9 = require("util");
|
|
60799
60799
|
var stream$1 = require("stream");
|
|
60800
60800
|
var Readable = stream$1.Readable;
|
|
@@ -60819,7 +60819,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60819
60819
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60820
60820
|
var self = this;
|
|
60821
60821
|
self.pend.go(function(cb) {
|
|
60822
|
-
fs$
|
|
60822
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60823
60823
|
cb();
|
|
60824
60824
|
callback(err, bytesRead, buffer);
|
|
60825
60825
|
});
|
|
@@ -60828,7 +60828,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60828
60828
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60829
60829
|
var self = this;
|
|
60830
60830
|
self.pend.go(function(cb) {
|
|
60831
|
-
fs$
|
|
60831
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60832
60832
|
cb();
|
|
60833
60833
|
callback(err, written, buffer);
|
|
60834
60834
|
});
|
|
@@ -60848,7 +60848,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60848
60848
|
self.refCount -= 1;
|
|
60849
60849
|
if (self.refCount > 0) return;
|
|
60850
60850
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60851
|
-
if (self.autoClose) fs$
|
|
60851
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60852
60852
|
function onCloseDone(err) {
|
|
60853
60853
|
if (err) self.emit("error", err);
|
|
60854
60854
|
else self.emit("close");
|
|
@@ -60879,7 +60879,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60879
60879
|
self.context.pend.go(function(cb) {
|
|
60880
60880
|
if (self.destroyed) return cb();
|
|
60881
60881
|
var buffer = new Buffer(toRead);
|
|
60882
|
-
fs$
|
|
60882
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60883
60883
|
if (err) self.destroy(err);
|
|
60884
60884
|
else if (bytesRead === 0) {
|
|
60885
60885
|
self.destroyed = true;
|
|
@@ -60925,7 +60925,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60925
60925
|
}
|
|
60926
60926
|
self.context.pend.go(function(cb) {
|
|
60927
60927
|
if (self.destroyed) return cb();
|
|
60928
|
-
fs$
|
|
60928
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60929
60929
|
if (err) {
|
|
60930
60930
|
self.destroy();
|
|
60931
60931
|
cb();
|
|
@@ -61332,7 +61332,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61332
61332
|
//#endregion
|
|
61333
61333
|
//#region ../../node_modules/yauzl/index.js
|
|
61334
61334
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61335
|
-
var fs$
|
|
61335
|
+
var fs$23 = require("fs");
|
|
61336
61336
|
var zlib$1 = require("zlib");
|
|
61337
61337
|
var fd_slicer = require_fd_slicer();
|
|
61338
61338
|
var crc32 = require_buffer_crc32();
|
|
@@ -61354,10 +61354,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61354
61354
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61355
61355
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61356
61356
|
if (callback == null) callback = defaultCallback;
|
|
61357
|
-
fs$
|
|
61357
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61358
61358
|
if (err) return callback(err);
|
|
61359
61359
|
fromFd(fd, options, function(err, zipfile) {
|
|
61360
|
-
if (err) fs$
|
|
61360
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61361
61361
|
callback(err, zipfile);
|
|
61362
61362
|
});
|
|
61363
61363
|
});
|
|
@@ -61374,7 +61374,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61374
61374
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61375
61375
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61376
61376
|
if (callback == null) callback = defaultCallback;
|
|
61377
|
-
fs$
|
|
61377
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61378
61378
|
if (err) return callback(err);
|
|
61379
61379
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61380
61380
|
});
|
|
@@ -62602,13 +62602,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62602
62602
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62603
62603
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62604
62604
|
module.exports = readdirGlob;
|
|
62605
|
-
const fs$
|
|
62605
|
+
const fs$22 = require("fs");
|
|
62606
62606
|
const { EventEmitter } = require("events");
|
|
62607
62607
|
const { Minimatch } = require_minimatch$1();
|
|
62608
62608
|
const { resolve: resolve$12 } = require("path");
|
|
62609
62609
|
function readdir(dir, strict) {
|
|
62610
62610
|
return new Promise((resolve, reject) => {
|
|
62611
|
-
fs$
|
|
62611
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62612
62612
|
if (err) switch (err.code) {
|
|
62613
62613
|
case "ENOTDIR":
|
|
62614
62614
|
if (strict) reject(err);
|
|
@@ -62630,7 +62630,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62630
62630
|
}
|
|
62631
62631
|
function stat(file, followSymlinks) {
|
|
62632
62632
|
return new Promise((resolve, reject) => {
|
|
62633
|
-
(followSymlinks ? fs$
|
|
62633
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62634
62634
|
if (err) switch (err.code) {
|
|
62635
62635
|
case "ENOENT":
|
|
62636
62636
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68669,7 +68669,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68669
68669
|
//#endregion
|
|
68670
68670
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68671
68671
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68672
|
-
var fs$
|
|
68672
|
+
var fs$21 = require("fs");
|
|
68673
68673
|
var polyfills = require_polyfills();
|
|
68674
68674
|
var legacy = require_legacy_streams();
|
|
68675
68675
|
var clone = require_clone$1();
|
|
@@ -68698,36 +68698,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68698
68698
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68699
68699
|
console.error(m);
|
|
68700
68700
|
};
|
|
68701
|
-
if (!fs$
|
|
68702
|
-
publishQueue(fs$
|
|
68703
|
-
fs$
|
|
68701
|
+
if (!fs$21[gracefulQueue]) {
|
|
68702
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68703
|
+
fs$21.close = (function(fs$close) {
|
|
68704
68704
|
function close(fd, cb) {
|
|
68705
|
-
return fs$close.call(fs$
|
|
68705
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68706
68706
|
if (!err) resetQueue();
|
|
68707
68707
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68708
68708
|
});
|
|
68709
68709
|
}
|
|
68710
68710
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68711
68711
|
return close;
|
|
68712
|
-
})(fs$
|
|
68713
|
-
fs$
|
|
68712
|
+
})(fs$21.close);
|
|
68713
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68714
68714
|
function closeSync(fd) {
|
|
68715
|
-
fs$closeSync.apply(fs$
|
|
68715
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68716
68716
|
resetQueue();
|
|
68717
68717
|
}
|
|
68718
68718
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68719
68719
|
return closeSync;
|
|
68720
|
-
})(fs$
|
|
68720
|
+
})(fs$21.closeSync);
|
|
68721
68721
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68722
|
-
debug(fs$
|
|
68723
|
-
require("assert").equal(fs$
|
|
68722
|
+
debug(fs$21[gracefulQueue]);
|
|
68723
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68724
68724
|
});
|
|
68725
68725
|
}
|
|
68726
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68727
|
-
module.exports = patch(clone(fs$
|
|
68728
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68729
|
-
module.exports = patch(fs$
|
|
68730
|
-
fs$
|
|
68726
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68727
|
+
module.exports = patch(clone(fs$21));
|
|
68728
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68729
|
+
module.exports = patch(fs$21);
|
|
68730
|
+
fs$21.__patched = true;
|
|
68731
68731
|
}
|
|
68732
68732
|
function patch(fs) {
|
|
68733
68733
|
polyfills(fs);
|
|
@@ -68982,23 +68982,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68982
68982
|
}
|
|
68983
68983
|
function enqueue(elem) {
|
|
68984
68984
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
68985
|
-
fs$
|
|
68985
|
+
fs$21[gracefulQueue].push(elem);
|
|
68986
68986
|
retry();
|
|
68987
68987
|
}
|
|
68988
68988
|
var retryTimer;
|
|
68989
68989
|
function resetQueue() {
|
|
68990
68990
|
var now = Date.now();
|
|
68991
|
-
for (var i = 0; i < fs$
|
|
68992
|
-
fs$
|
|
68993
|
-
fs$
|
|
68991
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
68992
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
68993
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
68994
68994
|
}
|
|
68995
68995
|
retry();
|
|
68996
68996
|
}
|
|
68997
68997
|
function retry() {
|
|
68998
68998
|
clearTimeout(retryTimer);
|
|
68999
68999
|
retryTimer = void 0;
|
|
69000
|
-
if (fs$
|
|
69001
|
-
var elem = fs$
|
|
69000
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
69001
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
69002
69002
|
var fn = elem[0];
|
|
69003
69003
|
var args = elem[1];
|
|
69004
69004
|
var err = elem[2];
|
|
@@ -69017,7 +69017,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69017
69017
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69018
69018
|
debug("RETRY", fn.name, args);
|
|
69019
69019
|
fn.apply(null, args.concat([startTime]));
|
|
69020
|
-
} else fs$
|
|
69020
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69021
69021
|
}
|
|
69022
69022
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69023
69023
|
}
|
|
@@ -84414,7 +84414,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84414
84414
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84415
84415
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84416
84416
|
*/
|
|
84417
|
-
var fs$
|
|
84417
|
+
var fs$20 = require("fs");
|
|
84418
84418
|
var glob = require_readdir_glob();
|
|
84419
84419
|
var async = require_async();
|
|
84420
84420
|
var path$22 = require("path");
|
|
@@ -84491,7 +84491,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84491
84491
|
data.sourcePath = filepath;
|
|
84492
84492
|
task.data = data;
|
|
84493
84493
|
this._entriesCount++;
|
|
84494
|
-
if (data.stats && data.stats instanceof fs$
|
|
84494
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84495
84495
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84496
84496
|
if (task) {
|
|
84497
84497
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84721,7 +84721,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84721
84721
|
callback();
|
|
84722
84722
|
return;
|
|
84723
84723
|
}
|
|
84724
|
-
fs$
|
|
84724
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84725
84725
|
if (this._state.aborted) {
|
|
84726
84726
|
setImmediate(callback);
|
|
84727
84727
|
return;
|
|
@@ -84787,7 +84787,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84787
84787
|
task.data.sourceType = "buffer";
|
|
84788
84788
|
task.source = Buffer.concat([]);
|
|
84789
84789
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84790
|
-
var linkPath = fs$
|
|
84790
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84791
84791
|
var dirName = path$22.dirname(task.filepath);
|
|
84792
84792
|
task.data.type = "symlink";
|
|
84793
84793
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -95846,7 +95846,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95846
95846
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95847
95847
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95848
95848
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95849
|
-
const { join: join$
|
|
95849
|
+
const { join: join$16, delimiter: delimiter$3, sep: sep$5, posix: posix$1 } = require("path");
|
|
95850
95850
|
const isWindows = process.platform === "win32";
|
|
95851
95851
|
/* istanbul ignore next */
|
|
95852
95852
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$5 === posix$1.sep ? "" : sep$5}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95876,7 +95876,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95876
95876
|
};
|
|
95877
95877
|
const getPathPart = (raw, cmd) => {
|
|
95878
95878
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95879
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95879
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$16(pathPart, cmd);
|
|
95880
95880
|
};
|
|
95881
95881
|
const which = async (cmd, opt = {}) => {
|
|
95882
95882
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96455,7 +96455,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96455
96455
|
//#endregion
|
|
96456
96456
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96457
96457
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96458
|
-
const fs$
|
|
96458
|
+
const fs$18 = require("node:fs");
|
|
96459
96459
|
const os$2 = require("node:os");
|
|
96460
96460
|
const path$20 = require("node:path");
|
|
96461
96461
|
const ini = require_ini();
|
|
@@ -96464,8 +96464,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96464
96464
|
const loadGitConfig = () => {
|
|
96465
96465
|
if (cachedConfig === null) try {
|
|
96466
96466
|
cachedConfig = {};
|
|
96467
|
-
if (fs$
|
|
96468
|
-
const configContent = fs$
|
|
96467
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96468
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96469
96469
|
cachedConfig = ini.parse(configContent);
|
|
96470
96470
|
}
|
|
96471
96471
|
} catch (error) {
|
|
@@ -96625,7 +96625,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96625
96625
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96626
96626
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96627
96627
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96628
|
-
const { join: join$
|
|
96628
|
+
const { join: join$15, delimiter: delimiter$2, sep: sep$4, posix } = require("path");
|
|
96629
96629
|
const isWindows = process.platform === "win32";
|
|
96630
96630
|
/* istanbul ignore next */
|
|
96631
96631
|
const rSlash = new RegExp(`[${posix.sep}${sep$4 === posix.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96655,7 +96655,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96655
96655
|
};
|
|
96656
96656
|
const getPathPart = (raw, cmd) => {
|
|
96657
96657
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96658
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96658
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
96659
96659
|
};
|
|
96660
96660
|
const which = async (cmd, opt = {}) => {
|
|
96661
96661
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98334,7 +98334,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98334
98334
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98335
98335
|
const process$1 = require("node:process");
|
|
98336
98336
|
const nodeOs = require("node:os");
|
|
98337
|
-
const fs$
|
|
98337
|
+
const fs$17 = require("node:fs");
|
|
98338
98338
|
function isMusl(file) {
|
|
98339
98339
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98340
98340
|
}
|
|
@@ -98347,7 +98347,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98347
98347
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98348
98348
|
function getFamilyFromFilesystem() {
|
|
98349
98349
|
try {
|
|
98350
|
-
const content = fs$
|
|
98350
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98351
98351
|
if (content.includes("musl")) return "musl";
|
|
98352
98352
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98353
98353
|
return null;
|
|
@@ -98553,7 +98553,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98553
98553
|
//#endregion
|
|
98554
98554
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98555
98555
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98556
|
-
const { join: join$
|
|
98556
|
+
const { join: join$14, basename: basename$6 } = require("path");
|
|
98557
98557
|
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);
|
|
98558
98558
|
const normalizeString = (pkg) => {
|
|
98559
98559
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98576,9 +98576,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98576
98576
|
const clean = {};
|
|
98577
98577
|
let hasBins = false;
|
|
98578
98578
|
Object.keys(orig).forEach((binKey) => {
|
|
98579
|
-
const base = join$
|
|
98579
|
+
const base = join$14("/", basename$6(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98580
98580
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98581
|
-
const binTarget = join$
|
|
98581
|
+
const binTarget = join$14("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98582
98582
|
if (!binTarget) return;
|
|
98583
98583
|
clean[base] = binTarget;
|
|
98584
98584
|
hasBins = true;
|
|
@@ -98736,7 +98736,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98736
98736
|
const spawn = require_spawn();
|
|
98737
98737
|
const { isWindows } = require_utils$3();
|
|
98738
98738
|
const pickManifest = require_lib$20();
|
|
98739
|
-
const fs$
|
|
98739
|
+
const fs$16 = require("fs/promises");
|
|
98740
98740
|
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));
|
|
98741
98741
|
const maybeShallow = (repo, opts) => {
|
|
98742
98742
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98771,7 +98771,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98771
98771
|
...opts,
|
|
98772
98772
|
cwd: target
|
|
98773
98773
|
});
|
|
98774
|
-
return fs$
|
|
98774
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98775
98775
|
"config",
|
|
98776
98776
|
"--local",
|
|
98777
98777
|
"--add",
|
|
@@ -98809,7 +98809,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98809
98809
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98810
98810
|
};
|
|
98811
98811
|
const updateSubmodules = async (target, opts) => {
|
|
98812
|
-
if (!await fs$
|
|
98812
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98813
98813
|
return spawn([
|
|
98814
98814
|
"submodule",
|
|
98815
98815
|
"update",
|
|
@@ -98834,7 +98834,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98834
98834
|
...opts,
|
|
98835
98835
|
cwd: target
|
|
98836
98836
|
});
|
|
98837
|
-
return fs$
|
|
98837
|
+
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([
|
|
98838
98838
|
"rev-parse",
|
|
98839
98839
|
"--revs-only",
|
|
98840
98840
|
"HEAD"
|
|
@@ -98851,11 +98851,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98851
98851
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98852
98852
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98853
98853
|
const is = require_is();
|
|
98854
|
-
const { dirname: dirname$
|
|
98854
|
+
const { dirname: dirname$10 } = require("path");
|
|
98855
98855
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98856
98856
|
while (true) {
|
|
98857
98857
|
if (await is({ cwd })) return cwd;
|
|
98858
|
-
const next = dirname$
|
|
98858
|
+
const next = dirname$10(cwd);
|
|
98859
98859
|
if (cwd === root || cwd === next) return null;
|
|
98860
98860
|
cwd = next;
|
|
98861
98861
|
}
|
|
@@ -98889,7 +98889,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98889
98889
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98890
98890
|
const valid = require_valid$3();
|
|
98891
98891
|
const clean = require_clean$1();
|
|
98892
|
-
const fs$
|
|
98892
|
+
const fs$15 = require("node:fs/promises");
|
|
98893
98893
|
const path$17 = require("node:path");
|
|
98894
98894
|
const { log } = require_lib$29();
|
|
98895
98895
|
const moduleBuiltin = require("node:module");
|
|
@@ -99173,13 +99173,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99173
99173
|
}
|
|
99174
99174
|
}
|
|
99175
99175
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99176
|
-
await fs$
|
|
99176
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
99177
99177
|
scripts.start = "node server.js";
|
|
99178
99178
|
data.scripts = scripts;
|
|
99179
99179
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99180
99180
|
} catch {}
|
|
99181
99181
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99182
|
-
data.contributors = (await fs$
|
|
99182
|
+
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);
|
|
99183
99183
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99184
99184
|
} catch {}
|
|
99185
99185
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99198,7 +99198,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99198
99198
|
if (file.endsWith("README")) readmeFile = file;
|
|
99199
99199
|
}
|
|
99200
99200
|
if (readmeFile) {
|
|
99201
|
-
data.readme = await fs$
|
|
99201
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
99202
99202
|
data.readmeFilename = readmeFile;
|
|
99203
99203
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99204
99204
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99230,20 +99230,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99230
99230
|
});
|
|
99231
99231
|
let head;
|
|
99232
99232
|
if (gitRoot) try {
|
|
99233
|
-
head = await fs$
|
|
99233
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99234
99234
|
} catch (err) {}
|
|
99235
99235
|
let headData;
|
|
99236
99236
|
if (head) if (head.startsWith("ref: ")) {
|
|
99237
99237
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99238
99238
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
99239
99239
|
try {
|
|
99240
|
-
headData = await fs$
|
|
99240
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99241
99241
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99242
99242
|
} catch (err) {}
|
|
99243
99243
|
if (!headData) {
|
|
99244
99244
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
99245
99245
|
try {
|
|
99246
|
-
let refs = await fs$
|
|
99246
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99247
99247
|
if (refs) {
|
|
99248
99248
|
refs = refs.split("\n");
|
|
99249
99249
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99264,12 +99264,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99264
99264
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99265
99265
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
99266
99266
|
if (!("types" in data || "typings" in data)) try {
|
|
99267
|
-
await fs$
|
|
99267
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
99268
99268
|
data.types = dts.split(path$17.sep).join("/");
|
|
99269
99269
|
} catch {}
|
|
99270
99270
|
}
|
|
99271
99271
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99272
|
-
await fs$
|
|
99272
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
99273
99273
|
} catch {
|
|
99274
99274
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99275
99275
|
}
|
|
@@ -100651,7 +100651,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100651
100651
|
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();
|
|
100652
100652
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100653
100653
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100654
|
-
const { dirname: dirname$
|
|
100654
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$13, parse, resolve: resolve$10, sep: sep$3, toNamespacedPath } = require("path");
|
|
100655
100655
|
const { fileURLToPath } = require("url");
|
|
100656
100656
|
const defaultOptions = {
|
|
100657
100657
|
dereference: false,
|
|
@@ -100725,7 +100725,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100725
100725
|
})]);
|
|
100726
100726
|
}
|
|
100727
100727
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100728
|
-
const destParent = dirname$
|
|
100728
|
+
const destParent = dirname$9(dest);
|
|
100729
100729
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100730
100730
|
await mkdir$7(destParent, { recursive: true });
|
|
100731
100731
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100738,8 +100738,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100738
100738
|
);
|
|
100739
100739
|
}
|
|
100740
100740
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100741
|
-
const srcParent = resolve$10(dirname$
|
|
100742
|
-
const destParent = resolve$10(dirname$
|
|
100741
|
+
const srcParent = resolve$10(dirname$9(src));
|
|
100742
|
+
const destParent = resolve$10(dirname$9(dest));
|
|
100743
100743
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100744
100744
|
let destStat;
|
|
100745
100745
|
try {
|
|
@@ -100860,15 +100860,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100860
100860
|
const dir = await readdir$6(src);
|
|
100861
100861
|
for (let i = 0; i < dir.length; i++) {
|
|
100862
100862
|
const item = dir[i];
|
|
100863
|
-
const srcItem = join$
|
|
100864
|
-
const destItem = join$
|
|
100863
|
+
const srcItem = join$13(src, item);
|
|
100864
|
+
const destItem = join$13(dest, item);
|
|
100865
100865
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100866
100866
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100867
100867
|
}
|
|
100868
100868
|
}
|
|
100869
100869
|
async function onLink(destStat, src, dest) {
|
|
100870
100870
|
let resolvedSrc = await readlink(src);
|
|
100871
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100871
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$9(src), resolvedSrc);
|
|
100872
100872
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100873
100873
|
let resolvedDest;
|
|
100874
100874
|
try {
|
|
@@ -100879,7 +100879,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100879
100879
|
// istanbul ignore next: should not be possible
|
|
100880
100880
|
throw err;
|
|
100881
100881
|
}
|
|
100882
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100882
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$9(dest), resolvedDest);
|
|
100883
100883
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100884
100884
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100885
100885
|
path: dest,
|
|
@@ -100903,7 +100903,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100903
100903
|
//#endregion
|
|
100904
100904
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100905
100905
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100906
|
-
const fs$
|
|
100906
|
+
const fs$14 = require("fs/promises");
|
|
100907
100907
|
const getOptions = require_get_options();
|
|
100908
100908
|
const node = require_node$1();
|
|
100909
100909
|
const polyfill = require_polyfill();
|
|
@@ -100918,20 +100918,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100918
100918
|
"recursive"
|
|
100919
100919
|
] });
|
|
100920
100920
|
// istanbul ignore next
|
|
100921
|
-
return useNative ? fs$
|
|
100921
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100922
100922
|
};
|
|
100923
100923
|
module.exports = cp;
|
|
100924
100924
|
}));
|
|
100925
100925
|
//#endregion
|
|
100926
100926
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100927
100927
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100928
|
-
const { join: join$
|
|
100928
|
+
const { join: join$12, sep: sep$2 } = require("path");
|
|
100929
100929
|
const getOptions = require_get_options();
|
|
100930
100930
|
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100931
100931
|
const withTempDir = async (root, fn, opts) => {
|
|
100932
100932
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100933
100933
|
await mkdir$6(root, { recursive: true });
|
|
100934
|
-
const target = await mkdtemp(join$
|
|
100934
|
+
const target = await mkdtemp(join$12(`${root}${sep$2}`, options.tmpPrefix || ""));
|
|
100935
100935
|
let err;
|
|
100936
100936
|
let result;
|
|
100937
100937
|
try {
|
|
@@ -100954,10 +100954,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
100954
100954
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
100955
100955
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100956
100956
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
100957
|
-
const { join: join$
|
|
100957
|
+
const { join: join$11 } = require("path");
|
|
100958
100958
|
const readdirScoped = async (dir) => {
|
|
100959
100959
|
const results = [];
|
|
100960
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
100960
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$11(dir, item))) results.push(join$11(item, scopedItem));
|
|
100961
100961
|
else results.push(item);
|
|
100962
100962
|
return results;
|
|
100963
100963
|
};
|
|
@@ -100966,11 +100966,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
100966
100966
|
//#endregion
|
|
100967
100967
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100968
100968
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100969
|
-
const { dirname: dirname$
|
|
100970
|
-
const fs$
|
|
100969
|
+
const { dirname: dirname$8, join: join$10, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
100970
|
+
const fs$13 = require("fs/promises");
|
|
100971
100971
|
const pathExists = async (path$53) => {
|
|
100972
100972
|
try {
|
|
100973
|
-
await fs$
|
|
100973
|
+
await fs$13.access(path$53);
|
|
100974
100974
|
return true;
|
|
100975
100975
|
} catch (er) {
|
|
100976
100976
|
return er.code !== "ENOENT";
|
|
@@ -100983,34 +100983,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
100983
100983
|
...options
|
|
100984
100984
|
};
|
|
100985
100985
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
100986
|
-
await fs$
|
|
100986
|
+
await fs$13.mkdir(dirname$8(destination), { recursive: true });
|
|
100987
100987
|
try {
|
|
100988
|
-
await fs$
|
|
100988
|
+
await fs$13.rename(source, destination);
|
|
100989
100989
|
} catch (error) {
|
|
100990
100990
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
100991
|
-
const sourceStat = await fs$
|
|
100991
|
+
const sourceStat = await fs$13.lstat(source);
|
|
100992
100992
|
if (sourceStat.isDirectory()) {
|
|
100993
|
-
const files = await fs$
|
|
100994
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
100993
|
+
const files = await fs$13.readdir(source);
|
|
100994
|
+
await Promise.all(files.map((file) => moveFile(join$10(source, file), join$10(destination, file), options, false, symlinks)));
|
|
100995
100995
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
100996
100996
|
source,
|
|
100997
100997
|
destination
|
|
100998
100998
|
});
|
|
100999
|
-
else await fs$
|
|
100999
|
+
else await fs$13.copyFile(source, destination);
|
|
101000
101000
|
} else throw error;
|
|
101001
101001
|
}
|
|
101002
101002
|
if (root) {
|
|
101003
101003
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101004
|
-
let target = await fs$
|
|
101004
|
+
let target = await fs$13.readlink(symSource);
|
|
101005
101005
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101006
101006
|
let targetStat = "file";
|
|
101007
101007
|
try {
|
|
101008
|
-
targetStat = await fs$
|
|
101008
|
+
targetStat = await fs$13.stat(resolve$9(dirname$8(symSource), target));
|
|
101009
101009
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101010
101010
|
} catch {}
|
|
101011
|
-
await fs$
|
|
101011
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
101012
101012
|
}));
|
|
101013
|
-
await fs$
|
|
101013
|
+
await fs$13.rm(source, {
|
|
101014
101014
|
recursive: true,
|
|
101015
101015
|
force: true
|
|
101016
101016
|
});
|
|
@@ -101033,7 +101033,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101033
101033
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101034
101034
|
const crypto$2 = require("crypto");
|
|
101035
101035
|
const { withTempDir } = require_lib$16();
|
|
101036
|
-
const fs$
|
|
101036
|
+
const fs$12 = require("fs/promises");
|
|
101037
101037
|
const path$16 = require("path");
|
|
101038
101038
|
module.exports.mkdir = mktmpdir;
|
|
101039
101039
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101043,12 +101043,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101043
101043
|
async function mktmpdir(cache, opts = {}) {
|
|
101044
101044
|
const { tmpPrefix } = opts;
|
|
101045
101045
|
const tmpDir = path$16.join(cache, "tmp");
|
|
101046
|
-
await fs$
|
|
101046
|
+
await fs$12.mkdir(tmpDir, {
|
|
101047
101047
|
recursive: true,
|
|
101048
101048
|
owner: "inherit"
|
|
101049
101049
|
});
|
|
101050
101050
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
101051
|
-
return fs$
|
|
101051
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101052
101052
|
}
|
|
101053
101053
|
module.exports.withTmp = withTmp;
|
|
101054
101054
|
function withTmp(cache, opts, cb) {
|
|
@@ -101428,8 +101428,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101428
101428
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101429
101429
|
const { Minipass } = require_commonjs$10();
|
|
101430
101430
|
const EE$4 = require("events").EventEmitter;
|
|
101431
|
-
const fs$
|
|
101432
|
-
const writev = fs$
|
|
101431
|
+
const fs$11 = require("fs");
|
|
101432
|
+
const writev = fs$11.writev;
|
|
101433
101433
|
const _autoClose = Symbol("_autoClose");
|
|
101434
101434
|
const _close = Symbol("_close");
|
|
101435
101435
|
const _ended = Symbol("_ended");
|
|
@@ -101489,7 +101489,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101489
101489
|
throw new TypeError("this is a readable stream");
|
|
101490
101490
|
}
|
|
101491
101491
|
[_open]() {
|
|
101492
|
-
fs$
|
|
101492
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101493
101493
|
}
|
|
101494
101494
|
[_onopen](er, fd) {
|
|
101495
101495
|
if (er) this[_onerror](er);
|
|
@@ -101508,7 +101508,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101508
101508
|
const buf = this[_makeBuf]();
|
|
101509
101509
|
/* istanbul ignore if */
|
|
101510
101510
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101511
|
-
fs$
|
|
101511
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101512
101512
|
}
|
|
101513
101513
|
}
|
|
101514
101514
|
[_onread](er, br, buf) {
|
|
@@ -101520,7 +101520,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101520
101520
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101521
101521
|
const fd = this[_fd];
|
|
101522
101522
|
this[_fd] = null;
|
|
101523
|
-
fs$
|
|
101523
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101524
101524
|
}
|
|
101525
101525
|
}
|
|
101526
101526
|
[_onerror](er) {
|
|
@@ -101558,7 +101558,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101558
101558
|
[_open]() {
|
|
101559
101559
|
let threw = true;
|
|
101560
101560
|
try {
|
|
101561
|
-
this[_onopen](null, fs$
|
|
101561
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101562
101562
|
threw = false;
|
|
101563
101563
|
} finally {
|
|
101564
101564
|
if (threw) this[_close]();
|
|
@@ -101572,7 +101572,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101572
101572
|
do {
|
|
101573
101573
|
const buf = this[_makeBuf]();
|
|
101574
101574
|
/* istanbul ignore next */
|
|
101575
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101575
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101576
101576
|
if (!this[_handleChunk](br, buf)) break;
|
|
101577
101577
|
} while (true);
|
|
101578
101578
|
this[_reading] = false;
|
|
@@ -101586,7 +101586,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101586
101586
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101587
101587
|
const fd = this[_fd];
|
|
101588
101588
|
this[_fd] = null;
|
|
101589
|
-
fs$
|
|
101589
|
+
fs$11.closeSync(fd);
|
|
101590
101590
|
this.emit("close");
|
|
101591
101591
|
}
|
|
101592
101592
|
}
|
|
@@ -101631,7 +101631,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101631
101631
|
this.emit("error", er);
|
|
101632
101632
|
}
|
|
101633
101633
|
[_open]() {
|
|
101634
|
-
fs$
|
|
101634
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101635
101635
|
}
|
|
101636
101636
|
[_onopen](er, fd) {
|
|
101637
101637
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101666,7 +101666,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101666
101666
|
return true;
|
|
101667
101667
|
}
|
|
101668
101668
|
[_write](buf) {
|
|
101669
|
-
fs$
|
|
101669
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101670
101670
|
}
|
|
101671
101671
|
[_onwrite](er, bw) {
|
|
101672
101672
|
if (er) this[_onerror](er);
|
|
@@ -101700,7 +101700,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101700
101700
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101701
101701
|
const fd = this[_fd];
|
|
101702
101702
|
this[_fd] = null;
|
|
101703
|
-
fs$
|
|
101703
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101704
101704
|
}
|
|
101705
101705
|
}
|
|
101706
101706
|
};
|
|
@@ -101708,28 +101708,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101708
101708
|
[_open]() {
|
|
101709
101709
|
let fd;
|
|
101710
101710
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101711
|
-
fd = fs$
|
|
101711
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101712
101712
|
} catch (er) {
|
|
101713
101713
|
if (er.code === "ENOENT") {
|
|
101714
101714
|
this[_flags] = "w";
|
|
101715
101715
|
return this[_open]();
|
|
101716
101716
|
} else throw er;
|
|
101717
101717
|
}
|
|
101718
|
-
else fd = fs$
|
|
101718
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101719
101719
|
this[_onopen](null, fd);
|
|
101720
101720
|
}
|
|
101721
101721
|
[_close]() {
|
|
101722
101722
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101723
101723
|
const fd = this[_fd];
|
|
101724
101724
|
this[_fd] = null;
|
|
101725
|
-
fs$
|
|
101725
|
+
fs$11.closeSync(fd);
|
|
101726
101726
|
this.emit("close");
|
|
101727
101727
|
}
|
|
101728
101728
|
}
|
|
101729
101729
|
[_write](buf) {
|
|
101730
101730
|
let threw = true;
|
|
101731
101731
|
try {
|
|
101732
|
-
this[_onwrite](null, fs$
|
|
101732
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101733
101733
|
threw = false;
|
|
101734
101734
|
} finally {
|
|
101735
101735
|
if (threw) try {
|
|
@@ -101746,7 +101746,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101746
101746
|
//#endregion
|
|
101747
101747
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101748
101748
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101749
|
-
const fs$
|
|
101749
|
+
const fs$10 = require("fs/promises");
|
|
101750
101750
|
const fsm = require_lib$15();
|
|
101751
101751
|
const ssri = require_lib$17();
|
|
101752
101752
|
const contentPath = require_path();
|
|
@@ -101757,13 +101757,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101757
101757
|
const { size } = opts;
|
|
101758
101758
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101759
101759
|
return {
|
|
101760
|
-
stat: size ? { size } : await fs$
|
|
101760
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101761
101761
|
cpath,
|
|
101762
101762
|
sri
|
|
101763
101763
|
};
|
|
101764
101764
|
});
|
|
101765
101765
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101766
|
-
const data = await fs$
|
|
101766
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101767
101767
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101768
101768
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101769
101769
|
return data;
|
|
@@ -101786,7 +101786,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101786
101786
|
Promise.resolve().then(async () => {
|
|
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
|
};
|
|
@@ -101798,7 +101798,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101798
101798
|
module.exports.copy = copy;
|
|
101799
101799
|
function copy(cache, integrity, dest) {
|
|
101800
101800
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101801
|
-
return fs$
|
|
101801
|
+
return fs$10.copyFile(cpath, dest);
|
|
101802
101802
|
});
|
|
101803
101803
|
}
|
|
101804
101804
|
module.exports.hasContent = hasContent;
|
|
@@ -101806,7 +101806,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101806
101806
|
if (!integrity) return false;
|
|
101807
101807
|
try {
|
|
101808
101808
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101809
|
-
const stat = await fs$
|
|
101809
|
+
const stat = await fs$10.stat(cpath);
|
|
101810
101810
|
return {
|
|
101811
101811
|
size: stat.size,
|
|
101812
101812
|
sri,
|
|
@@ -102446,7 +102446,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102446
102446
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102447
102447
|
const events = require("events");
|
|
102448
102448
|
const contentPath = require_path();
|
|
102449
|
-
const fs$
|
|
102449
|
+
const fs$9 = require("fs/promises");
|
|
102450
102450
|
const { moveFile } = require_lib$16();
|
|
102451
102451
|
const { Minipass } = require_commonjs$10();
|
|
102452
102452
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102466,10 +102466,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102466
102466
|
const tmp = await makeTmp(cache, opts);
|
|
102467
102467
|
const hash = sri[algo].toString();
|
|
102468
102468
|
try {
|
|
102469
|
-
await fs$
|
|
102469
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102470
102470
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102471
102471
|
} finally {
|
|
102472
|
-
if (!tmp.moved) await fs$
|
|
102472
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102473
102473
|
recursive: true,
|
|
102474
102474
|
force: true
|
|
102475
102475
|
});
|
|
@@ -102523,7 +102523,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102523
102523
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102524
102524
|
return res;
|
|
102525
102525
|
} finally {
|
|
102526
|
-
if (!tmp.moved) await fs$
|
|
102526
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102527
102527
|
recursive: true,
|
|
102528
102528
|
force: true
|
|
102529
102529
|
});
|
|
@@ -102563,7 +102563,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102563
102563
|
}
|
|
102564
102564
|
async function makeTmp(cache, opts) {
|
|
102565
102565
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102566
|
-
await fs$
|
|
102566
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
102567
102567
|
return {
|
|
102568
102568
|
target: tmpTarget,
|
|
102569
102569
|
moved: false
|
|
@@ -102573,7 +102573,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102573
102573
|
const destination = contentPath(cache, sri);
|
|
102574
102574
|
const destDir = path$13.dirname(destination);
|
|
102575
102575
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102576
|
-
moveOperations.set(destination, fs$
|
|
102576
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102577
102577
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102578
102578
|
tmp.moved = true;
|
|
102579
102579
|
return tmp.moved;
|
|
@@ -106031,14 +106031,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106031
106031
|
//#endregion
|
|
106032
106032
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106033
106033
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106034
|
-
const fs$
|
|
106034
|
+
const fs$8 = require("fs/promises");
|
|
106035
106035
|
const contentPath = require_path();
|
|
106036
106036
|
const { hasContent } = require_read();
|
|
106037
106037
|
module.exports = rm;
|
|
106038
106038
|
async function rm(cache, integrity) {
|
|
106039
106039
|
const content = await hasContent(cache, integrity);
|
|
106040
106040
|
if (content && content.sri) {
|
|
106041
|
-
await fs$
|
|
106041
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106042
106042
|
recursive: true,
|
|
106043
106043
|
force: true
|
|
106044
106044
|
});
|
|
@@ -106320,8 +106320,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106320
106320
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106321
106321
|
const { Minipass } = require_commonjs$10();
|
|
106322
106322
|
const EE$2 = require("events").EventEmitter;
|
|
106323
|
-
const fs$
|
|
106324
|
-
const writev = fs$
|
|
106323
|
+
const fs$7 = require("fs");
|
|
106324
|
+
const writev = fs$7.writev;
|
|
106325
106325
|
const _autoClose = Symbol("_autoClose");
|
|
106326
106326
|
const _close = Symbol("_close");
|
|
106327
106327
|
const _ended = Symbol("_ended");
|
|
@@ -106381,7 +106381,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106381
106381
|
throw new TypeError("this is a readable stream");
|
|
106382
106382
|
}
|
|
106383
106383
|
[_open]() {
|
|
106384
|
-
fs$
|
|
106384
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106385
106385
|
}
|
|
106386
106386
|
[_onopen](er, fd) {
|
|
106387
106387
|
if (er) this[_onerror](er);
|
|
@@ -106400,7 +106400,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106400
106400
|
const buf = this[_makeBuf]();
|
|
106401
106401
|
/* istanbul ignore if */
|
|
106402
106402
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106403
|
-
fs$
|
|
106403
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106404
106404
|
}
|
|
106405
106405
|
}
|
|
106406
106406
|
[_onread](er, br, buf) {
|
|
@@ -106412,7 +106412,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106412
106412
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106413
106413
|
const fd = this[_fd];
|
|
106414
106414
|
this[_fd] = null;
|
|
106415
|
-
fs$
|
|
106415
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106416
106416
|
}
|
|
106417
106417
|
}
|
|
106418
106418
|
[_onerror](er) {
|
|
@@ -106450,7 +106450,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106450
106450
|
[_open]() {
|
|
106451
106451
|
let threw = true;
|
|
106452
106452
|
try {
|
|
106453
|
-
this[_onopen](null, fs$
|
|
106453
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106454
106454
|
threw = false;
|
|
106455
106455
|
} finally {
|
|
106456
106456
|
if (threw) this[_close]();
|
|
@@ -106464,7 +106464,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106464
106464
|
do {
|
|
106465
106465
|
const buf = this[_makeBuf]();
|
|
106466
106466
|
/* istanbul ignore next */
|
|
106467
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106467
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106468
106468
|
if (!this[_handleChunk](br, buf)) break;
|
|
106469
106469
|
} while (true);
|
|
106470
106470
|
this[_reading] = false;
|
|
@@ -106478,7 +106478,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106478
106478
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106479
106479
|
const fd = this[_fd];
|
|
106480
106480
|
this[_fd] = null;
|
|
106481
|
-
fs$
|
|
106481
|
+
fs$7.closeSync(fd);
|
|
106482
106482
|
this.emit("close");
|
|
106483
106483
|
}
|
|
106484
106484
|
}
|
|
@@ -106523,7 +106523,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106523
106523
|
this.emit("error", er);
|
|
106524
106524
|
}
|
|
106525
106525
|
[_open]() {
|
|
106526
|
-
fs$
|
|
106526
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106527
106527
|
}
|
|
106528
106528
|
[_onopen](er, fd) {
|
|
106529
106529
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106558,7 +106558,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106558
106558
|
return true;
|
|
106559
106559
|
}
|
|
106560
106560
|
[_write](buf) {
|
|
106561
|
-
fs$
|
|
106561
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106562
106562
|
}
|
|
106563
106563
|
[_onwrite](er, bw) {
|
|
106564
106564
|
if (er) this[_onerror](er);
|
|
@@ -106592,7 +106592,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106592
106592
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106593
106593
|
const fd = this[_fd];
|
|
106594
106594
|
this[_fd] = null;
|
|
106595
|
-
fs$
|
|
106595
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106596
106596
|
}
|
|
106597
106597
|
}
|
|
106598
106598
|
};
|
|
@@ -106600,28 +106600,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106600
106600
|
[_open]() {
|
|
106601
106601
|
let fd;
|
|
106602
106602
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106603
|
-
fd = fs$
|
|
106603
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106604
106604
|
} catch (er) {
|
|
106605
106605
|
if (er.code === "ENOENT") {
|
|
106606
106606
|
this[_flags] = "w";
|
|
106607
106607
|
return this[_open]();
|
|
106608
106608
|
} else throw er;
|
|
106609
106609
|
}
|
|
106610
|
-
else fd = fs$
|
|
106610
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106611
106611
|
this[_onopen](null, fd);
|
|
106612
106612
|
}
|
|
106613
106613
|
[_close]() {
|
|
106614
106614
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106615
106615
|
const fd = this[_fd];
|
|
106616
106616
|
this[_fd] = null;
|
|
106617
|
-
fs$
|
|
106617
|
+
fs$7.closeSync(fd);
|
|
106618
106618
|
this.emit("close");
|
|
106619
106619
|
}
|
|
106620
106620
|
}
|
|
106621
106621
|
[_write](buf) {
|
|
106622
106622
|
let threw = true;
|
|
106623
106623
|
try {
|
|
106624
|
-
this[_onwrite](null, fs$
|
|
106624
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106625
106625
|
threw = false;
|
|
106626
106626
|
} finally {
|
|
106627
106627
|
if (threw) try {
|
|
@@ -106638,7 +106638,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106638
106638
|
//#endregion
|
|
106639
106639
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106640
106640
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106641
|
-
const fs$
|
|
106641
|
+
const fs$6 = require("fs");
|
|
106642
106642
|
const path$9 = require("path");
|
|
106643
106643
|
const EE$1 = require("events").EventEmitter;
|
|
106644
106644
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106694,7 +106694,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106694
106694
|
return this;
|
|
106695
106695
|
}
|
|
106696
106696
|
readPackageJson(pj) {
|
|
106697
|
-
fs$
|
|
106697
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106698
106698
|
}
|
|
106699
106699
|
onPackageJson(pj, data) {
|
|
106700
106700
|
try {
|
|
@@ -106752,7 +106752,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106752
106752
|
}
|
|
106753
106753
|
readPackageJson(pj) {
|
|
106754
106754
|
try {
|
|
106755
|
-
this.onPackageJson(pj, fs$
|
|
106755
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106756
106756
|
} catch {}
|
|
106757
106757
|
return this;
|
|
106758
106758
|
}
|
|
@@ -106771,7 +106771,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106771
106771
|
}
|
|
106772
106772
|
};
|
|
106773
106773
|
const readdirNodeModules = (nm, cb) => {
|
|
106774
|
-
fs$
|
|
106774
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106775
106775
|
if (er) cb(er);
|
|
106776
106776
|
else {
|
|
106777
106777
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106780,7 +106780,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106780
106780
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106781
106781
|
let count = scopes.length;
|
|
106782
106782
|
scopes.forEach((scope) => {
|
|
106783
|
-
fs$
|
|
106783
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106784
106784
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106785
106785
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106786
106786
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106791,11 +106791,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106791
106791
|
});
|
|
106792
106792
|
};
|
|
106793
106793
|
const readdirNodeModulesSync = (nm) => {
|
|
106794
|
-
const set = fs$
|
|
106794
|
+
const set = fs$6.readdirSync(nm);
|
|
106795
106795
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106796
106796
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106797
106797
|
try {
|
|
106798
|
-
const pkgs = fs$
|
|
106798
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106799
106799
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106800
106800
|
} catch (er) {
|
|
106801
106801
|
return [scope];
|
|
@@ -106822,7 +106822,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106822
106822
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106823
106823
|
const bundled = require_lib$12();
|
|
106824
106824
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106825
|
-
const { resolve: resolve$8, basename: basename$5, dirname: dirname$
|
|
106825
|
+
const { resolve: resolve$8, basename: basename$5, dirname: dirname$7 } = require("path");
|
|
106826
106826
|
const normalizePackageBin = require_lib$21();
|
|
106827
106827
|
const readPackage = ({ path: path$48, packageJsonCache }) => packageJsonCache.has(path$48) ? Promise.resolve(packageJsonCache.get(path$48)) : readFile$5(path$48).then((json) => {
|
|
106828
106828
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106861,9 +106861,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106861
106861
|
}));
|
|
106862
106862
|
if (pkg) {
|
|
106863
106863
|
if (pkg.bin) {
|
|
106864
|
-
const dir = dirname$
|
|
106864
|
+
const dir = dirname$7(path$50);
|
|
106865
106865
|
const scope = basename$5(dir);
|
|
106866
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106866
|
+
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
106867
106867
|
const binFiles = [];
|
|
106868
106868
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106869
106869
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112135,7 +112135,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112135
112135
|
//#endregion
|
|
112136
112136
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112137
112137
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112138
|
-
const fs$
|
|
112138
|
+
const fs$5 = require("fs");
|
|
112139
112139
|
const path$8 = require("path");
|
|
112140
112140
|
const EE = require("events").EventEmitter;
|
|
112141
112141
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112174,7 +112174,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112174
112174
|
return ret;
|
|
112175
112175
|
}
|
|
112176
112176
|
start() {
|
|
112177
|
-
fs$
|
|
112177
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112178
112178
|
return this;
|
|
112179
112179
|
}
|
|
112180
112180
|
isIgnoreFile(e) {
|
|
@@ -112198,7 +112198,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112198
112198
|
}
|
|
112199
112199
|
addIgnoreFile(file, then) {
|
|
112200
112200
|
const ig = path$8.resolve(this.path, file);
|
|
112201
|
-
fs$
|
|
112201
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112202
112202
|
}
|
|
112203
112203
|
onReadIgnoreFile(file, data, then) {
|
|
112204
112204
|
const mmopt = {
|
|
@@ -112254,11 +112254,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112254
112254
|
}
|
|
112255
112255
|
stat({ entry, file, dir }, then) {
|
|
112256
112256
|
const abs = this.path + "/" + entry;
|
|
112257
|
-
fs$
|
|
112257
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112258
112258
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112259
112259
|
else {
|
|
112260
112260
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112261
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112261
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112262
112262
|
if (statErr) this.emit("error", statErr);
|
|
112263
112263
|
else this.onstat({
|
|
112264
112264
|
st: statResult,
|
|
@@ -112312,18 +112312,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112312
112312
|
};
|
|
112313
112313
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112314
112314
|
start() {
|
|
112315
|
-
this.onReaddir(fs$
|
|
112315
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112316
112316
|
return this;
|
|
112317
112317
|
}
|
|
112318
112318
|
addIgnoreFile(file, then) {
|
|
112319
112319
|
const ig = path$8.resolve(this.path, file);
|
|
112320
|
-
this.onReadIgnoreFile(file, fs$
|
|
112320
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112321
112321
|
}
|
|
112322
112322
|
stat({ entry, file, dir }, then) {
|
|
112323
112323
|
const abs = this.path + "/" + entry;
|
|
112324
|
-
let st = fs$
|
|
112324
|
+
let st = fs$5.lstatSync(abs);
|
|
112325
112325
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112326
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112326
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112327
112327
|
this.onstat({
|
|
112328
112328
|
st,
|
|
112329
112329
|
entry,
|
|
@@ -112354,7 +112354,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112354
112354
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112355
112355
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112356
112356
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
112357
|
-
const { basename: basename$4, dirname: dirname$
|
|
112357
|
+
const { basename: basename$4, dirname: dirname$6, extname: extname$1, join: join$9, relative, resolve: resolve$6, sep: sep$1 } = require("path");
|
|
112358
112358
|
const { log } = require_lib$29();
|
|
112359
112359
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112360
112360
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112387,7 +112387,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112387
112387
|
const normalizePath = (path$45) => path$45.split("\\").join("/");
|
|
112388
112388
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112389
112389
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112390
|
-
const ignoreContent = readFile$4(join$
|
|
112390
|
+
const ignoreContent = readFile$4(join$9(root, file), { encoding: "utf8" });
|
|
112391
112391
|
result.push(ignoreContent);
|
|
112392
112392
|
break;
|
|
112393
112393
|
} catch (err) {
|
|
@@ -112396,8 +112396,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112396
112396
|
}
|
|
112397
112397
|
if (!rel) return result;
|
|
112398
112398
|
const firstRel = rel.split(sep$1, 1)[0];
|
|
112399
|
-
const newRoot = join$
|
|
112400
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112399
|
+
const newRoot = join$9(root, firstRel);
|
|
112400
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$9(root, rel)), result);
|
|
112401
112401
|
};
|
|
112402
112402
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112403
112403
|
constructor(tree, opts) {
|
|
@@ -112426,7 +112426,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112426
112426
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112427
112427
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112428
112428
|
if (path$46 !== prefix && workspaces.includes(path$46)) {
|
|
112429
|
-
const relpath = relative(options.prefix, dirname$
|
|
112429
|
+
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
112430
112430
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112431
112431
|
} else if (path$46 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112432
112432
|
}
|
|
@@ -112464,7 +112464,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112464
112464
|
let ignoreFiles = null;
|
|
112465
112465
|
if (this.tree.workspaces) {
|
|
112466
112466
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112467
|
-
const entryPath = join$
|
|
112467
|
+
const entryPath = join$9(this.path, entry).replace(/\\/g, "/");
|
|
112468
112468
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112469
112469
|
defaultRules,
|
|
112470
112470
|
"package.json",
|
|
@@ -112524,7 +112524,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112524
112524
|
if (file.endsWith("/*")) file += "*";
|
|
112525
112525
|
const inverse = `!${file}`;
|
|
112526
112526
|
try {
|
|
112527
|
-
const stat = lstat$1(join$
|
|
112527
|
+
const stat = lstat$1(join$9(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112528
112528
|
if (stat.isFile()) {
|
|
112529
112529
|
strict.unshift(inverse);
|
|
112530
112530
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112581,7 +112581,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112581
112581
|
walker.start();
|
|
112582
112582
|
});
|
|
112583
112583
|
const relativeFrom = relative(this.root, walker.path);
|
|
112584
|
-
for (const file of bundled) this.result.add(join$
|
|
112584
|
+
for (const file of bundled) this.result.add(join$9(relativeFrom, file).replace(/\\/g, "/"));
|
|
112585
112585
|
}
|
|
112586
112586
|
}
|
|
112587
112587
|
};
|
|
@@ -112605,7 +112605,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112605
112605
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112606
112606
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112607
112607
|
const { log } = require_lib$29();
|
|
112608
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112608
|
+
const { resolve: resolve$5, dirname: dirname$5, delimiter: delimiter$1 } = require("path");
|
|
112609
112609
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112610
112610
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112611
112611
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
|
|
@@ -112623,7 +112623,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112623
112623
|
do {
|
|
112624
112624
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112625
112625
|
pp = p;
|
|
112626
|
-
p = dirname$
|
|
112626
|
+
p = dirname$5(p);
|
|
112627
112627
|
} while (p !== pp);
|
|
112628
112628
|
pathArr.push(nodeGypPath, PATH);
|
|
112629
112629
|
const pathVal = pathArr.join(delimiter$1);
|
|
@@ -112691,8 +112691,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112691
112691
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112692
112692
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112693
112693
|
const util$2 = require("util");
|
|
112694
|
-
const fs$
|
|
112695
|
-
const { stat } = fs$
|
|
112694
|
+
const fs$4 = require("fs");
|
|
112695
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112696
112696
|
async function isNodeGypPackage(path) {
|
|
112697
112697
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112698
112698
|
}
|
|
@@ -123664,7 +123664,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123664
123664
|
//#endregion
|
|
123665
123665
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123666
123666
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123667
|
-
const fs$
|
|
123667
|
+
const fs$3 = require("fs");
|
|
123668
123668
|
const npa = require_npa();
|
|
123669
123669
|
const { URL: URL$2 } = require("url");
|
|
123670
123670
|
const regFromURI = (uri, opts) => {
|
|
@@ -123704,7 +123704,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123704
123704
|
};
|
|
123705
123705
|
const maybeReadFile = (file) => {
|
|
123706
123706
|
try {
|
|
123707
|
-
return fs$
|
|
123707
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123708
123708
|
} catch (er) {
|
|
123709
123709
|
if (er.code !== "ENOENT") throw er;
|
|
123710
123710
|
return null;
|
|
@@ -139949,7 +139949,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
139949
139949
|
exports.Updater = void 0;
|
|
139950
139950
|
const models_1 = require_dist$4();
|
|
139951
139951
|
const debug_1 = __importDefault(require_src$1());
|
|
139952
|
-
const fs$
|
|
139952
|
+
const fs$2 = __importStar(require("fs"));
|
|
139953
139953
|
const path$7 = __importStar(require("path"));
|
|
139954
139954
|
const package_json_1 = require_package$1();
|
|
139955
139955
|
const config_1 = require_config$1();
|
|
@@ -140020,17 +140020,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140020
140020
|
}
|
|
140021
140021
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140022
140022
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140023
|
-
await targetInfo.verify(fs$
|
|
140023
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140024
140024
|
log("WRITE %s", targetPath);
|
|
140025
|
-
fs$
|
|
140025
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140026
140026
|
});
|
|
140027
140027
|
return targetPath;
|
|
140028
140028
|
}
|
|
140029
140029
|
async findCachedTarget(targetInfo, filePath) {
|
|
140030
140030
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140031
140031
|
try {
|
|
140032
|
-
if (fs$
|
|
140033
|
-
await targetInfo.verify(fs$
|
|
140032
|
+
if (fs$2.existsSync(filePath)) {
|
|
140033
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140034
140034
|
return filePath;
|
|
140035
140035
|
}
|
|
140036
140036
|
} catch (error) {
|
|
@@ -140040,7 +140040,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140040
140040
|
loadLocalMetadata(fileName) {
|
|
140041
140041
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
140042
140042
|
log("READ %s", filePath);
|
|
140043
|
-
return fs$
|
|
140043
|
+
return fs$2.readFileSync(filePath);
|
|
140044
140044
|
}
|
|
140045
140045
|
async loadRoot() {
|
|
140046
140046
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140158,7 +140158,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140158
140158
|
try {
|
|
140159
140159
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
140160
140160
|
log("WRITE %s", filePath);
|
|
140161
|
-
fs$
|
|
140161
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140162
140162
|
} catch (error) {
|
|
140163
140163
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140164
140164
|
}
|
|
@@ -141974,7 +141974,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
141974
141974
|
//#endregion
|
|
141975
141975
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
141976
141976
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
141977
|
-
const { basename: basename$3, dirname: dirname$
|
|
141977
|
+
const { basename: basename$3, dirname: dirname$4 } = require("node:path");
|
|
141978
141978
|
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
141979
141979
|
const PackageJson = require_lib$18();
|
|
141980
141980
|
const cacache = require_lib$14();
|
|
@@ -142023,7 +142023,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142023
142023
|
this.npmBin = opts.npmBin || "npm";
|
|
142024
142024
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142025
142025
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142026
|
-
`--cache=${dirname$
|
|
142026
|
+
`--cache=${dirname$4(this.cache)}`,
|
|
142027
142027
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142028
142028
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142029
142029
|
`--offline=${!!this.offline}`,
|
|
@@ -142179,7 +142179,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142179
142179
|
}));
|
|
142180
142180
|
}
|
|
142181
142181
|
async tarballFile(dest) {
|
|
142182
|
-
await mkdir$3(dirname$
|
|
142182
|
+
await mkdir$3(dirname$4(dest), { recursive: true });
|
|
142183
142183
|
return this.#toFile(dest);
|
|
142184
142184
|
}
|
|
142185
142185
|
#extract(dest, tarball) {
|
|
@@ -150600,7 +150600,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150600
150600
|
}
|
|
150601
150601
|
})();
|
|
150602
150602
|
}));
|
|
150603
|
-
|
|
150603
|
+
//#endregion
|
|
150604
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150605
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150604
150606
|
const { promisify } = require("util");
|
|
150605
150607
|
const path$3 = require("path");
|
|
150606
150608
|
const { createHash } = require("crypto");
|
|
@@ -151052,11 +151054,12 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151052
151054
|
response.writeHead(response.statusCode || 200, headers);
|
|
151053
151055
|
stream.pipe(response);
|
|
151054
151056
|
};
|
|
151055
|
-
}))
|
|
151056
|
-
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151057
|
-
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151057
|
+
}));
|
|
151058
151058
|
//#endregion
|
|
151059
151059
|
//#region ../../packages/core-node/src/server.ts
|
|
151060
|
+
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151061
|
+
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151062
|
+
require_src();
|
|
151060
151063
|
const sendStartupProgress = (message) => {
|
|
151061
151064
|
console.log(`[Startup Progress] ${message}`);
|
|
151062
151065
|
webSocketServer.broadcast("startup:progress", {
|
|
@@ -151498,7 +151501,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151498
151501
|
}
|
|
151499
151502
|
//#endregion
|
|
151500
151503
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151501
|
-
const { join: join$
|
|
151504
|
+
const { join: join$7 } = node_path.default;
|
|
151502
151505
|
//#endregion
|
|
151503
151506
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151504
151507
|
const localPluginsMap = /* @__PURE__ */ new Map();
|