@pipelab/plugin-tauri 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 +5 -5
package/dist/index.cjs
CHANGED
|
@@ -2116,8 +2116,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2116
2116
|
completed: false
|
|
2117
2117
|
}
|
|
2118
2118
|
},
|
|
2119
|
-
plugins: DEFAULT_PLUGINS
|
|
2120
|
-
isInternalMigrationBannerClosed: false
|
|
2119
|
+
plugins: DEFAULT_PLUGINS
|
|
2121
2120
|
});
|
|
2122
2121
|
settingsMigratorInternal.createMigrations({
|
|
2123
2122
|
defaultValue: defaultAppSettings,
|
|
@@ -2168,12 +2167,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2168
2167
|
createMigration({
|
|
2169
2168
|
version: "6.0.0",
|
|
2170
2169
|
up: (state) => {
|
|
2171
|
-
const { cacheFolder
|
|
2170
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2172
2171
|
return {
|
|
2173
2172
|
...rest,
|
|
2173
|
+
cacheFolder,
|
|
2174
2174
|
agents: [],
|
|
2175
|
-
plugins: DEFAULT_PLUGINS
|
|
2176
|
-
isInternalMigrationBannerClosed: false
|
|
2175
|
+
plugins: DEFAULT_PLUGINS
|
|
2177
2176
|
};
|
|
2178
2177
|
}
|
|
2179
2178
|
}),
|
|
@@ -2526,7 +2525,8 @@ object({
|
|
|
2526
2525
|
enabled: boolean(),
|
|
2527
2526
|
description: string()
|
|
2528
2527
|
})),
|
|
2529
|
-
|
|
2528
|
+
cacheFolder: optional(string()),
|
|
2529
|
+
tempFolder: optional(string())
|
|
2530
2530
|
});
|
|
2531
2531
|
const ConnectionValidator = looseObject({
|
|
2532
2532
|
id: string(),
|
|
@@ -49965,7 +49965,7 @@ const handleCommand$1 = (filePath, rawArguments, rawOptions) => {
|
|
|
49965
49965
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49966
49966
|
module.exports = isexe;
|
|
49967
49967
|
isexe.sync = sync;
|
|
49968
|
-
var fs$
|
|
49968
|
+
var fs$38 = require("fs");
|
|
49969
49969
|
function checkPathExt(path, options) {
|
|
49970
49970
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
49971
49971
|
if (!pathext) return true;
|
|
@@ -49982,12 +49982,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49982
49982
|
return checkPathExt(path, options);
|
|
49983
49983
|
}
|
|
49984
49984
|
function isexe(path, options, cb) {
|
|
49985
|
-
fs$
|
|
49985
|
+
fs$38.stat(path, function(er, stat) {
|
|
49986
49986
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
49987
49987
|
});
|
|
49988
49988
|
}
|
|
49989
49989
|
function sync(path, options) {
|
|
49990
|
-
return checkStat(fs$
|
|
49990
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
49991
49991
|
}
|
|
49992
49992
|
}));
|
|
49993
49993
|
//#endregion
|
|
@@ -49995,14 +49995,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
49995
49995
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
49996
49996
|
module.exports = isexe;
|
|
49997
49997
|
isexe.sync = sync;
|
|
49998
|
-
var fs$
|
|
49998
|
+
var fs$37 = require("fs");
|
|
49999
49999
|
function isexe(path, options, cb) {
|
|
50000
|
-
fs$
|
|
50000
|
+
fs$37.stat(path, function(er, stat) {
|
|
50001
50001
|
cb(er, er ? false : checkStat(stat, options));
|
|
50002
50002
|
});
|
|
50003
50003
|
}
|
|
50004
50004
|
function sync(path, options) {
|
|
50005
|
-
return checkStat(fs$
|
|
50005
|
+
return checkStat(fs$37.statSync(path), options);
|
|
50006
50006
|
}
|
|
50007
50007
|
function checkStat(stat, options) {
|
|
50008
50008
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -50217,16 +50217,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
50217
50217
|
//#endregion
|
|
50218
50218
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
50219
50219
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
50220
|
-
const fs$
|
|
50220
|
+
const fs$36 = require("fs");
|
|
50221
50221
|
const shebangCommand = require_shebang_command();
|
|
50222
50222
|
function readShebang(command) {
|
|
50223
50223
|
const size = 150;
|
|
50224
50224
|
const buffer = Buffer.alloc(size);
|
|
50225
50225
|
let fd;
|
|
50226
50226
|
try {
|
|
50227
|
-
fd = fs$
|
|
50228
|
-
fs$
|
|
50229
|
-
fs$
|
|
50227
|
+
fd = fs$36.openSync(command, "r");
|
|
50228
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
50229
|
+
fs$36.closeSync(fd);
|
|
50230
50230
|
} catch (e) {}
|
|
50231
50231
|
return shebangCommand(buffer.toString());
|
|
50232
50232
|
}
|
|
@@ -57183,7 +57183,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57183
57183
|
const { Minipass } = require_minipass$4();
|
|
57184
57184
|
const Pax = require_pax();
|
|
57185
57185
|
const Header = require_header();
|
|
57186
|
-
const fs$
|
|
57186
|
+
const fs$35 = require("fs");
|
|
57187
57187
|
const path$36 = require("path");
|
|
57188
57188
|
const normPath = require_normalize_windows_path();
|
|
57189
57189
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -57271,7 +57271,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57271
57271
|
return super.emit(ev, ...data);
|
|
57272
57272
|
}
|
|
57273
57273
|
[LSTAT]() {
|
|
57274
|
-
fs$
|
|
57274
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
57275
57275
|
if (er) return this.emit("error", er);
|
|
57276
57276
|
this[ONLSTAT](stat);
|
|
57277
57277
|
});
|
|
@@ -57336,7 +57336,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57336
57336
|
this.end();
|
|
57337
57337
|
}
|
|
57338
57338
|
[SYMLINK]() {
|
|
57339
|
-
fs$
|
|
57339
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
57340
57340
|
if (er) return this.emit("error", er);
|
|
57341
57341
|
this[ONREADLINK](linkpath);
|
|
57342
57342
|
});
|
|
@@ -57367,7 +57367,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57367
57367
|
this[OPENFILE]();
|
|
57368
57368
|
}
|
|
57369
57369
|
[OPENFILE]() {
|
|
57370
|
-
fs$
|
|
57370
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
57371
57371
|
if (er) return this.emit("error", er);
|
|
57372
57372
|
this[ONOPENFILE](fd);
|
|
57373
57373
|
});
|
|
@@ -57387,13 +57387,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57387
57387
|
}
|
|
57388
57388
|
[READ]() {
|
|
57389
57389
|
const { fd, buf, offset, length, pos } = this;
|
|
57390
|
-
fs$
|
|
57390
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
57391
57391
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
57392
57392
|
this[ONREAD](bytesRead);
|
|
57393
57393
|
});
|
|
57394
57394
|
}
|
|
57395
57395
|
[CLOSE](cb) {
|
|
57396
|
-
fs$
|
|
57396
|
+
fs$35.close(this.fd, cb);
|
|
57397
57397
|
}
|
|
57398
57398
|
[ONREAD](bytesRead) {
|
|
57399
57399
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -57449,19 +57449,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57449
57449
|
});
|
|
57450
57450
|
var WriteEntrySync = class extends WriteEntry {
|
|
57451
57451
|
[LSTAT]() {
|
|
57452
|
-
this[ONLSTAT](fs$
|
|
57452
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
57453
57453
|
}
|
|
57454
57454
|
[SYMLINK]() {
|
|
57455
|
-
this[ONREADLINK](fs$
|
|
57455
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
57456
57456
|
}
|
|
57457
57457
|
[OPENFILE]() {
|
|
57458
|
-
this[ONOPENFILE](fs$
|
|
57458
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
57459
57459
|
}
|
|
57460
57460
|
[READ]() {
|
|
57461
57461
|
let threw = true;
|
|
57462
57462
|
try {
|
|
57463
57463
|
const { fd, buf, offset, length, pos } = this;
|
|
57464
|
-
const bytesRead = fs$
|
|
57464
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
57465
57465
|
this[ONREAD](bytesRead);
|
|
57466
57466
|
threw = false;
|
|
57467
57467
|
} finally {
|
|
@@ -57474,7 +57474,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
57474
57474
|
cb();
|
|
57475
57475
|
}
|
|
57476
57476
|
[CLOSE](cb) {
|
|
57477
|
-
fs$
|
|
57477
|
+
fs$35.closeSync(this.fd);
|
|
57478
57478
|
cb();
|
|
57479
57479
|
}
|
|
57480
57480
|
};
|
|
@@ -57871,7 +57871,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57871
57871
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
57872
57872
|
const WRITE = Symbol("write");
|
|
57873
57873
|
const ONDRAIN = Symbol("ondrain");
|
|
57874
|
-
const fs$
|
|
57874
|
+
const fs$34 = require("fs");
|
|
57875
57875
|
const path$35 = require("path");
|
|
57876
57876
|
const warner = require_warn_mixin();
|
|
57877
57877
|
const normPath = require_normalize_windows_path();
|
|
@@ -57960,7 +57960,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57960
57960
|
[STAT](job) {
|
|
57961
57961
|
job.pending = true;
|
|
57962
57962
|
this[JOBS] += 1;
|
|
57963
|
-
fs$
|
|
57963
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
57964
57964
|
job.pending = false;
|
|
57965
57965
|
this[JOBS] -= 1;
|
|
57966
57966
|
if (er) this.emit("error", er);
|
|
@@ -57976,7 +57976,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
57976
57976
|
[READDIR](job) {
|
|
57977
57977
|
job.pending = true;
|
|
57978
57978
|
this[JOBS] += 1;
|
|
57979
|
-
fs$
|
|
57979
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
57980
57980
|
job.pending = false;
|
|
57981
57981
|
this[JOBS] -= 1;
|
|
57982
57982
|
if (er) return this.emit("error", er);
|
|
@@ -58094,10 +58094,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
58094
58094
|
resume() {}
|
|
58095
58095
|
[STAT](job) {
|
|
58096
58096
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
58097
|
-
this[ONSTAT](job, fs$
|
|
58097
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
58098
58098
|
}
|
|
58099
58099
|
[READDIR](job, stat) {
|
|
58100
|
-
this[ONREADDIR](job, fs$
|
|
58100
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
58101
58101
|
}
|
|
58102
58102
|
[PIPE](job) {
|
|
58103
58103
|
const source = job.entry;
|
|
@@ -58553,8 +58553,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
58553
58553
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
58554
58554
|
const MiniPass = require_minipass$2();
|
|
58555
58555
|
const EE$11 = require("events").EventEmitter;
|
|
58556
|
-
const fs$
|
|
58557
|
-
let writev = fs$
|
|
58556
|
+
const fs$33 = require("fs");
|
|
58557
|
+
let writev = fs$33.writev;
|
|
58558
58558
|
/* istanbul ignore next */
|
|
58559
58559
|
if (!writev) {
|
|
58560
58560
|
const binding = process.binding("fs");
|
|
@@ -58625,7 +58625,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58625
58625
|
throw new TypeError("this is a readable stream");
|
|
58626
58626
|
}
|
|
58627
58627
|
[_open]() {
|
|
58628
|
-
fs$
|
|
58628
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
58629
58629
|
}
|
|
58630
58630
|
[_onopen](er, fd) {
|
|
58631
58631
|
if (er) this[_onerror](er);
|
|
@@ -58644,7 +58644,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58644
58644
|
const buf = this[_makeBuf]();
|
|
58645
58645
|
/* istanbul ignore if */
|
|
58646
58646
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
58647
|
-
fs$
|
|
58647
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
58648
58648
|
}
|
|
58649
58649
|
}
|
|
58650
58650
|
[_onread](er, br, buf) {
|
|
@@ -58656,7 +58656,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58656
58656
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58657
58657
|
const fd = this[_fd];
|
|
58658
58658
|
this[_fd] = null;
|
|
58659
|
-
fs$
|
|
58659
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58660
58660
|
}
|
|
58661
58661
|
}
|
|
58662
58662
|
[_onerror](er) {
|
|
@@ -58694,7 +58694,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58694
58694
|
[_open]() {
|
|
58695
58695
|
let threw = true;
|
|
58696
58696
|
try {
|
|
58697
|
-
this[_onopen](null, fs$
|
|
58697
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
58698
58698
|
threw = false;
|
|
58699
58699
|
} finally {
|
|
58700
58700
|
if (threw) this[_close]();
|
|
@@ -58708,7 +58708,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58708
58708
|
do {
|
|
58709
58709
|
const buf = this[_makeBuf]();
|
|
58710
58710
|
/* istanbul ignore next */
|
|
58711
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
58711
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
58712
58712
|
if (!this[_handleChunk](br, buf)) break;
|
|
58713
58713
|
} while (true);
|
|
58714
58714
|
this[_reading] = false;
|
|
@@ -58722,7 +58722,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58722
58722
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58723
58723
|
const fd = this[_fd];
|
|
58724
58724
|
this[_fd] = null;
|
|
58725
|
-
fs$
|
|
58725
|
+
fs$33.closeSync(fd);
|
|
58726
58726
|
this.emit("close");
|
|
58727
58727
|
}
|
|
58728
58728
|
}
|
|
@@ -58767,7 +58767,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58767
58767
|
this.emit("error", er);
|
|
58768
58768
|
}
|
|
58769
58769
|
[_open]() {
|
|
58770
|
-
fs$
|
|
58770
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
58771
58771
|
}
|
|
58772
58772
|
[_onopen](er, fd) {
|
|
58773
58773
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -58802,7 +58802,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58802
58802
|
return true;
|
|
58803
58803
|
}
|
|
58804
58804
|
[_write](buf) {
|
|
58805
|
-
fs$
|
|
58805
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
58806
58806
|
}
|
|
58807
58807
|
[_onwrite](er, bw) {
|
|
58808
58808
|
if (er) this[_onerror](er);
|
|
@@ -58836,7 +58836,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58836
58836
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58837
58837
|
const fd = this[_fd];
|
|
58838
58838
|
this[_fd] = null;
|
|
58839
|
-
fs$
|
|
58839
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
58840
58840
|
}
|
|
58841
58841
|
}
|
|
58842
58842
|
};
|
|
@@ -58844,28 +58844,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
58844
58844
|
[_open]() {
|
|
58845
58845
|
let fd;
|
|
58846
58846
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
58847
|
-
fd = fs$
|
|
58847
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58848
58848
|
} catch (er) {
|
|
58849
58849
|
if (er.code === "ENOENT") {
|
|
58850
58850
|
this[_flags] = "w";
|
|
58851
58851
|
return this[_open]();
|
|
58852
58852
|
} else throw er;
|
|
58853
58853
|
}
|
|
58854
|
-
else fd = fs$
|
|
58854
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
58855
58855
|
this[_onopen](null, fd);
|
|
58856
58856
|
}
|
|
58857
58857
|
[_close]() {
|
|
58858
58858
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
58859
58859
|
const fd = this[_fd];
|
|
58860
58860
|
this[_fd] = null;
|
|
58861
|
-
fs$
|
|
58861
|
+
fs$33.closeSync(fd);
|
|
58862
58862
|
this.emit("close");
|
|
58863
58863
|
}
|
|
58864
58864
|
}
|
|
58865
58865
|
[_write](buf) {
|
|
58866
58866
|
let threw = true;
|
|
58867
58867
|
try {
|
|
58868
|
-
this[_onwrite](null, fs$
|
|
58868
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
58869
58869
|
threw = false;
|
|
58870
58870
|
} finally {
|
|
58871
58871
|
if (threw) try {
|
|
@@ -59230,7 +59230,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
59230
59230
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59231
59231
|
const hlo = require_high_level_opt();
|
|
59232
59232
|
const Parser = require_parse$4();
|
|
59233
|
-
const fs$
|
|
59233
|
+
const fs$32 = require("fs");
|
|
59234
59234
|
const fsm = require_fs_minipass();
|
|
59235
59235
|
const path$34 = require("path");
|
|
59236
59236
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -59271,15 +59271,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59271
59271
|
let threw = true;
|
|
59272
59272
|
let fd;
|
|
59273
59273
|
try {
|
|
59274
|
-
const stat = fs$
|
|
59274
|
+
const stat = fs$32.statSync(file);
|
|
59275
59275
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
59276
|
-
if (stat.size < readSize) p.end(fs$
|
|
59276
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
59277
59277
|
else {
|
|
59278
59278
|
let pos = 0;
|
|
59279
59279
|
const buf = Buffer.allocUnsafe(readSize);
|
|
59280
|
-
fd = fs$
|
|
59280
|
+
fd = fs$32.openSync(file, "r");
|
|
59281
59281
|
while (pos < stat.size) {
|
|
59282
|
-
const bytesRead = fs$
|
|
59282
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
59283
59283
|
pos += bytesRead;
|
|
59284
59284
|
p.write(buf.slice(0, bytesRead));
|
|
59285
59285
|
}
|
|
@@ -59288,7 +59288,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59288
59288
|
threw = false;
|
|
59289
59289
|
} finally {
|
|
59290
59290
|
if (threw && fd) try {
|
|
59291
|
-
fs$
|
|
59291
|
+
fs$32.closeSync(fd);
|
|
59292
59292
|
} catch (er) {}
|
|
59293
59293
|
}
|
|
59294
59294
|
};
|
|
@@ -59299,7 +59299,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
59299
59299
|
const p = new Promise((resolve, reject) => {
|
|
59300
59300
|
parse.on("error", reject);
|
|
59301
59301
|
parse.on("end", resolve);
|
|
59302
|
-
fs$
|
|
59302
|
+
fs$32.stat(file, (er, stat) => {
|
|
59303
59303
|
if (er) reject(er);
|
|
59304
59304
|
else {
|
|
59305
59305
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -59391,7 +59391,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59391
59391
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59392
59392
|
const hlo = require_high_level_opt();
|
|
59393
59393
|
const Pack = require_pack$1();
|
|
59394
|
-
const fs$
|
|
59394
|
+
const fs$31 = require("fs");
|
|
59395
59395
|
const fsm = require_fs_minipass();
|
|
59396
59396
|
const t = require_list();
|
|
59397
59397
|
const path$32 = require("path");
|
|
@@ -59411,16 +59411,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59411
59411
|
let position;
|
|
59412
59412
|
try {
|
|
59413
59413
|
try {
|
|
59414
|
-
fd = fs$
|
|
59414
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
59415
59415
|
} catch (er) {
|
|
59416
|
-
if (er.code === "ENOENT") fd = fs$
|
|
59416
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
59417
59417
|
else throw er;
|
|
59418
59418
|
}
|
|
59419
|
-
const st = fs$
|
|
59419
|
+
const st = fs$31.fstatSync(fd);
|
|
59420
59420
|
const headBuf = Buffer.alloc(512);
|
|
59421
59421
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
59422
59422
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
59423
|
-
bytes = fs$
|
|
59423
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
59424
59424
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
59425
59425
|
if (!bytes) break POSITION;
|
|
59426
59426
|
}
|
|
@@ -59435,7 +59435,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59435
59435
|
streamSync(opt, p, position, fd, files);
|
|
59436
59436
|
} finally {
|
|
59437
59437
|
if (threw) try {
|
|
59438
|
-
fs$
|
|
59438
|
+
fs$31.closeSync(fd);
|
|
59439
59439
|
} catch (er) {}
|
|
59440
59440
|
}
|
|
59441
59441
|
};
|
|
@@ -59452,7 +59452,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59452
59452
|
const p = new Pack(opt);
|
|
59453
59453
|
const getPos = (fd, size, cb_) => {
|
|
59454
59454
|
const cb = (er, pos) => {
|
|
59455
|
-
if (er) fs$
|
|
59455
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
59456
59456
|
else cb_(null, pos);
|
|
59457
59457
|
};
|
|
59458
59458
|
let position = 0;
|
|
@@ -59462,7 +59462,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59462
59462
|
const onread = (er, bytes) => {
|
|
59463
59463
|
if (er) return cb(er);
|
|
59464
59464
|
bufPos += bytes;
|
|
59465
|
-
if (bufPos < 512 && bytes) return fs$
|
|
59465
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
59466
59466
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
59467
59467
|
if (bufPos < 512) return cb(null, position);
|
|
59468
59468
|
const h = new Header(headBuf);
|
|
@@ -59473,9 +59473,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59473
59473
|
if (position >= size) return cb(null, position);
|
|
59474
59474
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
59475
59475
|
bufPos = 0;
|
|
59476
|
-
fs$
|
|
59476
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59477
59477
|
};
|
|
59478
|
-
fs$
|
|
59478
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
59479
59479
|
};
|
|
59480
59480
|
const promise = new Promise((resolve, reject) => {
|
|
59481
59481
|
p.on("error", reject);
|
|
@@ -59483,11 +59483,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59483
59483
|
const onopen = (er, fd) => {
|
|
59484
59484
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
59485
59485
|
flag = "w+";
|
|
59486
|
-
return fs$
|
|
59486
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
59487
59487
|
}
|
|
59488
59488
|
if (er) return reject(er);
|
|
59489
|
-
fs$
|
|
59490
|
-
if (er) return fs$
|
|
59489
|
+
fs$31.fstat(fd, (er, st) => {
|
|
59490
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
59491
59491
|
getPos(fd, st.size, (er, position) => {
|
|
59492
59492
|
if (er) return reject(er);
|
|
59493
59493
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -59501,7 +59501,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
59501
59501
|
});
|
|
59502
59502
|
});
|
|
59503
59503
|
};
|
|
59504
|
-
fs$
|
|
59504
|
+
fs$31.open(opt.file, flag, onopen);
|
|
59505
59505
|
});
|
|
59506
59506
|
return cb ? promise.then(cb, cb) : promise;
|
|
59507
59507
|
};
|
|
@@ -59554,32 +59554,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59554
59554
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
59555
59555
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59556
59556
|
const { promisify: promisify$2 } = require("util");
|
|
59557
|
-
const fs$
|
|
59557
|
+
const fs$30 = require("fs");
|
|
59558
59558
|
const optsArg = (opts) => {
|
|
59559
59559
|
if (!opts) opts = {
|
|
59560
59560
|
mode: 511,
|
|
59561
|
-
fs: fs$
|
|
59561
|
+
fs: fs$30
|
|
59562
59562
|
};
|
|
59563
59563
|
else if (typeof opts === "object") opts = {
|
|
59564
59564
|
mode: 511,
|
|
59565
|
-
fs: fs$
|
|
59565
|
+
fs: fs$30,
|
|
59566
59566
|
...opts
|
|
59567
59567
|
};
|
|
59568
59568
|
else if (typeof opts === "number") opts = {
|
|
59569
59569
|
mode: opts,
|
|
59570
|
-
fs: fs$
|
|
59570
|
+
fs: fs$30
|
|
59571
59571
|
};
|
|
59572
59572
|
else if (typeof opts === "string") opts = {
|
|
59573
59573
|
mode: parseInt(opts, 8),
|
|
59574
|
-
fs: fs$
|
|
59574
|
+
fs: fs$30
|
|
59575
59575
|
};
|
|
59576
59576
|
else throw new TypeError("invalid options argument");
|
|
59577
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
59577
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
59578
59578
|
opts.mkdirAsync = promisify$2(opts.mkdir);
|
|
59579
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
59579
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
59580
59580
|
opts.statAsync = promisify$2(opts.stat);
|
|
59581
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
59582
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
59581
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
59582
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
59583
59583
|
return opts;
|
|
59584
59584
|
};
|
|
59585
59585
|
module.exports = optsArg;
|
|
@@ -59610,17 +59610,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
59610
59610
|
//#endregion
|
|
59611
59611
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
59612
59612
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59613
|
-
const { dirname: dirname$
|
|
59613
|
+
const { dirname: dirname$15 } = require("path");
|
|
59614
59614
|
const findMade = (opts, parent, path$85 = void 0) => {
|
|
59615
59615
|
if (path$85 === parent) return Promise.resolve();
|
|
59616
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$85 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
59616
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$85 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$15(parent), parent) : void 0);
|
|
59617
59617
|
};
|
|
59618
59618
|
const findMadeSync = (opts, parent, path$86 = void 0) => {
|
|
59619
59619
|
if (path$86 === parent) return void 0;
|
|
59620
59620
|
try {
|
|
59621
59621
|
return opts.statSync(parent).isDirectory() ? path$86 : void 0;
|
|
59622
59622
|
} catch (er) {
|
|
59623
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
59623
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$15(parent), parent) : void 0;
|
|
59624
59624
|
}
|
|
59625
59625
|
};
|
|
59626
59626
|
module.exports = {
|
|
@@ -59631,10 +59631,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
59631
59631
|
//#endregion
|
|
59632
59632
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
59633
59633
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59634
|
-
const { dirname: dirname$
|
|
59634
|
+
const { dirname: dirname$14 } = require("path");
|
|
59635
59635
|
const mkdirpManual = (path$83, opts, made) => {
|
|
59636
59636
|
opts.recursive = false;
|
|
59637
|
-
const parent = dirname$
|
|
59637
|
+
const parent = dirname$14(path$83);
|
|
59638
59638
|
if (parent === path$83) return opts.mkdirAsync(path$83, opts).catch((er) => {
|
|
59639
59639
|
if (er.code !== "EISDIR") throw er;
|
|
59640
59640
|
});
|
|
@@ -59650,7 +59650,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59650
59650
|
});
|
|
59651
59651
|
};
|
|
59652
59652
|
const mkdirpManualSync = (path$84, opts, made) => {
|
|
59653
|
-
const parent = dirname$
|
|
59653
|
+
const parent = dirname$14(path$84);
|
|
59654
59654
|
opts.recursive = false;
|
|
59655
59655
|
if (parent === path$84) try {
|
|
59656
59656
|
return opts.mkdirSync(path$84, opts);
|
|
@@ -59679,12 +59679,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59679
59679
|
//#endregion
|
|
59680
59680
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
59681
59681
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59682
|
-
const { dirname: dirname$
|
|
59682
|
+
const { dirname: dirname$13 } = require("path");
|
|
59683
59683
|
const { findMade, findMadeSync } = require_find_made();
|
|
59684
59684
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
59685
59685
|
const mkdirpNative = (path$81, opts) => {
|
|
59686
59686
|
opts.recursive = true;
|
|
59687
|
-
if (dirname$
|
|
59687
|
+
if (dirname$13(path$81) === path$81) return opts.mkdirAsync(path$81, opts);
|
|
59688
59688
|
return findMade(opts, path$81).then((made) => opts.mkdirAsync(path$81, opts).then(() => made).catch((er) => {
|
|
59689
59689
|
if (er.code === "ENOENT") return mkdirpManual(path$81, opts);
|
|
59690
59690
|
else throw er;
|
|
@@ -59692,7 +59692,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59692
59692
|
};
|
|
59693
59693
|
const mkdirpNativeSync = (path$82, opts) => {
|
|
59694
59694
|
opts.recursive = true;
|
|
59695
|
-
if (dirname$
|
|
59695
|
+
if (dirname$13(path$82) === path$82) return opts.mkdirSync(path$82, opts);
|
|
59696
59696
|
const made = findMadeSync(opts, path$82);
|
|
59697
59697
|
try {
|
|
59698
59698
|
opts.mkdirSync(path$82, opts);
|
|
@@ -59710,12 +59710,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
59710
59710
|
//#endregion
|
|
59711
59711
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
59712
59712
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59713
|
-
const fs$
|
|
59713
|
+
const fs$29 = require("fs");
|
|
59714
59714
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
59715
59715
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
59716
59716
|
module.exports = {
|
|
59717
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
59718
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
59717
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
59718
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
59719
59719
|
};
|
|
59720
59720
|
}));
|
|
59721
59721
|
//#endregion
|
|
@@ -59746,17 +59746,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59746
59746
|
//#endregion
|
|
59747
59747
|
//#region ../../node_modules/chownr/chownr.js
|
|
59748
59748
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59749
|
-
const fs$
|
|
59749
|
+
const fs$28 = require("fs");
|
|
59750
59750
|
const path$31 = require("path");
|
|
59751
59751
|
/* istanbul ignore next */
|
|
59752
|
-
const LCHOWN = fs$
|
|
59752
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
59753
59753
|
/* istanbul ignore next */
|
|
59754
|
-
const LCHOWNSYNC = fs$
|
|
59754
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
59755
59755
|
/* istanbul ignore next */
|
|
59756
|
-
const needEISDIRHandled = fs$
|
|
59756
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
59757
59757
|
const lchownSync = (path$73, uid, gid) => {
|
|
59758
59758
|
try {
|
|
59759
|
-
return fs$
|
|
59759
|
+
return fs$28[LCHOWNSYNC](path$73, uid, gid);
|
|
59760
59760
|
} catch (er) {
|
|
59761
59761
|
if (er.code !== "ENOENT") throw er;
|
|
59762
59762
|
}
|
|
@@ -59764,7 +59764,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59764
59764
|
/* istanbul ignore next */
|
|
59765
59765
|
const chownSync = (path$74, uid, gid) => {
|
|
59766
59766
|
try {
|
|
59767
|
-
return fs$
|
|
59767
|
+
return fs$28.chownSync(path$74, uid, gid);
|
|
59768
59768
|
} catch (er) {
|
|
59769
59769
|
if (er.code !== "ENOENT") throw er;
|
|
59770
59770
|
}
|
|
@@ -59772,7 +59772,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59772
59772
|
/* istanbul ignore next */
|
|
59773
59773
|
const handleEISDIR = needEISDIRHandled ? (path$75, uid, gid, cb) => (er) => {
|
|
59774
59774
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
59775
|
-
else fs$
|
|
59775
|
+
else fs$28.chown(path$75, uid, gid, cb);
|
|
59776
59776
|
} : (_, __, ___, cb) => cb;
|
|
59777
59777
|
/* istanbul ignore next */
|
|
59778
59778
|
const handleEISDirSync = needEISDIRHandled ? (path$76, uid, gid) => {
|
|
@@ -59784,17 +59784,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59784
59784
|
}
|
|
59785
59785
|
} : (path$77, uid, gid) => lchownSync(path$77, uid, gid);
|
|
59786
59786
|
const nodeVersion = process.version;
|
|
59787
|
-
let readdir = (path$78, options, cb) => fs$
|
|
59788
|
-
let readdirSync = (path$79, options) => fs$
|
|
59787
|
+
let readdir = (path$78, options, cb) => fs$28.readdir(path$78, options, cb);
|
|
59788
|
+
let readdirSync = (path$79, options) => fs$28.readdirSync(path$79, options);
|
|
59789
59789
|
/* istanbul ignore next */
|
|
59790
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$80, options, cb) => fs$
|
|
59790
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$80, options, cb) => fs$28.readdir(path$80, cb);
|
|
59791
59791
|
const chown = (cpath, uid, gid, cb) => {
|
|
59792
|
-
fs$
|
|
59792
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
59793
59793
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
59794
59794
|
}));
|
|
59795
59795
|
};
|
|
59796
59796
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
59797
|
-
if (typeof child === "string") return fs$
|
|
59797
|
+
if (typeof child === "string") return fs$28.lstat(path$31.resolve(p, child), (er, stats) => {
|
|
59798
59798
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
59799
59799
|
stats.name = child;
|
|
59800
59800
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -59824,7 +59824,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59824
59824
|
};
|
|
59825
59825
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
59826
59826
|
if (typeof child === "string") try {
|
|
59827
|
-
const stats = fs$
|
|
59827
|
+
const stats = fs$28.lstatSync(path$31.resolve(p, child));
|
|
59828
59828
|
stats.name = child;
|
|
59829
59829
|
child = stats;
|
|
59830
59830
|
} catch (er) {
|
|
@@ -59853,7 +59853,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
59853
59853
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
59854
59854
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
59855
59855
|
const mkdirp = require_mkdirp();
|
|
59856
|
-
const fs$
|
|
59856
|
+
const fs$27 = require("fs");
|
|
59857
59857
|
const path$30 = require("path");
|
|
59858
59858
|
const chownr = require_chownr();
|
|
59859
59859
|
const normPath = require_normalize_windows_path();
|
|
@@ -59880,7 +59880,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59880
59880
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
59881
59881
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
59882
59882
|
const checkCwd = (dir, cb) => {
|
|
59883
|
-
fs$
|
|
59883
|
+
fs$27.stat(dir, (er, st) => {
|
|
59884
59884
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
59885
59885
|
cb(er);
|
|
59886
59886
|
});
|
|
@@ -59902,7 +59902,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59902
59902
|
else {
|
|
59903
59903
|
cSet(cache, dir, true);
|
|
59904
59904
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
59905
|
-
else if (needChmod) fs$
|
|
59905
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
59906
59906
|
else cb();
|
|
59907
59907
|
}
|
|
59908
59908
|
};
|
|
@@ -59916,17 +59916,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59916
59916
|
const p = parts.shift();
|
|
59917
59917
|
const part = normPath(path$30.resolve(base + "/" + p));
|
|
59918
59918
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59919
|
-
fs$
|
|
59919
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59920
59920
|
};
|
|
59921
59921
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
59922
|
-
if (er) fs$
|
|
59922
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
59923
59923
|
if (statEr) {
|
|
59924
59924
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
59925
59925
|
cb(statEr);
|
|
59926
59926
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
59927
|
-
else if (unlink) fs$
|
|
59927
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
59928
59928
|
if (er) return cb(er);
|
|
59929
|
-
fs$
|
|
59929
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
59930
59930
|
});
|
|
59931
59931
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
59932
59932
|
else cb(er);
|
|
@@ -59940,7 +59940,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59940
59940
|
let ok = false;
|
|
59941
59941
|
let code = "ENOTDIR";
|
|
59942
59942
|
try {
|
|
59943
|
-
ok = fs$
|
|
59943
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
59944
59944
|
} catch (er) {
|
|
59945
59945
|
code = er.code;
|
|
59946
59946
|
} finally {
|
|
@@ -59962,7 +59962,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59962
59962
|
const done = (created) => {
|
|
59963
59963
|
cSet(cache, dir, true);
|
|
59964
59964
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
59965
|
-
if (needChmod) fs$
|
|
59965
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
59966
59966
|
};
|
|
59967
59967
|
if (cache && cGet(cache, dir) === true) return done();
|
|
59968
59968
|
if (dir === cwd) {
|
|
@@ -59976,17 +59976,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
59976
59976
|
part = normPath(path$30.resolve(part));
|
|
59977
59977
|
if (cGet(cache, part)) continue;
|
|
59978
59978
|
try {
|
|
59979
|
-
fs$
|
|
59979
|
+
fs$27.mkdirSync(part, mode);
|
|
59980
59980
|
created = created || part;
|
|
59981
59981
|
cSet(cache, part, true);
|
|
59982
59982
|
} catch (er) {
|
|
59983
|
-
const st = fs$
|
|
59983
|
+
const st = fs$27.lstatSync(part);
|
|
59984
59984
|
if (st.isDirectory()) {
|
|
59985
59985
|
cSet(cache, part, true);
|
|
59986
59986
|
continue;
|
|
59987
59987
|
} else if (unlink) {
|
|
59988
|
-
fs$
|
|
59989
|
-
fs$
|
|
59988
|
+
fs$27.unlinkSync(part);
|
|
59989
|
+
fs$27.mkdirSync(part, mode);
|
|
59990
59990
|
created = created || part;
|
|
59991
59991
|
cSet(cache, part, true);
|
|
59992
59992
|
continue;
|
|
@@ -60012,14 +60012,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60012
60012
|
const assert$1 = require("assert");
|
|
60013
60013
|
const normalize = require_normalize_unicode();
|
|
60014
60014
|
const stripSlashes = require_strip_trailing_slashes();
|
|
60015
|
-
const { join: join$
|
|
60015
|
+
const { join: join$18 } = require("path");
|
|
60016
60016
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
60017
60017
|
module.exports = () => {
|
|
60018
60018
|
const queues = /* @__PURE__ */ new Map();
|
|
60019
60019
|
const reservations = /* @__PURE__ */ new Map();
|
|
60020
60020
|
const getDirs = (path$64) => {
|
|
60021
60021
|
return path$64.split("/").slice(0, -1).reduce((set, path$65) => {
|
|
60022
|
-
if (set.length) path$65 = join$
|
|
60022
|
+
if (set.length) path$65 = join$18(set[set.length - 1], path$65);
|
|
60023
60023
|
set.push(path$65 || "/");
|
|
60024
60024
|
return set;
|
|
60025
60025
|
}, []);
|
|
@@ -60073,7 +60073,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
60073
60073
|
};
|
|
60074
60074
|
const reserve = (paths, fn) => {
|
|
60075
60075
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
60076
|
-
return stripSlashes(join$
|
|
60076
|
+
return stripSlashes(join$18(normalize(p))).toLowerCase();
|
|
60077
60077
|
});
|
|
60078
60078
|
const dirs = new Set(paths.map((path$69) => getDirs(path$69)).reduce((a, b) => a.concat(b)));
|
|
60079
60079
|
reservations.set(fn, {
|
|
@@ -60115,7 +60115,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
60115
60115
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60116
60116
|
const assert = require("assert");
|
|
60117
60117
|
const Parser = require_parse$4();
|
|
60118
|
-
const fs$
|
|
60118
|
+
const fs$26 = require("fs");
|
|
60119
60119
|
const fsm = require_fs_minipass();
|
|
60120
60120
|
const path$29 = require("path");
|
|
60121
60121
|
const mkdir = require_mkdir();
|
|
@@ -60156,19 +60156,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60156
60156
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
60157
60157
|
/* istanbul ignore next */
|
|
60158
60158
|
const unlinkFile = (path$60, cb) => {
|
|
60159
|
-
if (!isWindows) return fs$
|
|
60159
|
+
if (!isWindows) return fs$26.unlink(path$60, cb);
|
|
60160
60160
|
const name = path$60 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60161
|
-
fs$
|
|
60161
|
+
fs$26.rename(path$60, name, (er) => {
|
|
60162
60162
|
if (er) return cb(er);
|
|
60163
|
-
fs$
|
|
60163
|
+
fs$26.unlink(name, cb);
|
|
60164
60164
|
});
|
|
60165
60165
|
};
|
|
60166
60166
|
/* istanbul ignore next */
|
|
60167
60167
|
const unlinkFileSync = (path$61) => {
|
|
60168
|
-
if (!isWindows) return fs$
|
|
60168
|
+
if (!isWindows) return fs$26.unlinkSync(path$61);
|
|
60169
60169
|
const name = path$61 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
60170
|
-
fs$
|
|
60171
|
-
fs$
|
|
60170
|
+
fs$26.renameSync(path$61, name);
|
|
60171
|
+
fs$26.unlinkSync(name);
|
|
60172
60172
|
};
|
|
60173
60173
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
60174
60174
|
const cacheKeyNormalize = (path$62) => stripSlash(normPath(normalize(path$62))).toLowerCase();
|
|
@@ -60354,7 +60354,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60354
60354
|
autoClose: false
|
|
60355
60355
|
});
|
|
60356
60356
|
stream.on("error", (er) => {
|
|
60357
|
-
if (stream.fd) fs$
|
|
60357
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60358
60358
|
stream.write = () => true;
|
|
60359
60359
|
this[ONERROR](er, entry);
|
|
60360
60360
|
fullyDone();
|
|
@@ -60363,12 +60363,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60363
60363
|
const done = (er) => {
|
|
60364
60364
|
if (er) {
|
|
60365
60365
|
/* istanbul ignore else - we should always have a fd by now */
|
|
60366
|
-
if (stream.fd) fs$
|
|
60366
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
60367
60367
|
this[ONERROR](er, entry);
|
|
60368
60368
|
fullyDone();
|
|
60369
60369
|
return;
|
|
60370
60370
|
}
|
|
60371
|
-
if (--actions === 0) fs$
|
|
60371
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
60372
60372
|
if (er) this[ONERROR](er, entry);
|
|
60373
60373
|
else this[UNPEND]();
|
|
60374
60374
|
fullyDone();
|
|
@@ -60381,13 +60381,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60381
60381
|
actions++;
|
|
60382
60382
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60383
60383
|
const mtime = entry.mtime;
|
|
60384
|
-
fs$
|
|
60384
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
60385
60385
|
}
|
|
60386
60386
|
if (this[DOCHOWN](entry)) {
|
|
60387
60387
|
actions++;
|
|
60388
60388
|
const uid = this[UID](entry);
|
|
60389
60389
|
const gid = this[GID](entry);
|
|
60390
|
-
fs$
|
|
60390
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
60391
60391
|
}
|
|
60392
60392
|
done();
|
|
60393
60393
|
});
|
|
@@ -60419,11 +60419,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60419
60419
|
};
|
|
60420
60420
|
if (entry.mtime && !this.noMtime) {
|
|
60421
60421
|
actions++;
|
|
60422
|
-
fs$
|
|
60422
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
60423
60423
|
}
|
|
60424
60424
|
if (this[DOCHOWN](entry)) {
|
|
60425
60425
|
actions++;
|
|
60426
|
-
fs$
|
|
60426
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
60427
60427
|
}
|
|
60428
60428
|
done();
|
|
60429
60429
|
});
|
|
@@ -60496,7 +60496,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60496
60496
|
afterMakeParent();
|
|
60497
60497
|
};
|
|
60498
60498
|
const afterMakeParent = () => {
|
|
60499
|
-
fs$
|
|
60499
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
60500
60500
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
60501
60501
|
this[SKIP](entry);
|
|
60502
60502
|
done();
|
|
@@ -60508,9 +60508,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60508
60508
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
60509
60509
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
60510
60510
|
if (!needChmod) return afterChmod();
|
|
60511
|
-
return fs$
|
|
60511
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
60512
60512
|
}
|
|
60513
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
60513
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
60514
60514
|
}
|
|
60515
60515
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
60516
60516
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -60536,7 +60536,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60536
60536
|
}
|
|
60537
60537
|
}
|
|
60538
60538
|
[LINK](entry, linkpath, link, done) {
|
|
60539
|
-
fs$
|
|
60539
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
60540
60540
|
if (er) this[ONERROR](er, entry);
|
|
60541
60541
|
else {
|
|
60542
60542
|
this[UNPEND]();
|
|
@@ -60571,17 +60571,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60571
60571
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
60572
60572
|
}
|
|
60573
60573
|
}
|
|
60574
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
60574
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
60575
60575
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
60576
60576
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
60577
60577
|
if (st.isDirectory()) {
|
|
60578
60578
|
if (entry.type === "Directory") {
|
|
60579
60579
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
60580
|
-
fs$
|
|
60580
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
60581
60581
|
}) : [];
|
|
60582
60582
|
return this[MAKEFS](er, entry);
|
|
60583
60583
|
}
|
|
60584
|
-
const [er] = callSync(() => fs$
|
|
60584
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
60585
60585
|
this[MAKEFS](er, entry);
|
|
60586
60586
|
}
|
|
60587
60587
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -60592,7 +60592,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60592
60592
|
const oner = (er) => {
|
|
60593
60593
|
let closeError;
|
|
60594
60594
|
try {
|
|
60595
|
-
fs$
|
|
60595
|
+
fs$26.closeSync(fd);
|
|
60596
60596
|
} catch (e) {
|
|
60597
60597
|
closeError = e;
|
|
60598
60598
|
}
|
|
@@ -60601,7 +60601,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60601
60601
|
};
|
|
60602
60602
|
let fd;
|
|
60603
60603
|
try {
|
|
60604
|
-
fd = fs$
|
|
60604
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
60605
60605
|
} catch (er) {
|
|
60606
60606
|
return oner(er);
|
|
60607
60607
|
}
|
|
@@ -60612,7 +60612,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60612
60612
|
}
|
|
60613
60613
|
tx.on("data", (chunk) => {
|
|
60614
60614
|
try {
|
|
60615
|
-
fs$
|
|
60615
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
60616
60616
|
} catch (er) {
|
|
60617
60617
|
oner(er);
|
|
60618
60618
|
}
|
|
@@ -60623,10 +60623,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60623
60623
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
60624
60624
|
const mtime = entry.mtime;
|
|
60625
60625
|
try {
|
|
60626
|
-
fs$
|
|
60626
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
60627
60627
|
} catch (futimeser) {
|
|
60628
60628
|
try {
|
|
60629
|
-
fs$
|
|
60629
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
60630
60630
|
} catch (utimeser) {
|
|
60631
60631
|
er = futimeser;
|
|
60632
60632
|
}
|
|
@@ -60636,10 +60636,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60636
60636
|
const uid = this[UID](entry);
|
|
60637
60637
|
const gid = this[GID](entry);
|
|
60638
60638
|
try {
|
|
60639
|
-
fs$
|
|
60639
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
60640
60640
|
} catch (fchowner) {
|
|
60641
60641
|
try {
|
|
60642
|
-
fs$
|
|
60642
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
60643
60643
|
} catch (chowner) {
|
|
60644
60644
|
er = er || fchowner;
|
|
60645
60645
|
}
|
|
@@ -60657,10 +60657,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60657
60657
|
return;
|
|
60658
60658
|
}
|
|
60659
60659
|
if (entry.mtime && !this.noMtime) try {
|
|
60660
|
-
fs$
|
|
60660
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
60661
60661
|
} catch (er) {}
|
|
60662
60662
|
if (this[DOCHOWN](entry)) try {
|
|
60663
|
-
fs$
|
|
60663
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
60664
60664
|
} catch (er) {}
|
|
60665
60665
|
done();
|
|
60666
60666
|
entry.resume();
|
|
@@ -60685,7 +60685,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60685
60685
|
}
|
|
60686
60686
|
[LINK](entry, linkpath, link, done) {
|
|
60687
60687
|
try {
|
|
60688
|
-
fs$
|
|
60688
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
60689
60689
|
done();
|
|
60690
60690
|
entry.resume();
|
|
60691
60691
|
} catch (er) {
|
|
@@ -60701,7 +60701,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
60701
60701
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60702
60702
|
const hlo = require_high_level_opt();
|
|
60703
60703
|
const Unpack = require_unpack();
|
|
60704
|
-
const fs$
|
|
60704
|
+
const fs$25 = require("fs");
|
|
60705
60705
|
const fsm = require_fs_minipass();
|
|
60706
60706
|
const path$28 = require("path");
|
|
60707
60707
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -60731,7 +60731,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60731
60731
|
const extractFileSync = (opt) => {
|
|
60732
60732
|
const u = new Unpack.Sync(opt);
|
|
60733
60733
|
const file = opt.file;
|
|
60734
|
-
const stat = fs$
|
|
60734
|
+
const stat = fs$25.statSync(file);
|
|
60735
60735
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
60736
60736
|
new fsm.ReadStreamSync(file, {
|
|
60737
60737
|
readSize,
|
|
@@ -60745,7 +60745,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
60745
60745
|
const p = new Promise((resolve, reject) => {
|
|
60746
60746
|
u.on("error", reject);
|
|
60747
60747
|
u.on("close", resolve);
|
|
60748
|
-
fs$
|
|
60748
|
+
fs$25.stat(file, (er, stat) => {
|
|
60749
60749
|
if (er) reject(er);
|
|
60750
60750
|
else {
|
|
60751
60751
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -60828,7 +60828,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
60828
60828
|
//#endregion
|
|
60829
60829
|
//#region ../../node_modules/fd-slicer/index.js
|
|
60830
60830
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
60831
|
-
var fs$
|
|
60831
|
+
var fs$24 = require("fs");
|
|
60832
60832
|
var util$9 = require("util");
|
|
60833
60833
|
var stream$1 = require("stream");
|
|
60834
60834
|
var Readable = stream$1.Readable;
|
|
@@ -60853,7 +60853,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60853
60853
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
60854
60854
|
var self = this;
|
|
60855
60855
|
self.pend.go(function(cb) {
|
|
60856
|
-
fs$
|
|
60856
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
60857
60857
|
cb();
|
|
60858
60858
|
callback(err, bytesRead, buffer);
|
|
60859
60859
|
});
|
|
@@ -60862,7 +60862,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60862
60862
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
60863
60863
|
var self = this;
|
|
60864
60864
|
self.pend.go(function(cb) {
|
|
60865
|
-
fs$
|
|
60865
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
60866
60866
|
cb();
|
|
60867
60867
|
callback(err, written, buffer);
|
|
60868
60868
|
});
|
|
@@ -60882,7 +60882,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60882
60882
|
self.refCount -= 1;
|
|
60883
60883
|
if (self.refCount > 0) return;
|
|
60884
60884
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
60885
|
-
if (self.autoClose) fs$
|
|
60885
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
60886
60886
|
function onCloseDone(err) {
|
|
60887
60887
|
if (err) self.emit("error", err);
|
|
60888
60888
|
else self.emit("close");
|
|
@@ -60913,7 +60913,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60913
60913
|
self.context.pend.go(function(cb) {
|
|
60914
60914
|
if (self.destroyed) return cb();
|
|
60915
60915
|
var buffer = new Buffer(toRead);
|
|
60916
|
-
fs$
|
|
60916
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
60917
60917
|
if (err) self.destroy(err);
|
|
60918
60918
|
else if (bytesRead === 0) {
|
|
60919
60919
|
self.destroyed = true;
|
|
@@ -60959,7 +60959,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
60959
60959
|
}
|
|
60960
60960
|
self.context.pend.go(function(cb) {
|
|
60961
60961
|
if (self.destroyed) return cb();
|
|
60962
|
-
fs$
|
|
60962
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
60963
60963
|
if (err) {
|
|
60964
60964
|
self.destroy();
|
|
60965
60965
|
cb();
|
|
@@ -61366,7 +61366,7 @@ var require_buffer_crc32 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
61366
61366
|
//#endregion
|
|
61367
61367
|
//#region ../../node_modules/yauzl/index.js
|
|
61368
61368
|
var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
61369
|
-
var fs$
|
|
61369
|
+
var fs$23 = require("fs");
|
|
61370
61370
|
var zlib$1 = require("zlib");
|
|
61371
61371
|
var fd_slicer = require_fd_slicer();
|
|
61372
61372
|
var crc32 = require_buffer_crc32();
|
|
@@ -61388,10 +61388,10 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61388
61388
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61389
61389
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61390
61390
|
if (callback == null) callback = defaultCallback;
|
|
61391
|
-
fs$
|
|
61391
|
+
fs$23.open(path, "r", function(err, fd) {
|
|
61392
61392
|
if (err) return callback(err);
|
|
61393
61393
|
fromFd(fd, options, function(err, zipfile) {
|
|
61394
|
-
if (err) fs$
|
|
61394
|
+
if (err) fs$23.close(fd, defaultCallback);
|
|
61395
61395
|
callback(err, zipfile);
|
|
61396
61396
|
});
|
|
61397
61397
|
});
|
|
@@ -61408,7 +61408,7 @@ var require_yauzl = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
61408
61408
|
if (options.validateEntrySizes == null) options.validateEntrySizes = true;
|
|
61409
61409
|
if (options.strictFileNames == null) options.strictFileNames = false;
|
|
61410
61410
|
if (callback == null) callback = defaultCallback;
|
|
61411
|
-
fs$
|
|
61411
|
+
fs$23.fstat(fd, function(err, stats) {
|
|
61412
61412
|
if (err) return callback(err);
|
|
61413
61413
|
fromRandomAccessReader(fd_slicer.createFromFd(fd, { autoClose: true }), stats.size, options, callback);
|
|
61414
61414
|
});
|
|
@@ -62636,13 +62636,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62636
62636
|
//#region ../../node_modules/readdir-glob/index.js
|
|
62637
62637
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62638
62638
|
module.exports = readdirGlob;
|
|
62639
|
-
const fs$
|
|
62639
|
+
const fs$22 = require("fs");
|
|
62640
62640
|
const { EventEmitter: EventEmitter$1 } = require("events");
|
|
62641
62641
|
const { Minimatch } = require_minimatch$1();
|
|
62642
62642
|
const { resolve: resolve$12 } = require("path");
|
|
62643
62643
|
function readdir(dir, strict) {
|
|
62644
62644
|
return new Promise((resolve, reject) => {
|
|
62645
|
-
fs$
|
|
62645
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
62646
62646
|
if (err) switch (err.code) {
|
|
62647
62647
|
case "ENOTDIR":
|
|
62648
62648
|
if (strict) reject(err);
|
|
@@ -62664,7 +62664,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
62664
62664
|
}
|
|
62665
62665
|
function stat(file, followSymlinks) {
|
|
62666
62666
|
return new Promise((resolve, reject) => {
|
|
62667
|
-
(followSymlinks ? fs$
|
|
62667
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
62668
62668
|
if (err) switch (err.code) {
|
|
62669
62669
|
case "ENOENT":
|
|
62670
62670
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -68703,7 +68703,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
68703
68703
|
//#endregion
|
|
68704
68704
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
68705
68705
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68706
|
-
var fs$
|
|
68706
|
+
var fs$21 = require("fs");
|
|
68707
68707
|
var polyfills = require_polyfills();
|
|
68708
68708
|
var legacy = require_legacy_streams();
|
|
68709
68709
|
var clone = require_clone$1();
|
|
@@ -68732,36 +68732,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68732
68732
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
68733
68733
|
console.error(m);
|
|
68734
68734
|
};
|
|
68735
|
-
if (!fs$
|
|
68736
|
-
publishQueue(fs$
|
|
68737
|
-
fs$
|
|
68735
|
+
if (!fs$21[gracefulQueue]) {
|
|
68736
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
68737
|
+
fs$21.close = (function(fs$close) {
|
|
68738
68738
|
function close(fd, cb) {
|
|
68739
|
-
return fs$close.call(fs$
|
|
68739
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
68740
68740
|
if (!err) resetQueue();
|
|
68741
68741
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
68742
68742
|
});
|
|
68743
68743
|
}
|
|
68744
68744
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
68745
68745
|
return close;
|
|
68746
|
-
})(fs$
|
|
68747
|
-
fs$
|
|
68746
|
+
})(fs$21.close);
|
|
68747
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
68748
68748
|
function closeSync(fd) {
|
|
68749
|
-
fs$closeSync.apply(fs$
|
|
68749
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
68750
68750
|
resetQueue();
|
|
68751
68751
|
}
|
|
68752
68752
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
68753
68753
|
return closeSync;
|
|
68754
|
-
})(fs$
|
|
68754
|
+
})(fs$21.closeSync);
|
|
68755
68755
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
68756
|
-
debug(fs$
|
|
68757
|
-
require("assert").equal(fs$
|
|
68756
|
+
debug(fs$21[gracefulQueue]);
|
|
68757
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
68758
68758
|
});
|
|
68759
68759
|
}
|
|
68760
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
68761
|
-
module.exports = patch(clone(fs$
|
|
68762
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
68763
|
-
module.exports = patch(fs$
|
|
68764
|
-
fs$
|
|
68760
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
68761
|
+
module.exports = patch(clone(fs$21));
|
|
68762
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
68763
|
+
module.exports = patch(fs$21);
|
|
68764
|
+
fs$21.__patched = true;
|
|
68765
68765
|
}
|
|
68766
68766
|
function patch(fs) {
|
|
68767
68767
|
polyfills(fs);
|
|
@@ -69016,23 +69016,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69016
69016
|
}
|
|
69017
69017
|
function enqueue(elem) {
|
|
69018
69018
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
69019
|
-
fs$
|
|
69019
|
+
fs$21[gracefulQueue].push(elem);
|
|
69020
69020
|
retry();
|
|
69021
69021
|
}
|
|
69022
69022
|
var retryTimer;
|
|
69023
69023
|
function resetQueue() {
|
|
69024
69024
|
var now = Date.now();
|
|
69025
|
-
for (var i = 0; i < fs$
|
|
69026
|
-
fs$
|
|
69027
|
-
fs$
|
|
69025
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
69026
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
69027
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
69028
69028
|
}
|
|
69029
69029
|
retry();
|
|
69030
69030
|
}
|
|
69031
69031
|
function retry() {
|
|
69032
69032
|
clearTimeout(retryTimer);
|
|
69033
69033
|
retryTimer = void 0;
|
|
69034
|
-
if (fs$
|
|
69035
|
-
var elem = fs$
|
|
69034
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
69035
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
69036
69036
|
var fn = elem[0];
|
|
69037
69037
|
var args = elem[1];
|
|
69038
69038
|
var err = elem[2];
|
|
@@ -69051,7 +69051,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
69051
69051
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
69052
69052
|
debug("RETRY", fn.name, args);
|
|
69053
69053
|
fn.apply(null, args.concat([startTime]));
|
|
69054
|
-
} else fs$
|
|
69054
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
69055
69055
|
}
|
|
69056
69056
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
69057
69057
|
}
|
|
@@ -84448,7 +84448,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84448
84448
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
84449
84449
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84450
84450
|
*/
|
|
84451
|
-
var fs$
|
|
84451
|
+
var fs$20 = require("fs");
|
|
84452
84452
|
var glob = require_readdir_glob();
|
|
84453
84453
|
var async = require_async();
|
|
84454
84454
|
var path$25 = require("path");
|
|
@@ -84525,7 +84525,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84525
84525
|
data.sourcePath = filepath;
|
|
84526
84526
|
task.data = data;
|
|
84527
84527
|
this._entriesCount++;
|
|
84528
|
-
if (data.stats && data.stats instanceof fs$
|
|
84528
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
84529
84529
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
84530
84530
|
if (task) {
|
|
84531
84531
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -84755,7 +84755,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84755
84755
|
callback();
|
|
84756
84756
|
return;
|
|
84757
84757
|
}
|
|
84758
|
-
fs$
|
|
84758
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
84759
84759
|
if (this._state.aborted) {
|
|
84760
84760
|
setImmediate(callback);
|
|
84761
84761
|
return;
|
|
@@ -84821,7 +84821,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
84821
84821
|
task.data.sourceType = "buffer";
|
|
84822
84822
|
task.source = Buffer.concat([]);
|
|
84823
84823
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
84824
|
-
var linkPath = fs$
|
|
84824
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
84825
84825
|
var dirName = path$25.dirname(task.filepath);
|
|
84826
84826
|
task.data.type = "symlink";
|
|
84827
84827
|
task.data.linkname = path$25.relative(dirName, path$25.resolve(dirName, linkPath));
|
|
@@ -95910,7 +95910,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
95910
95910
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
95911
95911
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95912
95912
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
95913
|
-
const { join: join$
|
|
95913
|
+
const { join: join$15, delimiter: delimiter$4, sep: sep$4, posix: posix$1 } = require("path");
|
|
95914
95914
|
const isWindows = process.platform === "win32";
|
|
95915
95915
|
/* istanbul ignore next */
|
|
95916
95916
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -95940,7 +95940,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
95940
95940
|
};
|
|
95941
95941
|
const getPathPart = (raw, cmd) => {
|
|
95942
95942
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
95943
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
95943
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$15(pathPart, cmd);
|
|
95944
95944
|
};
|
|
95945
95945
|
const which = async (cmd, opt = {}) => {
|
|
95946
95946
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -96519,7 +96519,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
96519
96519
|
//#endregion
|
|
96520
96520
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
96521
96521
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96522
|
-
const fs$
|
|
96522
|
+
const fs$18 = require("node:fs");
|
|
96523
96523
|
const os$2 = require("node:os");
|
|
96524
96524
|
const path$23 = require("node:path");
|
|
96525
96525
|
const ini = require_ini();
|
|
@@ -96528,8 +96528,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
96528
96528
|
const loadGitConfig = () => {
|
|
96529
96529
|
if (cachedConfig === null) try {
|
|
96530
96530
|
cachedConfig = {};
|
|
96531
|
-
if (fs$
|
|
96532
|
-
const configContent = fs$
|
|
96531
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
96532
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
96533
96533
|
cachedConfig = ini.parse(configContent);
|
|
96534
96534
|
}
|
|
96535
96535
|
} catch (error) {
|
|
@@ -96689,7 +96689,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
96689
96689
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
96690
96690
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96691
96691
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
96692
|
-
const { join: join$
|
|
96692
|
+
const { join: join$14, delimiter: delimiter$3, sep: sep$3, posix } = require("path");
|
|
96693
96693
|
const isWindows = process.platform === "win32";
|
|
96694
96694
|
/* istanbul ignore next */
|
|
96695
96695
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -96719,7 +96719,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
96719
96719
|
};
|
|
96720
96720
|
const getPathPart = (raw, cmd) => {
|
|
96721
96721
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
96722
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
96722
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
96723
96723
|
};
|
|
96724
96724
|
const which = async (cmd, opt = {}) => {
|
|
96725
96725
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -98398,7 +98398,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98398
98398
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98399
98399
|
const process$6 = require("node:process");
|
|
98400
98400
|
const nodeOs = require("node:os");
|
|
98401
|
-
const fs$
|
|
98401
|
+
const fs$17 = require("node:fs");
|
|
98402
98402
|
function isMusl(file) {
|
|
98403
98403
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
98404
98404
|
}
|
|
@@ -98411,7 +98411,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
98411
98411
|
const LDD_PATH = "/usr/bin/ldd";
|
|
98412
98412
|
function getFamilyFromFilesystem() {
|
|
98413
98413
|
try {
|
|
98414
|
-
const content = fs$
|
|
98414
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
98415
98415
|
if (content.includes("musl")) return "musl";
|
|
98416
98416
|
if (content.includes("GNU C Library")) return "glibc";
|
|
98417
98417
|
return null;
|
|
@@ -98617,7 +98617,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98617
98617
|
//#endregion
|
|
98618
98618
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
98619
98619
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98620
|
-
const { join: join$
|
|
98620
|
+
const { join: join$13, basename: basename$5 } = require("path");
|
|
98621
98621
|
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);
|
|
98622
98622
|
const normalizeString = (pkg) => {
|
|
98623
98623
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -98640,9 +98640,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98640
98640
|
const clean = {};
|
|
98641
98641
|
let hasBins = false;
|
|
98642
98642
|
Object.keys(orig).forEach((binKey) => {
|
|
98643
|
-
const base = join$
|
|
98643
|
+
const base = join$13("/", basename$5(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
98644
98644
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
98645
|
-
const binTarget = join$
|
|
98645
|
+
const binTarget = join$13("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
98646
98646
|
if (!binTarget) return;
|
|
98647
98647
|
clean[base] = binTarget;
|
|
98648
98648
|
hasBins = true;
|
|
@@ -98800,7 +98800,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98800
98800
|
const spawn = require_spawn();
|
|
98801
98801
|
const { isWindows } = require_utils$3();
|
|
98802
98802
|
const pickManifest = require_lib$20();
|
|
98803
|
-
const fs$
|
|
98803
|
+
const fs$16 = require("fs/promises");
|
|
98804
98804
|
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));
|
|
98805
98805
|
const maybeShallow = (repo, opts) => {
|
|
98806
98806
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -98835,7 +98835,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98835
98835
|
...opts,
|
|
98836
98836
|
cwd: target
|
|
98837
98837
|
});
|
|
98838
|
-
return fs$
|
|
98838
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
98839
98839
|
"config",
|
|
98840
98840
|
"--local",
|
|
98841
98841
|
"--add",
|
|
@@ -98873,7 +98873,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98873
98873
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
98874
98874
|
};
|
|
98875
98875
|
const updateSubmodules = async (target, opts) => {
|
|
98876
|
-
if (!await fs$
|
|
98876
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
98877
98877
|
return spawn([
|
|
98878
98878
|
"submodule",
|
|
98879
98879
|
"update",
|
|
@@ -98898,7 +98898,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
98898
98898
|
...opts,
|
|
98899
98899
|
cwd: target
|
|
98900
98900
|
});
|
|
98901
|
-
return fs$
|
|
98901
|
+
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([
|
|
98902
98902
|
"rev-parse",
|
|
98903
98903
|
"--revs-only",
|
|
98904
98904
|
"HEAD"
|
|
@@ -98915,11 +98915,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
98915
98915
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
98916
98916
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98917
98917
|
const is = require_is();
|
|
98918
|
-
const { dirname: dirname$
|
|
98918
|
+
const { dirname: dirname$11 } = require("path");
|
|
98919
98919
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
98920
98920
|
while (true) {
|
|
98921
98921
|
if (await is({ cwd })) return cwd;
|
|
98922
|
-
const next = dirname$
|
|
98922
|
+
const next = dirname$11(cwd);
|
|
98923
98923
|
if (cwd === root || cwd === next) return null;
|
|
98924
98924
|
cwd = next;
|
|
98925
98925
|
}
|
|
@@ -98953,7 +98953,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
98953
98953
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
98954
98954
|
const valid = require_valid$3();
|
|
98955
98955
|
const clean = require_clean$1();
|
|
98956
|
-
const fs$
|
|
98956
|
+
const fs$15 = require("node:fs/promises");
|
|
98957
98957
|
const path$20 = require("node:path");
|
|
98958
98958
|
const { log } = require_lib$29();
|
|
98959
98959
|
const moduleBuiltin = require("node:module");
|
|
@@ -99237,13 +99237,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99237
99237
|
}
|
|
99238
99238
|
}
|
|
99239
99239
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
99240
|
-
await fs$
|
|
99240
|
+
await fs$15.access(path$20.join(pkg.path, "server.js"));
|
|
99241
99241
|
scripts.start = "node server.js";
|
|
99242
99242
|
data.scripts = scripts;
|
|
99243
99243
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
99244
99244
|
} catch {}
|
|
99245
99245
|
if (steps.includes("authors") && !data.contributors) try {
|
|
99246
|
-
data.contributors = (await fs$
|
|
99246
|
+
data.contributors = (await fs$15.readFile(path$20.join(pkg.path, "AUTHORS"), "utf8")).split(/\r?\n/g).map((line) => line.replace(/^\s*#.*$/, "").trim()).filter((line) => line);
|
|
99247
99247
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
99248
99248
|
} catch {}
|
|
99249
99249
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -99262,7 +99262,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99262
99262
|
if (file.endsWith("README")) readmeFile = file;
|
|
99263
99263
|
}
|
|
99264
99264
|
if (readmeFile) {
|
|
99265
|
-
data.readme = await fs$
|
|
99265
|
+
data.readme = await fs$15.readFile(path$20.join(pkg.path, readmeFile), "utf8");
|
|
99266
99266
|
data.readmeFilename = readmeFile;
|
|
99267
99267
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
99268
99268
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -99294,20 +99294,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99294
99294
|
});
|
|
99295
99295
|
let head;
|
|
99296
99296
|
if (gitRoot) try {
|
|
99297
|
-
head = await fs$
|
|
99297
|
+
head = await fs$15.readFile(path$20.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
99298
99298
|
} catch (err) {}
|
|
99299
99299
|
let headData;
|
|
99300
99300
|
if (head) if (head.startsWith("ref: ")) {
|
|
99301
99301
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
99302
99302
|
const headFile = path$20.resolve(gitRoot, ".git", headRef);
|
|
99303
99303
|
try {
|
|
99304
|
-
headData = await fs$
|
|
99304
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
99305
99305
|
headData = headData.replace(/^ref: /, "").trim();
|
|
99306
99306
|
} catch (err) {}
|
|
99307
99307
|
if (!headData) {
|
|
99308
99308
|
const packFile = path$20.resolve(gitRoot, ".git/packed-refs");
|
|
99309
99309
|
try {
|
|
99310
|
-
let refs = await fs$
|
|
99310
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
99311
99311
|
if (refs) {
|
|
99312
99312
|
refs = refs.split("\n");
|
|
99313
99313
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -99328,12 +99328,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
99328
99328
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
99329
99329
|
const dts = `./${path$20.join(path$20.dirname(index), path$20.basename(index, path$20.extname(index)))}.d.ts`;
|
|
99330
99330
|
if (!("types" in data || "typings" in data)) try {
|
|
99331
|
-
await fs$
|
|
99331
|
+
await fs$15.access(path$20.join(pkg.path, dts));
|
|
99332
99332
|
data.types = dts.split(path$20.sep).join("/");
|
|
99333
99333
|
} catch {}
|
|
99334
99334
|
}
|
|
99335
99335
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
99336
|
-
await fs$
|
|
99336
|
+
await fs$15.access(path$20.resolve(pkg.path, data.bin[key]));
|
|
99337
99337
|
} catch {
|
|
99338
99338
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
99339
99339
|
}
|
|
@@ -100715,7 +100715,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100715
100715
|
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();
|
|
100716
100716
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
100717
100717
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
100718
|
-
const { dirname: dirname$
|
|
100718
|
+
const { dirname: dirname$10, isAbsolute: isAbsolute$2, join: join$12, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
100719
100719
|
const { fileURLToPath: fileURLToPath$1 } = require("url");
|
|
100720
100720
|
const defaultOptions = {
|
|
100721
100721
|
dereference: false,
|
|
@@ -100789,7 +100789,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100789
100789
|
})]);
|
|
100790
100790
|
}
|
|
100791
100791
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
100792
|
-
const destParent = dirname$
|
|
100792
|
+
const destParent = dirname$10(dest);
|
|
100793
100793
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
100794
100794
|
await mkdir$7(destParent, { recursive: true });
|
|
100795
100795
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -100802,8 +100802,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100802
100802
|
);
|
|
100803
100803
|
}
|
|
100804
100804
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100805
|
-
const srcParent = resolve$10(dirname$
|
|
100806
|
-
const destParent = resolve$10(dirname$
|
|
100805
|
+
const srcParent = resolve$10(dirname$10(src));
|
|
100806
|
+
const destParent = resolve$10(dirname$10(dest));
|
|
100807
100807
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100808
100808
|
let destStat;
|
|
100809
100809
|
try {
|
|
@@ -100924,15 +100924,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100924
100924
|
const dir = await readdir$6(src);
|
|
100925
100925
|
for (let i = 0; i < dir.length; i++) {
|
|
100926
100926
|
const item = dir[i];
|
|
100927
|
-
const srcItem = join$
|
|
100928
|
-
const destItem = join$
|
|
100927
|
+
const srcItem = join$12(src, item);
|
|
100928
|
+
const destItem = join$12(dest, item);
|
|
100929
100929
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
100930
100930
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
100931
100931
|
}
|
|
100932
100932
|
}
|
|
100933
100933
|
async function onLink(destStat, src, dest) {
|
|
100934
100934
|
let resolvedSrc = await readlink(src);
|
|
100935
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
100935
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$10(src), resolvedSrc);
|
|
100936
100936
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100937
100937
|
let resolvedDest;
|
|
100938
100938
|
try {
|
|
@@ -100943,7 +100943,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100943
100943
|
// istanbul ignore next: should not be possible
|
|
100944
100944
|
throw err;
|
|
100945
100945
|
}
|
|
100946
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
100946
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$10(dest), resolvedDest);
|
|
100947
100947
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100948
100948
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100949
100949
|
path: dest,
|
|
@@ -100967,7 +100967,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
100967
100967
|
//#endregion
|
|
100968
100968
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
100969
100969
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100970
|
-
const fs$
|
|
100970
|
+
const fs$14 = require("fs/promises");
|
|
100971
100971
|
const getOptions = require_get_options();
|
|
100972
100972
|
const node = require_node$1();
|
|
100973
100973
|
const polyfill = require_polyfill();
|
|
@@ -100982,20 +100982,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
100982
100982
|
"recursive"
|
|
100983
100983
|
] });
|
|
100984
100984
|
// istanbul ignore next
|
|
100985
|
-
return useNative ? fs$
|
|
100985
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
100986
100986
|
};
|
|
100987
100987
|
module.exports = cp;
|
|
100988
100988
|
}));
|
|
100989
100989
|
//#endregion
|
|
100990
100990
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
100991
100991
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100992
|
-
const { join: join$
|
|
100992
|
+
const { join: join$11, sep: sep$1 } = require("path");
|
|
100993
100993
|
const getOptions = require_get_options();
|
|
100994
100994
|
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
100995
100995
|
const withTempDir = async (root, fn, opts) => {
|
|
100996
100996
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
100997
100997
|
await mkdir$6(root, { recursive: true });
|
|
100998
|
-
const target = await mkdtemp(join$
|
|
100998
|
+
const target = await mkdtemp(join$11(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
100999
100999
|
let err;
|
|
101000
101000
|
let result;
|
|
101001
101001
|
try {
|
|
@@ -101018,10 +101018,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
101018
101018
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
101019
101019
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101020
101020
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
101021
|
-
const { join: join$
|
|
101021
|
+
const { join: join$10 } = require("path");
|
|
101022
101022
|
const readdirScoped = async (dir) => {
|
|
101023
101023
|
const results = [];
|
|
101024
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
101024
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$10(dir, item))) results.push(join$10(item, scopedItem));
|
|
101025
101025
|
else results.push(item);
|
|
101026
101026
|
return results;
|
|
101027
101027
|
};
|
|
@@ -101030,11 +101030,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
101030
101030
|
//#endregion
|
|
101031
101031
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101032
101032
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101033
|
-
const { dirname: dirname$
|
|
101034
|
-
const fs$
|
|
101033
|
+
const { dirname: dirname$9, join: join$9, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
101034
|
+
const fs$13 = require("fs/promises");
|
|
101035
101035
|
const pathExists = async (path$56) => {
|
|
101036
101036
|
try {
|
|
101037
|
-
await fs$
|
|
101037
|
+
await fs$13.access(path$56);
|
|
101038
101038
|
return true;
|
|
101039
101039
|
} catch (er) {
|
|
101040
101040
|
return er.code !== "ENOENT";
|
|
@@ -101047,34 +101047,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
101047
101047
|
...options
|
|
101048
101048
|
};
|
|
101049
101049
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
101050
|
-
await fs$
|
|
101050
|
+
await fs$13.mkdir(dirname$9(destination), { recursive: true });
|
|
101051
101051
|
try {
|
|
101052
|
-
await fs$
|
|
101052
|
+
await fs$13.rename(source, destination);
|
|
101053
101053
|
} catch (error) {
|
|
101054
101054
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
101055
|
-
const sourceStat = await fs$
|
|
101055
|
+
const sourceStat = await fs$13.lstat(source);
|
|
101056
101056
|
if (sourceStat.isDirectory()) {
|
|
101057
|
-
const files = await fs$
|
|
101058
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
101057
|
+
const files = await fs$13.readdir(source);
|
|
101058
|
+
await Promise.all(files.map((file) => moveFile(join$9(source, file), join$9(destination, file), options, false, symlinks)));
|
|
101059
101059
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
101060
101060
|
source,
|
|
101061
101061
|
destination
|
|
101062
101062
|
});
|
|
101063
|
-
else await fs$
|
|
101063
|
+
else await fs$13.copyFile(source, destination);
|
|
101064
101064
|
} else throw error;
|
|
101065
101065
|
}
|
|
101066
101066
|
if (root) {
|
|
101067
101067
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101068
|
-
let target = await fs$
|
|
101068
|
+
let target = await fs$13.readlink(symSource);
|
|
101069
101069
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101070
101070
|
let targetStat = "file";
|
|
101071
101071
|
try {
|
|
101072
|
-
targetStat = await fs$
|
|
101072
|
+
targetStat = await fs$13.stat(resolve$9(dirname$9(symSource), target));
|
|
101073
101073
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101074
101074
|
} catch {}
|
|
101075
|
-
await fs$
|
|
101075
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
101076
101076
|
}));
|
|
101077
|
-
await fs$
|
|
101077
|
+
await fs$13.rm(source, {
|
|
101078
101078
|
recursive: true,
|
|
101079
101079
|
force: true
|
|
101080
101080
|
});
|
|
@@ -101097,7 +101097,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101097
101097
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101098
101098
|
const crypto$2 = require("crypto");
|
|
101099
101099
|
const { withTempDir } = require_lib$16();
|
|
101100
|
-
const fs$
|
|
101100
|
+
const fs$12 = require("fs/promises");
|
|
101101
101101
|
const path$19 = require("path");
|
|
101102
101102
|
module.exports.mkdir = mktmpdir;
|
|
101103
101103
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -101107,12 +101107,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101107
101107
|
async function mktmpdir(cache, opts = {}) {
|
|
101108
101108
|
const { tmpPrefix } = opts;
|
|
101109
101109
|
const tmpDir = path$19.join(cache, "tmp");
|
|
101110
|
-
await fs$
|
|
101110
|
+
await fs$12.mkdir(tmpDir, {
|
|
101111
101111
|
recursive: true,
|
|
101112
101112
|
owner: "inherit"
|
|
101113
101113
|
});
|
|
101114
101114
|
const target = `${tmpDir}${path$19.sep}${tmpPrefix || ""}`;
|
|
101115
|
-
return fs$
|
|
101115
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
101116
101116
|
}
|
|
101117
101117
|
module.exports.withTmp = withTmp;
|
|
101118
101118
|
function withTmp(cache, opts, cb) {
|
|
@@ -101492,8 +101492,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
101492
101492
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
101493
101493
|
const { Minipass } = require_commonjs$10();
|
|
101494
101494
|
const EE$4 = require("events").EventEmitter;
|
|
101495
|
-
const fs$
|
|
101496
|
-
const writev = fs$
|
|
101495
|
+
const fs$11 = require("fs");
|
|
101496
|
+
const writev = fs$11.writev;
|
|
101497
101497
|
const _autoClose = Symbol("_autoClose");
|
|
101498
101498
|
const _close = Symbol("_close");
|
|
101499
101499
|
const _ended = Symbol("_ended");
|
|
@@ -101553,7 +101553,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101553
101553
|
throw new TypeError("this is a readable stream");
|
|
101554
101554
|
}
|
|
101555
101555
|
[_open]() {
|
|
101556
|
-
fs$
|
|
101556
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
101557
101557
|
}
|
|
101558
101558
|
[_onopen](er, fd) {
|
|
101559
101559
|
if (er) this[_onerror](er);
|
|
@@ -101572,7 +101572,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101572
101572
|
const buf = this[_makeBuf]();
|
|
101573
101573
|
/* istanbul ignore if */
|
|
101574
101574
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
101575
|
-
fs$
|
|
101575
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
101576
101576
|
}
|
|
101577
101577
|
}
|
|
101578
101578
|
[_onread](er, br, buf) {
|
|
@@ -101584,7 +101584,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101584
101584
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101585
101585
|
const fd = this[_fd];
|
|
101586
101586
|
this[_fd] = null;
|
|
101587
|
-
fs$
|
|
101587
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101588
101588
|
}
|
|
101589
101589
|
}
|
|
101590
101590
|
[_onerror](er) {
|
|
@@ -101622,7 +101622,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101622
101622
|
[_open]() {
|
|
101623
101623
|
let threw = true;
|
|
101624
101624
|
try {
|
|
101625
|
-
this[_onopen](null, fs$
|
|
101625
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
101626
101626
|
threw = false;
|
|
101627
101627
|
} finally {
|
|
101628
101628
|
if (threw) this[_close]();
|
|
@@ -101636,7 +101636,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101636
101636
|
do {
|
|
101637
101637
|
const buf = this[_makeBuf]();
|
|
101638
101638
|
/* istanbul ignore next */
|
|
101639
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
101639
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
101640
101640
|
if (!this[_handleChunk](br, buf)) break;
|
|
101641
101641
|
} while (true);
|
|
101642
101642
|
this[_reading] = false;
|
|
@@ -101650,7 +101650,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101650
101650
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101651
101651
|
const fd = this[_fd];
|
|
101652
101652
|
this[_fd] = null;
|
|
101653
|
-
fs$
|
|
101653
|
+
fs$11.closeSync(fd);
|
|
101654
101654
|
this.emit("close");
|
|
101655
101655
|
}
|
|
101656
101656
|
}
|
|
@@ -101695,7 +101695,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101695
101695
|
this.emit("error", er);
|
|
101696
101696
|
}
|
|
101697
101697
|
[_open]() {
|
|
101698
|
-
fs$
|
|
101698
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
101699
101699
|
}
|
|
101700
101700
|
[_onopen](er, fd) {
|
|
101701
101701
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -101730,7 +101730,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101730
101730
|
return true;
|
|
101731
101731
|
}
|
|
101732
101732
|
[_write](buf) {
|
|
101733
|
-
fs$
|
|
101733
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
101734
101734
|
}
|
|
101735
101735
|
[_onwrite](er, bw) {
|
|
101736
101736
|
if (er) this[_onerror](er);
|
|
@@ -101764,7 +101764,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101764
101764
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101765
101765
|
const fd = this[_fd];
|
|
101766
101766
|
this[_fd] = null;
|
|
101767
|
-
fs$
|
|
101767
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
101768
101768
|
}
|
|
101769
101769
|
}
|
|
101770
101770
|
};
|
|
@@ -101772,28 +101772,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101772
101772
|
[_open]() {
|
|
101773
101773
|
let fd;
|
|
101774
101774
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
101775
|
-
fd = fs$
|
|
101775
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101776
101776
|
} catch (er) {
|
|
101777
101777
|
if (er.code === "ENOENT") {
|
|
101778
101778
|
this[_flags] = "w";
|
|
101779
101779
|
return this[_open]();
|
|
101780
101780
|
} else throw er;
|
|
101781
101781
|
}
|
|
101782
|
-
else fd = fs$
|
|
101782
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
101783
101783
|
this[_onopen](null, fd);
|
|
101784
101784
|
}
|
|
101785
101785
|
[_close]() {
|
|
101786
101786
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
101787
101787
|
const fd = this[_fd];
|
|
101788
101788
|
this[_fd] = null;
|
|
101789
|
-
fs$
|
|
101789
|
+
fs$11.closeSync(fd);
|
|
101790
101790
|
this.emit("close");
|
|
101791
101791
|
}
|
|
101792
101792
|
}
|
|
101793
101793
|
[_write](buf) {
|
|
101794
101794
|
let threw = true;
|
|
101795
101795
|
try {
|
|
101796
|
-
this[_onwrite](null, fs$
|
|
101796
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
101797
101797
|
threw = false;
|
|
101798
101798
|
} finally {
|
|
101799
101799
|
if (threw) try {
|
|
@@ -101810,7 +101810,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
101810
101810
|
//#endregion
|
|
101811
101811
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
101812
101812
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101813
|
-
const fs$
|
|
101813
|
+
const fs$10 = require("fs/promises");
|
|
101814
101814
|
const fsm = require_lib$15();
|
|
101815
101815
|
const ssri = require_lib$17();
|
|
101816
101816
|
const contentPath = require_path();
|
|
@@ -101821,13 +101821,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101821
101821
|
const { size } = opts;
|
|
101822
101822
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101823
101823
|
return {
|
|
101824
|
-
stat: size ? { size } : await fs$
|
|
101824
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101825
101825
|
cpath,
|
|
101826
101826
|
sri
|
|
101827
101827
|
};
|
|
101828
101828
|
});
|
|
101829
101829
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
101830
|
-
const data = await fs$
|
|
101830
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
101831
101831
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
101832
101832
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
101833
101833
|
return data;
|
|
@@ -101850,7 +101850,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101850
101850
|
Promise.resolve().then(async () => {
|
|
101851
101851
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101852
101852
|
return {
|
|
101853
|
-
stat: size ? { size } : await fs$
|
|
101853
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
101854
101854
|
cpath,
|
|
101855
101855
|
sri
|
|
101856
101856
|
};
|
|
@@ -101862,7 +101862,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101862
101862
|
module.exports.copy = copy;
|
|
101863
101863
|
function copy(cache, integrity, dest) {
|
|
101864
101864
|
return withContentSri(cache, integrity, (cpath) => {
|
|
101865
|
-
return fs$
|
|
101865
|
+
return fs$10.copyFile(cpath, dest);
|
|
101866
101866
|
});
|
|
101867
101867
|
}
|
|
101868
101868
|
module.exports.hasContent = hasContent;
|
|
@@ -101870,7 +101870,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101870
101870
|
if (!integrity) return false;
|
|
101871
101871
|
try {
|
|
101872
101872
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
101873
|
-
const stat = await fs$
|
|
101873
|
+
const stat = await fs$10.stat(cpath);
|
|
101874
101874
|
return {
|
|
101875
101875
|
size: stat.size,
|
|
101876
101876
|
sri,
|
|
@@ -102510,7 +102510,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
102510
102510
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102511
102511
|
const events = require("events");
|
|
102512
102512
|
const contentPath = require_path();
|
|
102513
|
-
const fs$
|
|
102513
|
+
const fs$9 = require("fs/promises");
|
|
102514
102514
|
const { moveFile } = require_lib$16();
|
|
102515
102515
|
const { Minipass } = require_commonjs$10();
|
|
102516
102516
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -102530,10 +102530,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102530
102530
|
const tmp = await makeTmp(cache, opts);
|
|
102531
102531
|
const hash = sri[algo].toString();
|
|
102532
102532
|
try {
|
|
102533
|
-
await fs$
|
|
102533
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
102534
102534
|
await moveToDestination(tmp, cache, hash, opts);
|
|
102535
102535
|
} finally {
|
|
102536
|
-
if (!tmp.moved) await fs$
|
|
102536
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102537
102537
|
recursive: true,
|
|
102538
102538
|
force: true
|
|
102539
102539
|
});
|
|
@@ -102587,7 +102587,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102587
102587
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
102588
102588
|
return res;
|
|
102589
102589
|
} finally {
|
|
102590
|
-
if (!tmp.moved) await fs$
|
|
102590
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
102591
102591
|
recursive: true,
|
|
102592
102592
|
force: true
|
|
102593
102593
|
});
|
|
@@ -102627,7 +102627,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102627
102627
|
}
|
|
102628
102628
|
async function makeTmp(cache, opts) {
|
|
102629
102629
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
102630
|
-
await fs$
|
|
102630
|
+
await fs$9.mkdir(path$16.dirname(tmpTarget), { recursive: true });
|
|
102631
102631
|
return {
|
|
102632
102632
|
target: tmpTarget,
|
|
102633
102633
|
moved: false
|
|
@@ -102637,7 +102637,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102637
102637
|
const destination = contentPath(cache, sri);
|
|
102638
102638
|
const destDir = path$16.dirname(destination);
|
|
102639
102639
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
102640
|
-
moveOperations.set(destination, fs$
|
|
102640
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
102641
102641
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
102642
102642
|
tmp.moved = true;
|
|
102643
102643
|
return tmp.moved;
|
|
@@ -106095,14 +106095,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
106095
106095
|
//#endregion
|
|
106096
106096
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
106097
106097
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106098
|
-
const fs$
|
|
106098
|
+
const fs$8 = require("fs/promises");
|
|
106099
106099
|
const contentPath = require_path();
|
|
106100
106100
|
const { hasContent } = require_read();
|
|
106101
106101
|
module.exports = rm;
|
|
106102
106102
|
async function rm(cache, integrity) {
|
|
106103
106103
|
const content = await hasContent(cache, integrity);
|
|
106104
106104
|
if (content && content.sri) {
|
|
106105
|
-
await fs$
|
|
106105
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
106106
106106
|
recursive: true,
|
|
106107
106107
|
force: true
|
|
106108
106108
|
});
|
|
@@ -106384,8 +106384,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106384
106384
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
106385
106385
|
const { Minipass } = require_commonjs$10();
|
|
106386
106386
|
const EE$2 = require("events").EventEmitter;
|
|
106387
|
-
const fs$
|
|
106388
|
-
const writev = fs$
|
|
106387
|
+
const fs$7 = require("fs");
|
|
106388
|
+
const writev = fs$7.writev;
|
|
106389
106389
|
const _autoClose = Symbol("_autoClose");
|
|
106390
106390
|
const _close = Symbol("_close");
|
|
106391
106391
|
const _ended = Symbol("_ended");
|
|
@@ -106445,7 +106445,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106445
106445
|
throw new TypeError("this is a readable stream");
|
|
106446
106446
|
}
|
|
106447
106447
|
[_open]() {
|
|
106448
|
-
fs$
|
|
106448
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
106449
106449
|
}
|
|
106450
106450
|
[_onopen](er, fd) {
|
|
106451
106451
|
if (er) this[_onerror](er);
|
|
@@ -106464,7 +106464,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106464
106464
|
const buf = this[_makeBuf]();
|
|
106465
106465
|
/* istanbul ignore if */
|
|
106466
106466
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
106467
|
-
fs$
|
|
106467
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
106468
106468
|
}
|
|
106469
106469
|
}
|
|
106470
106470
|
[_onread](er, br, buf) {
|
|
@@ -106476,7 +106476,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106476
106476
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106477
106477
|
const fd = this[_fd];
|
|
106478
106478
|
this[_fd] = null;
|
|
106479
|
-
fs$
|
|
106479
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106480
106480
|
}
|
|
106481
106481
|
}
|
|
106482
106482
|
[_onerror](er) {
|
|
@@ -106514,7 +106514,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106514
106514
|
[_open]() {
|
|
106515
106515
|
let threw = true;
|
|
106516
106516
|
try {
|
|
106517
|
-
this[_onopen](null, fs$
|
|
106517
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
106518
106518
|
threw = false;
|
|
106519
106519
|
} finally {
|
|
106520
106520
|
if (threw) this[_close]();
|
|
@@ -106528,7 +106528,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106528
106528
|
do {
|
|
106529
106529
|
const buf = this[_makeBuf]();
|
|
106530
106530
|
/* istanbul ignore next */
|
|
106531
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
106531
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
106532
106532
|
if (!this[_handleChunk](br, buf)) break;
|
|
106533
106533
|
} while (true);
|
|
106534
106534
|
this[_reading] = false;
|
|
@@ -106542,7 +106542,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106542
106542
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106543
106543
|
const fd = this[_fd];
|
|
106544
106544
|
this[_fd] = null;
|
|
106545
|
-
fs$
|
|
106545
|
+
fs$7.closeSync(fd);
|
|
106546
106546
|
this.emit("close");
|
|
106547
106547
|
}
|
|
106548
106548
|
}
|
|
@@ -106587,7 +106587,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106587
106587
|
this.emit("error", er);
|
|
106588
106588
|
}
|
|
106589
106589
|
[_open]() {
|
|
106590
|
-
fs$
|
|
106590
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
106591
106591
|
}
|
|
106592
106592
|
[_onopen](er, fd) {
|
|
106593
106593
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -106622,7 +106622,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106622
106622
|
return true;
|
|
106623
106623
|
}
|
|
106624
106624
|
[_write](buf) {
|
|
106625
|
-
fs$
|
|
106625
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
106626
106626
|
}
|
|
106627
106627
|
[_onwrite](er, bw) {
|
|
106628
106628
|
if (er) this[_onerror](er);
|
|
@@ -106656,7 +106656,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106656
106656
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106657
106657
|
const fd = this[_fd];
|
|
106658
106658
|
this[_fd] = null;
|
|
106659
|
-
fs$
|
|
106659
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
106660
106660
|
}
|
|
106661
106661
|
}
|
|
106662
106662
|
};
|
|
@@ -106664,28 +106664,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106664
106664
|
[_open]() {
|
|
106665
106665
|
let fd;
|
|
106666
106666
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
106667
|
-
fd = fs$
|
|
106667
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106668
106668
|
} catch (er) {
|
|
106669
106669
|
if (er.code === "ENOENT") {
|
|
106670
106670
|
this[_flags] = "w";
|
|
106671
106671
|
return this[_open]();
|
|
106672
106672
|
} else throw er;
|
|
106673
106673
|
}
|
|
106674
|
-
else fd = fs$
|
|
106674
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
106675
106675
|
this[_onopen](null, fd);
|
|
106676
106676
|
}
|
|
106677
106677
|
[_close]() {
|
|
106678
106678
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
106679
106679
|
const fd = this[_fd];
|
|
106680
106680
|
this[_fd] = null;
|
|
106681
|
-
fs$
|
|
106681
|
+
fs$7.closeSync(fd);
|
|
106682
106682
|
this.emit("close");
|
|
106683
106683
|
}
|
|
106684
106684
|
}
|
|
106685
106685
|
[_write](buf) {
|
|
106686
106686
|
let threw = true;
|
|
106687
106687
|
try {
|
|
106688
|
-
this[_onwrite](null, fs$
|
|
106688
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
106689
106689
|
threw = false;
|
|
106690
106690
|
} finally {
|
|
106691
106691
|
if (threw) try {
|
|
@@ -106702,7 +106702,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
106702
106702
|
//#endregion
|
|
106703
106703
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
106704
106704
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106705
|
-
const fs$
|
|
106705
|
+
const fs$6 = require("fs");
|
|
106706
106706
|
const path$12 = require("path");
|
|
106707
106707
|
const EE$1 = require("events").EventEmitter;
|
|
106708
106708
|
const normalizePackageBin = require_lib$21();
|
|
@@ -106758,7 +106758,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106758
106758
|
return this;
|
|
106759
106759
|
}
|
|
106760
106760
|
readPackageJson(pj) {
|
|
106761
|
-
fs$
|
|
106761
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
106762
106762
|
}
|
|
106763
106763
|
onPackageJson(pj, data) {
|
|
106764
106764
|
try {
|
|
@@ -106816,7 +106816,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106816
106816
|
}
|
|
106817
106817
|
readPackageJson(pj) {
|
|
106818
106818
|
try {
|
|
106819
|
-
this.onPackageJson(pj, fs$
|
|
106819
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
106820
106820
|
} catch {}
|
|
106821
106821
|
return this;
|
|
106822
106822
|
}
|
|
@@ -106835,7 +106835,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106835
106835
|
}
|
|
106836
106836
|
};
|
|
106837
106837
|
const readdirNodeModules = (nm, cb) => {
|
|
106838
|
-
fs$
|
|
106838
|
+
fs$6.readdir(nm, (er, set) => {
|
|
106839
106839
|
if (er) cb(er);
|
|
106840
106840
|
else {
|
|
106841
106841
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -106844,7 +106844,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106844
106844
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106845
106845
|
let count = scopes.length;
|
|
106846
106846
|
scopes.forEach((scope) => {
|
|
106847
|
-
fs$
|
|
106847
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
106848
106848
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
106849
106849
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
106850
106850
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -106855,11 +106855,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106855
106855
|
});
|
|
106856
106856
|
};
|
|
106857
106857
|
const readdirNodeModulesSync = (nm) => {
|
|
106858
|
-
const set = fs$
|
|
106858
|
+
const set = fs$6.readdirSync(nm);
|
|
106859
106859
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
106860
106860
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
106861
106861
|
try {
|
|
106862
|
-
const pkgs = fs$
|
|
106862
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
106863
106863
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
106864
106864
|
} catch (er) {
|
|
106865
106865
|
return [scope];
|
|
@@ -106886,7 +106886,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106886
106886
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106887
106887
|
const bundled = require_lib$12();
|
|
106888
106888
|
const { readFile: readFile$6, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
106889
|
-
const { resolve: resolve$8, basename: basename$4, dirname: dirname$
|
|
106889
|
+
const { resolve: resolve$8, basename: basename$4, dirname: dirname$8 } = require("path");
|
|
106890
106890
|
const normalizePackageBin = require_lib$21();
|
|
106891
106891
|
const readPackage = ({ path: path$51, packageJsonCache }) => packageJsonCache.has(path$51) ? Promise.resolve(packageJsonCache.get(path$51)) : readFile$6(path$51).then((json) => {
|
|
106892
106892
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106925,9 +106925,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106925
106925
|
}));
|
|
106926
106926
|
if (pkg) {
|
|
106927
106927
|
if (pkg.bin) {
|
|
106928
|
-
const dir = dirname$
|
|
106928
|
+
const dir = dirname$8(path$53);
|
|
106929
106929
|
const scope = basename$4(dir);
|
|
106930
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
106930
|
+
const nm = /^@.+/.test(scope) ? dirname$8(dir) : dir;
|
|
106931
106931
|
const binFiles = [];
|
|
106932
106932
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106933
106933
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -112199,7 +112199,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
112199
112199
|
//#endregion
|
|
112200
112200
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
112201
112201
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112202
|
-
const fs$
|
|
112202
|
+
const fs$5 = require("fs");
|
|
112203
112203
|
const path$11 = require("path");
|
|
112204
112204
|
const EE = require("events").EventEmitter;
|
|
112205
112205
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -112238,7 +112238,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112238
112238
|
return ret;
|
|
112239
112239
|
}
|
|
112240
112240
|
start() {
|
|
112241
|
-
fs$
|
|
112241
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
112242
112242
|
return this;
|
|
112243
112243
|
}
|
|
112244
112244
|
isIgnoreFile(e) {
|
|
@@ -112262,7 +112262,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112262
112262
|
}
|
|
112263
112263
|
addIgnoreFile(file, then) {
|
|
112264
112264
|
const ig = path$11.resolve(this.path, file);
|
|
112265
|
-
fs$
|
|
112265
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
112266
112266
|
}
|
|
112267
112267
|
onReadIgnoreFile(file, data, then) {
|
|
112268
112268
|
const mmopt = {
|
|
@@ -112318,11 +112318,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112318
112318
|
}
|
|
112319
112319
|
stat({ entry, file, dir }, then) {
|
|
112320
112320
|
const abs = this.path + "/" + entry;
|
|
112321
|
-
fs$
|
|
112321
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
112322
112322
|
if (lstatErr) this.emit("error", lstatErr);
|
|
112323
112323
|
else {
|
|
112324
112324
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
112325
|
-
if (this.follow && isSymbolicLink) fs$
|
|
112325
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
112326
112326
|
if (statErr) this.emit("error", statErr);
|
|
112327
112327
|
else this.onstat({
|
|
112328
112328
|
st: statResult,
|
|
@@ -112376,18 +112376,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112376
112376
|
};
|
|
112377
112377
|
var WalkerSync = class WalkerSync extends Walker {
|
|
112378
112378
|
start() {
|
|
112379
|
-
this.onReaddir(fs$
|
|
112379
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
112380
112380
|
return this;
|
|
112381
112381
|
}
|
|
112382
112382
|
addIgnoreFile(file, then) {
|
|
112383
112383
|
const ig = path$11.resolve(this.path, file);
|
|
112384
|
-
this.onReadIgnoreFile(file, fs$
|
|
112384
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
112385
112385
|
}
|
|
112386
112386
|
stat({ entry, file, dir }, then) {
|
|
112387
112387
|
const abs = this.path + "/" + entry;
|
|
112388
|
-
let st = fs$
|
|
112388
|
+
let st = fs$5.lstatSync(abs);
|
|
112389
112389
|
const isSymbolicLink = st.isSymbolicLink();
|
|
112390
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
112390
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
112391
112391
|
this.onstat({
|
|
112392
112392
|
st,
|
|
112393
112393
|
entry,
|
|
@@ -112418,7 +112418,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
112418
112418
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112419
112419
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112420
112420
|
const { lstatSync: lstat$1, readFileSync: readFile$5 } = require("fs");
|
|
112421
|
-
const { basename: basename$3, dirname: dirname$
|
|
112421
|
+
const { basename: basename$3, dirname: dirname$7, extname: extname$1, join: join$8, relative, resolve: resolve$6, sep } = require("path");
|
|
112422
112422
|
const { log } = require_lib$29();
|
|
112423
112423
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112424
112424
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112451,7 +112451,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112451
112451
|
const normalizePath = (path$48) => path$48.split("\\").join("/");
|
|
112452
112452
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
112453
112453
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
112454
|
-
const ignoreContent = readFile$5(join$
|
|
112454
|
+
const ignoreContent = readFile$5(join$8(root, file), { encoding: "utf8" });
|
|
112455
112455
|
result.push(ignoreContent);
|
|
112456
112456
|
break;
|
|
112457
112457
|
} catch (err) {
|
|
@@ -112460,8 +112460,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112460
112460
|
}
|
|
112461
112461
|
if (!rel) return result;
|
|
112462
112462
|
const firstRel = rel.split(sep, 1)[0];
|
|
112463
|
-
const newRoot = join$
|
|
112464
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
112463
|
+
const newRoot = join$8(root, firstRel);
|
|
112464
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$8(root, rel)), result);
|
|
112465
112465
|
};
|
|
112466
112466
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
112467
112467
|
constructor(tree, opts) {
|
|
@@ -112490,7 +112490,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112490
112490
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
112491
112491
|
// istanbul ignore else - this does nothing unless we need it to
|
|
112492
112492
|
if (path$49 !== prefix && workspaces.includes(path$49)) {
|
|
112493
|
-
const relpath = relative(options.prefix, dirname$
|
|
112493
|
+
const relpath = relative(options.prefix, dirname$7(options.path));
|
|
112494
112494
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
112495
112495
|
} else if (path$49 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
112496
112496
|
}
|
|
@@ -112528,7 +112528,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112528
112528
|
let ignoreFiles = null;
|
|
112529
112529
|
if (this.tree.workspaces) {
|
|
112530
112530
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
112531
|
-
const entryPath = join$
|
|
112531
|
+
const entryPath = join$8(this.path, entry).replace(/\\/g, "/");
|
|
112532
112532
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
112533
112533
|
defaultRules,
|
|
112534
112534
|
"package.json",
|
|
@@ -112588,7 +112588,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112588
112588
|
if (file.endsWith("/*")) file += "*";
|
|
112589
112589
|
const inverse = `!${file}`;
|
|
112590
112590
|
try {
|
|
112591
|
-
const stat = lstat$1(join$
|
|
112591
|
+
const stat = lstat$1(join$8(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
112592
112592
|
if (stat.isFile()) {
|
|
112593
112593
|
strict.unshift(inverse);
|
|
112594
112594
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -112645,7 +112645,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112645
112645
|
walker.start();
|
|
112646
112646
|
});
|
|
112647
112647
|
const relativeFrom = relative(this.root, walker.path);
|
|
112648
|
-
for (const file of bundled) this.result.add(join$
|
|
112648
|
+
for (const file of bundled) this.result.add(join$8(relativeFrom, file).replace(/\\/g, "/"));
|
|
112649
112649
|
}
|
|
112650
112650
|
}
|
|
112651
112651
|
};
|
|
@@ -112669,7 +112669,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
112669
112669
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
112670
112670
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112671
112671
|
const { log } = require_lib$29();
|
|
112672
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
112672
|
+
const { resolve: resolve$5, dirname: dirname$6, delimiter: delimiter$2 } = require("path");
|
|
112673
112673
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112674
112674
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112675
112675
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$2)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$2);
|
|
@@ -112687,7 +112687,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
112687
112687
|
do {
|
|
112688
112688
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112689
112689
|
pp = p;
|
|
112690
|
-
p = dirname$
|
|
112690
|
+
p = dirname$6(p);
|
|
112691
112691
|
} while (p !== pp);
|
|
112692
112692
|
pathArr.push(nodeGypPath, PATH);
|
|
112693
112693
|
const pathVal = pathArr.join(delimiter$2);
|
|
@@ -112755,8 +112755,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
112755
112755
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
112756
112756
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
112757
112757
|
const util$2 = require("util");
|
|
112758
|
-
const fs$
|
|
112759
|
-
const { stat } = fs$
|
|
112758
|
+
const fs$4 = require("fs");
|
|
112759
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
112760
112760
|
async function isNodeGypPackage(path) {
|
|
112761
112761
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
112762
112762
|
}
|
|
@@ -123728,7 +123728,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
123728
123728
|
//#endregion
|
|
123729
123729
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
123730
123730
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
123731
|
-
const fs$
|
|
123731
|
+
const fs$3 = require("fs");
|
|
123732
123732
|
const npa = require_npa();
|
|
123733
123733
|
const { URL: URL$2 } = require("url");
|
|
123734
123734
|
const regFromURI = (uri, opts) => {
|
|
@@ -123768,7 +123768,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
123768
123768
|
};
|
|
123769
123769
|
const maybeReadFile = (file) => {
|
|
123770
123770
|
try {
|
|
123771
|
-
return fs$
|
|
123771
|
+
return fs$3.readFileSync(file, "utf8");
|
|
123772
123772
|
} catch (er) {
|
|
123773
123773
|
if (er.code !== "ENOENT") throw er;
|
|
123774
123774
|
return null;
|
|
@@ -140013,7 +140013,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140013
140013
|
exports.Updater = void 0;
|
|
140014
140014
|
const models_1 = require_dist$4();
|
|
140015
140015
|
const debug_1 = __importDefault(require_src$1());
|
|
140016
|
-
const fs$
|
|
140016
|
+
const fs$2 = __importStar(require("fs"));
|
|
140017
140017
|
const path$10 = __importStar(require("path"));
|
|
140018
140018
|
const package_json_1 = require_package$1();
|
|
140019
140019
|
const config_1 = require_config$1();
|
|
@@ -140084,17 +140084,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140084
140084
|
}
|
|
140085
140085
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
140086
140086
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
140087
|
-
await targetInfo.verify(fs$
|
|
140087
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
140088
140088
|
log("WRITE %s", targetPath);
|
|
140089
|
-
fs$
|
|
140089
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
140090
140090
|
});
|
|
140091
140091
|
return targetPath;
|
|
140092
140092
|
}
|
|
140093
140093
|
async findCachedTarget(targetInfo, filePath) {
|
|
140094
140094
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
140095
140095
|
try {
|
|
140096
|
-
if (fs$
|
|
140097
|
-
await targetInfo.verify(fs$
|
|
140096
|
+
if (fs$2.existsSync(filePath)) {
|
|
140097
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
140098
140098
|
return filePath;
|
|
140099
140099
|
}
|
|
140100
140100
|
} catch (error) {
|
|
@@ -140104,7 +140104,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140104
140104
|
loadLocalMetadata(fileName) {
|
|
140105
140105
|
const filePath = path$10.join(this.dir, `${fileName}.json`);
|
|
140106
140106
|
log("READ %s", filePath);
|
|
140107
|
-
return fs$
|
|
140107
|
+
return fs$2.readFileSync(filePath);
|
|
140108
140108
|
}
|
|
140109
140109
|
async loadRoot() {
|
|
140110
140110
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -140222,7 +140222,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
140222
140222
|
try {
|
|
140223
140223
|
const filePath = path$10.join(this.dir, `${encodedName}.json`);
|
|
140224
140224
|
log("WRITE %s", filePath);
|
|
140225
|
-
fs$
|
|
140225
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
140226
140226
|
} catch (error) {
|
|
140227
140227
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
140228
140228
|
}
|
|
@@ -142038,7 +142038,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
142038
142038
|
//#endregion
|
|
142039
142039
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
142040
142040
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
142041
|
-
const { basename: basename$2, dirname: dirname$
|
|
142041
|
+
const { basename: basename$2, dirname: dirname$5 } = require("node:path");
|
|
142042
142042
|
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
142043
142043
|
const PackageJson = require_lib$18();
|
|
142044
142044
|
const cacache = require_lib$14();
|
|
@@ -142087,7 +142087,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142087
142087
|
this.npmBin = opts.npmBin || "npm";
|
|
142088
142088
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
142089
142089
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
142090
|
-
`--cache=${dirname$
|
|
142090
|
+
`--cache=${dirname$5(this.cache)}`,
|
|
142091
142091
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
142092
142092
|
`--prefer-online=${!!this.preferOnline}`,
|
|
142093
142093
|
`--offline=${!!this.offline}`,
|
|
@@ -142243,7 +142243,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
142243
142243
|
}));
|
|
142244
142244
|
}
|
|
142245
142245
|
async tarballFile(dest) {
|
|
142246
|
-
await mkdir$3(dirname$
|
|
142246
|
+
await mkdir$3(dirname$5(dest), { recursive: true });
|
|
142247
142247
|
return this.#toFile(dest);
|
|
142248
142248
|
}
|
|
142249
142249
|
#extract(dest, tarball) {
|
|
@@ -150664,7 +150664,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
150664
150664
|
}
|
|
150665
150665
|
})();
|
|
150666
150666
|
}));
|
|
150667
|
-
|
|
150667
|
+
//#endregion
|
|
150668
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
150669
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
150668
150670
|
const { promisify: promisify$1 } = require("util");
|
|
150669
150671
|
const path$6 = require("path");
|
|
150670
150672
|
const { createHash } = require("crypto");
|
|
@@ -151116,11 +151118,12 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
151116
151118
|
response.writeHead(response.statusCode || 200, headers);
|
|
151117
151119
|
stream.pipe(response);
|
|
151118
151120
|
};
|
|
151119
|
-
}))
|
|
151120
|
-
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151121
|
-
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151121
|
+
}));
|
|
151122
151122
|
//#endregion
|
|
151123
151123
|
//#region ../../packages/core-node/src/server.ts
|
|
151124
|
+
var import_semver = /* @__PURE__ */ require_chunk.__toESM(require_semver(), 1);
|
|
151125
|
+
var import_lib = /* @__PURE__ */ require_chunk.__toESM(require_lib(), 1);
|
|
151126
|
+
require_src();
|
|
151124
151127
|
const sendStartupProgress = (message) => {
|
|
151125
151128
|
console.log(`[Startup Progress] ${message}`);
|
|
151126
151129
|
webSocketServer.broadcast("startup:progress", {
|
|
@@ -151562,7 +151565,7 @@ async function resolveEntryPoint(packageDir, packageName) {
|
|
|
151562
151565
|
}
|
|
151563
151566
|
//#endregion
|
|
151564
151567
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
151565
|
-
const { join: join$
|
|
151568
|
+
const { join: join$6 } = node_path.default;
|
|
151566
151569
|
//#endregion
|
|
151567
151570
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
151568
151571
|
const localPluginsMap = /* @__PURE__ */ new Map();
|