@pipelab/plugin-system 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 +328 -325
- package/dist/index.mjs +11 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2098,8 +2098,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2098
2098
|
completed: false
|
|
2099
2099
|
}
|
|
2100
2100
|
},
|
|
2101
|
-
plugins: DEFAULT_PLUGINS
|
|
2102
|
-
isInternalMigrationBannerClosed: false
|
|
2101
|
+
plugins: DEFAULT_PLUGINS
|
|
2103
2102
|
});
|
|
2104
2103
|
settingsMigratorInternal.createMigrations({
|
|
2105
2104
|
defaultValue: defaultAppSettings,
|
|
@@ -2150,12 +2149,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
2150
2149
|
createMigration({
|
|
2151
2150
|
version: "6.0.0",
|
|
2152
2151
|
up: (state) => {
|
|
2153
|
-
const { cacheFolder
|
|
2152
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
2154
2153
|
return {
|
|
2155
2154
|
...rest,
|
|
2155
|
+
cacheFolder,
|
|
2156
2156
|
agents: [],
|
|
2157
|
-
plugins: DEFAULT_PLUGINS
|
|
2158
|
-
isInternalMigrationBannerClosed: false
|
|
2157
|
+
plugins: DEFAULT_PLUGINS
|
|
2159
2158
|
};
|
|
2160
2159
|
}
|
|
2161
2160
|
}),
|
|
@@ -2508,7 +2507,8 @@ object({
|
|
|
2508
2507
|
enabled: boolean(),
|
|
2509
2508
|
description: string()
|
|
2510
2509
|
})),
|
|
2511
|
-
|
|
2510
|
+
cacheFolder: optional(string()),
|
|
2511
|
+
tempFolder: optional(string())
|
|
2512
2512
|
});
|
|
2513
2513
|
const ConnectionValidator = looseObject({
|
|
2514
2514
|
id: string(),
|
|
@@ -50971,7 +50971,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
50971
50971
|
const { Minipass } = require_minipass$4();
|
|
50972
50972
|
const Pax = require_pax();
|
|
50973
50973
|
const Header = require_header();
|
|
50974
|
-
const fs$
|
|
50974
|
+
const fs$35 = require("fs");
|
|
50975
50975
|
const path$33 = require("path");
|
|
50976
50976
|
const normPath = require_normalize_windows_path();
|
|
50977
50977
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -51059,7 +51059,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51059
51059
|
return super.emit(ev, ...data);
|
|
51060
51060
|
}
|
|
51061
51061
|
[LSTAT]() {
|
|
51062
|
-
fs$
|
|
51062
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
51063
51063
|
if (er) return this.emit("error", er);
|
|
51064
51064
|
this[ONLSTAT](stat);
|
|
51065
51065
|
});
|
|
@@ -51124,7 +51124,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51124
51124
|
this.end();
|
|
51125
51125
|
}
|
|
51126
51126
|
[SYMLINK]() {
|
|
51127
|
-
fs$
|
|
51127
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
51128
51128
|
if (er) return this.emit("error", er);
|
|
51129
51129
|
this[ONREADLINK](linkpath);
|
|
51130
51130
|
});
|
|
@@ -51155,7 +51155,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51155
51155
|
this[OPENFILE]();
|
|
51156
51156
|
}
|
|
51157
51157
|
[OPENFILE]() {
|
|
51158
|
-
fs$
|
|
51158
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
51159
51159
|
if (er) return this.emit("error", er);
|
|
51160
51160
|
this[ONOPENFILE](fd);
|
|
51161
51161
|
});
|
|
@@ -51175,13 +51175,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51175
51175
|
}
|
|
51176
51176
|
[READ]() {
|
|
51177
51177
|
const { fd, buf, offset, length, pos } = this;
|
|
51178
|
-
fs$
|
|
51178
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
51179
51179
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
51180
51180
|
this[ONREAD](bytesRead);
|
|
51181
51181
|
});
|
|
51182
51182
|
}
|
|
51183
51183
|
[CLOSE](cb) {
|
|
51184
|
-
fs$
|
|
51184
|
+
fs$35.close(this.fd, cb);
|
|
51185
51185
|
}
|
|
51186
51186
|
[ONREAD](bytesRead) {
|
|
51187
51187
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -51237,19 +51237,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51237
51237
|
});
|
|
51238
51238
|
var WriteEntrySync = class extends WriteEntry {
|
|
51239
51239
|
[LSTAT]() {
|
|
51240
|
-
this[ONLSTAT](fs$
|
|
51240
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
51241
51241
|
}
|
|
51242
51242
|
[SYMLINK]() {
|
|
51243
|
-
this[ONREADLINK](fs$
|
|
51243
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
51244
51244
|
}
|
|
51245
51245
|
[OPENFILE]() {
|
|
51246
|
-
this[ONOPENFILE](fs$
|
|
51246
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
51247
51247
|
}
|
|
51248
51248
|
[READ]() {
|
|
51249
51249
|
let threw = true;
|
|
51250
51250
|
try {
|
|
51251
51251
|
const { fd, buf, offset, length, pos } = this;
|
|
51252
|
-
const bytesRead = fs$
|
|
51252
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
51253
51253
|
this[ONREAD](bytesRead);
|
|
51254
51254
|
threw = false;
|
|
51255
51255
|
} finally {
|
|
@@ -51262,7 +51262,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
51262
51262
|
cb();
|
|
51263
51263
|
}
|
|
51264
51264
|
[CLOSE](cb) {
|
|
51265
|
-
fs$
|
|
51265
|
+
fs$35.closeSync(this.fd);
|
|
51266
51266
|
cb();
|
|
51267
51267
|
}
|
|
51268
51268
|
};
|
|
@@ -51659,7 +51659,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51659
51659
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
51660
51660
|
const WRITE = Symbol("write");
|
|
51661
51661
|
const ONDRAIN = Symbol("ondrain");
|
|
51662
|
-
const fs$
|
|
51662
|
+
const fs$34 = require("fs");
|
|
51663
51663
|
const path$32 = require("path");
|
|
51664
51664
|
const warner = require_warn_mixin();
|
|
51665
51665
|
const normPath = require_normalize_windows_path();
|
|
@@ -51748,7 +51748,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51748
51748
|
[STAT](job) {
|
|
51749
51749
|
job.pending = true;
|
|
51750
51750
|
this[JOBS] += 1;
|
|
51751
|
-
fs$
|
|
51751
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
51752
51752
|
job.pending = false;
|
|
51753
51753
|
this[JOBS] -= 1;
|
|
51754
51754
|
if (er) this.emit("error", er);
|
|
@@ -51764,7 +51764,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51764
51764
|
[READDIR](job) {
|
|
51765
51765
|
job.pending = true;
|
|
51766
51766
|
this[JOBS] += 1;
|
|
51767
|
-
fs$
|
|
51767
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
51768
51768
|
job.pending = false;
|
|
51769
51769
|
this[JOBS] -= 1;
|
|
51770
51770
|
if (er) return this.emit("error", er);
|
|
@@ -51882,10 +51882,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
51882
51882
|
resume() {}
|
|
51883
51883
|
[STAT](job) {
|
|
51884
51884
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
51885
|
-
this[ONSTAT](job, fs$
|
|
51885
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
51886
51886
|
}
|
|
51887
51887
|
[READDIR](job, stat) {
|
|
51888
|
-
this[ONREADDIR](job, fs$
|
|
51888
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
51889
51889
|
}
|
|
51890
51890
|
[PIPE](job) {
|
|
51891
51891
|
const source = job.entry;
|
|
@@ -52341,8 +52341,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
52341
52341
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
52342
52342
|
const MiniPass = require_minipass$2();
|
|
52343
52343
|
const EE$11 = require("events").EventEmitter;
|
|
52344
|
-
const fs$
|
|
52345
|
-
let writev = fs$
|
|
52344
|
+
const fs$33 = require("fs");
|
|
52345
|
+
let writev = fs$33.writev;
|
|
52346
52346
|
/* istanbul ignore next */
|
|
52347
52347
|
if (!writev) {
|
|
52348
52348
|
const binding = process.binding("fs");
|
|
@@ -52413,7 +52413,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52413
52413
|
throw new TypeError("this is a readable stream");
|
|
52414
52414
|
}
|
|
52415
52415
|
[_open]() {
|
|
52416
|
-
fs$
|
|
52416
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
52417
52417
|
}
|
|
52418
52418
|
[_onopen](er, fd) {
|
|
52419
52419
|
if (er) this[_onerror](er);
|
|
@@ -52432,7 +52432,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52432
52432
|
const buf = this[_makeBuf]();
|
|
52433
52433
|
/* istanbul ignore if */
|
|
52434
52434
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
52435
|
-
fs$
|
|
52435
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
52436
52436
|
}
|
|
52437
52437
|
}
|
|
52438
52438
|
[_onread](er, br, buf) {
|
|
@@ -52444,7 +52444,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52444
52444
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52445
52445
|
const fd = this[_fd];
|
|
52446
52446
|
this[_fd] = null;
|
|
52447
|
-
fs$
|
|
52447
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
52448
52448
|
}
|
|
52449
52449
|
}
|
|
52450
52450
|
[_onerror](er) {
|
|
@@ -52482,7 +52482,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52482
52482
|
[_open]() {
|
|
52483
52483
|
let threw = true;
|
|
52484
52484
|
try {
|
|
52485
|
-
this[_onopen](null, fs$
|
|
52485
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
52486
52486
|
threw = false;
|
|
52487
52487
|
} finally {
|
|
52488
52488
|
if (threw) this[_close]();
|
|
@@ -52496,7 +52496,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52496
52496
|
do {
|
|
52497
52497
|
const buf = this[_makeBuf]();
|
|
52498
52498
|
/* istanbul ignore next */
|
|
52499
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
52499
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
52500
52500
|
if (!this[_handleChunk](br, buf)) break;
|
|
52501
52501
|
} while (true);
|
|
52502
52502
|
this[_reading] = false;
|
|
@@ -52510,7 +52510,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52510
52510
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52511
52511
|
const fd = this[_fd];
|
|
52512
52512
|
this[_fd] = null;
|
|
52513
|
-
fs$
|
|
52513
|
+
fs$33.closeSync(fd);
|
|
52514
52514
|
this.emit("close");
|
|
52515
52515
|
}
|
|
52516
52516
|
}
|
|
@@ -52555,7 +52555,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52555
52555
|
this.emit("error", er);
|
|
52556
52556
|
}
|
|
52557
52557
|
[_open]() {
|
|
52558
|
-
fs$
|
|
52558
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
52559
52559
|
}
|
|
52560
52560
|
[_onopen](er, fd) {
|
|
52561
52561
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -52590,7 +52590,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52590
52590
|
return true;
|
|
52591
52591
|
}
|
|
52592
52592
|
[_write](buf) {
|
|
52593
|
-
fs$
|
|
52593
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
52594
52594
|
}
|
|
52595
52595
|
[_onwrite](er, bw) {
|
|
52596
52596
|
if (er) this[_onerror](er);
|
|
@@ -52624,7 +52624,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52624
52624
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52625
52625
|
const fd = this[_fd];
|
|
52626
52626
|
this[_fd] = null;
|
|
52627
|
-
fs$
|
|
52627
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
52628
52628
|
}
|
|
52629
52629
|
}
|
|
52630
52630
|
};
|
|
@@ -52632,28 +52632,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
52632
52632
|
[_open]() {
|
|
52633
52633
|
let fd;
|
|
52634
52634
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
52635
|
-
fd = fs$
|
|
52635
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
52636
52636
|
} catch (er) {
|
|
52637
52637
|
if (er.code === "ENOENT") {
|
|
52638
52638
|
this[_flags] = "w";
|
|
52639
52639
|
return this[_open]();
|
|
52640
52640
|
} else throw er;
|
|
52641
52641
|
}
|
|
52642
|
-
else fd = fs$
|
|
52642
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
52643
52643
|
this[_onopen](null, fd);
|
|
52644
52644
|
}
|
|
52645
52645
|
[_close]() {
|
|
52646
52646
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
52647
52647
|
const fd = this[_fd];
|
|
52648
52648
|
this[_fd] = null;
|
|
52649
|
-
fs$
|
|
52649
|
+
fs$33.closeSync(fd);
|
|
52650
52650
|
this.emit("close");
|
|
52651
52651
|
}
|
|
52652
52652
|
}
|
|
52653
52653
|
[_write](buf) {
|
|
52654
52654
|
let threw = true;
|
|
52655
52655
|
try {
|
|
52656
|
-
this[_onwrite](null, fs$
|
|
52656
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
52657
52657
|
threw = false;
|
|
52658
52658
|
} finally {
|
|
52659
52659
|
if (threw) try {
|
|
@@ -53018,7 +53018,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
53018
53018
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53019
53019
|
const hlo = require_high_level_opt();
|
|
53020
53020
|
const Parser = require_parse$4();
|
|
53021
|
-
const fs$
|
|
53021
|
+
const fs$32 = require("fs");
|
|
53022
53022
|
const fsm = require_fs_minipass();
|
|
53023
53023
|
const path$31 = require("path");
|
|
53024
53024
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -53059,15 +53059,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53059
53059
|
let threw = true;
|
|
53060
53060
|
let fd;
|
|
53061
53061
|
try {
|
|
53062
|
-
const stat = fs$
|
|
53062
|
+
const stat = fs$32.statSync(file);
|
|
53063
53063
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
53064
|
-
if (stat.size < readSize) p.end(fs$
|
|
53064
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
53065
53065
|
else {
|
|
53066
53066
|
let pos = 0;
|
|
53067
53067
|
const buf = Buffer.allocUnsafe(readSize);
|
|
53068
|
-
fd = fs$
|
|
53068
|
+
fd = fs$32.openSync(file, "r");
|
|
53069
53069
|
while (pos < stat.size) {
|
|
53070
|
-
const bytesRead = fs$
|
|
53070
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
53071
53071
|
pos += bytesRead;
|
|
53072
53072
|
p.write(buf.slice(0, bytesRead));
|
|
53073
53073
|
}
|
|
@@ -53076,7 +53076,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53076
53076
|
threw = false;
|
|
53077
53077
|
} finally {
|
|
53078
53078
|
if (threw && fd) try {
|
|
53079
|
-
fs$
|
|
53079
|
+
fs$32.closeSync(fd);
|
|
53080
53080
|
} catch (er) {}
|
|
53081
53081
|
}
|
|
53082
53082
|
};
|
|
@@ -53087,7 +53087,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
53087
53087
|
const p = new Promise((resolve, reject) => {
|
|
53088
53088
|
parse.on("error", reject);
|
|
53089
53089
|
parse.on("end", resolve);
|
|
53090
|
-
fs$
|
|
53090
|
+
fs$32.stat(file, (er, stat) => {
|
|
53091
53091
|
if (er) reject(er);
|
|
53092
53092
|
else {
|
|
53093
53093
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -53179,7 +53179,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53179
53179
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53180
53180
|
const hlo = require_high_level_opt();
|
|
53181
53181
|
const Pack = require_pack$1();
|
|
53182
|
-
const fs$
|
|
53182
|
+
const fs$31 = require("fs");
|
|
53183
53183
|
const fsm = require_fs_minipass();
|
|
53184
53184
|
const t = require_list();
|
|
53185
53185
|
const path$29 = require("path");
|
|
@@ -53199,16 +53199,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53199
53199
|
let position;
|
|
53200
53200
|
try {
|
|
53201
53201
|
try {
|
|
53202
|
-
fd = fs$
|
|
53202
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
53203
53203
|
} catch (er) {
|
|
53204
|
-
if (er.code === "ENOENT") fd = fs$
|
|
53204
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
53205
53205
|
else throw er;
|
|
53206
53206
|
}
|
|
53207
|
-
const st = fs$
|
|
53207
|
+
const st = fs$31.fstatSync(fd);
|
|
53208
53208
|
const headBuf = Buffer.alloc(512);
|
|
53209
53209
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
53210
53210
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
53211
|
-
bytes = fs$
|
|
53211
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
53212
53212
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
53213
53213
|
if (!bytes) break POSITION;
|
|
53214
53214
|
}
|
|
@@ -53223,7 +53223,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53223
53223
|
streamSync(opt, p, position, fd, files);
|
|
53224
53224
|
} finally {
|
|
53225
53225
|
if (threw) try {
|
|
53226
|
-
fs$
|
|
53226
|
+
fs$31.closeSync(fd);
|
|
53227
53227
|
} catch (er) {}
|
|
53228
53228
|
}
|
|
53229
53229
|
};
|
|
@@ -53240,7 +53240,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53240
53240
|
const p = new Pack(opt);
|
|
53241
53241
|
const getPos = (fd, size, cb_) => {
|
|
53242
53242
|
const cb = (er, pos) => {
|
|
53243
|
-
if (er) fs$
|
|
53243
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
53244
53244
|
else cb_(null, pos);
|
|
53245
53245
|
};
|
|
53246
53246
|
let position = 0;
|
|
@@ -53250,7 +53250,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53250
53250
|
const onread = (er, bytes) => {
|
|
53251
53251
|
if (er) return cb(er);
|
|
53252
53252
|
bufPos += bytes;
|
|
53253
|
-
if (bufPos < 512 && bytes) return fs$
|
|
53253
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
53254
53254
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
53255
53255
|
if (bufPos < 512) return cb(null, position);
|
|
53256
53256
|
const h = new Header(headBuf);
|
|
@@ -53261,9 +53261,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53261
53261
|
if (position >= size) return cb(null, position);
|
|
53262
53262
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
53263
53263
|
bufPos = 0;
|
|
53264
|
-
fs$
|
|
53264
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
53265
53265
|
};
|
|
53266
|
-
fs$
|
|
53266
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
53267
53267
|
};
|
|
53268
53268
|
const promise = new Promise((resolve, reject) => {
|
|
53269
53269
|
p.on("error", reject);
|
|
@@ -53271,11 +53271,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53271
53271
|
const onopen = (er, fd) => {
|
|
53272
53272
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
53273
53273
|
flag = "w+";
|
|
53274
|
-
return fs$
|
|
53274
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
53275
53275
|
}
|
|
53276
53276
|
if (er) return reject(er);
|
|
53277
|
-
fs$
|
|
53278
|
-
if (er) return fs$
|
|
53277
|
+
fs$31.fstat(fd, (er, st) => {
|
|
53278
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
53279
53279
|
getPos(fd, st.size, (er, position) => {
|
|
53280
53280
|
if (er) return reject(er);
|
|
53281
53281
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -53289,7 +53289,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
53289
53289
|
});
|
|
53290
53290
|
});
|
|
53291
53291
|
};
|
|
53292
|
-
fs$
|
|
53292
|
+
fs$31.open(opt.file, flag, onopen);
|
|
53293
53293
|
});
|
|
53294
53294
|
return cb ? promise.then(cb, cb) : promise;
|
|
53295
53295
|
};
|
|
@@ -53342,32 +53342,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53342
53342
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
53343
53343
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53344
53344
|
const { promisify: promisify$1 } = require("util");
|
|
53345
|
-
const fs$
|
|
53345
|
+
const fs$30 = require("fs");
|
|
53346
53346
|
const optsArg = (opts) => {
|
|
53347
53347
|
if (!opts) opts = {
|
|
53348
53348
|
mode: 511,
|
|
53349
|
-
fs: fs$
|
|
53349
|
+
fs: fs$30
|
|
53350
53350
|
};
|
|
53351
53351
|
else if (typeof opts === "object") opts = {
|
|
53352
53352
|
mode: 511,
|
|
53353
|
-
fs: fs$
|
|
53353
|
+
fs: fs$30,
|
|
53354
53354
|
...opts
|
|
53355
53355
|
};
|
|
53356
53356
|
else if (typeof opts === "number") opts = {
|
|
53357
53357
|
mode: opts,
|
|
53358
|
-
fs: fs$
|
|
53358
|
+
fs: fs$30
|
|
53359
53359
|
};
|
|
53360
53360
|
else if (typeof opts === "string") opts = {
|
|
53361
53361
|
mode: parseInt(opts, 8),
|
|
53362
|
-
fs: fs$
|
|
53362
|
+
fs: fs$30
|
|
53363
53363
|
};
|
|
53364
53364
|
else throw new TypeError("invalid options argument");
|
|
53365
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
53365
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
53366
53366
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
53367
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
53367
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
53368
53368
|
opts.statAsync = promisify$1(opts.stat);
|
|
53369
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
53370
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
53369
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
53370
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
53371
53371
|
return opts;
|
|
53372
53372
|
};
|
|
53373
53373
|
module.exports = optsArg;
|
|
@@ -53398,17 +53398,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
53398
53398
|
//#endregion
|
|
53399
53399
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
53400
53400
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53401
|
-
const { dirname: dirname$
|
|
53401
|
+
const { dirname: dirname$14 } = require("path");
|
|
53402
53402
|
const findMade = (opts, parent, path$74 = void 0) => {
|
|
53403
53403
|
if (path$74 === parent) return Promise.resolve();
|
|
53404
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$74 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
53404
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$74 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
53405
53405
|
};
|
|
53406
53406
|
const findMadeSync = (opts, parent, path$75 = void 0) => {
|
|
53407
53407
|
if (path$75 === parent) return void 0;
|
|
53408
53408
|
try {
|
|
53409
53409
|
return opts.statSync(parent).isDirectory() ? path$75 : void 0;
|
|
53410
53410
|
} catch (er) {
|
|
53411
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
53411
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
53412
53412
|
}
|
|
53413
53413
|
};
|
|
53414
53414
|
module.exports = {
|
|
@@ -53419,10 +53419,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
53419
53419
|
//#endregion
|
|
53420
53420
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
53421
53421
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53422
|
-
const { dirname: dirname$
|
|
53422
|
+
const { dirname: dirname$13 } = require("path");
|
|
53423
53423
|
const mkdirpManual = (path$72, opts, made) => {
|
|
53424
53424
|
opts.recursive = false;
|
|
53425
|
-
const parent = dirname$
|
|
53425
|
+
const parent = dirname$13(path$72);
|
|
53426
53426
|
if (parent === path$72) return opts.mkdirAsync(path$72, opts).catch((er) => {
|
|
53427
53427
|
if (er.code !== "EISDIR") throw er;
|
|
53428
53428
|
});
|
|
@@ -53438,7 +53438,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53438
53438
|
});
|
|
53439
53439
|
};
|
|
53440
53440
|
const mkdirpManualSync = (path$73, opts, made) => {
|
|
53441
|
-
const parent = dirname$
|
|
53441
|
+
const parent = dirname$13(path$73);
|
|
53442
53442
|
opts.recursive = false;
|
|
53443
53443
|
if (parent === path$73) try {
|
|
53444
53444
|
return opts.mkdirSync(path$73, opts);
|
|
@@ -53467,12 +53467,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53467
53467
|
//#endregion
|
|
53468
53468
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
53469
53469
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53470
|
-
const { dirname: dirname$
|
|
53470
|
+
const { dirname: dirname$12 } = require("path");
|
|
53471
53471
|
const { findMade, findMadeSync } = require_find_made();
|
|
53472
53472
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
53473
53473
|
const mkdirpNative = (path$70, opts) => {
|
|
53474
53474
|
opts.recursive = true;
|
|
53475
|
-
if (dirname$
|
|
53475
|
+
if (dirname$12(path$70) === path$70) return opts.mkdirAsync(path$70, opts);
|
|
53476
53476
|
return findMade(opts, path$70).then((made) => opts.mkdirAsync(path$70, opts).then(() => made).catch((er) => {
|
|
53477
53477
|
if (er.code === "ENOENT") return mkdirpManual(path$70, opts);
|
|
53478
53478
|
else throw er;
|
|
@@ -53480,7 +53480,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53480
53480
|
};
|
|
53481
53481
|
const mkdirpNativeSync = (path$71, opts) => {
|
|
53482
53482
|
opts.recursive = true;
|
|
53483
|
-
if (dirname$
|
|
53483
|
+
if (dirname$12(path$71) === path$71) return opts.mkdirSync(path$71, opts);
|
|
53484
53484
|
const made = findMadeSync(opts, path$71);
|
|
53485
53485
|
try {
|
|
53486
53486
|
opts.mkdirSync(path$71, opts);
|
|
@@ -53498,12 +53498,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
53498
53498
|
//#endregion
|
|
53499
53499
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
53500
53500
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53501
|
-
const fs$
|
|
53501
|
+
const fs$29 = require("fs");
|
|
53502
53502
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
53503
53503
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
53504
53504
|
module.exports = {
|
|
53505
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
53506
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
53505
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
53506
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
53507
53507
|
};
|
|
53508
53508
|
}));
|
|
53509
53509
|
//#endregion
|
|
@@ -53534,17 +53534,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53534
53534
|
//#endregion
|
|
53535
53535
|
//#region ../../node_modules/chownr/chownr.js
|
|
53536
53536
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53537
|
-
const fs$
|
|
53537
|
+
const fs$28 = require("fs");
|
|
53538
53538
|
const path$28 = require("path");
|
|
53539
53539
|
/* istanbul ignore next */
|
|
53540
|
-
const LCHOWN = fs$
|
|
53540
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
53541
53541
|
/* istanbul ignore next */
|
|
53542
|
-
const LCHOWNSYNC = fs$
|
|
53542
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
53543
53543
|
/* istanbul ignore next */
|
|
53544
|
-
const needEISDIRHandled = fs$
|
|
53544
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
53545
53545
|
const lchownSync = (path$62, uid, gid) => {
|
|
53546
53546
|
try {
|
|
53547
|
-
return fs$
|
|
53547
|
+
return fs$28[LCHOWNSYNC](path$62, uid, gid);
|
|
53548
53548
|
} catch (er) {
|
|
53549
53549
|
if (er.code !== "ENOENT") throw er;
|
|
53550
53550
|
}
|
|
@@ -53552,7 +53552,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53552
53552
|
/* istanbul ignore next */
|
|
53553
53553
|
const chownSync = (path$63, uid, gid) => {
|
|
53554
53554
|
try {
|
|
53555
|
-
return fs$
|
|
53555
|
+
return fs$28.chownSync(path$63, uid, gid);
|
|
53556
53556
|
} catch (er) {
|
|
53557
53557
|
if (er.code !== "ENOENT") throw er;
|
|
53558
53558
|
}
|
|
@@ -53560,7 +53560,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53560
53560
|
/* istanbul ignore next */
|
|
53561
53561
|
const handleEISDIR = needEISDIRHandled ? (path$64, uid, gid, cb) => (er) => {
|
|
53562
53562
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
53563
|
-
else fs$
|
|
53563
|
+
else fs$28.chown(path$64, uid, gid, cb);
|
|
53564
53564
|
} : (_, __, ___, cb) => cb;
|
|
53565
53565
|
/* istanbul ignore next */
|
|
53566
53566
|
const handleEISDirSync = needEISDIRHandled ? (path$65, uid, gid) => {
|
|
@@ -53572,17 +53572,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53572
53572
|
}
|
|
53573
53573
|
} : (path$66, uid, gid) => lchownSync(path$66, uid, gid);
|
|
53574
53574
|
const nodeVersion = process.version;
|
|
53575
|
-
let readdir = (path$67, options, cb) => fs$
|
|
53576
|
-
let readdirSync = (path$68, options) => fs$
|
|
53575
|
+
let readdir = (path$67, options, cb) => fs$28.readdir(path$67, options, cb);
|
|
53576
|
+
let readdirSync = (path$68, options) => fs$28.readdirSync(path$68, options);
|
|
53577
53577
|
/* istanbul ignore next */
|
|
53578
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$69, options, cb) => fs$
|
|
53578
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$69, options, cb) => fs$28.readdir(path$69, cb);
|
|
53579
53579
|
const chown = (cpath, uid, gid, cb) => {
|
|
53580
|
-
fs$
|
|
53580
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
53581
53581
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
53582
53582
|
}));
|
|
53583
53583
|
};
|
|
53584
53584
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
53585
|
-
if (typeof child === "string") return fs$
|
|
53585
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
53586
53586
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
53587
53587
|
stats.name = child;
|
|
53588
53588
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -53612,7 +53612,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53612
53612
|
};
|
|
53613
53613
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
53614
53614
|
if (typeof child === "string") try {
|
|
53615
|
-
const stats = fs$
|
|
53615
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
53616
53616
|
stats.name = child;
|
|
53617
53617
|
child = stats;
|
|
53618
53618
|
} catch (er) {
|
|
@@ -53641,7 +53641,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53641
53641
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
53642
53642
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53643
53643
|
const mkdirp = require_mkdirp();
|
|
53644
|
-
const fs$
|
|
53644
|
+
const fs$27 = require("fs");
|
|
53645
53645
|
const path$27 = require("path");
|
|
53646
53646
|
const chownr = require_chownr();
|
|
53647
53647
|
const normPath = require_normalize_windows_path();
|
|
@@ -53668,7 +53668,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53668
53668
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
53669
53669
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
53670
53670
|
const checkCwd = (dir, cb) => {
|
|
53671
|
-
fs$
|
|
53671
|
+
fs$27.stat(dir, (er, st) => {
|
|
53672
53672
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
53673
53673
|
cb(er);
|
|
53674
53674
|
});
|
|
@@ -53690,7 +53690,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53690
53690
|
else {
|
|
53691
53691
|
cSet(cache, dir, true);
|
|
53692
53692
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
53693
|
-
else if (needChmod) fs$
|
|
53693
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
53694
53694
|
else cb();
|
|
53695
53695
|
}
|
|
53696
53696
|
};
|
|
@@ -53704,17 +53704,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53704
53704
|
const p = parts.shift();
|
|
53705
53705
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
53706
53706
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
53707
|
-
fs$
|
|
53707
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
53708
53708
|
};
|
|
53709
53709
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
53710
|
-
if (er) fs$
|
|
53710
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
53711
53711
|
if (statEr) {
|
|
53712
53712
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
53713
53713
|
cb(statEr);
|
|
53714
53714
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
53715
|
-
else if (unlink) fs$
|
|
53715
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
53716
53716
|
if (er) return cb(er);
|
|
53717
|
-
fs$
|
|
53717
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
53718
53718
|
});
|
|
53719
53719
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
53720
53720
|
else cb(er);
|
|
@@ -53728,7 +53728,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53728
53728
|
let ok = false;
|
|
53729
53729
|
let code = "ENOTDIR";
|
|
53730
53730
|
try {
|
|
53731
|
-
ok = fs$
|
|
53731
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
53732
53732
|
} catch (er) {
|
|
53733
53733
|
code = er.code;
|
|
53734
53734
|
} finally {
|
|
@@ -53750,7 +53750,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53750
53750
|
const done = (created) => {
|
|
53751
53751
|
cSet(cache, dir, true);
|
|
53752
53752
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
53753
|
-
if (needChmod) fs$
|
|
53753
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
53754
53754
|
};
|
|
53755
53755
|
if (cache && cGet(cache, dir) === true) return done();
|
|
53756
53756
|
if (dir === cwd) {
|
|
@@ -53764,17 +53764,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
53764
53764
|
part = normPath(path$27.resolve(part));
|
|
53765
53765
|
if (cGet(cache, part)) continue;
|
|
53766
53766
|
try {
|
|
53767
|
-
fs$
|
|
53767
|
+
fs$27.mkdirSync(part, mode);
|
|
53768
53768
|
created = created || part;
|
|
53769
53769
|
cSet(cache, part, true);
|
|
53770
53770
|
} catch (er) {
|
|
53771
|
-
const st = fs$
|
|
53771
|
+
const st = fs$27.lstatSync(part);
|
|
53772
53772
|
if (st.isDirectory()) {
|
|
53773
53773
|
cSet(cache, part, true);
|
|
53774
53774
|
continue;
|
|
53775
53775
|
} else if (unlink) {
|
|
53776
|
-
fs$
|
|
53777
|
-
fs$
|
|
53776
|
+
fs$27.unlinkSync(part);
|
|
53777
|
+
fs$27.mkdirSync(part, mode);
|
|
53778
53778
|
created = created || part;
|
|
53779
53779
|
cSet(cache, part, true);
|
|
53780
53780
|
continue;
|
|
@@ -53800,14 +53800,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
53800
53800
|
const assert$1 = require("assert");
|
|
53801
53801
|
const normalize = require_normalize_unicode();
|
|
53802
53802
|
const stripSlashes = require_strip_trailing_slashes();
|
|
53803
|
-
const { join: join$
|
|
53803
|
+
const { join: join$16 } = require("path");
|
|
53804
53804
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
53805
53805
|
module.exports = () => {
|
|
53806
53806
|
const queues = /* @__PURE__ */ new Map();
|
|
53807
53807
|
const reservations = /* @__PURE__ */ new Map();
|
|
53808
53808
|
const getDirs = (path$53) => {
|
|
53809
53809
|
return path$53.split("/").slice(0, -1).reduce((set, path$54) => {
|
|
53810
|
-
if (set.length) path$54 = join$
|
|
53810
|
+
if (set.length) path$54 = join$16(set[set.length - 1], path$54);
|
|
53811
53811
|
set.push(path$54 || "/");
|
|
53812
53812
|
return set;
|
|
53813
53813
|
}, []);
|
|
@@ -53861,7 +53861,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
53861
53861
|
};
|
|
53862
53862
|
const reserve = (paths, fn) => {
|
|
53863
53863
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
53864
|
-
return stripSlashes(join$
|
|
53864
|
+
return stripSlashes(join$16(normalize(p))).toLowerCase();
|
|
53865
53865
|
});
|
|
53866
53866
|
const dirs = new Set(paths.map((path$58) => getDirs(path$58)).reduce((a, b) => a.concat(b)));
|
|
53867
53867
|
reservations.set(fn, {
|
|
@@ -53903,7 +53903,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
53903
53903
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53904
53904
|
const assert = require("assert");
|
|
53905
53905
|
const Parser = require_parse$4();
|
|
53906
|
-
const fs$
|
|
53906
|
+
const fs$26 = require("fs");
|
|
53907
53907
|
const fsm = require_fs_minipass();
|
|
53908
53908
|
const path$26 = require("path");
|
|
53909
53909
|
const mkdir = require_mkdir();
|
|
@@ -53944,19 +53944,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
53944
53944
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
53945
53945
|
/* istanbul ignore next */
|
|
53946
53946
|
const unlinkFile = (path$49, cb) => {
|
|
53947
|
-
if (!isWindows) return fs$
|
|
53947
|
+
if (!isWindows) return fs$26.unlink(path$49, cb);
|
|
53948
53948
|
const name = path$49 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
53949
|
-
fs$
|
|
53949
|
+
fs$26.rename(path$49, name, (er) => {
|
|
53950
53950
|
if (er) return cb(er);
|
|
53951
|
-
fs$
|
|
53951
|
+
fs$26.unlink(name, cb);
|
|
53952
53952
|
});
|
|
53953
53953
|
};
|
|
53954
53954
|
/* istanbul ignore next */
|
|
53955
53955
|
const unlinkFileSync = (path$50) => {
|
|
53956
|
-
if (!isWindows) return fs$
|
|
53956
|
+
if (!isWindows) return fs$26.unlinkSync(path$50);
|
|
53957
53957
|
const name = path$50 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
53958
|
-
fs$
|
|
53959
|
-
fs$
|
|
53958
|
+
fs$26.renameSync(path$50, name);
|
|
53959
|
+
fs$26.unlinkSync(name);
|
|
53960
53960
|
};
|
|
53961
53961
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
53962
53962
|
const cacheKeyNormalize = (path$51) => stripSlash(normPath(normalize(path$51))).toLowerCase();
|
|
@@ -54142,7 +54142,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54142
54142
|
autoClose: false
|
|
54143
54143
|
});
|
|
54144
54144
|
stream.on("error", (er) => {
|
|
54145
|
-
if (stream.fd) fs$
|
|
54145
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
54146
54146
|
stream.write = () => true;
|
|
54147
54147
|
this[ONERROR](er, entry);
|
|
54148
54148
|
fullyDone();
|
|
@@ -54151,12 +54151,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54151
54151
|
const done = (er) => {
|
|
54152
54152
|
if (er) {
|
|
54153
54153
|
/* istanbul ignore else - we should always have a fd by now */
|
|
54154
|
-
if (stream.fd) fs$
|
|
54154
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
54155
54155
|
this[ONERROR](er, entry);
|
|
54156
54156
|
fullyDone();
|
|
54157
54157
|
return;
|
|
54158
54158
|
}
|
|
54159
|
-
if (--actions === 0) fs$
|
|
54159
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
54160
54160
|
if (er) this[ONERROR](er, entry);
|
|
54161
54161
|
else this[UNPEND]();
|
|
54162
54162
|
fullyDone();
|
|
@@ -54169,13 +54169,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54169
54169
|
actions++;
|
|
54170
54170
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
54171
54171
|
const mtime = entry.mtime;
|
|
54172
|
-
fs$
|
|
54172
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
54173
54173
|
}
|
|
54174
54174
|
if (this[DOCHOWN](entry)) {
|
|
54175
54175
|
actions++;
|
|
54176
54176
|
const uid = this[UID](entry);
|
|
54177
54177
|
const gid = this[GID](entry);
|
|
54178
|
-
fs$
|
|
54178
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
54179
54179
|
}
|
|
54180
54180
|
done();
|
|
54181
54181
|
});
|
|
@@ -54207,11 +54207,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54207
54207
|
};
|
|
54208
54208
|
if (entry.mtime && !this.noMtime) {
|
|
54209
54209
|
actions++;
|
|
54210
|
-
fs$
|
|
54210
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
54211
54211
|
}
|
|
54212
54212
|
if (this[DOCHOWN](entry)) {
|
|
54213
54213
|
actions++;
|
|
54214
|
-
fs$
|
|
54214
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
54215
54215
|
}
|
|
54216
54216
|
done();
|
|
54217
54217
|
});
|
|
@@ -54284,7 +54284,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54284
54284
|
afterMakeParent();
|
|
54285
54285
|
};
|
|
54286
54286
|
const afterMakeParent = () => {
|
|
54287
|
-
fs$
|
|
54287
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
54288
54288
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
54289
54289
|
this[SKIP](entry);
|
|
54290
54290
|
done();
|
|
@@ -54296,9 +54296,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54296
54296
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
54297
54297
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
54298
54298
|
if (!needChmod) return afterChmod();
|
|
54299
|
-
return fs$
|
|
54299
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
54300
54300
|
}
|
|
54301
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
54301
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
54302
54302
|
}
|
|
54303
54303
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
54304
54304
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -54324,7 +54324,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54324
54324
|
}
|
|
54325
54325
|
}
|
|
54326
54326
|
[LINK](entry, linkpath, link, done) {
|
|
54327
|
-
fs$
|
|
54327
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
54328
54328
|
if (er) this[ONERROR](er, entry);
|
|
54329
54329
|
else {
|
|
54330
54330
|
this[UNPEND]();
|
|
@@ -54359,17 +54359,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54359
54359
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
54360
54360
|
}
|
|
54361
54361
|
}
|
|
54362
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
54362
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
54363
54363
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
54364
54364
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
54365
54365
|
if (st.isDirectory()) {
|
|
54366
54366
|
if (entry.type === "Directory") {
|
|
54367
54367
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
54368
|
-
fs$
|
|
54368
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
54369
54369
|
}) : [];
|
|
54370
54370
|
return this[MAKEFS](er, entry);
|
|
54371
54371
|
}
|
|
54372
|
-
const [er] = callSync(() => fs$
|
|
54372
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
54373
54373
|
this[MAKEFS](er, entry);
|
|
54374
54374
|
}
|
|
54375
54375
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -54380,7 +54380,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54380
54380
|
const oner = (er) => {
|
|
54381
54381
|
let closeError;
|
|
54382
54382
|
try {
|
|
54383
|
-
fs$
|
|
54383
|
+
fs$26.closeSync(fd);
|
|
54384
54384
|
} catch (e) {
|
|
54385
54385
|
closeError = e;
|
|
54386
54386
|
}
|
|
@@ -54389,7 +54389,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54389
54389
|
};
|
|
54390
54390
|
let fd;
|
|
54391
54391
|
try {
|
|
54392
|
-
fd = fs$
|
|
54392
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
54393
54393
|
} catch (er) {
|
|
54394
54394
|
return oner(er);
|
|
54395
54395
|
}
|
|
@@ -54400,7 +54400,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54400
54400
|
}
|
|
54401
54401
|
tx.on("data", (chunk) => {
|
|
54402
54402
|
try {
|
|
54403
|
-
fs$
|
|
54403
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
54404
54404
|
} catch (er) {
|
|
54405
54405
|
oner(er);
|
|
54406
54406
|
}
|
|
@@ -54411,10 +54411,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54411
54411
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
54412
54412
|
const mtime = entry.mtime;
|
|
54413
54413
|
try {
|
|
54414
|
-
fs$
|
|
54414
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
54415
54415
|
} catch (futimeser) {
|
|
54416
54416
|
try {
|
|
54417
|
-
fs$
|
|
54417
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
54418
54418
|
} catch (utimeser) {
|
|
54419
54419
|
er = futimeser;
|
|
54420
54420
|
}
|
|
@@ -54424,10 +54424,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54424
54424
|
const uid = this[UID](entry);
|
|
54425
54425
|
const gid = this[GID](entry);
|
|
54426
54426
|
try {
|
|
54427
|
-
fs$
|
|
54427
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
54428
54428
|
} catch (fchowner) {
|
|
54429
54429
|
try {
|
|
54430
|
-
fs$
|
|
54430
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
54431
54431
|
} catch (chowner) {
|
|
54432
54432
|
er = er || fchowner;
|
|
54433
54433
|
}
|
|
@@ -54445,10 +54445,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54445
54445
|
return;
|
|
54446
54446
|
}
|
|
54447
54447
|
if (entry.mtime && !this.noMtime) try {
|
|
54448
|
-
fs$
|
|
54448
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
54449
54449
|
} catch (er) {}
|
|
54450
54450
|
if (this[DOCHOWN](entry)) try {
|
|
54451
|
-
fs$
|
|
54451
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
54452
54452
|
} catch (er) {}
|
|
54453
54453
|
done();
|
|
54454
54454
|
entry.resume();
|
|
@@ -54473,7 +54473,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54473
54473
|
}
|
|
54474
54474
|
[LINK](entry, linkpath, link, done) {
|
|
54475
54475
|
try {
|
|
54476
|
-
fs$
|
|
54476
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
54477
54477
|
done();
|
|
54478
54478
|
entry.resume();
|
|
54479
54479
|
} catch (er) {
|
|
@@ -54489,7 +54489,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
54489
54489
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
54490
54490
|
const hlo = require_high_level_opt();
|
|
54491
54491
|
const Unpack = require_unpack();
|
|
54492
|
-
const fs$
|
|
54492
|
+
const fs$25 = require("fs");
|
|
54493
54493
|
const fsm = require_fs_minipass();
|
|
54494
54494
|
const path$25 = require("path");
|
|
54495
54495
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -54519,7 +54519,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
54519
54519
|
const extractFileSync = (opt) => {
|
|
54520
54520
|
const u = new Unpack.Sync(opt);
|
|
54521
54521
|
const file = opt.file;
|
|
54522
|
-
const stat = fs$
|
|
54522
|
+
const stat = fs$25.statSync(file);
|
|
54523
54523
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
54524
54524
|
new fsm.ReadStreamSync(file, {
|
|
54525
54525
|
readSize,
|
|
@@ -54533,7 +54533,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
54533
54533
|
const p = new Promise((resolve, reject) => {
|
|
54534
54534
|
u.on("error", reject);
|
|
54535
54535
|
u.on("close", resolve);
|
|
54536
|
-
fs$
|
|
54536
|
+
fs$25.stat(file, (er, stat) => {
|
|
54537
54537
|
if (er) reject(er);
|
|
54538
54538
|
else {
|
|
54539
54539
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -54616,7 +54616,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
54616
54616
|
//#endregion
|
|
54617
54617
|
//#region ../../node_modules/fd-slicer/index.js
|
|
54618
54618
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
54619
|
-
var fs$
|
|
54619
|
+
var fs$24 = require("fs");
|
|
54620
54620
|
var util$9 = require("util");
|
|
54621
54621
|
var stream$1 = require("stream");
|
|
54622
54622
|
var Readable = stream$1.Readable;
|
|
@@ -54641,7 +54641,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54641
54641
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
54642
54642
|
var self = this;
|
|
54643
54643
|
self.pend.go(function(cb) {
|
|
54644
|
-
fs$
|
|
54644
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
54645
54645
|
cb();
|
|
54646
54646
|
callback(err, bytesRead, buffer);
|
|
54647
54647
|
});
|
|
@@ -54650,7 +54650,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54650
54650
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
54651
54651
|
var self = this;
|
|
54652
54652
|
self.pend.go(function(cb) {
|
|
54653
|
-
fs$
|
|
54653
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
54654
54654
|
cb();
|
|
54655
54655
|
callback(err, written, buffer);
|
|
54656
54656
|
});
|
|
@@ -54670,7 +54670,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54670
54670
|
self.refCount -= 1;
|
|
54671
54671
|
if (self.refCount > 0) return;
|
|
54672
54672
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
54673
|
-
if (self.autoClose) fs$
|
|
54673
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
54674
54674
|
function onCloseDone(err) {
|
|
54675
54675
|
if (err) self.emit("error", err);
|
|
54676
54676
|
else self.emit("close");
|
|
@@ -54701,7 +54701,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54701
54701
|
self.context.pend.go(function(cb) {
|
|
54702
54702
|
if (self.destroyed) return cb();
|
|
54703
54703
|
var buffer = new Buffer(toRead);
|
|
54704
|
-
fs$
|
|
54704
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
54705
54705
|
if (err) self.destroy(err);
|
|
54706
54706
|
else if (bytesRead === 0) {
|
|
54707
54707
|
self.destroyed = true;
|
|
@@ -54747,7 +54747,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
54747
54747
|
}
|
|
54748
54748
|
self.context.pend.go(function(cb) {
|
|
54749
54749
|
if (self.destroyed) return cb();
|
|
54750
|
-
fs$
|
|
54750
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
54751
54751
|
if (err) {
|
|
54752
54752
|
self.destroy();
|
|
54753
54753
|
cb();
|
|
@@ -56329,13 +56329,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
56329
56329
|
//#region ../../node_modules/readdir-glob/index.js
|
|
56330
56330
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
56331
56331
|
module.exports = readdirGlob;
|
|
56332
|
-
const fs$
|
|
56332
|
+
const fs$22 = require("fs");
|
|
56333
56333
|
const { EventEmitter } = require("events");
|
|
56334
56334
|
const { Minimatch } = require_minimatch$1();
|
|
56335
56335
|
const { resolve: resolve$12 } = require("path");
|
|
56336
56336
|
function readdir(dir, strict) {
|
|
56337
56337
|
return new Promise((resolve, reject) => {
|
|
56338
|
-
fs$
|
|
56338
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
56339
56339
|
if (err) switch (err.code) {
|
|
56340
56340
|
case "ENOTDIR":
|
|
56341
56341
|
if (strict) reject(err);
|
|
@@ -56357,7 +56357,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
56357
56357
|
}
|
|
56358
56358
|
function stat(file, followSymlinks) {
|
|
56359
56359
|
return new Promise((resolve, reject) => {
|
|
56360
|
-
(followSymlinks ? fs$
|
|
56360
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
56361
56361
|
if (err) switch (err.code) {
|
|
56362
56362
|
case "ENOENT":
|
|
56363
56363
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -62396,7 +62396,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
62396
62396
|
//#endregion
|
|
62397
62397
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
62398
62398
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
62399
|
-
var fs$
|
|
62399
|
+
var fs$21 = require("fs");
|
|
62400
62400
|
var polyfills = require_polyfills();
|
|
62401
62401
|
var legacy = require_legacy_streams();
|
|
62402
62402
|
var clone = require_clone$1();
|
|
@@ -62425,36 +62425,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62425
62425
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
62426
62426
|
console.error(m);
|
|
62427
62427
|
};
|
|
62428
|
-
if (!fs$
|
|
62429
|
-
publishQueue(fs$
|
|
62430
|
-
fs$
|
|
62428
|
+
if (!fs$21[gracefulQueue]) {
|
|
62429
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
62430
|
+
fs$21.close = (function(fs$close) {
|
|
62431
62431
|
function close(fd, cb) {
|
|
62432
|
-
return fs$close.call(fs$
|
|
62432
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
62433
62433
|
if (!err) resetQueue();
|
|
62434
62434
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
62435
62435
|
});
|
|
62436
62436
|
}
|
|
62437
62437
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
62438
62438
|
return close;
|
|
62439
|
-
})(fs$
|
|
62440
|
-
fs$
|
|
62439
|
+
})(fs$21.close);
|
|
62440
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
62441
62441
|
function closeSync(fd) {
|
|
62442
|
-
fs$closeSync.apply(fs$
|
|
62442
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
62443
62443
|
resetQueue();
|
|
62444
62444
|
}
|
|
62445
62445
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
62446
62446
|
return closeSync;
|
|
62447
|
-
})(fs$
|
|
62447
|
+
})(fs$21.closeSync);
|
|
62448
62448
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
62449
|
-
debug(fs$
|
|
62450
|
-
require("assert").equal(fs$
|
|
62449
|
+
debug(fs$21[gracefulQueue]);
|
|
62450
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
62451
62451
|
});
|
|
62452
62452
|
}
|
|
62453
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
62454
|
-
module.exports = patch(clone(fs$
|
|
62455
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
62456
|
-
module.exports = patch(fs$
|
|
62457
|
-
fs$
|
|
62453
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
62454
|
+
module.exports = patch(clone(fs$21));
|
|
62455
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
62456
|
+
module.exports = patch(fs$21);
|
|
62457
|
+
fs$21.__patched = true;
|
|
62458
62458
|
}
|
|
62459
62459
|
function patch(fs) {
|
|
62460
62460
|
polyfills(fs);
|
|
@@ -62709,23 +62709,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62709
62709
|
}
|
|
62710
62710
|
function enqueue(elem) {
|
|
62711
62711
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
62712
|
-
fs$
|
|
62712
|
+
fs$21[gracefulQueue].push(elem);
|
|
62713
62713
|
retry();
|
|
62714
62714
|
}
|
|
62715
62715
|
var retryTimer;
|
|
62716
62716
|
function resetQueue() {
|
|
62717
62717
|
var now = Date.now();
|
|
62718
|
-
for (var i = 0; i < fs$
|
|
62719
|
-
fs$
|
|
62720
|
-
fs$
|
|
62718
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
62719
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
62720
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
62721
62721
|
}
|
|
62722
62722
|
retry();
|
|
62723
62723
|
}
|
|
62724
62724
|
function retry() {
|
|
62725
62725
|
clearTimeout(retryTimer);
|
|
62726
62726
|
retryTimer = void 0;
|
|
62727
|
-
if (fs$
|
|
62728
|
-
var elem = fs$
|
|
62727
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
62728
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
62729
62729
|
var fn = elem[0];
|
|
62730
62730
|
var args = elem[1];
|
|
62731
62731
|
var err = elem[2];
|
|
@@ -62744,7 +62744,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62744
62744
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
62745
62745
|
debug("RETRY", fn.name, args);
|
|
62746
62746
|
fn.apply(null, args.concat([startTime]));
|
|
62747
|
-
} else fs$
|
|
62747
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
62748
62748
|
}
|
|
62749
62749
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
62750
62750
|
}
|
|
@@ -78141,7 +78141,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78141
78141
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
78142
78142
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
78143
78143
|
*/
|
|
78144
|
-
var fs$
|
|
78144
|
+
var fs$20 = require("fs");
|
|
78145
78145
|
var glob = require_readdir_glob();
|
|
78146
78146
|
var async = require_async();
|
|
78147
78147
|
var path$22 = require("path");
|
|
@@ -78218,7 +78218,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78218
78218
|
data.sourcePath = filepath;
|
|
78219
78219
|
task.data = data;
|
|
78220
78220
|
this._entriesCount++;
|
|
78221
|
-
if (data.stats && data.stats instanceof fs$
|
|
78221
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
78222
78222
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
78223
78223
|
if (task) {
|
|
78224
78224
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -78448,7 +78448,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78448
78448
|
callback();
|
|
78449
78449
|
return;
|
|
78450
78450
|
}
|
|
78451
|
-
fs$
|
|
78451
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
78452
78452
|
if (this._state.aborted) {
|
|
78453
78453
|
setImmediate(callback);
|
|
78454
78454
|
return;
|
|
@@ -78514,7 +78514,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
78514
78514
|
task.data.sourceType = "buffer";
|
|
78515
78515
|
task.source = Buffer.concat([]);
|
|
78516
78516
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
78517
|
-
var linkPath = fs$
|
|
78517
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
78518
78518
|
var dirName = path$22.dirname(task.filepath);
|
|
78519
78519
|
task.data.type = "symlink";
|
|
78520
78520
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -89512,7 +89512,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
89512
89512
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
89513
89513
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
89514
89514
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
89515
|
-
const { join: join$
|
|
89515
|
+
const { join: join$13, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
89516
89516
|
const isWindows = process.platform === "win32";
|
|
89517
89517
|
/* istanbul ignore next */
|
|
89518
89518
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -89542,7 +89542,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
89542
89542
|
};
|
|
89543
89543
|
const getPathPart = (raw, cmd) => {
|
|
89544
89544
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
89545
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
89545
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
89546
89546
|
};
|
|
89547
89547
|
const which = async (cmd, opt = {}) => {
|
|
89548
89548
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -90121,7 +90121,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
90121
90121
|
//#endregion
|
|
90122
90122
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
90123
90123
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
90124
|
-
const fs$
|
|
90124
|
+
const fs$18 = require("node:fs");
|
|
90125
90125
|
const os$2 = require("node:os");
|
|
90126
90126
|
const path$20 = require("node:path");
|
|
90127
90127
|
const ini = require_ini();
|
|
@@ -90130,8 +90130,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
90130
90130
|
const loadGitConfig = () => {
|
|
90131
90131
|
if (cachedConfig === null) try {
|
|
90132
90132
|
cachedConfig = {};
|
|
90133
|
-
if (fs$
|
|
90134
|
-
const configContent = fs$
|
|
90133
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
90134
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
90135
90135
|
cachedConfig = ini.parse(configContent);
|
|
90136
90136
|
}
|
|
90137
90137
|
} catch (error) {
|
|
@@ -90291,7 +90291,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
90291
90291
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
90292
90292
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
90293
90293
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
90294
|
-
const { join: join$
|
|
90294
|
+
const { join: join$12, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
90295
90295
|
const isWindows = process.platform === "win32";
|
|
90296
90296
|
/* istanbul ignore next */
|
|
90297
90297
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -90321,7 +90321,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
90321
90321
|
};
|
|
90322
90322
|
const getPathPart = (raw, cmd) => {
|
|
90323
90323
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
90324
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
90324
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$12(pathPart, cmd);
|
|
90325
90325
|
};
|
|
90326
90326
|
const which = async (cmd, opt = {}) => {
|
|
90327
90327
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -92000,7 +92000,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
92000
92000
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92001
92001
|
const process$1 = require("node:process");
|
|
92002
92002
|
const nodeOs = require("node:os");
|
|
92003
|
-
const fs$
|
|
92003
|
+
const fs$17 = require("node:fs");
|
|
92004
92004
|
function isMusl(file) {
|
|
92005
92005
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
92006
92006
|
}
|
|
@@ -92013,7 +92013,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
92013
92013
|
const LDD_PATH = "/usr/bin/ldd";
|
|
92014
92014
|
function getFamilyFromFilesystem() {
|
|
92015
92015
|
try {
|
|
92016
|
-
const content = fs$
|
|
92016
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
92017
92017
|
if (content.includes("musl")) return "musl";
|
|
92018
92018
|
if (content.includes("GNU C Library")) return "glibc";
|
|
92019
92019
|
return null;
|
|
@@ -92219,7 +92219,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92219
92219
|
//#endregion
|
|
92220
92220
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
92221
92221
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92222
|
-
const { join: join$
|
|
92222
|
+
const { join: join$11, basename: basename$4 } = require("path");
|
|
92223
92223
|
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);
|
|
92224
92224
|
const normalizeString = (pkg) => {
|
|
92225
92225
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -92242,9 +92242,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92242
92242
|
const clean = {};
|
|
92243
92243
|
let hasBins = false;
|
|
92244
92244
|
Object.keys(orig).forEach((binKey) => {
|
|
92245
|
-
const base = join$
|
|
92245
|
+
const base = join$11("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
92246
92246
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
92247
|
-
const binTarget = join$
|
|
92247
|
+
const binTarget = join$11("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
92248
92248
|
if (!binTarget) return;
|
|
92249
92249
|
clean[base] = binTarget;
|
|
92250
92250
|
hasBins = true;
|
|
@@ -92402,7 +92402,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
92402
92402
|
const spawn = require_spawn();
|
|
92403
92403
|
const { isWindows } = require_utils$3();
|
|
92404
92404
|
const pickManifest = require_lib$20();
|
|
92405
|
-
const fs$
|
|
92405
|
+
const fs$16 = require("fs/promises");
|
|
92406
92406
|
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));
|
|
92407
92407
|
const maybeShallow = (repo, opts) => {
|
|
92408
92408
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -92437,7 +92437,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
92437
92437
|
...opts,
|
|
92438
92438
|
cwd: target
|
|
92439
92439
|
});
|
|
92440
|
-
return fs$
|
|
92440
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
92441
92441
|
"config",
|
|
92442
92442
|
"--local",
|
|
92443
92443
|
"--add",
|
|
@@ -92475,7 +92475,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
92475
92475
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
92476
92476
|
};
|
|
92477
92477
|
const updateSubmodules = async (target, opts) => {
|
|
92478
|
-
if (!await fs$
|
|
92478
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
92479
92479
|
return spawn([
|
|
92480
92480
|
"submodule",
|
|
92481
92481
|
"update",
|
|
@@ -92500,7 +92500,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
92500
92500
|
...opts,
|
|
92501
92501
|
cwd: target
|
|
92502
92502
|
});
|
|
92503
|
-
return fs$
|
|
92503
|
+
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([
|
|
92504
92504
|
"rev-parse",
|
|
92505
92505
|
"--revs-only",
|
|
92506
92506
|
"HEAD"
|
|
@@ -92517,11 +92517,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
92517
92517
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
92518
92518
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92519
92519
|
const is = require_is();
|
|
92520
|
-
const { dirname: dirname$
|
|
92520
|
+
const { dirname: dirname$10 } = require("path");
|
|
92521
92521
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
92522
92522
|
while (true) {
|
|
92523
92523
|
if (await is({ cwd })) return cwd;
|
|
92524
|
-
const next = dirname$
|
|
92524
|
+
const next = dirname$10(cwd);
|
|
92525
92525
|
if (cwd === root || cwd === next) return null;
|
|
92526
92526
|
cwd = next;
|
|
92527
92527
|
}
|
|
@@ -92555,7 +92555,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
92555
92555
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
92556
92556
|
const valid = require_valid$3();
|
|
92557
92557
|
const clean = require_clean$1();
|
|
92558
|
-
const fs$
|
|
92558
|
+
const fs$15 = require("node:fs/promises");
|
|
92559
92559
|
const path$17 = require("node:path");
|
|
92560
92560
|
const { log } = require_lib$29();
|
|
92561
92561
|
const moduleBuiltin = require("node:module");
|
|
@@ -92839,13 +92839,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
92839
92839
|
}
|
|
92840
92840
|
}
|
|
92841
92841
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
92842
|
-
await fs$
|
|
92842
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
92843
92843
|
scripts.start = "node server.js";
|
|
92844
92844
|
data.scripts = scripts;
|
|
92845
92845
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
92846
92846
|
} catch {}
|
|
92847
92847
|
if (steps.includes("authors") && !data.contributors) try {
|
|
92848
|
-
data.contributors = (await fs$
|
|
92848
|
+
data.contributors = (await fs$15.readFile(path$17.join(pkg.path, "AUTHORS"), "utf8")).split(/\r?\n/g).map((line) => line.replace(/^\s*#.*$/, "").trim()).filter((line) => line);
|
|
92849
92849
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
92850
92850
|
} catch {}
|
|
92851
92851
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -92864,7 +92864,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
92864
92864
|
if (file.endsWith("README")) readmeFile = file;
|
|
92865
92865
|
}
|
|
92866
92866
|
if (readmeFile) {
|
|
92867
|
-
data.readme = await fs$
|
|
92867
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
92868
92868
|
data.readmeFilename = readmeFile;
|
|
92869
92869
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
92870
92870
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -92896,20 +92896,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
92896
92896
|
});
|
|
92897
92897
|
let head;
|
|
92898
92898
|
if (gitRoot) try {
|
|
92899
|
-
head = await fs$
|
|
92899
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
92900
92900
|
} catch (err) {}
|
|
92901
92901
|
let headData;
|
|
92902
92902
|
if (head) if (head.startsWith("ref: ")) {
|
|
92903
92903
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
92904
92904
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
92905
92905
|
try {
|
|
92906
|
-
headData = await fs$
|
|
92906
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
92907
92907
|
headData = headData.replace(/^ref: /, "").trim();
|
|
92908
92908
|
} catch (err) {}
|
|
92909
92909
|
if (!headData) {
|
|
92910
92910
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
92911
92911
|
try {
|
|
92912
|
-
let refs = await fs$
|
|
92912
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
92913
92913
|
if (refs) {
|
|
92914
92914
|
refs = refs.split("\n");
|
|
92915
92915
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -92930,12 +92930,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
92930
92930
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
92931
92931
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
92932
92932
|
if (!("types" in data || "typings" in data)) try {
|
|
92933
|
-
await fs$
|
|
92933
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
92934
92934
|
data.types = dts.split(path$17.sep).join("/");
|
|
92935
92935
|
} catch {}
|
|
92936
92936
|
}
|
|
92937
92937
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
92938
|
-
await fs$
|
|
92938
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
92939
92939
|
} catch {
|
|
92940
92940
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
92941
92941
|
}
|
|
@@ -94317,7 +94317,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94317
94317
|
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();
|
|
94318
94318
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
94319
94319
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$7, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
94320
|
-
const { dirname: dirname$
|
|
94320
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$10, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
94321
94321
|
const { fileURLToPath } = require("url");
|
|
94322
94322
|
const defaultOptions = {
|
|
94323
94323
|
dereference: false,
|
|
@@ -94391,7 +94391,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94391
94391
|
})]);
|
|
94392
94392
|
}
|
|
94393
94393
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
94394
|
-
const destParent = dirname$
|
|
94394
|
+
const destParent = dirname$9(dest);
|
|
94395
94395
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
94396
94396
|
await mkdir$7(destParent, { recursive: true });
|
|
94397
94397
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -94404,8 +94404,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94404
94404
|
);
|
|
94405
94405
|
}
|
|
94406
94406
|
async function checkParentPaths(src, srcStat, dest) {
|
|
94407
|
-
const srcParent = resolve$10(dirname$
|
|
94408
|
-
const destParent = resolve$10(dirname$
|
|
94407
|
+
const srcParent = resolve$10(dirname$9(src));
|
|
94408
|
+
const destParent = resolve$10(dirname$9(dest));
|
|
94409
94409
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
94410
94410
|
let destStat;
|
|
94411
94411
|
try {
|
|
@@ -94526,15 +94526,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94526
94526
|
const dir = await readdir$6(src);
|
|
94527
94527
|
for (let i = 0; i < dir.length; i++) {
|
|
94528
94528
|
const item = dir[i];
|
|
94529
|
-
const srcItem = join$
|
|
94530
|
-
const destItem = join$
|
|
94529
|
+
const srcItem = join$10(src, item);
|
|
94530
|
+
const destItem = join$10(dest, item);
|
|
94531
94531
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
94532
94532
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
94533
94533
|
}
|
|
94534
94534
|
}
|
|
94535
94535
|
async function onLink(destStat, src, dest) {
|
|
94536
94536
|
let resolvedSrc = await readlink(src);
|
|
94537
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
94537
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$9(src), resolvedSrc);
|
|
94538
94538
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
94539
94539
|
let resolvedDest;
|
|
94540
94540
|
try {
|
|
@@ -94545,7 +94545,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94545
94545
|
// istanbul ignore next: should not be possible
|
|
94546
94546
|
throw err;
|
|
94547
94547
|
}
|
|
94548
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
94548
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$9(dest), resolvedDest);
|
|
94549
94549
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
94550
94550
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
94551
94551
|
path: dest,
|
|
@@ -94569,7 +94569,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
94569
94569
|
//#endregion
|
|
94570
94570
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
94571
94571
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94572
|
-
const fs$
|
|
94572
|
+
const fs$14 = require("fs/promises");
|
|
94573
94573
|
const getOptions = require_get_options();
|
|
94574
94574
|
const node = require_node$1();
|
|
94575
94575
|
const polyfill = require_polyfill();
|
|
@@ -94584,20 +94584,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
94584
94584
|
"recursive"
|
|
94585
94585
|
] });
|
|
94586
94586
|
// istanbul ignore next
|
|
94587
|
-
return useNative ? fs$
|
|
94587
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
94588
94588
|
};
|
|
94589
94589
|
module.exports = cp;
|
|
94590
94590
|
}));
|
|
94591
94591
|
//#endregion
|
|
94592
94592
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
94593
94593
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94594
|
-
const { join: join$
|
|
94594
|
+
const { join: join$9, sep: sep$1 } = require("path");
|
|
94595
94595
|
const getOptions = require_get_options();
|
|
94596
94596
|
const { mkdir: mkdir$6, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
94597
94597
|
const withTempDir = async (root, fn, opts) => {
|
|
94598
94598
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
94599
94599
|
await mkdir$6(root, { recursive: true });
|
|
94600
|
-
const target = await mkdtemp(join$
|
|
94600
|
+
const target = await mkdtemp(join$9(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
94601
94601
|
let err;
|
|
94602
94602
|
let result;
|
|
94603
94603
|
try {
|
|
@@ -94620,10 +94620,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
94620
94620
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
94621
94621
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94622
94622
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
94623
|
-
const { join: join$
|
|
94623
|
+
const { join: join$8 } = require("path");
|
|
94624
94624
|
const readdirScoped = async (dir) => {
|
|
94625
94625
|
const results = [];
|
|
94626
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
94626
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$8(dir, item))) results.push(join$8(item, scopedItem));
|
|
94627
94627
|
else results.push(item);
|
|
94628
94628
|
return results;
|
|
94629
94629
|
};
|
|
@@ -94632,11 +94632,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
94632
94632
|
//#endregion
|
|
94633
94633
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
94634
94634
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94635
|
-
const { dirname: dirname$
|
|
94636
|
-
const fs$
|
|
94635
|
+
const { dirname: dirname$8, join: join$7, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
94636
|
+
const fs$13 = require("fs/promises");
|
|
94637
94637
|
const pathExists = async (path$45) => {
|
|
94638
94638
|
try {
|
|
94639
|
-
await fs$
|
|
94639
|
+
await fs$13.access(path$45);
|
|
94640
94640
|
return true;
|
|
94641
94641
|
} catch (er) {
|
|
94642
94642
|
return er.code !== "ENOENT";
|
|
@@ -94649,34 +94649,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
94649
94649
|
...options
|
|
94650
94650
|
};
|
|
94651
94651
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
94652
|
-
await fs$
|
|
94652
|
+
await fs$13.mkdir(dirname$8(destination), { recursive: true });
|
|
94653
94653
|
try {
|
|
94654
|
-
await fs$
|
|
94654
|
+
await fs$13.rename(source, destination);
|
|
94655
94655
|
} catch (error) {
|
|
94656
94656
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
94657
|
-
const sourceStat = await fs$
|
|
94657
|
+
const sourceStat = await fs$13.lstat(source);
|
|
94658
94658
|
if (sourceStat.isDirectory()) {
|
|
94659
|
-
const files = await fs$
|
|
94660
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
94659
|
+
const files = await fs$13.readdir(source);
|
|
94660
|
+
await Promise.all(files.map((file) => moveFile(join$7(source, file), join$7(destination, file), options, false, symlinks)));
|
|
94661
94661
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
94662
94662
|
source,
|
|
94663
94663
|
destination
|
|
94664
94664
|
});
|
|
94665
|
-
else await fs$
|
|
94665
|
+
else await fs$13.copyFile(source, destination);
|
|
94666
94666
|
} else throw error;
|
|
94667
94667
|
}
|
|
94668
94668
|
if (root) {
|
|
94669
94669
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
94670
|
-
let target = await fs$
|
|
94670
|
+
let target = await fs$13.readlink(symSource);
|
|
94671
94671
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
94672
94672
|
let targetStat = "file";
|
|
94673
94673
|
try {
|
|
94674
|
-
targetStat = await fs$
|
|
94674
|
+
targetStat = await fs$13.stat(resolve$9(dirname$8(symSource), target));
|
|
94675
94675
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
94676
94676
|
} catch {}
|
|
94677
|
-
await fs$
|
|
94677
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
94678
94678
|
}));
|
|
94679
|
-
await fs$
|
|
94679
|
+
await fs$13.rm(source, {
|
|
94680
94680
|
recursive: true,
|
|
94681
94681
|
force: true
|
|
94682
94682
|
});
|
|
@@ -94699,7 +94699,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
94699
94699
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
94700
94700
|
const crypto$2 = require("crypto");
|
|
94701
94701
|
const { withTempDir } = require_lib$16();
|
|
94702
|
-
const fs$
|
|
94702
|
+
const fs$12 = require("fs/promises");
|
|
94703
94703
|
const path$16 = require("path");
|
|
94704
94704
|
module.exports.mkdir = mktmpdir;
|
|
94705
94705
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -94709,12 +94709,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
94709
94709
|
async function mktmpdir(cache, opts = {}) {
|
|
94710
94710
|
const { tmpPrefix } = opts;
|
|
94711
94711
|
const tmpDir = path$16.join(cache, "tmp");
|
|
94712
|
-
await fs$
|
|
94712
|
+
await fs$12.mkdir(tmpDir, {
|
|
94713
94713
|
recursive: true,
|
|
94714
94714
|
owner: "inherit"
|
|
94715
94715
|
});
|
|
94716
94716
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
94717
|
-
return fs$
|
|
94717
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
94718
94718
|
}
|
|
94719
94719
|
module.exports.withTmp = withTmp;
|
|
94720
94720
|
function withTmp(cache, opts, cb) {
|
|
@@ -95094,8 +95094,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
95094
95094
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
95095
95095
|
const { Minipass } = require_commonjs$10();
|
|
95096
95096
|
const EE$4 = require("events").EventEmitter;
|
|
95097
|
-
const fs$
|
|
95098
|
-
const writev = fs$
|
|
95097
|
+
const fs$11 = require("fs");
|
|
95098
|
+
const writev = fs$11.writev;
|
|
95099
95099
|
const _autoClose = Symbol("_autoClose");
|
|
95100
95100
|
const _close = Symbol("_close");
|
|
95101
95101
|
const _ended = Symbol("_ended");
|
|
@@ -95155,7 +95155,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95155
95155
|
throw new TypeError("this is a readable stream");
|
|
95156
95156
|
}
|
|
95157
95157
|
[_open]() {
|
|
95158
|
-
fs$
|
|
95158
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
95159
95159
|
}
|
|
95160
95160
|
[_onopen](er, fd) {
|
|
95161
95161
|
if (er) this[_onerror](er);
|
|
@@ -95174,7 +95174,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95174
95174
|
const buf = this[_makeBuf]();
|
|
95175
95175
|
/* istanbul ignore if */
|
|
95176
95176
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
95177
|
-
fs$
|
|
95177
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
95178
95178
|
}
|
|
95179
95179
|
}
|
|
95180
95180
|
[_onread](er, br, buf) {
|
|
@@ -95186,7 +95186,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95186
95186
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
95187
95187
|
const fd = this[_fd];
|
|
95188
95188
|
this[_fd] = null;
|
|
95189
|
-
fs$
|
|
95189
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
95190
95190
|
}
|
|
95191
95191
|
}
|
|
95192
95192
|
[_onerror](er) {
|
|
@@ -95224,7 +95224,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95224
95224
|
[_open]() {
|
|
95225
95225
|
let threw = true;
|
|
95226
95226
|
try {
|
|
95227
|
-
this[_onopen](null, fs$
|
|
95227
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
95228
95228
|
threw = false;
|
|
95229
95229
|
} finally {
|
|
95230
95230
|
if (threw) this[_close]();
|
|
@@ -95238,7 +95238,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95238
95238
|
do {
|
|
95239
95239
|
const buf = this[_makeBuf]();
|
|
95240
95240
|
/* istanbul ignore next */
|
|
95241
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
95241
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
95242
95242
|
if (!this[_handleChunk](br, buf)) break;
|
|
95243
95243
|
} while (true);
|
|
95244
95244
|
this[_reading] = false;
|
|
@@ -95252,7 +95252,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95252
95252
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
95253
95253
|
const fd = this[_fd];
|
|
95254
95254
|
this[_fd] = null;
|
|
95255
|
-
fs$
|
|
95255
|
+
fs$11.closeSync(fd);
|
|
95256
95256
|
this.emit("close");
|
|
95257
95257
|
}
|
|
95258
95258
|
}
|
|
@@ -95297,7 +95297,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95297
95297
|
this.emit("error", er);
|
|
95298
95298
|
}
|
|
95299
95299
|
[_open]() {
|
|
95300
|
-
fs$
|
|
95300
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
95301
95301
|
}
|
|
95302
95302
|
[_onopen](er, fd) {
|
|
95303
95303
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -95332,7 +95332,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95332
95332
|
return true;
|
|
95333
95333
|
}
|
|
95334
95334
|
[_write](buf) {
|
|
95335
|
-
fs$
|
|
95335
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
95336
95336
|
}
|
|
95337
95337
|
[_onwrite](er, bw) {
|
|
95338
95338
|
if (er) this[_onerror](er);
|
|
@@ -95366,7 +95366,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95366
95366
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
95367
95367
|
const fd = this[_fd];
|
|
95368
95368
|
this[_fd] = null;
|
|
95369
|
-
fs$
|
|
95369
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
95370
95370
|
}
|
|
95371
95371
|
}
|
|
95372
95372
|
};
|
|
@@ -95374,28 +95374,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95374
95374
|
[_open]() {
|
|
95375
95375
|
let fd;
|
|
95376
95376
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
95377
|
-
fd = fs$
|
|
95377
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
95378
95378
|
} catch (er) {
|
|
95379
95379
|
if (er.code === "ENOENT") {
|
|
95380
95380
|
this[_flags] = "w";
|
|
95381
95381
|
return this[_open]();
|
|
95382
95382
|
} else throw er;
|
|
95383
95383
|
}
|
|
95384
|
-
else fd = fs$
|
|
95384
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
95385
95385
|
this[_onopen](null, fd);
|
|
95386
95386
|
}
|
|
95387
95387
|
[_close]() {
|
|
95388
95388
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
95389
95389
|
const fd = this[_fd];
|
|
95390
95390
|
this[_fd] = null;
|
|
95391
|
-
fs$
|
|
95391
|
+
fs$11.closeSync(fd);
|
|
95392
95392
|
this.emit("close");
|
|
95393
95393
|
}
|
|
95394
95394
|
}
|
|
95395
95395
|
[_write](buf) {
|
|
95396
95396
|
let threw = true;
|
|
95397
95397
|
try {
|
|
95398
|
-
this[_onwrite](null, fs$
|
|
95398
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
95399
95399
|
threw = false;
|
|
95400
95400
|
} finally {
|
|
95401
95401
|
if (threw) try {
|
|
@@ -95412,7 +95412,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
95412
95412
|
//#endregion
|
|
95413
95413
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
95414
95414
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
95415
|
-
const fs$
|
|
95415
|
+
const fs$10 = require("fs/promises");
|
|
95416
95416
|
const fsm = require_lib$15();
|
|
95417
95417
|
const ssri = require_lib$17();
|
|
95418
95418
|
const contentPath = require_path();
|
|
@@ -95423,13 +95423,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
95423
95423
|
const { size } = opts;
|
|
95424
95424
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
95425
95425
|
return {
|
|
95426
|
-
stat: size ? { size } : await fs$
|
|
95426
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
95427
95427
|
cpath,
|
|
95428
95428
|
sri
|
|
95429
95429
|
};
|
|
95430
95430
|
});
|
|
95431
95431
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
95432
|
-
const data = await fs$
|
|
95432
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
95433
95433
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
95434
95434
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
95435
95435
|
return data;
|
|
@@ -95452,7 +95452,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
95452
95452
|
Promise.resolve().then(async () => {
|
|
95453
95453
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
95454
95454
|
return {
|
|
95455
|
-
stat: size ? { size } : await fs$
|
|
95455
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
95456
95456
|
cpath,
|
|
95457
95457
|
sri
|
|
95458
95458
|
};
|
|
@@ -95464,7 +95464,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
95464
95464
|
module.exports.copy = copy;
|
|
95465
95465
|
function copy(cache, integrity, dest) {
|
|
95466
95466
|
return withContentSri(cache, integrity, (cpath) => {
|
|
95467
|
-
return fs$
|
|
95467
|
+
return fs$10.copyFile(cpath, dest);
|
|
95468
95468
|
});
|
|
95469
95469
|
}
|
|
95470
95470
|
module.exports.hasContent = hasContent;
|
|
@@ -95472,7 +95472,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
95472
95472
|
if (!integrity) return false;
|
|
95473
95473
|
try {
|
|
95474
95474
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
95475
|
-
const stat = await fs$
|
|
95475
|
+
const stat = await fs$10.stat(cpath);
|
|
95476
95476
|
return {
|
|
95477
95477
|
size: stat.size,
|
|
95478
95478
|
sri,
|
|
@@ -96112,7 +96112,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
96112
96112
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
96113
96113
|
const events = require("events");
|
|
96114
96114
|
const contentPath = require_path();
|
|
96115
|
-
const fs$
|
|
96115
|
+
const fs$9 = require("fs/promises");
|
|
96116
96116
|
const { moveFile } = require_lib$16();
|
|
96117
96117
|
const { Minipass } = require_commonjs$10();
|
|
96118
96118
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -96132,10 +96132,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
96132
96132
|
const tmp = await makeTmp(cache, opts);
|
|
96133
96133
|
const hash = sri[algo].toString();
|
|
96134
96134
|
try {
|
|
96135
|
-
await fs$
|
|
96135
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
96136
96136
|
await moveToDestination(tmp, cache, hash, opts);
|
|
96137
96137
|
} finally {
|
|
96138
|
-
if (!tmp.moved) await fs$
|
|
96138
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
96139
96139
|
recursive: true,
|
|
96140
96140
|
force: true
|
|
96141
96141
|
});
|
|
@@ -96189,7 +96189,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
96189
96189
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
96190
96190
|
return res;
|
|
96191
96191
|
} finally {
|
|
96192
|
-
if (!tmp.moved) await fs$
|
|
96192
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
96193
96193
|
recursive: true,
|
|
96194
96194
|
force: true
|
|
96195
96195
|
});
|
|
@@ -96229,7 +96229,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
96229
96229
|
}
|
|
96230
96230
|
async function makeTmp(cache, opts) {
|
|
96231
96231
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
96232
|
-
await fs$
|
|
96232
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
96233
96233
|
return {
|
|
96234
96234
|
target: tmpTarget,
|
|
96235
96235
|
moved: false
|
|
@@ -96239,7 +96239,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
96239
96239
|
const destination = contentPath(cache, sri);
|
|
96240
96240
|
const destDir = path$13.dirname(destination);
|
|
96241
96241
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
96242
|
-
moveOperations.set(destination, fs$
|
|
96242
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
96243
96243
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
96244
96244
|
tmp.moved = true;
|
|
96245
96245
|
return tmp.moved;
|
|
@@ -99697,14 +99697,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
99697
99697
|
//#endregion
|
|
99698
99698
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
99699
99699
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
99700
|
-
const fs$
|
|
99700
|
+
const fs$8 = require("fs/promises");
|
|
99701
99701
|
const contentPath = require_path();
|
|
99702
99702
|
const { hasContent } = require_read();
|
|
99703
99703
|
module.exports = rm;
|
|
99704
99704
|
async function rm(cache, integrity) {
|
|
99705
99705
|
const content = await hasContent(cache, integrity);
|
|
99706
99706
|
if (content && content.sri) {
|
|
99707
|
-
await fs$
|
|
99707
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
99708
99708
|
recursive: true,
|
|
99709
99709
|
force: true
|
|
99710
99710
|
});
|
|
@@ -99986,8 +99986,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
99986
99986
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
99987
99987
|
const { Minipass } = require_commonjs$10();
|
|
99988
99988
|
const EE$2 = require("events").EventEmitter;
|
|
99989
|
-
const fs$
|
|
99990
|
-
const writev = fs$
|
|
99989
|
+
const fs$7 = require("fs");
|
|
99990
|
+
const writev = fs$7.writev;
|
|
99991
99991
|
const _autoClose = Symbol("_autoClose");
|
|
99992
99992
|
const _close = Symbol("_close");
|
|
99993
99993
|
const _ended = Symbol("_ended");
|
|
@@ -100047,7 +100047,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100047
100047
|
throw new TypeError("this is a readable stream");
|
|
100048
100048
|
}
|
|
100049
100049
|
[_open]() {
|
|
100050
|
-
fs$
|
|
100050
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
100051
100051
|
}
|
|
100052
100052
|
[_onopen](er, fd) {
|
|
100053
100053
|
if (er) this[_onerror](er);
|
|
@@ -100066,7 +100066,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100066
100066
|
const buf = this[_makeBuf]();
|
|
100067
100067
|
/* istanbul ignore if */
|
|
100068
100068
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
100069
|
-
fs$
|
|
100069
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
100070
100070
|
}
|
|
100071
100071
|
}
|
|
100072
100072
|
[_onread](er, br, buf) {
|
|
@@ -100078,7 +100078,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100078
100078
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
100079
100079
|
const fd = this[_fd];
|
|
100080
100080
|
this[_fd] = null;
|
|
100081
|
-
fs$
|
|
100081
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
100082
100082
|
}
|
|
100083
100083
|
}
|
|
100084
100084
|
[_onerror](er) {
|
|
@@ -100116,7 +100116,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100116
100116
|
[_open]() {
|
|
100117
100117
|
let threw = true;
|
|
100118
100118
|
try {
|
|
100119
|
-
this[_onopen](null, fs$
|
|
100119
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
100120
100120
|
threw = false;
|
|
100121
100121
|
} finally {
|
|
100122
100122
|
if (threw) this[_close]();
|
|
@@ -100130,7 +100130,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100130
100130
|
do {
|
|
100131
100131
|
const buf = this[_makeBuf]();
|
|
100132
100132
|
/* istanbul ignore next */
|
|
100133
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
100133
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
100134
100134
|
if (!this[_handleChunk](br, buf)) break;
|
|
100135
100135
|
} while (true);
|
|
100136
100136
|
this[_reading] = false;
|
|
@@ -100144,7 +100144,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100144
100144
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
100145
100145
|
const fd = this[_fd];
|
|
100146
100146
|
this[_fd] = null;
|
|
100147
|
-
fs$
|
|
100147
|
+
fs$7.closeSync(fd);
|
|
100148
100148
|
this.emit("close");
|
|
100149
100149
|
}
|
|
100150
100150
|
}
|
|
@@ -100189,7 +100189,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100189
100189
|
this.emit("error", er);
|
|
100190
100190
|
}
|
|
100191
100191
|
[_open]() {
|
|
100192
|
-
fs$
|
|
100192
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
100193
100193
|
}
|
|
100194
100194
|
[_onopen](er, fd) {
|
|
100195
100195
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -100224,7 +100224,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100224
100224
|
return true;
|
|
100225
100225
|
}
|
|
100226
100226
|
[_write](buf) {
|
|
100227
|
-
fs$
|
|
100227
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
100228
100228
|
}
|
|
100229
100229
|
[_onwrite](er, bw) {
|
|
100230
100230
|
if (er) this[_onerror](er);
|
|
@@ -100258,7 +100258,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100258
100258
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
100259
100259
|
const fd = this[_fd];
|
|
100260
100260
|
this[_fd] = null;
|
|
100261
|
-
fs$
|
|
100261
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
100262
100262
|
}
|
|
100263
100263
|
}
|
|
100264
100264
|
};
|
|
@@ -100266,28 +100266,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100266
100266
|
[_open]() {
|
|
100267
100267
|
let fd;
|
|
100268
100268
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
100269
|
-
fd = fs$
|
|
100269
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
100270
100270
|
} catch (er) {
|
|
100271
100271
|
if (er.code === "ENOENT") {
|
|
100272
100272
|
this[_flags] = "w";
|
|
100273
100273
|
return this[_open]();
|
|
100274
100274
|
} else throw er;
|
|
100275
100275
|
}
|
|
100276
|
-
else fd = fs$
|
|
100276
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
100277
100277
|
this[_onopen](null, fd);
|
|
100278
100278
|
}
|
|
100279
100279
|
[_close]() {
|
|
100280
100280
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
100281
100281
|
const fd = this[_fd];
|
|
100282
100282
|
this[_fd] = null;
|
|
100283
|
-
fs$
|
|
100283
|
+
fs$7.closeSync(fd);
|
|
100284
100284
|
this.emit("close");
|
|
100285
100285
|
}
|
|
100286
100286
|
}
|
|
100287
100287
|
[_write](buf) {
|
|
100288
100288
|
let threw = true;
|
|
100289
100289
|
try {
|
|
100290
|
-
this[_onwrite](null, fs$
|
|
100290
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
100291
100291
|
threw = false;
|
|
100292
100292
|
} finally {
|
|
100293
100293
|
if (threw) try {
|
|
@@ -100304,7 +100304,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
100304
100304
|
//#endregion
|
|
100305
100305
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
100306
100306
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100307
|
-
const fs$
|
|
100307
|
+
const fs$6 = require("fs");
|
|
100308
100308
|
const path$9 = require("path");
|
|
100309
100309
|
const EE$1 = require("events").EventEmitter;
|
|
100310
100310
|
const normalizePackageBin = require_lib$21();
|
|
@@ -100360,7 +100360,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100360
100360
|
return this;
|
|
100361
100361
|
}
|
|
100362
100362
|
readPackageJson(pj) {
|
|
100363
|
-
fs$
|
|
100363
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
100364
100364
|
}
|
|
100365
100365
|
onPackageJson(pj, data) {
|
|
100366
100366
|
try {
|
|
@@ -100418,7 +100418,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100418
100418
|
}
|
|
100419
100419
|
readPackageJson(pj) {
|
|
100420
100420
|
try {
|
|
100421
|
-
this.onPackageJson(pj, fs$
|
|
100421
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
100422
100422
|
} catch {}
|
|
100423
100423
|
return this;
|
|
100424
100424
|
}
|
|
@@ -100437,7 +100437,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100437
100437
|
}
|
|
100438
100438
|
};
|
|
100439
100439
|
const readdirNodeModules = (nm, cb) => {
|
|
100440
|
-
fs$
|
|
100440
|
+
fs$6.readdir(nm, (er, set) => {
|
|
100441
100441
|
if (er) cb(er);
|
|
100442
100442
|
else {
|
|
100443
100443
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -100446,7 +100446,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100446
100446
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
100447
100447
|
let count = scopes.length;
|
|
100448
100448
|
scopes.forEach((scope) => {
|
|
100449
|
-
fs$
|
|
100449
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
100450
100450
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
100451
100451
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
100452
100452
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -100457,11 +100457,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100457
100457
|
});
|
|
100458
100458
|
};
|
|
100459
100459
|
const readdirNodeModulesSync = (nm) => {
|
|
100460
|
-
const set = fs$
|
|
100460
|
+
const set = fs$6.readdirSync(nm);
|
|
100461
100461
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
100462
100462
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
100463
100463
|
try {
|
|
100464
|
-
const pkgs = fs$
|
|
100464
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
100465
100465
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
100466
100466
|
} catch (er) {
|
|
100467
100467
|
return [scope];
|
|
@@ -100488,7 +100488,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100488
100488
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100489
100489
|
const bundled = require_lib$12();
|
|
100490
100490
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
100491
|
-
const { resolve: resolve$8, basename: basename$3, dirname: dirname$
|
|
100491
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$7 } = require("path");
|
|
100492
100492
|
const normalizePackageBin = require_lib$21();
|
|
100493
100493
|
const readPackage = ({ path: path$40, packageJsonCache }) => packageJsonCache.has(path$40) ? Promise.resolve(packageJsonCache.get(path$40)) : readFile$5(path$40).then((json) => {
|
|
100494
100494
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -100527,9 +100527,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100527
100527
|
}));
|
|
100528
100528
|
if (pkg) {
|
|
100529
100529
|
if (pkg.bin) {
|
|
100530
|
-
const dir = dirname$
|
|
100530
|
+
const dir = dirname$7(path$42);
|
|
100531
100531
|
const scope = basename$3(dir);
|
|
100532
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
100532
|
+
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
100533
100533
|
const binFiles = [];
|
|
100534
100534
|
Object.keys(pkg.bin).forEach((b) => {
|
|
100535
100535
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -105801,7 +105801,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
105801
105801
|
//#endregion
|
|
105802
105802
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
105803
105803
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105804
|
-
const fs$
|
|
105804
|
+
const fs$5 = require("fs");
|
|
105805
105805
|
const path$8 = require("path");
|
|
105806
105806
|
const EE = require("events").EventEmitter;
|
|
105807
105807
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -105840,7 +105840,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
105840
105840
|
return ret;
|
|
105841
105841
|
}
|
|
105842
105842
|
start() {
|
|
105843
|
-
fs$
|
|
105843
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
105844
105844
|
return this;
|
|
105845
105845
|
}
|
|
105846
105846
|
isIgnoreFile(e) {
|
|
@@ -105864,7 +105864,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
105864
105864
|
}
|
|
105865
105865
|
addIgnoreFile(file, then) {
|
|
105866
105866
|
const ig = path$8.resolve(this.path, file);
|
|
105867
|
-
fs$
|
|
105867
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
105868
105868
|
}
|
|
105869
105869
|
onReadIgnoreFile(file, data, then) {
|
|
105870
105870
|
const mmopt = {
|
|
@@ -105920,11 +105920,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
105920
105920
|
}
|
|
105921
105921
|
stat({ entry, file, dir }, then) {
|
|
105922
105922
|
const abs = this.path + "/" + entry;
|
|
105923
|
-
fs$
|
|
105923
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
105924
105924
|
if (lstatErr) this.emit("error", lstatErr);
|
|
105925
105925
|
else {
|
|
105926
105926
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
105927
|
-
if (this.follow && isSymbolicLink) fs$
|
|
105927
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
105928
105928
|
if (statErr) this.emit("error", statErr);
|
|
105929
105929
|
else this.onstat({
|
|
105930
105930
|
st: statResult,
|
|
@@ -105978,18 +105978,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
105978
105978
|
};
|
|
105979
105979
|
var WalkerSync = class WalkerSync extends Walker {
|
|
105980
105980
|
start() {
|
|
105981
|
-
this.onReaddir(fs$
|
|
105981
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
105982
105982
|
return this;
|
|
105983
105983
|
}
|
|
105984
105984
|
addIgnoreFile(file, then) {
|
|
105985
105985
|
const ig = path$8.resolve(this.path, file);
|
|
105986
|
-
this.onReadIgnoreFile(file, fs$
|
|
105986
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
105987
105987
|
}
|
|
105988
105988
|
stat({ entry, file, dir }, then) {
|
|
105989
105989
|
const abs = this.path + "/" + entry;
|
|
105990
|
-
let st = fs$
|
|
105990
|
+
let st = fs$5.lstatSync(abs);
|
|
105991
105991
|
const isSymbolicLink = st.isSymbolicLink();
|
|
105992
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
105992
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
105993
105993
|
this.onstat({
|
|
105994
105994
|
st,
|
|
105995
105995
|
entry,
|
|
@@ -106020,7 +106020,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
106020
106020
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106021
106021
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
106022
106022
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
106023
|
-
const { basename: basename$2, dirname: dirname$
|
|
106023
|
+
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$6, relative, resolve: resolve$6, sep } = require("path");
|
|
106024
106024
|
const { log } = require_lib$29();
|
|
106025
106025
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
106026
106026
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -106053,7 +106053,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106053
106053
|
const normalizePath = (path$37) => path$37.split("\\").join("/");
|
|
106054
106054
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
106055
106055
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
106056
|
-
const ignoreContent = readFile$4(join$
|
|
106056
|
+
const ignoreContent = readFile$4(join$6(root, file), { encoding: "utf8" });
|
|
106057
106057
|
result.push(ignoreContent);
|
|
106058
106058
|
break;
|
|
106059
106059
|
} catch (err) {
|
|
@@ -106062,8 +106062,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106062
106062
|
}
|
|
106063
106063
|
if (!rel) return result;
|
|
106064
106064
|
const firstRel = rel.split(sep, 1)[0];
|
|
106065
|
-
const newRoot = join$
|
|
106066
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
106065
|
+
const newRoot = join$6(root, firstRel);
|
|
106066
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$6(root, rel)), result);
|
|
106067
106067
|
};
|
|
106068
106068
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
106069
106069
|
constructor(tree, opts) {
|
|
@@ -106092,7 +106092,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106092
106092
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
106093
106093
|
// istanbul ignore else - this does nothing unless we need it to
|
|
106094
106094
|
if (path$38 !== prefix && workspaces.includes(path$38)) {
|
|
106095
|
-
const relpath = relative(options.prefix, dirname$
|
|
106095
|
+
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
106096
106096
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
106097
106097
|
} else if (path$38 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
106098
106098
|
}
|
|
@@ -106130,7 +106130,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106130
106130
|
let ignoreFiles = null;
|
|
106131
106131
|
if (this.tree.workspaces) {
|
|
106132
106132
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
106133
|
-
const entryPath = join$
|
|
106133
|
+
const entryPath = join$6(this.path, entry).replace(/\\/g, "/");
|
|
106134
106134
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
106135
106135
|
defaultRules,
|
|
106136
106136
|
"package.json",
|
|
@@ -106190,7 +106190,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106190
106190
|
if (file.endsWith("/*")) file += "*";
|
|
106191
106191
|
const inverse = `!${file}`;
|
|
106192
106192
|
try {
|
|
106193
|
-
const stat = lstat$1(join$
|
|
106193
|
+
const stat = lstat$1(join$6(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
106194
106194
|
if (stat.isFile()) {
|
|
106195
106195
|
strict.unshift(inverse);
|
|
106196
106196
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -106247,7 +106247,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106247
106247
|
walker.start();
|
|
106248
106248
|
});
|
|
106249
106249
|
const relativeFrom = relative(this.root, walker.path);
|
|
106250
|
-
for (const file of bundled) this.result.add(join$
|
|
106250
|
+
for (const file of bundled) this.result.add(join$6(relativeFrom, file).replace(/\\/g, "/"));
|
|
106251
106251
|
}
|
|
106252
106252
|
}
|
|
106253
106253
|
};
|
|
@@ -106271,7 +106271,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106271
106271
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
106272
106272
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106273
106273
|
const { log } = require_lib$29();
|
|
106274
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
106274
|
+
const { resolve: resolve$5, dirname: dirname$5, delimiter: delimiter$1 } = require("path");
|
|
106275
106275
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
106276
106276
|
const setPATH = (projectPath, binPaths, env) => {
|
|
106277
106277
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
|
|
@@ -106289,7 +106289,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
106289
106289
|
do {
|
|
106290
106290
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
106291
106291
|
pp = p;
|
|
106292
|
-
p = dirname$
|
|
106292
|
+
p = dirname$5(p);
|
|
106293
106293
|
} while (p !== pp);
|
|
106294
106294
|
pathArr.push(nodeGypPath, PATH);
|
|
106295
106295
|
const pathVal = pathArr.join(delimiter$1);
|
|
@@ -106357,8 +106357,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
106357
106357
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
106358
106358
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106359
106359
|
const util$2 = require("util");
|
|
106360
|
-
const fs$
|
|
106361
|
-
const { stat } = fs$
|
|
106360
|
+
const fs$4 = require("fs");
|
|
106361
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
106362
106362
|
async function isNodeGypPackage(path) {
|
|
106363
106363
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
106364
106364
|
}
|
|
@@ -117330,7 +117330,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
117330
117330
|
//#endregion
|
|
117331
117331
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
117332
117332
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
117333
|
-
const fs$
|
|
117333
|
+
const fs$3 = require("fs");
|
|
117334
117334
|
const npa = require_npa();
|
|
117335
117335
|
const { URL: URL$2 } = require("url");
|
|
117336
117336
|
const regFromURI = (uri, opts) => {
|
|
@@ -117370,7 +117370,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
117370
117370
|
};
|
|
117371
117371
|
const maybeReadFile = (file) => {
|
|
117372
117372
|
try {
|
|
117373
|
-
return fs$
|
|
117373
|
+
return fs$3.readFileSync(file, "utf8");
|
|
117374
117374
|
} catch (er) {
|
|
117375
117375
|
if (er.code !== "ENOENT") throw er;
|
|
117376
117376
|
return null;
|
|
@@ -133615,7 +133615,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
133615
133615
|
exports.Updater = void 0;
|
|
133616
133616
|
const models_1 = require_dist$4();
|
|
133617
133617
|
const debug_1 = __importDefault(require_src$1());
|
|
133618
|
-
const fs$
|
|
133618
|
+
const fs$2 = __importStar(require("fs"));
|
|
133619
133619
|
const path$7 = __importStar(require("path"));
|
|
133620
133620
|
const package_json_1 = require_package$1();
|
|
133621
133621
|
const config_1 = require_config$1();
|
|
@@ -133686,17 +133686,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
133686
133686
|
}
|
|
133687
133687
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
133688
133688
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
133689
|
-
await targetInfo.verify(fs$
|
|
133689
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
133690
133690
|
log("WRITE %s", targetPath);
|
|
133691
|
-
fs$
|
|
133691
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
133692
133692
|
});
|
|
133693
133693
|
return targetPath;
|
|
133694
133694
|
}
|
|
133695
133695
|
async findCachedTarget(targetInfo, filePath) {
|
|
133696
133696
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
133697
133697
|
try {
|
|
133698
|
-
if (fs$
|
|
133699
|
-
await targetInfo.verify(fs$
|
|
133698
|
+
if (fs$2.existsSync(filePath)) {
|
|
133699
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
133700
133700
|
return filePath;
|
|
133701
133701
|
}
|
|
133702
133702
|
} catch (error) {
|
|
@@ -133706,7 +133706,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
133706
133706
|
loadLocalMetadata(fileName) {
|
|
133707
133707
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
133708
133708
|
log("READ %s", filePath);
|
|
133709
|
-
return fs$
|
|
133709
|
+
return fs$2.readFileSync(filePath);
|
|
133710
133710
|
}
|
|
133711
133711
|
async loadRoot() {
|
|
133712
133712
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -133824,7 +133824,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
133824
133824
|
try {
|
|
133825
133825
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
133826
133826
|
log("WRITE %s", filePath);
|
|
133827
|
-
fs$
|
|
133827
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
133828
133828
|
} catch (error) {
|
|
133829
133829
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
133830
133830
|
}
|
|
@@ -135640,7 +135640,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
135640
135640
|
//#endregion
|
|
135641
135641
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
135642
135642
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
135643
|
-
const { basename: basename$1, dirname: dirname$
|
|
135643
|
+
const { basename: basename$1, dirname: dirname$4 } = require("node:path");
|
|
135644
135644
|
const { rm: rm$4, mkdir: mkdir$3 } = require("node:fs/promises");
|
|
135645
135645
|
const PackageJson = require_lib$18();
|
|
135646
135646
|
const cacache = require_lib$14();
|
|
@@ -135689,7 +135689,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
135689
135689
|
this.npmBin = opts.npmBin || "npm";
|
|
135690
135690
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
135691
135691
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
135692
|
-
`--cache=${dirname$
|
|
135692
|
+
`--cache=${dirname$4(this.cache)}`,
|
|
135693
135693
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
135694
135694
|
`--prefer-online=${!!this.preferOnline}`,
|
|
135695
135695
|
`--offline=${!!this.offline}`,
|
|
@@ -135845,7 +135845,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
135845
135845
|
}));
|
|
135846
135846
|
}
|
|
135847
135847
|
async tarballFile(dest) {
|
|
135848
|
-
await mkdir$3(dirname$
|
|
135848
|
+
await mkdir$3(dirname$4(dest), { recursive: true });
|
|
135849
135849
|
return this.#toFile(dest);
|
|
135850
135850
|
}
|
|
135851
135851
|
#extract(dest, tarball) {
|
|
@@ -144266,7 +144266,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
144266
144266
|
}
|
|
144267
144267
|
})();
|
|
144268
144268
|
}));
|
|
144269
|
-
|
|
144269
|
+
//#endregion
|
|
144270
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
144271
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
144270
144272
|
const { promisify } = require("util");
|
|
144271
144273
|
const path$3 = require("path");
|
|
144272
144274
|
const { createHash } = require("crypto");
|
|
@@ -144718,12 +144720,13 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
144718
144720
|
response.writeHead(response.statusCode || 200, headers);
|
|
144719
144721
|
stream.pipe(response);
|
|
144720
144722
|
};
|
|
144721
|
-
}))
|
|
144723
|
+
}));
|
|
144722
144724
|
require_semver();
|
|
144723
144725
|
require_lib();
|
|
144726
|
+
require_src();
|
|
144724
144727
|
//#endregion
|
|
144725
144728
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
144726
|
-
const { join: join$
|
|
144729
|
+
const { join: join$4 } = node_path.default;
|
|
144727
144730
|
//#endregion
|
|
144728
144731
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
144729
144732
|
const localPluginsMap = /* @__PURE__ */ new Map();
|