@pipelab/plugin-nvpatch 1.0.0-beta.19 → 1.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +338 -335
- package/dist/index.mjs +11 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -793,7 +793,7 @@ const handleCommand$1 = (filePath, rawArguments, rawOptions) => {
|
|
|
793
793
|
var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
794
794
|
module.exports = isexe;
|
|
795
795
|
isexe.sync = sync;
|
|
796
|
-
var fs$
|
|
796
|
+
var fs$38 = require("fs");
|
|
797
797
|
function checkPathExt(path, options) {
|
|
798
798
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
799
799
|
if (!pathext) return true;
|
|
@@ -810,12 +810,12 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
810
810
|
return checkPathExt(path, options);
|
|
811
811
|
}
|
|
812
812
|
function isexe(path, options, cb) {
|
|
813
|
-
fs$
|
|
813
|
+
fs$38.stat(path, function(er, stat) {
|
|
814
814
|
cb(er, er ? false : checkStat(stat, path, options));
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
function sync(path, options) {
|
|
818
|
-
return checkStat(fs$
|
|
818
|
+
return checkStat(fs$38.statSync(path), path, options);
|
|
819
819
|
}
|
|
820
820
|
}));
|
|
821
821
|
//#endregion
|
|
@@ -823,14 +823,14 @@ var require_windows = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
823
823
|
var require_mode = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
824
824
|
module.exports = isexe;
|
|
825
825
|
isexe.sync = sync;
|
|
826
|
-
var fs$
|
|
826
|
+
var fs$37 = require("fs");
|
|
827
827
|
function isexe(path, options, cb) {
|
|
828
|
-
fs$
|
|
828
|
+
fs$37.stat(path, function(er, stat) {
|
|
829
829
|
cb(er, er ? false : checkStat(stat, options));
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
function sync(path, options) {
|
|
833
|
-
return checkStat(fs$
|
|
833
|
+
return checkStat(fs$37.statSync(path), options);
|
|
834
834
|
}
|
|
835
835
|
function checkStat(stat, options) {
|
|
836
836
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -1045,16 +1045,16 @@ var require_shebang_command = /* @__PURE__ */ require_chunk.__commonJSMin(((expo
|
|
|
1045
1045
|
//#endregion
|
|
1046
1046
|
//#region ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
1047
1047
|
var require_readShebang = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
1048
|
-
const fs$
|
|
1048
|
+
const fs$36 = require("fs");
|
|
1049
1049
|
const shebangCommand = require_shebang_command();
|
|
1050
1050
|
function readShebang(command) {
|
|
1051
1051
|
const size = 150;
|
|
1052
1052
|
const buffer = Buffer.alloc(size);
|
|
1053
1053
|
let fd;
|
|
1054
1054
|
try {
|
|
1055
|
-
fd = fs$
|
|
1056
|
-
fs$
|
|
1057
|
-
fs$
|
|
1055
|
+
fd = fs$36.openSync(command, "r");
|
|
1056
|
+
fs$36.readSync(fd, buffer, 0, size, 0);
|
|
1057
|
+
fs$36.closeSync(fd);
|
|
1058
1058
|
} catch (e) {}
|
|
1059
1059
|
return shebangCommand(buffer.toString());
|
|
1060
1060
|
}
|
|
@@ -9641,8 +9641,7 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
9641
9641
|
completed: false
|
|
9642
9642
|
}
|
|
9643
9643
|
},
|
|
9644
|
-
plugins: DEFAULT_PLUGINS
|
|
9645
|
-
isInternalMigrationBannerClosed: false
|
|
9644
|
+
plugins: DEFAULT_PLUGINS
|
|
9646
9645
|
});
|
|
9647
9646
|
settingsMigratorInternal.createMigrations({
|
|
9648
9647
|
defaultValue: defaultAppSettings,
|
|
@@ -9693,12 +9692,12 @@ settingsMigratorInternal.createMigrations({
|
|
|
9693
9692
|
createMigration({
|
|
9694
9693
|
version: "6.0.0",
|
|
9695
9694
|
up: (state) => {
|
|
9696
|
-
const { cacheFolder
|
|
9695
|
+
const { cacheFolder, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
|
|
9697
9696
|
return {
|
|
9698
9697
|
...rest,
|
|
9698
|
+
cacheFolder,
|
|
9699
9699
|
agents: [],
|
|
9700
|
-
plugins: DEFAULT_PLUGINS
|
|
9701
|
-
isInternalMigrationBannerClosed: false
|
|
9700
|
+
plugins: DEFAULT_PLUGINS
|
|
9702
9701
|
};
|
|
9703
9702
|
}
|
|
9704
9703
|
}),
|
|
@@ -10051,7 +10050,8 @@ object({
|
|
|
10051
10050
|
enabled: boolean(),
|
|
10052
10051
|
description: string()
|
|
10053
10052
|
})),
|
|
10054
|
-
|
|
10053
|
+
cacheFolder: optional(string()),
|
|
10054
|
+
tempFolder: optional(string())
|
|
10055
10055
|
});
|
|
10056
10056
|
const ConnectionValidator = looseObject({
|
|
10057
10057
|
id: string(),
|
|
@@ -62691,7 +62691,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62691
62691
|
const { Minipass } = require_minipass$4();
|
|
62692
62692
|
const Pax = require_pax();
|
|
62693
62693
|
const Header = require_header();
|
|
62694
|
-
const fs$
|
|
62694
|
+
const fs$35 = require("fs");
|
|
62695
62695
|
const path$33 = require("path");
|
|
62696
62696
|
const normPath = require_normalize_windows_path();
|
|
62697
62697
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -62779,7 +62779,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62779
62779
|
return super.emit(ev, ...data);
|
|
62780
62780
|
}
|
|
62781
62781
|
[LSTAT]() {
|
|
62782
|
-
fs$
|
|
62782
|
+
fs$35.lstat(this.absolute, (er, stat) => {
|
|
62783
62783
|
if (er) return this.emit("error", er);
|
|
62784
62784
|
this[ONLSTAT](stat);
|
|
62785
62785
|
});
|
|
@@ -62844,7 +62844,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62844
62844
|
this.end();
|
|
62845
62845
|
}
|
|
62846
62846
|
[SYMLINK]() {
|
|
62847
|
-
fs$
|
|
62847
|
+
fs$35.readlink(this.absolute, (er, linkpath) => {
|
|
62848
62848
|
if (er) return this.emit("error", er);
|
|
62849
62849
|
this[ONREADLINK](linkpath);
|
|
62850
62850
|
});
|
|
@@ -62875,7 +62875,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62875
62875
|
this[OPENFILE]();
|
|
62876
62876
|
}
|
|
62877
62877
|
[OPENFILE]() {
|
|
62878
|
-
fs$
|
|
62878
|
+
fs$35.open(this.absolute, "r", (er, fd) => {
|
|
62879
62879
|
if (er) return this.emit("error", er);
|
|
62880
62880
|
this[ONOPENFILE](fd);
|
|
62881
62881
|
});
|
|
@@ -62895,13 +62895,13 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62895
62895
|
}
|
|
62896
62896
|
[READ]() {
|
|
62897
62897
|
const { fd, buf, offset, length, pos } = this;
|
|
62898
|
-
fs$
|
|
62898
|
+
fs$35.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
62899
62899
|
if (er) return this[CLOSE](() => this.emit("error", er));
|
|
62900
62900
|
this[ONREAD](bytesRead);
|
|
62901
62901
|
});
|
|
62902
62902
|
}
|
|
62903
62903
|
[CLOSE](cb) {
|
|
62904
|
-
fs$
|
|
62904
|
+
fs$35.close(this.fd, cb);
|
|
62905
62905
|
}
|
|
62906
62906
|
[ONREAD](bytesRead) {
|
|
62907
62907
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -62957,19 +62957,19 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62957
62957
|
});
|
|
62958
62958
|
var WriteEntrySync = class extends WriteEntry {
|
|
62959
62959
|
[LSTAT]() {
|
|
62960
|
-
this[ONLSTAT](fs$
|
|
62960
|
+
this[ONLSTAT](fs$35.lstatSync(this.absolute));
|
|
62961
62961
|
}
|
|
62962
62962
|
[SYMLINK]() {
|
|
62963
|
-
this[ONREADLINK](fs$
|
|
62963
|
+
this[ONREADLINK](fs$35.readlinkSync(this.absolute));
|
|
62964
62964
|
}
|
|
62965
62965
|
[OPENFILE]() {
|
|
62966
|
-
this[ONOPENFILE](fs$
|
|
62966
|
+
this[ONOPENFILE](fs$35.openSync(this.absolute, "r"));
|
|
62967
62967
|
}
|
|
62968
62968
|
[READ]() {
|
|
62969
62969
|
let threw = true;
|
|
62970
62970
|
try {
|
|
62971
62971
|
const { fd, buf, offset, length, pos } = this;
|
|
62972
|
-
const bytesRead = fs$
|
|
62972
|
+
const bytesRead = fs$35.readSync(fd, buf, offset, length, pos);
|
|
62973
62973
|
this[ONREAD](bytesRead);
|
|
62974
62974
|
threw = false;
|
|
62975
62975
|
} finally {
|
|
@@ -62982,7 +62982,7 @@ var require_write_entry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
62982
62982
|
cb();
|
|
62983
62983
|
}
|
|
62984
62984
|
[CLOSE](cb) {
|
|
62985
|
-
fs$
|
|
62985
|
+
fs$35.closeSync(this.fd);
|
|
62986
62986
|
cb();
|
|
62987
62987
|
}
|
|
62988
62988
|
};
|
|
@@ -63379,7 +63379,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
63379
63379
|
const WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
63380
63380
|
const WRITE = Symbol("write");
|
|
63381
63381
|
const ONDRAIN = Symbol("ondrain");
|
|
63382
|
-
const fs$
|
|
63382
|
+
const fs$34 = require("fs");
|
|
63383
63383
|
const path$32 = require("path");
|
|
63384
63384
|
const warner = require_warn_mixin();
|
|
63385
63385
|
const normPath = require_normalize_windows_path();
|
|
@@ -63468,7 +63468,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
63468
63468
|
[STAT](job) {
|
|
63469
63469
|
job.pending = true;
|
|
63470
63470
|
this[JOBS] += 1;
|
|
63471
|
-
fs$
|
|
63471
|
+
fs$34[this.follow ? "stat" : "lstat"](job.absolute, (er, stat) => {
|
|
63472
63472
|
job.pending = false;
|
|
63473
63473
|
this[JOBS] -= 1;
|
|
63474
63474
|
if (er) this.emit("error", er);
|
|
@@ -63484,7 +63484,7 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
63484
63484
|
[READDIR](job) {
|
|
63485
63485
|
job.pending = true;
|
|
63486
63486
|
this[JOBS] += 1;
|
|
63487
|
-
fs$
|
|
63487
|
+
fs$34.readdir(job.absolute, (er, entries) => {
|
|
63488
63488
|
job.pending = false;
|
|
63489
63489
|
this[JOBS] -= 1;
|
|
63490
63490
|
if (er) return this.emit("error", er);
|
|
@@ -63602,10 +63602,10 @@ var require_pack$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
63602
63602
|
resume() {}
|
|
63603
63603
|
[STAT](job) {
|
|
63604
63604
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
63605
|
-
this[ONSTAT](job, fs$
|
|
63605
|
+
this[ONSTAT](job, fs$34[stat](job.absolute));
|
|
63606
63606
|
}
|
|
63607
63607
|
[READDIR](job, stat) {
|
|
63608
|
-
this[ONREADDIR](job, fs$
|
|
63608
|
+
this[ONREADDIR](job, fs$34.readdirSync(job.absolute));
|
|
63609
63609
|
}
|
|
63610
63610
|
[PIPE](job) {
|
|
63611
63611
|
const source = job.entry;
|
|
@@ -64061,8 +64061,8 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
|
|
|
64061
64061
|
var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
64062
64062
|
const MiniPass = require_minipass$2();
|
|
64063
64063
|
const EE$11 = require("events").EventEmitter;
|
|
64064
|
-
const fs$
|
|
64065
|
-
let writev = fs$
|
|
64064
|
+
const fs$33 = require("fs");
|
|
64065
|
+
let writev = fs$33.writev;
|
|
64066
64066
|
/* istanbul ignore next */
|
|
64067
64067
|
if (!writev) {
|
|
64068
64068
|
const binding = process.binding("fs");
|
|
@@ -64133,7 +64133,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64133
64133
|
throw new TypeError("this is a readable stream");
|
|
64134
64134
|
}
|
|
64135
64135
|
[_open]() {
|
|
64136
|
-
fs$
|
|
64136
|
+
fs$33.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
64137
64137
|
}
|
|
64138
64138
|
[_onopen](er, fd) {
|
|
64139
64139
|
if (er) this[_onerror](er);
|
|
@@ -64152,7 +64152,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64152
64152
|
const buf = this[_makeBuf]();
|
|
64153
64153
|
/* istanbul ignore if */
|
|
64154
64154
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
64155
|
-
fs$
|
|
64155
|
+
fs$33.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => this[_onread](er, br, buf));
|
|
64156
64156
|
}
|
|
64157
64157
|
}
|
|
64158
64158
|
[_onread](er, br, buf) {
|
|
@@ -64164,7 +64164,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64164
64164
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
64165
64165
|
const fd = this[_fd];
|
|
64166
64166
|
this[_fd] = null;
|
|
64167
|
-
fs$
|
|
64167
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
64168
64168
|
}
|
|
64169
64169
|
}
|
|
64170
64170
|
[_onerror](er) {
|
|
@@ -64202,7 +64202,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64202
64202
|
[_open]() {
|
|
64203
64203
|
let threw = true;
|
|
64204
64204
|
try {
|
|
64205
|
-
this[_onopen](null, fs$
|
|
64205
|
+
this[_onopen](null, fs$33.openSync(this[_path], "r"));
|
|
64206
64206
|
threw = false;
|
|
64207
64207
|
} finally {
|
|
64208
64208
|
if (threw) this[_close]();
|
|
@@ -64216,7 +64216,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64216
64216
|
do {
|
|
64217
64217
|
const buf = this[_makeBuf]();
|
|
64218
64218
|
/* istanbul ignore next */
|
|
64219
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
64219
|
+
const br = buf.length === 0 ? 0 : fs$33.readSync(this[_fd], buf, 0, buf.length, null);
|
|
64220
64220
|
if (!this[_handleChunk](br, buf)) break;
|
|
64221
64221
|
} while (true);
|
|
64222
64222
|
this[_reading] = false;
|
|
@@ -64230,7 +64230,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64230
64230
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
64231
64231
|
const fd = this[_fd];
|
|
64232
64232
|
this[_fd] = null;
|
|
64233
|
-
fs$
|
|
64233
|
+
fs$33.closeSync(fd);
|
|
64234
64234
|
this.emit("close");
|
|
64235
64235
|
}
|
|
64236
64236
|
}
|
|
@@ -64275,7 +64275,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64275
64275
|
this.emit("error", er);
|
|
64276
64276
|
}
|
|
64277
64277
|
[_open]() {
|
|
64278
|
-
fs$
|
|
64278
|
+
fs$33.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
64279
64279
|
}
|
|
64280
64280
|
[_onopen](er, fd) {
|
|
64281
64281
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -64310,7 +64310,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64310
64310
|
return true;
|
|
64311
64311
|
}
|
|
64312
64312
|
[_write](buf) {
|
|
64313
|
-
fs$
|
|
64313
|
+
fs$33.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
64314
64314
|
}
|
|
64315
64315
|
[_onwrite](er, bw) {
|
|
64316
64316
|
if (er) this[_onerror](er);
|
|
@@ -64344,7 +64344,7 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64344
64344
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
64345
64345
|
const fd = this[_fd];
|
|
64346
64346
|
this[_fd] = null;
|
|
64347
|
-
fs$
|
|
64347
|
+
fs$33.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
64348
64348
|
}
|
|
64349
64349
|
}
|
|
64350
64350
|
};
|
|
@@ -64352,28 +64352,28 @@ var require_fs_minipass = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
64352
64352
|
[_open]() {
|
|
64353
64353
|
let fd;
|
|
64354
64354
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
64355
|
-
fd = fs$
|
|
64355
|
+
fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
64356
64356
|
} catch (er) {
|
|
64357
64357
|
if (er.code === "ENOENT") {
|
|
64358
64358
|
this[_flags] = "w";
|
|
64359
64359
|
return this[_open]();
|
|
64360
64360
|
} else throw er;
|
|
64361
64361
|
}
|
|
64362
|
-
else fd = fs$
|
|
64362
|
+
else fd = fs$33.openSync(this[_path], this[_flags], this[_mode]);
|
|
64363
64363
|
this[_onopen](null, fd);
|
|
64364
64364
|
}
|
|
64365
64365
|
[_close]() {
|
|
64366
64366
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
64367
64367
|
const fd = this[_fd];
|
|
64368
64368
|
this[_fd] = null;
|
|
64369
|
-
fs$
|
|
64369
|
+
fs$33.closeSync(fd);
|
|
64370
64370
|
this.emit("close");
|
|
64371
64371
|
}
|
|
64372
64372
|
}
|
|
64373
64373
|
[_write](buf) {
|
|
64374
64374
|
let threw = true;
|
|
64375
64375
|
try {
|
|
64376
|
-
this[_onwrite](null, fs$
|
|
64376
|
+
this[_onwrite](null, fs$33.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
64377
64377
|
threw = false;
|
|
64378
64378
|
} finally {
|
|
64379
64379
|
if (threw) try {
|
|
@@ -64738,7 +64738,7 @@ while (this[PROCESSENTRY](this[QUEUE].shift()));
|
|
|
64738
64738
|
var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
64739
64739
|
const hlo = require_high_level_opt();
|
|
64740
64740
|
const Parser = require_parse$3();
|
|
64741
|
-
const fs$
|
|
64741
|
+
const fs$32 = require("fs");
|
|
64742
64742
|
const fsm = require_fs_minipass();
|
|
64743
64743
|
const path$31 = require("path");
|
|
64744
64744
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -64779,15 +64779,15 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
64779
64779
|
let threw = true;
|
|
64780
64780
|
let fd;
|
|
64781
64781
|
try {
|
|
64782
|
-
const stat = fs$
|
|
64782
|
+
const stat = fs$32.statSync(file);
|
|
64783
64783
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
64784
|
-
if (stat.size < readSize) p.end(fs$
|
|
64784
|
+
if (stat.size < readSize) p.end(fs$32.readFileSync(file));
|
|
64785
64785
|
else {
|
|
64786
64786
|
let pos = 0;
|
|
64787
64787
|
const buf = Buffer.allocUnsafe(readSize);
|
|
64788
|
-
fd = fs$
|
|
64788
|
+
fd = fs$32.openSync(file, "r");
|
|
64789
64789
|
while (pos < stat.size) {
|
|
64790
|
-
const bytesRead = fs$
|
|
64790
|
+
const bytesRead = fs$32.readSync(fd, buf, 0, readSize, pos);
|
|
64791
64791
|
pos += bytesRead;
|
|
64792
64792
|
p.write(buf.slice(0, bytesRead));
|
|
64793
64793
|
}
|
|
@@ -64796,7 +64796,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
64796
64796
|
threw = false;
|
|
64797
64797
|
} finally {
|
|
64798
64798
|
if (threw && fd) try {
|
|
64799
|
-
fs$
|
|
64799
|
+
fs$32.closeSync(fd);
|
|
64800
64800
|
} catch (er) {}
|
|
64801
64801
|
}
|
|
64802
64802
|
};
|
|
@@ -64807,7 +64807,7 @@ var require_list = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
64807
64807
|
const p = new Promise((resolve, reject) => {
|
|
64808
64808
|
parse.on("error", reject);
|
|
64809
64809
|
parse.on("end", resolve);
|
|
64810
|
-
fs$
|
|
64810
|
+
fs$32.stat(file, (er, stat) => {
|
|
64811
64811
|
if (er) reject(er);
|
|
64812
64812
|
else {
|
|
64813
64813
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -64899,7 +64899,7 @@ var require_create = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
64899
64899
|
var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
64900
64900
|
const hlo = require_high_level_opt();
|
|
64901
64901
|
const Pack = require_pack$1();
|
|
64902
|
-
const fs$
|
|
64902
|
+
const fs$31 = require("fs");
|
|
64903
64903
|
const fsm = require_fs_minipass();
|
|
64904
64904
|
const t = require_list();
|
|
64905
64905
|
const path$29 = require("path");
|
|
@@ -64919,16 +64919,16 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64919
64919
|
let position;
|
|
64920
64920
|
try {
|
|
64921
64921
|
try {
|
|
64922
|
-
fd = fs$
|
|
64922
|
+
fd = fs$31.openSync(opt.file, "r+");
|
|
64923
64923
|
} catch (er) {
|
|
64924
|
-
if (er.code === "ENOENT") fd = fs$
|
|
64924
|
+
if (er.code === "ENOENT") fd = fs$31.openSync(opt.file, "w+");
|
|
64925
64925
|
else throw er;
|
|
64926
64926
|
}
|
|
64927
|
-
const st = fs$
|
|
64927
|
+
const st = fs$31.fstatSync(fd);
|
|
64928
64928
|
const headBuf = Buffer.alloc(512);
|
|
64929
64929
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
64930
64930
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
64931
|
-
bytes = fs$
|
|
64931
|
+
bytes = fs$31.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
64932
64932
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) throw new Error("cannot append to compressed archives");
|
|
64933
64933
|
if (!bytes) break POSITION;
|
|
64934
64934
|
}
|
|
@@ -64943,7 +64943,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64943
64943
|
streamSync(opt, p, position, fd, files);
|
|
64944
64944
|
} finally {
|
|
64945
64945
|
if (threw) try {
|
|
64946
|
-
fs$
|
|
64946
|
+
fs$31.closeSync(fd);
|
|
64947
64947
|
} catch (er) {}
|
|
64948
64948
|
}
|
|
64949
64949
|
};
|
|
@@ -64960,7 +64960,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64960
64960
|
const p = new Pack(opt);
|
|
64961
64961
|
const getPos = (fd, size, cb_) => {
|
|
64962
64962
|
const cb = (er, pos) => {
|
|
64963
|
-
if (er) fs$
|
|
64963
|
+
if (er) fs$31.close(fd, (_) => cb_(er));
|
|
64964
64964
|
else cb_(null, pos);
|
|
64965
64965
|
};
|
|
64966
64966
|
let position = 0;
|
|
@@ -64970,7 +64970,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64970
64970
|
const onread = (er, bytes) => {
|
|
64971
64971
|
if (er) return cb(er);
|
|
64972
64972
|
bufPos += bytes;
|
|
64973
|
-
if (bufPos < 512 && bytes) return fs$
|
|
64973
|
+
if (bufPos < 512 && bytes) return fs$31.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
64974
64974
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) return cb(/* @__PURE__ */ new Error("cannot append to compressed archives"));
|
|
64975
64975
|
if (bufPos < 512) return cb(null, position);
|
|
64976
64976
|
const h = new Header(headBuf);
|
|
@@ -64981,9 +64981,9 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64981
64981
|
if (position >= size) return cb(null, position);
|
|
64982
64982
|
if (opt.mtimeCache) opt.mtimeCache.set(h.path, h.mtime);
|
|
64983
64983
|
bufPos = 0;
|
|
64984
|
-
fs$
|
|
64984
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
64985
64985
|
};
|
|
64986
|
-
fs$
|
|
64986
|
+
fs$31.read(fd, headBuf, 0, 512, position, onread);
|
|
64987
64987
|
};
|
|
64988
64988
|
const promise = new Promise((resolve, reject) => {
|
|
64989
64989
|
p.on("error", reject);
|
|
@@ -64991,11 +64991,11 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
64991
64991
|
const onopen = (er, fd) => {
|
|
64992
64992
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
64993
64993
|
flag = "w+";
|
|
64994
|
-
return fs$
|
|
64994
|
+
return fs$31.open(opt.file, flag, onopen);
|
|
64995
64995
|
}
|
|
64996
64996
|
if (er) return reject(er);
|
|
64997
|
-
fs$
|
|
64998
|
-
if (er) return fs$
|
|
64997
|
+
fs$31.fstat(fd, (er, st) => {
|
|
64998
|
+
if (er) return fs$31.close(fd, () => reject(er));
|
|
64999
64999
|
getPos(fd, st.size, (er, position) => {
|
|
65000
65000
|
if (er) return reject(er);
|
|
65001
65001
|
const stream = new fsm.WriteStream(opt.file, {
|
|
@@ -65009,7 +65009,7 @@ var require_replace = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
65009
65009
|
});
|
|
65010
65010
|
});
|
|
65011
65011
|
};
|
|
65012
|
-
fs$
|
|
65012
|
+
fs$31.open(opt.file, flag, onopen);
|
|
65013
65013
|
});
|
|
65014
65014
|
return cb ? promise.then(cb, cb) : promise;
|
|
65015
65015
|
};
|
|
@@ -65062,32 +65062,32 @@ var require_update = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65062
65062
|
//#region ../../node_modules/mkdirp/lib/opts-arg.js
|
|
65063
65063
|
var require_opts_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65064
65064
|
const { promisify: promisify$1 } = require("util");
|
|
65065
|
-
const fs$
|
|
65065
|
+
const fs$30 = require("fs");
|
|
65066
65066
|
const optsArg = (opts) => {
|
|
65067
65067
|
if (!opts) opts = {
|
|
65068
65068
|
mode: 511,
|
|
65069
|
-
fs: fs$
|
|
65069
|
+
fs: fs$30
|
|
65070
65070
|
};
|
|
65071
65071
|
else if (typeof opts === "object") opts = {
|
|
65072
65072
|
mode: 511,
|
|
65073
|
-
fs: fs$
|
|
65073
|
+
fs: fs$30,
|
|
65074
65074
|
...opts
|
|
65075
65075
|
};
|
|
65076
65076
|
else if (typeof opts === "number") opts = {
|
|
65077
65077
|
mode: opts,
|
|
65078
|
-
fs: fs$
|
|
65078
|
+
fs: fs$30
|
|
65079
65079
|
};
|
|
65080
65080
|
else if (typeof opts === "string") opts = {
|
|
65081
65081
|
mode: parseInt(opts, 8),
|
|
65082
|
-
fs: fs$
|
|
65082
|
+
fs: fs$30
|
|
65083
65083
|
};
|
|
65084
65084
|
else throw new TypeError("invalid options argument");
|
|
65085
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$
|
|
65085
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs$30.mkdir;
|
|
65086
65086
|
opts.mkdirAsync = promisify$1(opts.mkdir);
|
|
65087
|
-
opts.stat = opts.stat || opts.fs.stat || fs$
|
|
65087
|
+
opts.stat = opts.stat || opts.fs.stat || fs$30.stat;
|
|
65088
65088
|
opts.statAsync = promisify$1(opts.stat);
|
|
65089
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs$
|
|
65090
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$
|
|
65089
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs$30.statSync;
|
|
65090
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs$30.mkdirSync;
|
|
65091
65091
|
return opts;
|
|
65092
65092
|
};
|
|
65093
65093
|
module.exports = optsArg;
|
|
@@ -65118,17 +65118,17 @@ var require_path_arg = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
65118
65118
|
//#endregion
|
|
65119
65119
|
//#region ../../node_modules/mkdirp/lib/find-made.js
|
|
65120
65120
|
var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65121
|
-
const { dirname: dirname$
|
|
65121
|
+
const { dirname: dirname$14 } = require("path");
|
|
65122
65122
|
const findMade = (opts, parent, path$85 = void 0) => {
|
|
65123
65123
|
if (path$85 === parent) return Promise.resolve();
|
|
65124
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$85 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$
|
|
65124
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path$85 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname$14(parent), parent) : void 0);
|
|
65125
65125
|
};
|
|
65126
65126
|
const findMadeSync = (opts, parent, path$86 = void 0) => {
|
|
65127
65127
|
if (path$86 === parent) return void 0;
|
|
65128
65128
|
try {
|
|
65129
65129
|
return opts.statSync(parent).isDirectory() ? path$86 : void 0;
|
|
65130
65130
|
} catch (er) {
|
|
65131
|
-
return er.code === "ENOENT" ? findMadeSync(opts, dirname$
|
|
65131
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname$14(parent), parent) : void 0;
|
|
65132
65132
|
}
|
|
65133
65133
|
};
|
|
65134
65134
|
module.exports = {
|
|
@@ -65139,10 +65139,10 @@ var require_find_made = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
65139
65139
|
//#endregion
|
|
65140
65140
|
//#region ../../node_modules/mkdirp/lib/mkdirp-manual.js
|
|
65141
65141
|
var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65142
|
-
const { dirname: dirname$
|
|
65142
|
+
const { dirname: dirname$13 } = require("path");
|
|
65143
65143
|
const mkdirpManual = (path$83, opts, made) => {
|
|
65144
65144
|
opts.recursive = false;
|
|
65145
|
-
const parent = dirname$
|
|
65145
|
+
const parent = dirname$13(path$83);
|
|
65146
65146
|
if (parent === path$83) return opts.mkdirAsync(path$83, opts).catch((er) => {
|
|
65147
65147
|
if (er.code !== "EISDIR") throw er;
|
|
65148
65148
|
});
|
|
@@ -65158,7 +65158,7 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
65158
65158
|
});
|
|
65159
65159
|
};
|
|
65160
65160
|
const mkdirpManualSync = (path$84, opts, made) => {
|
|
65161
|
-
const parent = dirname$
|
|
65161
|
+
const parent = dirname$13(path$84);
|
|
65162
65162
|
opts.recursive = false;
|
|
65163
65163
|
if (parent === path$84) try {
|
|
65164
65164
|
return opts.mkdirSync(path$84, opts);
|
|
@@ -65187,12 +65187,12 @@ var require_mkdirp_manual = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
65187
65187
|
//#endregion
|
|
65188
65188
|
//#region ../../node_modules/mkdirp/lib/mkdirp-native.js
|
|
65189
65189
|
var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65190
|
-
const { dirname: dirname$
|
|
65190
|
+
const { dirname: dirname$12 } = require("path");
|
|
65191
65191
|
const { findMade, findMadeSync } = require_find_made();
|
|
65192
65192
|
const { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
65193
65193
|
const mkdirpNative = (path$81, opts) => {
|
|
65194
65194
|
opts.recursive = true;
|
|
65195
|
-
if (dirname$
|
|
65195
|
+
if (dirname$12(path$81) === path$81) return opts.mkdirAsync(path$81, opts);
|
|
65196
65196
|
return findMade(opts, path$81).then((made) => opts.mkdirAsync(path$81, opts).then(() => made).catch((er) => {
|
|
65197
65197
|
if (er.code === "ENOENT") return mkdirpManual(path$81, opts);
|
|
65198
65198
|
else throw er;
|
|
@@ -65200,7 +65200,7 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
65200
65200
|
};
|
|
65201
65201
|
const mkdirpNativeSync = (path$82, opts) => {
|
|
65202
65202
|
opts.recursive = true;
|
|
65203
|
-
if (dirname$
|
|
65203
|
+
if (dirname$12(path$82) === path$82) return opts.mkdirSync(path$82, opts);
|
|
65204
65204
|
const made = findMadeSync(opts, path$82);
|
|
65205
65205
|
try {
|
|
65206
65206
|
opts.mkdirSync(path$82, opts);
|
|
@@ -65218,12 +65218,12 @@ var require_mkdirp_native = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
65218
65218
|
//#endregion
|
|
65219
65219
|
//#region ../../node_modules/mkdirp/lib/use-native.js
|
|
65220
65220
|
var require_use_native = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65221
|
-
const fs$
|
|
65221
|
+
const fs$29 = require("fs");
|
|
65222
65222
|
const versArr = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split(".");
|
|
65223
65223
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
65224
65224
|
module.exports = {
|
|
65225
|
-
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$
|
|
65226
|
-
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$
|
|
65225
|
+
useNative: !hasNative ? () => false : (opts) => opts.mkdir === fs$29.mkdir,
|
|
65226
|
+
useNativeSync: !hasNative ? () => false : (opts) => opts.mkdirSync === fs$29.mkdirSync
|
|
65227
65227
|
};
|
|
65228
65228
|
}));
|
|
65229
65229
|
//#endregion
|
|
@@ -65254,17 +65254,17 @@ var require_mkdirp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65254
65254
|
//#endregion
|
|
65255
65255
|
//#region ../../node_modules/chownr/chownr.js
|
|
65256
65256
|
var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65257
|
-
const fs$
|
|
65257
|
+
const fs$28 = require("fs");
|
|
65258
65258
|
const path$28 = require("path");
|
|
65259
65259
|
/* istanbul ignore next */
|
|
65260
|
-
const LCHOWN = fs$
|
|
65260
|
+
const LCHOWN = fs$28.lchown ? "lchown" : "chown";
|
|
65261
65261
|
/* istanbul ignore next */
|
|
65262
|
-
const LCHOWNSYNC = fs$
|
|
65262
|
+
const LCHOWNSYNC = fs$28.lchownSync ? "lchownSync" : "chownSync";
|
|
65263
65263
|
/* istanbul ignore next */
|
|
65264
|
-
const needEISDIRHandled = fs$
|
|
65264
|
+
const needEISDIRHandled = fs$28.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
65265
65265
|
const lchownSync = (path$73, uid, gid) => {
|
|
65266
65266
|
try {
|
|
65267
|
-
return fs$
|
|
65267
|
+
return fs$28[LCHOWNSYNC](path$73, uid, gid);
|
|
65268
65268
|
} catch (er) {
|
|
65269
65269
|
if (er.code !== "ENOENT") throw er;
|
|
65270
65270
|
}
|
|
@@ -65272,7 +65272,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65272
65272
|
/* istanbul ignore next */
|
|
65273
65273
|
const chownSync = (path$74, uid, gid) => {
|
|
65274
65274
|
try {
|
|
65275
|
-
return fs$
|
|
65275
|
+
return fs$28.chownSync(path$74, uid, gid);
|
|
65276
65276
|
} catch (er) {
|
|
65277
65277
|
if (er.code !== "ENOENT") throw er;
|
|
65278
65278
|
}
|
|
@@ -65280,7 +65280,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65280
65280
|
/* istanbul ignore next */
|
|
65281
65281
|
const handleEISDIR = needEISDIRHandled ? (path$75, uid, gid, cb) => (er) => {
|
|
65282
65282
|
if (!er || er.code !== "EISDIR") cb(er);
|
|
65283
|
-
else fs$
|
|
65283
|
+
else fs$28.chown(path$75, uid, gid, cb);
|
|
65284
65284
|
} : (_, __, ___, cb) => cb;
|
|
65285
65285
|
/* istanbul ignore next */
|
|
65286
65286
|
const handleEISDirSync = needEISDIRHandled ? (path$76, uid, gid) => {
|
|
@@ -65292,17 +65292,17 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65292
65292
|
}
|
|
65293
65293
|
} : (path$77, uid, gid) => lchownSync(path$77, uid, gid);
|
|
65294
65294
|
const nodeVersion = process.version;
|
|
65295
|
-
let readdir = (path$78, options, cb) => fs$
|
|
65296
|
-
let readdirSync = (path$79, options) => fs$
|
|
65295
|
+
let readdir = (path$78, options, cb) => fs$28.readdir(path$78, options, cb);
|
|
65296
|
+
let readdirSync = (path$79, options) => fs$28.readdirSync(path$79, options);
|
|
65297
65297
|
/* istanbul ignore next */
|
|
65298
|
-
if (/^v4\./.test(nodeVersion)) readdir = (path$80, options, cb) => fs$
|
|
65298
|
+
if (/^v4\./.test(nodeVersion)) readdir = (path$80, options, cb) => fs$28.readdir(path$80, cb);
|
|
65299
65299
|
const chown = (cpath, uid, gid, cb) => {
|
|
65300
|
-
fs$
|
|
65300
|
+
fs$28[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
65301
65301
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
65302
65302
|
}));
|
|
65303
65303
|
};
|
|
65304
65304
|
const chownrKid = (p, child, uid, gid, cb) => {
|
|
65305
|
-
if (typeof child === "string") return fs$
|
|
65305
|
+
if (typeof child === "string") return fs$28.lstat(path$28.resolve(p, child), (er, stats) => {
|
|
65306
65306
|
if (er) return cb(er.code !== "ENOENT" ? er : null);
|
|
65307
65307
|
stats.name = child;
|
|
65308
65308
|
chownrKid(p, stats, uid, gid, cb);
|
|
@@ -65332,7 +65332,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65332
65332
|
};
|
|
65333
65333
|
const chownrKidSync = (p, child, uid, gid) => {
|
|
65334
65334
|
if (typeof child === "string") try {
|
|
65335
|
-
const stats = fs$
|
|
65335
|
+
const stats = fs$28.lstatSync(path$28.resolve(p, child));
|
|
65336
65336
|
stats.name = child;
|
|
65337
65337
|
child = stats;
|
|
65338
65338
|
} catch (er) {
|
|
@@ -65361,7 +65361,7 @@ var require_chownr = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65361
65361
|
//#region ../../node_modules/tar/lib/mkdir.js
|
|
65362
65362
|
var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65363
65363
|
const mkdirp = require_mkdirp();
|
|
65364
|
-
const fs$
|
|
65364
|
+
const fs$27 = require("fs");
|
|
65365
65365
|
const path$27 = require("path");
|
|
65366
65366
|
const chownr = require_chownr();
|
|
65367
65367
|
const normPath = require_normalize_windows_path();
|
|
@@ -65388,7 +65388,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
65388
65388
|
const cGet = (cache, key) => cache.get(normPath(key));
|
|
65389
65389
|
const cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
65390
65390
|
const checkCwd = (dir, cb) => {
|
|
65391
|
-
fs$
|
|
65391
|
+
fs$27.stat(dir, (er, st) => {
|
|
65392
65392
|
if (er || !st.isDirectory()) er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
65393
65393
|
cb(er);
|
|
65394
65394
|
});
|
|
@@ -65410,7 +65410,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
65410
65410
|
else {
|
|
65411
65411
|
cSet(cache, dir, true);
|
|
65412
65412
|
if (created && doChown) chownr(created, uid, gid, (er) => done(er));
|
|
65413
|
-
else if (needChmod) fs$
|
|
65413
|
+
else if (needChmod) fs$27.chmod(dir, mode, cb);
|
|
65414
65414
|
else cb();
|
|
65415
65415
|
}
|
|
65416
65416
|
};
|
|
@@ -65424,17 +65424,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
65424
65424
|
const p = parts.shift();
|
|
65425
65425
|
const part = normPath(path$27.resolve(base + "/" + p));
|
|
65426
65426
|
if (cGet(cache, part)) return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
65427
|
-
fs$
|
|
65427
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
65428
65428
|
};
|
|
65429
65429
|
const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
65430
|
-
if (er) fs$
|
|
65430
|
+
if (er) fs$27.lstat(part, (statEr, st) => {
|
|
65431
65431
|
if (statEr) {
|
|
65432
65432
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
65433
65433
|
cb(statEr);
|
|
65434
65434
|
} else if (st.isDirectory()) mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
65435
|
-
else if (unlink) fs$
|
|
65435
|
+
else if (unlink) fs$27.unlink(part, (er) => {
|
|
65436
65436
|
if (er) return cb(er);
|
|
65437
|
-
fs$
|
|
65437
|
+
fs$27.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
65438
65438
|
});
|
|
65439
65439
|
else if (st.isSymbolicLink()) return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
65440
65440
|
else cb(er);
|
|
@@ -65448,7 +65448,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
65448
65448
|
let ok = false;
|
|
65449
65449
|
let code = "ENOTDIR";
|
|
65450
65450
|
try {
|
|
65451
|
-
ok = fs$
|
|
65451
|
+
ok = fs$27.statSync(dir).isDirectory();
|
|
65452
65452
|
} catch (er) {
|
|
65453
65453
|
code = er.code;
|
|
65454
65454
|
} finally {
|
|
@@ -65470,7 +65470,7 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
65470
65470
|
const done = (created) => {
|
|
65471
65471
|
cSet(cache, dir, true);
|
|
65472
65472
|
if (created && doChown) chownr.sync(created, uid, gid);
|
|
65473
|
-
if (needChmod) fs$
|
|
65473
|
+
if (needChmod) fs$27.chmodSync(dir, mode);
|
|
65474
65474
|
};
|
|
65475
65475
|
if (cache && cGet(cache, dir) === true) return done();
|
|
65476
65476
|
if (dir === cwd) {
|
|
@@ -65484,17 +65484,17 @@ var require_mkdir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
65484
65484
|
part = normPath(path$27.resolve(part));
|
|
65485
65485
|
if (cGet(cache, part)) continue;
|
|
65486
65486
|
try {
|
|
65487
|
-
fs$
|
|
65487
|
+
fs$27.mkdirSync(part, mode);
|
|
65488
65488
|
created = created || part;
|
|
65489
65489
|
cSet(cache, part, true);
|
|
65490
65490
|
} catch (er) {
|
|
65491
|
-
const st = fs$
|
|
65491
|
+
const st = fs$27.lstatSync(part);
|
|
65492
65492
|
if (st.isDirectory()) {
|
|
65493
65493
|
cSet(cache, part, true);
|
|
65494
65494
|
continue;
|
|
65495
65495
|
} else if (unlink) {
|
|
65496
|
-
fs$
|
|
65497
|
-
fs$
|
|
65496
|
+
fs$27.unlinkSync(part);
|
|
65497
|
+
fs$27.mkdirSync(part, mode);
|
|
65498
65498
|
created = created || part;
|
|
65499
65499
|
cSet(cache, part, true);
|
|
65500
65500
|
continue;
|
|
@@ -65520,14 +65520,14 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
65520
65520
|
const assert$1 = require("assert");
|
|
65521
65521
|
const normalize = require_normalize_unicode();
|
|
65522
65522
|
const stripSlashes = require_strip_trailing_slashes();
|
|
65523
|
-
const { join: join$
|
|
65523
|
+
const { join: join$17 } = require("path");
|
|
65524
65524
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
65525
65525
|
module.exports = () => {
|
|
65526
65526
|
const queues = /* @__PURE__ */ new Map();
|
|
65527
65527
|
const reservations = /* @__PURE__ */ new Map();
|
|
65528
65528
|
const getDirs = (path$64) => {
|
|
65529
65529
|
return path$64.split("/").slice(0, -1).reduce((set, path$65) => {
|
|
65530
|
-
if (set.length) path$65 = join$
|
|
65530
|
+
if (set.length) path$65 = join$17(set[set.length - 1], path$65);
|
|
65531
65531
|
set.push(path$65 || "/");
|
|
65532
65532
|
return set;
|
|
65533
65533
|
}, []);
|
|
@@ -65581,7 +65581,7 @@ var require_path_reservations = /* @__PURE__ */ require_chunk.__commonJSMin(((ex
|
|
|
65581
65581
|
};
|
|
65582
65582
|
const reserve = (paths, fn) => {
|
|
65583
65583
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
65584
|
-
return stripSlashes(join$
|
|
65584
|
+
return stripSlashes(join$17(normalize(p))).toLowerCase();
|
|
65585
65585
|
});
|
|
65586
65586
|
const dirs = new Set(paths.map((path$69) => getDirs(path$69)).reduce((a, b) => a.concat(b)));
|
|
65587
65587
|
reservations.set(fn, {
|
|
@@ -65623,7 +65623,7 @@ var require_get_write_flag = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
65623
65623
|
var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
65624
65624
|
const assert = require("assert");
|
|
65625
65625
|
const Parser = require_parse$3();
|
|
65626
|
-
const fs$
|
|
65626
|
+
const fs$26 = require("fs");
|
|
65627
65627
|
const fsm = require_fs_minipass();
|
|
65628
65628
|
const path$26 = require("path");
|
|
65629
65629
|
const mkdir = require_mkdir();
|
|
@@ -65664,19 +65664,19 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65664
65664
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
65665
65665
|
/* istanbul ignore next */
|
|
65666
65666
|
const unlinkFile = (path$60, cb) => {
|
|
65667
|
-
if (!isWindows) return fs$
|
|
65667
|
+
if (!isWindows) return fs$26.unlink(path$60, cb);
|
|
65668
65668
|
const name = path$60 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
65669
|
-
fs$
|
|
65669
|
+
fs$26.rename(path$60, name, (er) => {
|
|
65670
65670
|
if (er) return cb(er);
|
|
65671
|
-
fs$
|
|
65671
|
+
fs$26.unlink(name, cb);
|
|
65672
65672
|
});
|
|
65673
65673
|
};
|
|
65674
65674
|
/* istanbul ignore next */
|
|
65675
65675
|
const unlinkFileSync = (path$61) => {
|
|
65676
|
-
if (!isWindows) return fs$
|
|
65676
|
+
if (!isWindows) return fs$26.unlinkSync(path$61);
|
|
65677
65677
|
const name = path$61 + ".DELETE." + crypto$4.randomBytes(16).toString("hex");
|
|
65678
|
-
fs$
|
|
65679
|
-
fs$
|
|
65678
|
+
fs$26.renameSync(path$61, name);
|
|
65679
|
+
fs$26.unlinkSync(name);
|
|
65680
65680
|
};
|
|
65681
65681
|
const uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
65682
65682
|
const cacheKeyNormalize = (path$62) => stripSlash(normPath(normalize(path$62))).toLowerCase();
|
|
@@ -65862,7 +65862,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65862
65862
|
autoClose: false
|
|
65863
65863
|
});
|
|
65864
65864
|
stream.on("error", (er) => {
|
|
65865
|
-
if (stream.fd) fs$
|
|
65865
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
65866
65866
|
stream.write = () => true;
|
|
65867
65867
|
this[ONERROR](er, entry);
|
|
65868
65868
|
fullyDone();
|
|
@@ -65871,12 +65871,12 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65871
65871
|
const done = (er) => {
|
|
65872
65872
|
if (er) {
|
|
65873
65873
|
/* istanbul ignore else - we should always have a fd by now */
|
|
65874
|
-
if (stream.fd) fs$
|
|
65874
|
+
if (stream.fd) fs$26.close(stream.fd, () => {});
|
|
65875
65875
|
this[ONERROR](er, entry);
|
|
65876
65876
|
fullyDone();
|
|
65877
65877
|
return;
|
|
65878
65878
|
}
|
|
65879
|
-
if (--actions === 0) fs$
|
|
65879
|
+
if (--actions === 0) fs$26.close(stream.fd, (er) => {
|
|
65880
65880
|
if (er) this[ONERROR](er, entry);
|
|
65881
65881
|
else this[UNPEND]();
|
|
65882
65882
|
fullyDone();
|
|
@@ -65889,13 +65889,13 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65889
65889
|
actions++;
|
|
65890
65890
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
65891
65891
|
const mtime = entry.mtime;
|
|
65892
|
-
fs$
|
|
65892
|
+
fs$26.futimes(fd, atime, mtime, (er) => er ? fs$26.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
65893
65893
|
}
|
|
65894
65894
|
if (this[DOCHOWN](entry)) {
|
|
65895
65895
|
actions++;
|
|
65896
65896
|
const uid = this[UID](entry);
|
|
65897
65897
|
const gid = this[GID](entry);
|
|
65898
|
-
fs$
|
|
65898
|
+
fs$26.fchown(fd, uid, gid, (er) => er ? fs$26.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
65899
65899
|
}
|
|
65900
65900
|
done();
|
|
65901
65901
|
});
|
|
@@ -65927,11 +65927,11 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
65927
65927
|
};
|
|
65928
65928
|
if (entry.mtime && !this.noMtime) {
|
|
65929
65929
|
actions++;
|
|
65930
|
-
fs$
|
|
65930
|
+
fs$26.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
65931
65931
|
}
|
|
65932
65932
|
if (this[DOCHOWN](entry)) {
|
|
65933
65933
|
actions++;
|
|
65934
|
-
fs$
|
|
65934
|
+
fs$26.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
65935
65935
|
}
|
|
65936
65936
|
done();
|
|
65937
65937
|
});
|
|
@@ -66004,7 +66004,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66004
66004
|
afterMakeParent();
|
|
66005
66005
|
};
|
|
66006
66006
|
const afterMakeParent = () => {
|
|
66007
|
-
fs$
|
|
66007
|
+
fs$26.lstat(entry.absolute, (lstatEr, st) => {
|
|
66008
66008
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
66009
66009
|
this[SKIP](entry);
|
|
66010
66010
|
done();
|
|
@@ -66016,9 +66016,9 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66016
66016
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
66017
66017
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
66018
66018
|
if (!needChmod) return afterChmod();
|
|
66019
|
-
return fs$
|
|
66019
|
+
return fs$26.chmod(entry.absolute, entry.mode, afterChmod);
|
|
66020
66020
|
}
|
|
66021
|
-
if (entry.absolute !== this.cwd) return fs$
|
|
66021
|
+
if (entry.absolute !== this.cwd) return fs$26.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
66022
66022
|
}
|
|
66023
66023
|
if (entry.absolute === this.cwd) return this[MAKEFS](null, entry, done);
|
|
66024
66024
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
@@ -66044,7 +66044,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66044
66044
|
}
|
|
66045
66045
|
}
|
|
66046
66046
|
[LINK](entry, linkpath, link, done) {
|
|
66047
|
-
fs$
|
|
66047
|
+
fs$26[link](linkpath, entry.absolute, (er) => {
|
|
66048
66048
|
if (er) this[ONERROR](er, entry);
|
|
66049
66049
|
else {
|
|
66050
66050
|
this[UNPEND]();
|
|
@@ -66079,17 +66079,17 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66079
66079
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
66080
66080
|
}
|
|
66081
66081
|
}
|
|
66082
|
-
const [lstatEr, st] = callSync(() => fs$
|
|
66082
|
+
const [lstatEr, st] = callSync(() => fs$26.lstatSync(entry.absolute));
|
|
66083
66083
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) return this[SKIP](entry);
|
|
66084
66084
|
if (lstatEr || this[ISREUSABLE](entry, st)) return this[MAKEFS](null, entry);
|
|
66085
66085
|
if (st.isDirectory()) {
|
|
66086
66086
|
if (entry.type === "Directory") {
|
|
66087
66087
|
const [er] = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode ? callSync(() => {
|
|
66088
|
-
fs$
|
|
66088
|
+
fs$26.chmodSync(entry.absolute, entry.mode);
|
|
66089
66089
|
}) : [];
|
|
66090
66090
|
return this[MAKEFS](er, entry);
|
|
66091
66091
|
}
|
|
66092
|
-
const [er] = callSync(() => fs$
|
|
66092
|
+
const [er] = callSync(() => fs$26.rmdirSync(entry.absolute));
|
|
66093
66093
|
this[MAKEFS](er, entry);
|
|
66094
66094
|
}
|
|
66095
66095
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -66100,7 +66100,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66100
66100
|
const oner = (er) => {
|
|
66101
66101
|
let closeError;
|
|
66102
66102
|
try {
|
|
66103
|
-
fs$
|
|
66103
|
+
fs$26.closeSync(fd);
|
|
66104
66104
|
} catch (e) {
|
|
66105
66105
|
closeError = e;
|
|
66106
66106
|
}
|
|
@@ -66109,7 +66109,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66109
66109
|
};
|
|
66110
66110
|
let fd;
|
|
66111
66111
|
try {
|
|
66112
|
-
fd = fs$
|
|
66112
|
+
fd = fs$26.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
66113
66113
|
} catch (er) {
|
|
66114
66114
|
return oner(er);
|
|
66115
66115
|
}
|
|
@@ -66120,7 +66120,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66120
66120
|
}
|
|
66121
66121
|
tx.on("data", (chunk) => {
|
|
66122
66122
|
try {
|
|
66123
|
-
fs$
|
|
66123
|
+
fs$26.writeSync(fd, chunk, 0, chunk.length);
|
|
66124
66124
|
} catch (er) {
|
|
66125
66125
|
oner(er);
|
|
66126
66126
|
}
|
|
@@ -66131,10 +66131,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66131
66131
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
66132
66132
|
const mtime = entry.mtime;
|
|
66133
66133
|
try {
|
|
66134
|
-
fs$
|
|
66134
|
+
fs$26.futimesSync(fd, atime, mtime);
|
|
66135
66135
|
} catch (futimeser) {
|
|
66136
66136
|
try {
|
|
66137
|
-
fs$
|
|
66137
|
+
fs$26.utimesSync(entry.absolute, atime, mtime);
|
|
66138
66138
|
} catch (utimeser) {
|
|
66139
66139
|
er = futimeser;
|
|
66140
66140
|
}
|
|
@@ -66144,10 +66144,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66144
66144
|
const uid = this[UID](entry);
|
|
66145
66145
|
const gid = this[GID](entry);
|
|
66146
66146
|
try {
|
|
66147
|
-
fs$
|
|
66147
|
+
fs$26.fchownSync(fd, uid, gid);
|
|
66148
66148
|
} catch (fchowner) {
|
|
66149
66149
|
try {
|
|
66150
|
-
fs$
|
|
66150
|
+
fs$26.chownSync(entry.absolute, uid, gid);
|
|
66151
66151
|
} catch (chowner) {
|
|
66152
66152
|
er = er || fchowner;
|
|
66153
66153
|
}
|
|
@@ -66165,10 +66165,10 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66165
66165
|
return;
|
|
66166
66166
|
}
|
|
66167
66167
|
if (entry.mtime && !this.noMtime) try {
|
|
66168
|
-
fs$
|
|
66168
|
+
fs$26.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
66169
66169
|
} catch (er) {}
|
|
66170
66170
|
if (this[DOCHOWN](entry)) try {
|
|
66171
|
-
fs$
|
|
66171
|
+
fs$26.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
66172
66172
|
} catch (er) {}
|
|
66173
66173
|
done();
|
|
66174
66174
|
entry.resume();
|
|
@@ -66193,7 +66193,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66193
66193
|
}
|
|
66194
66194
|
[LINK](entry, linkpath, link, done) {
|
|
66195
66195
|
try {
|
|
66196
|
-
fs$
|
|
66196
|
+
fs$26[link + "Sync"](linkpath, entry.absolute);
|
|
66197
66197
|
done();
|
|
66198
66198
|
entry.resume();
|
|
66199
66199
|
} catch (er) {
|
|
@@ -66209,7 +66209,7 @@ var require_unpack = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
66209
66209
|
var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
66210
66210
|
const hlo = require_high_level_opt();
|
|
66211
66211
|
const Unpack = require_unpack();
|
|
66212
|
-
const fs$
|
|
66212
|
+
const fs$25 = require("fs");
|
|
66213
66213
|
const fsm = require_fs_minipass();
|
|
66214
66214
|
const path$25 = require("path");
|
|
66215
66215
|
const stripSlash = require_strip_trailing_slashes();
|
|
@@ -66239,7 +66239,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
66239
66239
|
const extractFileSync = (opt) => {
|
|
66240
66240
|
const u = new Unpack.Sync(opt);
|
|
66241
66241
|
const file = opt.file;
|
|
66242
|
-
const stat = fs$
|
|
66242
|
+
const stat = fs$25.statSync(file);
|
|
66243
66243
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
66244
66244
|
new fsm.ReadStreamSync(file, {
|
|
66245
66245
|
readSize,
|
|
@@ -66253,7 +66253,7 @@ var require_extract$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
66253
66253
|
const p = new Promise((resolve, reject) => {
|
|
66254
66254
|
u.on("error", reject);
|
|
66255
66255
|
u.on("close", resolve);
|
|
66256
|
-
fs$
|
|
66256
|
+
fs$25.stat(file, (er, stat) => {
|
|
66257
66257
|
if (er) reject(er);
|
|
66258
66258
|
else {
|
|
66259
66259
|
const stream = new fsm.ReadStream(file, {
|
|
@@ -66336,7 +66336,7 @@ var require_pend = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
66336
66336
|
//#endregion
|
|
66337
66337
|
//#region ../../node_modules/fd-slicer/index.js
|
|
66338
66338
|
var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
66339
|
-
var fs$
|
|
66339
|
+
var fs$24 = require("fs");
|
|
66340
66340
|
var util$9 = require("util");
|
|
66341
66341
|
var stream$1 = require("stream");
|
|
66342
66342
|
var Readable = stream$1.Readable;
|
|
@@ -66361,7 +66361,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
66361
66361
|
FdSlicer.prototype.read = function(buffer, offset, length, position, callback) {
|
|
66362
66362
|
var self = this;
|
|
66363
66363
|
self.pend.go(function(cb) {
|
|
66364
|
-
fs$
|
|
66364
|
+
fs$24.read(self.fd, buffer, offset, length, position, function(err, bytesRead, buffer) {
|
|
66365
66365
|
cb();
|
|
66366
66366
|
callback(err, bytesRead, buffer);
|
|
66367
66367
|
});
|
|
@@ -66370,7 +66370,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
66370
66370
|
FdSlicer.prototype.write = function(buffer, offset, length, position, callback) {
|
|
66371
66371
|
var self = this;
|
|
66372
66372
|
self.pend.go(function(cb) {
|
|
66373
|
-
fs$
|
|
66373
|
+
fs$24.write(self.fd, buffer, offset, length, position, function(err, written, buffer) {
|
|
66374
66374
|
cb();
|
|
66375
66375
|
callback(err, written, buffer);
|
|
66376
66376
|
});
|
|
@@ -66390,7 +66390,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
66390
66390
|
self.refCount -= 1;
|
|
66391
66391
|
if (self.refCount > 0) return;
|
|
66392
66392
|
if (self.refCount < 0) throw new Error("invalid unref");
|
|
66393
|
-
if (self.autoClose) fs$
|
|
66393
|
+
if (self.autoClose) fs$24.close(self.fd, onCloseDone);
|
|
66394
66394
|
function onCloseDone(err) {
|
|
66395
66395
|
if (err) self.emit("error", err);
|
|
66396
66396
|
else self.emit("close");
|
|
@@ -66421,7 +66421,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
66421
66421
|
self.context.pend.go(function(cb) {
|
|
66422
66422
|
if (self.destroyed) return cb();
|
|
66423
66423
|
var buffer = new Buffer(toRead);
|
|
66424
|
-
fs$
|
|
66424
|
+
fs$24.read(self.context.fd, buffer, 0, toRead, self.pos, function(err, bytesRead) {
|
|
66425
66425
|
if (err) self.destroy(err);
|
|
66426
66426
|
else if (bytesRead === 0) {
|
|
66427
66427
|
self.destroyed = true;
|
|
@@ -66467,7 +66467,7 @@ var require_fd_slicer = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =
|
|
|
66467
66467
|
}
|
|
66468
66468
|
self.context.pend.go(function(cb) {
|
|
66469
66469
|
if (self.destroyed) return cb();
|
|
66470
|
-
fs$
|
|
66470
|
+
fs$24.write(self.context.fd, buffer, 0, buffer.length, self.pos, function(err, bytes) {
|
|
66471
66471
|
if (err) {
|
|
66472
66472
|
self.destroy();
|
|
66473
66473
|
cb();
|
|
@@ -68049,13 +68049,13 @@ var require_minimatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
68049
68049
|
//#region ../../node_modules/readdir-glob/index.js
|
|
68050
68050
|
var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
68051
68051
|
module.exports = readdirGlob;
|
|
68052
|
-
const fs$
|
|
68052
|
+
const fs$22 = require("fs");
|
|
68053
68053
|
const { EventEmitter } = require("events");
|
|
68054
68054
|
const { Minimatch } = require_minimatch$1();
|
|
68055
68055
|
const { resolve: resolve$12 } = require("path");
|
|
68056
68056
|
function readdir(dir, strict) {
|
|
68057
68057
|
return new Promise((resolve, reject) => {
|
|
68058
|
-
fs$
|
|
68058
|
+
fs$22.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
68059
68059
|
if (err) switch (err.code) {
|
|
68060
68060
|
case "ENOTDIR":
|
|
68061
68061
|
if (strict) reject(err);
|
|
@@ -68077,7 +68077,7 @@ var require_readdir_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
68077
68077
|
}
|
|
68078
68078
|
function stat(file, followSymlinks) {
|
|
68079
68079
|
return new Promise((resolve, reject) => {
|
|
68080
|
-
(followSymlinks ? fs$
|
|
68080
|
+
(followSymlinks ? fs$22.stat : fs$22.lstat)(file, (err, stats) => {
|
|
68081
68081
|
if (err) switch (err.code) {
|
|
68082
68082
|
case "ENOENT":
|
|
68083
68083
|
if (followSymlinks) resolve(stat(file, false));
|
|
@@ -74116,7 +74116,7 @@ var require_clone$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
74116
74116
|
//#endregion
|
|
74117
74117
|
//#region ../../node_modules/graceful-fs/graceful-fs.js
|
|
74118
74118
|
var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
74119
|
-
var fs$
|
|
74119
|
+
var fs$21 = require("fs");
|
|
74120
74120
|
var polyfills = require_polyfills();
|
|
74121
74121
|
var legacy = require_legacy_streams();
|
|
74122
74122
|
var clone = require_clone$1();
|
|
@@ -74145,36 +74145,36 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
74145
74145
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
74146
74146
|
console.error(m);
|
|
74147
74147
|
};
|
|
74148
|
-
if (!fs$
|
|
74149
|
-
publishQueue(fs$
|
|
74150
|
-
fs$
|
|
74148
|
+
if (!fs$21[gracefulQueue]) {
|
|
74149
|
+
publishQueue(fs$21, global[gracefulQueue] || []);
|
|
74150
|
+
fs$21.close = (function(fs$close) {
|
|
74151
74151
|
function close(fd, cb) {
|
|
74152
|
-
return fs$close.call(fs$
|
|
74152
|
+
return fs$close.call(fs$21, fd, function(err) {
|
|
74153
74153
|
if (!err) resetQueue();
|
|
74154
74154
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
74155
74155
|
});
|
|
74156
74156
|
}
|
|
74157
74157
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
74158
74158
|
return close;
|
|
74159
|
-
})(fs$
|
|
74160
|
-
fs$
|
|
74159
|
+
})(fs$21.close);
|
|
74160
|
+
fs$21.closeSync = (function(fs$closeSync) {
|
|
74161
74161
|
function closeSync(fd) {
|
|
74162
|
-
fs$closeSync.apply(fs$
|
|
74162
|
+
fs$closeSync.apply(fs$21, arguments);
|
|
74163
74163
|
resetQueue();
|
|
74164
74164
|
}
|
|
74165
74165
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
74166
74166
|
return closeSync;
|
|
74167
|
-
})(fs$
|
|
74167
|
+
})(fs$21.closeSync);
|
|
74168
74168
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
74169
|
-
debug(fs$
|
|
74170
|
-
require("assert").equal(fs$
|
|
74169
|
+
debug(fs$21[gracefulQueue]);
|
|
74170
|
+
require("assert").equal(fs$21[gracefulQueue].length, 0);
|
|
74171
74171
|
});
|
|
74172
74172
|
}
|
|
74173
|
-
if (!global[gracefulQueue]) publishQueue(global, fs$
|
|
74174
|
-
module.exports = patch(clone(fs$
|
|
74175
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$
|
|
74176
|
-
module.exports = patch(fs$
|
|
74177
|
-
fs$
|
|
74173
|
+
if (!global[gracefulQueue]) publishQueue(global, fs$21[gracefulQueue]);
|
|
74174
|
+
module.exports = patch(clone(fs$21));
|
|
74175
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$21.__patched) {
|
|
74176
|
+
module.exports = patch(fs$21);
|
|
74177
|
+
fs$21.__patched = true;
|
|
74178
74178
|
}
|
|
74179
74179
|
function patch(fs) {
|
|
74180
74180
|
polyfills(fs);
|
|
@@ -74429,23 +74429,23 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
74429
74429
|
}
|
|
74430
74430
|
function enqueue(elem) {
|
|
74431
74431
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
74432
|
-
fs$
|
|
74432
|
+
fs$21[gracefulQueue].push(elem);
|
|
74433
74433
|
retry();
|
|
74434
74434
|
}
|
|
74435
74435
|
var retryTimer;
|
|
74436
74436
|
function resetQueue() {
|
|
74437
74437
|
var now = Date.now();
|
|
74438
|
-
for (var i = 0; i < fs$
|
|
74439
|
-
fs$
|
|
74440
|
-
fs$
|
|
74438
|
+
for (var i = 0; i < fs$21[gracefulQueue].length; ++i) if (fs$21[gracefulQueue][i].length > 2) {
|
|
74439
|
+
fs$21[gracefulQueue][i][3] = now;
|
|
74440
|
+
fs$21[gracefulQueue][i][4] = now;
|
|
74441
74441
|
}
|
|
74442
74442
|
retry();
|
|
74443
74443
|
}
|
|
74444
74444
|
function retry() {
|
|
74445
74445
|
clearTimeout(retryTimer);
|
|
74446
74446
|
retryTimer = void 0;
|
|
74447
|
-
if (fs$
|
|
74448
|
-
var elem = fs$
|
|
74447
|
+
if (fs$21[gracefulQueue].length === 0) return;
|
|
74448
|
+
var elem = fs$21[gracefulQueue].shift();
|
|
74449
74449
|
var fn = elem[0];
|
|
74450
74450
|
var args = elem[1];
|
|
74451
74451
|
var err = elem[2];
|
|
@@ -74464,7 +74464,7 @@ var require_graceful_fs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
74464
74464
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
74465
74465
|
debug("RETRY", fn.name, args);
|
|
74466
74466
|
fn.apply(null, args.concat([startTime]));
|
|
74467
|
-
} else fs$
|
|
74467
|
+
} else fs$21[gracefulQueue].push(elem);
|
|
74468
74468
|
}
|
|
74469
74469
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
74470
74470
|
}
|
|
@@ -89861,7 +89861,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
89861
89861
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
89862
89862
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
89863
89863
|
*/
|
|
89864
|
-
var fs$
|
|
89864
|
+
var fs$20 = require("fs");
|
|
89865
89865
|
var glob = require_readdir_glob();
|
|
89866
89866
|
var async = require_async();
|
|
89867
89867
|
var path$22 = require("path");
|
|
@@ -89938,7 +89938,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
89938
89938
|
data.sourcePath = filepath;
|
|
89939
89939
|
task.data = data;
|
|
89940
89940
|
this._entriesCount++;
|
|
89941
|
-
if (data.stats && data.stats instanceof fs$
|
|
89941
|
+
if (data.stats && data.stats instanceof fs$20.Stats) {
|
|
89942
89942
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
89943
89943
|
if (task) {
|
|
89944
89944
|
if (data.stats.size) this._fsEntriesTotalBytes += data.stats.size;
|
|
@@ -90168,7 +90168,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
90168
90168
|
callback();
|
|
90169
90169
|
return;
|
|
90170
90170
|
}
|
|
90171
|
-
fs$
|
|
90171
|
+
fs$20.lstat(task.filepath, function(err, stats) {
|
|
90172
90172
|
if (this._state.aborted) {
|
|
90173
90173
|
setImmediate(callback);
|
|
90174
90174
|
return;
|
|
@@ -90234,7 +90234,7 @@ var require_core = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
90234
90234
|
task.data.sourceType = "buffer";
|
|
90235
90235
|
task.source = Buffer.concat([]);
|
|
90236
90236
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
90237
|
-
var linkPath = fs$
|
|
90237
|
+
var linkPath = fs$20.readlinkSync(task.filepath);
|
|
90238
90238
|
var dirName = path$22.dirname(task.filepath);
|
|
90239
90239
|
task.data.type = "symlink";
|
|
90240
90240
|
task.data.linkname = path$22.relative(dirName, path$22.resolve(dirName, linkPath));
|
|
@@ -100908,7 +100908,7 @@ var require_index_min$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
100908
100908
|
//#region ../../node_modules/@npmcli/promise-spawn/node_modules/which/lib/index.js
|
|
100909
100909
|
var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
100910
100910
|
const { isexe, sync: isexeSync } = require_index_min$3();
|
|
100911
|
-
const { join: join$
|
|
100911
|
+
const { join: join$14, delimiter: delimiter$3, sep: sep$4, posix: posix$1 } = require("path");
|
|
100912
100912
|
const isWindows = process.platform === "win32";
|
|
100913
100913
|
/* istanbul ignore next */
|
|
100914
100914
|
const rSlash = new RegExp(`[${posix$1.sep}${sep$4 === posix$1.sep ? "" : sep$4}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -100938,7 +100938,7 @@ var require_lib$27 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
100938
100938
|
};
|
|
100939
100939
|
const getPathPart = (raw, cmd) => {
|
|
100940
100940
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
100941
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
100941
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$14(pathPart, cmd);
|
|
100942
100942
|
};
|
|
100943
100943
|
const which = async (cmd, opt = {}) => {
|
|
100944
100944
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -101517,7 +101517,7 @@ var require_ini = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
101517
101517
|
//#endregion
|
|
101518
101518
|
//#region ../../node_modules/@npmcli/git/lib/opts.js
|
|
101519
101519
|
var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101520
|
-
const fs$
|
|
101520
|
+
const fs$18 = require("node:fs");
|
|
101521
101521
|
const os$2 = require("node:os");
|
|
101522
101522
|
const path$20 = require("node:path");
|
|
101523
101523
|
const ini = require_ini();
|
|
@@ -101526,8 +101526,8 @@ var require_opts = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
101526
101526
|
const loadGitConfig = () => {
|
|
101527
101527
|
if (cachedConfig === null) try {
|
|
101528
101528
|
cachedConfig = {};
|
|
101529
|
-
if (fs$
|
|
101530
|
-
const configContent = fs$
|
|
101529
|
+
if (fs$18.existsSync(gitConfigPath)) {
|
|
101530
|
+
const configContent = fs$18.readFileSync(gitConfigPath, "utf-8");
|
|
101531
101531
|
cachedConfig = ini.parse(configContent);
|
|
101532
101532
|
}
|
|
101533
101533
|
} catch (error) {
|
|
@@ -101687,7 +101687,7 @@ var require_index_min$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
101687
101687
|
//#region ../../node_modules/@npmcli/git/node_modules/which/lib/index.js
|
|
101688
101688
|
var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
101689
101689
|
const { isexe, sync: isexeSync } = require_index_min$2();
|
|
101690
|
-
const { join: join$
|
|
101690
|
+
const { join: join$13, delimiter: delimiter$2, sep: sep$3, posix } = require("path");
|
|
101691
101691
|
const isWindows = process.platform === "win32";
|
|
101692
101692
|
/* istanbul ignore next */
|
|
101693
101693
|
const rSlash = new RegExp(`[${posix.sep}${sep$3 === posix.sep ? "" : sep$3}]`.replace(/(\\)/g, "\\$1"));
|
|
@@ -101717,7 +101717,7 @@ var require_lib$24 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
101717
101717
|
};
|
|
101718
101718
|
const getPathPart = (raw, cmd) => {
|
|
101719
101719
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
101720
|
-
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$
|
|
101720
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join$13(pathPart, cmd);
|
|
101721
101721
|
};
|
|
101722
101722
|
const which = async (cmd, opt = {}) => {
|
|
101723
101723
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
@@ -102379,7 +102379,7 @@ var require_npa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
102379
102379
|
var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102380
102380
|
const process$1 = require("node:process");
|
|
102381
102381
|
const nodeOs = require("node:os");
|
|
102382
|
-
const fs$
|
|
102382
|
+
const fs$17 = require("node:fs");
|
|
102383
102383
|
function isMusl(file) {
|
|
102384
102384
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
102385
102385
|
}
|
|
@@ -102392,7 +102392,7 @@ var require_current_env = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
102392
102392
|
const LDD_PATH = "/usr/bin/ldd";
|
|
102393
102393
|
function getFamilyFromFilesystem() {
|
|
102394
102394
|
try {
|
|
102395
|
-
const content = fs$
|
|
102395
|
+
const content = fs$17.readFileSync(LDD_PATH, "utf-8");
|
|
102396
102396
|
if (content.includes("musl")) return "musl";
|
|
102397
102397
|
if (content.includes("GNU C Library")) return "glibc";
|
|
102398
102398
|
return null;
|
|
@@ -102598,7 +102598,7 @@ var require_lib$22 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102598
102598
|
//#endregion
|
|
102599
102599
|
//#region ../../node_modules/npm-normalize-package-bin/lib/index.js
|
|
102600
102600
|
var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102601
|
-
const { join: join$
|
|
102601
|
+
const { join: join$12, basename: basename$4 } = require("path");
|
|
102602
102602
|
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);
|
|
102603
102603
|
const normalizeString = (pkg) => {
|
|
102604
102604
|
if (!pkg.name) return removeBin(pkg);
|
|
@@ -102621,9 +102621,9 @@ var require_lib$21 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102621
102621
|
const clean = {};
|
|
102622
102622
|
let hasBins = false;
|
|
102623
102623
|
Object.keys(orig).forEach((binKey) => {
|
|
102624
|
-
const base = join$
|
|
102624
|
+
const base = join$12("/", basename$4(binKey.replace(/\\|:/g, "/"))).slice(1);
|
|
102625
102625
|
if (typeof orig[binKey] !== "string" || !base) return;
|
|
102626
|
-
const binTarget = join$
|
|
102626
|
+
const binTarget = join$12("/", orig[binKey].replace(/\\/g, "/")).replace(/\\/g, "/").slice(1);
|
|
102627
102627
|
if (!binTarget) return;
|
|
102628
102628
|
clean[base] = binTarget;
|
|
102629
102629
|
hasBins = true;
|
|
@@ -102781,7 +102781,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102781
102781
|
const spawn = require_spawn();
|
|
102782
102782
|
const { isWindows } = require_utils$3();
|
|
102783
102783
|
const pickManifest = require_lib$20();
|
|
102784
|
-
const fs$
|
|
102784
|
+
const fs$16 = require("fs/promises");
|
|
102785
102785
|
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));
|
|
102786
102786
|
const maybeShallow = (repo, opts) => {
|
|
102787
102787
|
if (opts.gitShallow === false || opts.gitShallow) return opts.gitShallow;
|
|
@@ -102816,7 +102816,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102816
102816
|
...opts,
|
|
102817
102817
|
cwd: target
|
|
102818
102818
|
});
|
|
102819
|
-
return fs$
|
|
102819
|
+
return fs$16.mkdir(target, { recursive: true }).then(() => git(["init"])).then(() => isWindows(opts) ? git([
|
|
102820
102820
|
"config",
|
|
102821
102821
|
"--local",
|
|
102822
102822
|
"--add",
|
|
@@ -102854,7 +102854,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102854
102854
|
return spawn(args, opts).then(() => revDoc.sha);
|
|
102855
102855
|
};
|
|
102856
102856
|
const updateSubmodules = async (target, opts) => {
|
|
102857
|
-
if (!await fs$
|
|
102857
|
+
if (!await fs$16.stat(`${target}/.gitmodules`).then(() => true).catch(() => false)) return null;
|
|
102858
102858
|
return spawn([
|
|
102859
102859
|
"submodule",
|
|
102860
102860
|
"update",
|
|
@@ -102879,7 +102879,7 @@ var require_clone = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
102879
102879
|
...opts,
|
|
102880
102880
|
cwd: target
|
|
102881
102881
|
});
|
|
102882
|
-
return fs$
|
|
102882
|
+
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([
|
|
102883
102883
|
"rev-parse",
|
|
102884
102884
|
"--revs-only",
|
|
102885
102885
|
"HEAD"
|
|
@@ -102896,11 +102896,11 @@ var require_is = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
102896
102896
|
//#region ../../node_modules/@npmcli/git/lib/find.js
|
|
102897
102897
|
var require_find = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102898
102898
|
const is = require_is();
|
|
102899
|
-
const { dirname: dirname$
|
|
102899
|
+
const { dirname: dirname$10 } = require("path");
|
|
102900
102900
|
module.exports = async ({ cwd = process.cwd(), root } = {}) => {
|
|
102901
102901
|
while (true) {
|
|
102902
102902
|
if (await is({ cwd })) return cwd;
|
|
102903
|
-
const next = dirname$
|
|
102903
|
+
const next = dirname$10(cwd);
|
|
102904
102904
|
if (cwd === root || cwd === next) return null;
|
|
102905
102905
|
cwd = next;
|
|
102906
102906
|
}
|
|
@@ -102934,7 +102934,7 @@ var require_lib$19 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
102934
102934
|
var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
102935
102935
|
const valid = require_valid$5();
|
|
102936
102936
|
const clean = require_clean$2();
|
|
102937
|
-
const fs$
|
|
102937
|
+
const fs$15 = require("node:fs/promises");
|
|
102938
102938
|
const path$17 = require("node:path");
|
|
102939
102939
|
const { log } = require_lib$29();
|
|
102940
102940
|
const moduleBuiltin = require("node:module");
|
|
@@ -103218,13 +103218,13 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
103218
103218
|
}
|
|
103219
103219
|
}
|
|
103220
103220
|
if (steps.includes("serverjs") && !scripts.start) try {
|
|
103221
|
-
await fs$
|
|
103221
|
+
await fs$15.access(path$17.join(pkg.path, "server.js"));
|
|
103222
103222
|
scripts.start = "node server.js";
|
|
103223
103223
|
data.scripts = scripts;
|
|
103224
103224
|
changes?.push("\"scripts.start\" was set to \"node server.js\"");
|
|
103225
103225
|
} catch {}
|
|
103226
103226
|
if (steps.includes("authors") && !data.contributors) try {
|
|
103227
|
-
data.contributors = (await fs$
|
|
103227
|
+
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);
|
|
103228
103228
|
changes?.push("\"contributors\" was auto-populated with the contents of the \"AUTHORS\" file");
|
|
103229
103229
|
} catch {}
|
|
103230
103230
|
if (steps.includes("readme") && !data.readme) {
|
|
@@ -103243,7 +103243,7 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
103243
103243
|
if (file.endsWith("README")) readmeFile = file;
|
|
103244
103244
|
}
|
|
103245
103245
|
if (readmeFile) {
|
|
103246
|
-
data.readme = await fs$
|
|
103246
|
+
data.readme = await fs$15.readFile(path$17.join(pkg.path, readmeFile), "utf8");
|
|
103247
103247
|
data.readmeFilename = readmeFile;
|
|
103248
103248
|
changes?.push(`"readme" was set to the contents of ${readmeFile}`);
|
|
103249
103249
|
changes?.push(`"readmeFilename" was set to ${readmeFile}`);
|
|
@@ -103275,20 +103275,20 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
103275
103275
|
});
|
|
103276
103276
|
let head;
|
|
103277
103277
|
if (gitRoot) try {
|
|
103278
|
-
head = await fs$
|
|
103278
|
+
head = await fs$15.readFile(path$17.resolve(gitRoot, ".git/HEAD"), "utf8");
|
|
103279
103279
|
} catch (err) {}
|
|
103280
103280
|
let headData;
|
|
103281
103281
|
if (head) if (head.startsWith("ref: ")) {
|
|
103282
103282
|
const headRef = head.replace(/^ref: /, "").trim();
|
|
103283
103283
|
const headFile = path$17.resolve(gitRoot, ".git", headRef);
|
|
103284
103284
|
try {
|
|
103285
|
-
headData = await fs$
|
|
103285
|
+
headData = await fs$15.readFile(headFile, "utf8");
|
|
103286
103286
|
headData = headData.replace(/^ref: /, "").trim();
|
|
103287
103287
|
} catch (err) {}
|
|
103288
103288
|
if (!headData) {
|
|
103289
103289
|
const packFile = path$17.resolve(gitRoot, ".git/packed-refs");
|
|
103290
103290
|
try {
|
|
103291
|
-
let refs = await fs$
|
|
103291
|
+
let refs = await fs$15.readFile(packFile, "utf8");
|
|
103292
103292
|
if (refs) {
|
|
103293
103293
|
refs = refs.split("\n");
|
|
103294
103294
|
for (let i = 0; i < refs.length; i++) {
|
|
@@ -103309,12 +103309,12 @@ var require_normalize = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
103309
103309
|
if (typeof index !== "string") throw new TypeError("The \"main\" attribute must be of type string.");
|
|
103310
103310
|
const dts = `./${path$17.join(path$17.dirname(index), path$17.basename(index, path$17.extname(index)))}.d.ts`;
|
|
103311
103311
|
if (!("types" in data || "typings" in data)) try {
|
|
103312
|
-
await fs$
|
|
103312
|
+
await fs$15.access(path$17.join(pkg.path, dts));
|
|
103313
103313
|
data.types = dts.split(path$17.sep).join("/");
|
|
103314
103314
|
} catch {}
|
|
103315
103315
|
}
|
|
103316
103316
|
if (steps.includes("binRefs") && data.bin instanceof Object) for (const key in data.bin) try {
|
|
103317
|
-
await fs$
|
|
103317
|
+
await fs$15.access(path$17.resolve(pkg.path, data.bin[key]));
|
|
103318
103318
|
} catch {
|
|
103319
103319
|
log.warn("package-json", pkgId, `No bin file found at ${data.bin[key]}`);
|
|
103320
103320
|
}
|
|
@@ -104696,7 +104696,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104696
104696
|
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();
|
|
104697
104697
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = require("os");
|
|
104698
104698
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$8, readdir: readdir$6, readlink, stat: stat$5, symlink, unlink, utimes } = require("fs/promises");
|
|
104699
|
-
const { dirname: dirname$
|
|
104699
|
+
const { dirname: dirname$9, isAbsolute: isAbsolute$2, join: join$11, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = require("path");
|
|
104700
104700
|
const { fileURLToPath } = require("url");
|
|
104701
104701
|
const defaultOptions = {
|
|
104702
104702
|
dereference: false,
|
|
@@ -104770,7 +104770,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104770
104770
|
})]);
|
|
104771
104771
|
}
|
|
104772
104772
|
async function checkParentDir(destStat, src, dest, opts) {
|
|
104773
|
-
const destParent = dirname$
|
|
104773
|
+
const destParent = dirname$9(dest);
|
|
104774
104774
|
if (await pathExists(destParent)) return getStatsForCopy(destStat, src, dest, opts);
|
|
104775
104775
|
await mkdir$8(destParent, { recursive: true });
|
|
104776
104776
|
return getStatsForCopy(destStat, src, dest, opts);
|
|
@@ -104783,8 +104783,8 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104783
104783
|
);
|
|
104784
104784
|
}
|
|
104785
104785
|
async function checkParentPaths(src, srcStat, dest) {
|
|
104786
|
-
const srcParent = resolve$10(dirname$
|
|
104787
|
-
const destParent = resolve$10(dirname$
|
|
104786
|
+
const srcParent = resolve$10(dirname$9(src));
|
|
104787
|
+
const destParent = resolve$10(dirname$9(dest));
|
|
104788
104788
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
104789
104789
|
let destStat;
|
|
104790
104790
|
try {
|
|
@@ -104905,15 +104905,15 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104905
104905
|
const dir = await readdir$6(src);
|
|
104906
104906
|
for (let i = 0; i < dir.length; i++) {
|
|
104907
104907
|
const item = dir[i];
|
|
104908
|
-
const srcItem = join$
|
|
104909
|
-
const destItem = join$
|
|
104908
|
+
const srcItem = join$11(src, item);
|
|
104909
|
+
const destItem = join$11(dest, item);
|
|
104910
104910
|
const { destStat } = await checkPaths(srcItem, destItem, opts);
|
|
104911
104911
|
await startCopy(destStat, srcItem, destItem, opts);
|
|
104912
104912
|
}
|
|
104913
104913
|
}
|
|
104914
104914
|
async function onLink(destStat, src, dest) {
|
|
104915
104915
|
let resolvedSrc = await readlink(src);
|
|
104916
|
-
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$
|
|
104916
|
+
if (!isAbsolute$2(resolvedSrc)) resolvedSrc = resolve$10(dirname$9(src), resolvedSrc);
|
|
104917
104917
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
104918
104918
|
let resolvedDest;
|
|
104919
104919
|
try {
|
|
@@ -104924,7 +104924,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104924
104924
|
// istanbul ignore next: should not be possible
|
|
104925
104925
|
throw err;
|
|
104926
104926
|
}
|
|
104927
|
-
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$
|
|
104927
|
+
if (!isAbsolute$2(resolvedDest)) resolvedDest = resolve$10(dirname$9(dest), resolvedDest);
|
|
104928
104928
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
104929
104929
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
104930
104930
|
path: dest,
|
|
@@ -104948,7 +104948,7 @@ var require_polyfill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
104948
104948
|
//#endregion
|
|
104949
104949
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/cp/index.js
|
|
104950
104950
|
var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
104951
|
-
const fs$
|
|
104951
|
+
const fs$14 = require("fs/promises");
|
|
104952
104952
|
const getOptions = require_get_options();
|
|
104953
104953
|
const node = require_node$1();
|
|
104954
104954
|
const polyfill = require_polyfill();
|
|
@@ -104963,20 +104963,20 @@ var require_cp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
104963
104963
|
"recursive"
|
|
104964
104964
|
] });
|
|
104965
104965
|
// istanbul ignore next
|
|
104966
|
-
return useNative ? fs$
|
|
104966
|
+
return useNative ? fs$14.cp(src, dest, options) : polyfill(src, dest, options);
|
|
104967
104967
|
};
|
|
104968
104968
|
module.exports = cp;
|
|
104969
104969
|
}));
|
|
104970
104970
|
//#endregion
|
|
104971
104971
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/with-temp-dir.js
|
|
104972
104972
|
var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
104973
|
-
const { join: join$
|
|
104973
|
+
const { join: join$10, sep: sep$1 } = require("path");
|
|
104974
104974
|
const getOptions = require_get_options();
|
|
104975
104975
|
const { mkdir: mkdir$7, mkdtemp, rm: rm$8 } = require("fs/promises");
|
|
104976
104976
|
const withTempDir = async (root, fn, opts) => {
|
|
104977
104977
|
const options = getOptions(opts, { copy: ["tmpPrefix"] });
|
|
104978
104978
|
await mkdir$7(root, { recursive: true });
|
|
104979
|
-
const target = await mkdtemp(join$
|
|
104979
|
+
const target = await mkdtemp(join$10(`${root}${sep$1}`, options.tmpPrefix || ""));
|
|
104980
104980
|
let err;
|
|
104981
104981
|
let result;
|
|
104982
104982
|
try {
|
|
@@ -104999,10 +104999,10 @@ var require_with_temp_dir = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
104999
104999
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/readdir-scoped.js
|
|
105000
105000
|
var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105001
105001
|
const { readdir: readdir$5 } = require("fs/promises");
|
|
105002
|
-
const { join: join$
|
|
105002
|
+
const { join: join$9 } = require("path");
|
|
105003
105003
|
const readdirScoped = async (dir) => {
|
|
105004
105004
|
const results = [];
|
|
105005
|
-
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$
|
|
105005
|
+
for (const item of await readdir$5(dir)) if (item.startsWith("@")) for (const scopedItem of await readdir$5(join$9(dir, item))) results.push(join$9(item, scopedItem));
|
|
105006
105006
|
else results.push(item);
|
|
105007
105007
|
return results;
|
|
105008
105008
|
};
|
|
@@ -105011,11 +105011,11 @@ var require_readdir_scoped = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
105011
105011
|
//#endregion
|
|
105012
105012
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
105013
105013
|
var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105014
|
-
const { dirname: dirname$
|
|
105015
|
-
const fs$
|
|
105014
|
+
const { dirname: dirname$8, join: join$8, resolve: resolve$9, relative: relative$1, isAbsolute: isAbsolute$1 } = require("path");
|
|
105015
|
+
const fs$13 = require("fs/promises");
|
|
105016
105016
|
const pathExists = async (path$56) => {
|
|
105017
105017
|
try {
|
|
105018
|
-
await fs$
|
|
105018
|
+
await fs$13.access(path$56);
|
|
105019
105019
|
return true;
|
|
105020
105020
|
} catch (er) {
|
|
105021
105021
|
return er.code !== "ENOENT";
|
|
@@ -105028,34 +105028,34 @@ var require_move_file = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
105028
105028
|
...options
|
|
105029
105029
|
};
|
|
105030
105030
|
if (!options.overwrite && await pathExists(destination)) throw new Error(`The destination file exists: ${destination}`);
|
|
105031
|
-
await fs$
|
|
105031
|
+
await fs$13.mkdir(dirname$8(destination), { recursive: true });
|
|
105032
105032
|
try {
|
|
105033
|
-
await fs$
|
|
105033
|
+
await fs$13.rename(source, destination);
|
|
105034
105034
|
} catch (error) {
|
|
105035
105035
|
if (error.code === "EXDEV" || error.code === "EPERM") {
|
|
105036
|
-
const sourceStat = await fs$
|
|
105036
|
+
const sourceStat = await fs$13.lstat(source);
|
|
105037
105037
|
if (sourceStat.isDirectory()) {
|
|
105038
|
-
const files = await fs$
|
|
105039
|
-
await Promise.all(files.map((file) => moveFile(join$
|
|
105038
|
+
const files = await fs$13.readdir(source);
|
|
105039
|
+
await Promise.all(files.map((file) => moveFile(join$8(source, file), join$8(destination, file), options, false, symlinks)));
|
|
105040
105040
|
} else if (sourceStat.isSymbolicLink()) symlinks.push({
|
|
105041
105041
|
source,
|
|
105042
105042
|
destination
|
|
105043
105043
|
});
|
|
105044
|
-
else await fs$
|
|
105044
|
+
else await fs$13.copyFile(source, destination);
|
|
105045
105045
|
} else throw error;
|
|
105046
105046
|
}
|
|
105047
105047
|
if (root) {
|
|
105048
105048
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
105049
|
-
let target = await fs$
|
|
105049
|
+
let target = await fs$13.readlink(symSource);
|
|
105050
105050
|
if (isAbsolute$1(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
105051
105051
|
let targetStat = "file";
|
|
105052
105052
|
try {
|
|
105053
|
-
targetStat = await fs$
|
|
105053
|
+
targetStat = await fs$13.stat(resolve$9(dirname$8(symSource), target));
|
|
105054
105054
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
105055
105055
|
} catch {}
|
|
105056
|
-
await fs$
|
|
105056
|
+
await fs$13.symlink(target, symDestination, targetStat);
|
|
105057
105057
|
}));
|
|
105058
|
-
await fs$
|
|
105058
|
+
await fs$13.rm(source, {
|
|
105059
105059
|
recursive: true,
|
|
105060
105060
|
force: true
|
|
105061
105061
|
});
|
|
@@ -105078,7 +105078,7 @@ var require_lib$16 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
105078
105078
|
var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105079
105079
|
const crypto$2 = require("crypto");
|
|
105080
105080
|
const { withTempDir } = require_lib$16();
|
|
105081
|
-
const fs$
|
|
105081
|
+
const fs$12 = require("fs/promises");
|
|
105082
105082
|
const path$16 = require("path");
|
|
105083
105083
|
module.exports.mkdir = mktmpdir;
|
|
105084
105084
|
module.exports.tmpName = function tmpName(cache, tmpPrefix) {
|
|
@@ -105088,12 +105088,12 @@ var require_tmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
105088
105088
|
async function mktmpdir(cache, opts = {}) {
|
|
105089
105089
|
const { tmpPrefix } = opts;
|
|
105090
105090
|
const tmpDir = path$16.join(cache, "tmp");
|
|
105091
|
-
await fs$
|
|
105091
|
+
await fs$12.mkdir(tmpDir, {
|
|
105092
105092
|
recursive: true,
|
|
105093
105093
|
owner: "inherit"
|
|
105094
105094
|
});
|
|
105095
105095
|
const target = `${tmpDir}${path$16.sep}${tmpPrefix || ""}`;
|
|
105096
|
-
return fs$
|
|
105096
|
+
return fs$12.mkdtemp(target, { owner: "inherit" });
|
|
105097
105097
|
}
|
|
105098
105098
|
module.exports.withTmp = withTmp;
|
|
105099
105099
|
function withTmp(cache, opts, cb) {
|
|
@@ -105473,8 +105473,8 @@ var require_memoization = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
105473
105473
|
var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
105474
105474
|
const { Minipass } = require_commonjs$10();
|
|
105475
105475
|
const EE$4 = require("events").EventEmitter;
|
|
105476
|
-
const fs$
|
|
105477
|
-
const writev = fs$
|
|
105476
|
+
const fs$11 = require("fs");
|
|
105477
|
+
const writev = fs$11.writev;
|
|
105478
105478
|
const _autoClose = Symbol("_autoClose");
|
|
105479
105479
|
const _close = Symbol("_close");
|
|
105480
105480
|
const _ended = Symbol("_ended");
|
|
@@ -105534,7 +105534,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105534
105534
|
throw new TypeError("this is a readable stream");
|
|
105535
105535
|
}
|
|
105536
105536
|
[_open]() {
|
|
105537
|
-
fs$
|
|
105537
|
+
fs$11.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
105538
105538
|
}
|
|
105539
105539
|
[_onopen](er, fd) {
|
|
105540
105540
|
if (er) this[_onerror](er);
|
|
@@ -105553,7 +105553,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105553
105553
|
const buf = this[_makeBuf]();
|
|
105554
105554
|
/* istanbul ignore if */
|
|
105555
105555
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
105556
|
-
fs$
|
|
105556
|
+
fs$11.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
105557
105557
|
}
|
|
105558
105558
|
}
|
|
105559
105559
|
[_onread](er, br, buf) {
|
|
@@ -105565,7 +105565,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105565
105565
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
105566
105566
|
const fd = this[_fd];
|
|
105567
105567
|
this[_fd] = null;
|
|
105568
|
-
fs$
|
|
105568
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
105569
105569
|
}
|
|
105570
105570
|
}
|
|
105571
105571
|
[_onerror](er) {
|
|
@@ -105603,7 +105603,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105603
105603
|
[_open]() {
|
|
105604
105604
|
let threw = true;
|
|
105605
105605
|
try {
|
|
105606
|
-
this[_onopen](null, fs$
|
|
105606
|
+
this[_onopen](null, fs$11.openSync(this[_path], "r"));
|
|
105607
105607
|
threw = false;
|
|
105608
105608
|
} finally {
|
|
105609
105609
|
if (threw) this[_close]();
|
|
@@ -105617,7 +105617,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105617
105617
|
do {
|
|
105618
105618
|
const buf = this[_makeBuf]();
|
|
105619
105619
|
/* istanbul ignore next */
|
|
105620
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
105620
|
+
const br = buf.length === 0 ? 0 : fs$11.readSync(this[_fd], buf, 0, buf.length, null);
|
|
105621
105621
|
if (!this[_handleChunk](br, buf)) break;
|
|
105622
105622
|
} while (true);
|
|
105623
105623
|
this[_reading] = false;
|
|
@@ -105631,7 +105631,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105631
105631
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
105632
105632
|
const fd = this[_fd];
|
|
105633
105633
|
this[_fd] = null;
|
|
105634
|
-
fs$
|
|
105634
|
+
fs$11.closeSync(fd);
|
|
105635
105635
|
this.emit("close");
|
|
105636
105636
|
}
|
|
105637
105637
|
}
|
|
@@ -105676,7 +105676,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105676
105676
|
this.emit("error", er);
|
|
105677
105677
|
}
|
|
105678
105678
|
[_open]() {
|
|
105679
|
-
fs$
|
|
105679
|
+
fs$11.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
105680
105680
|
}
|
|
105681
105681
|
[_onopen](er, fd) {
|
|
105682
105682
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -105711,7 +105711,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105711
105711
|
return true;
|
|
105712
105712
|
}
|
|
105713
105713
|
[_write](buf) {
|
|
105714
|
-
fs$
|
|
105714
|
+
fs$11.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
105715
105715
|
}
|
|
105716
105716
|
[_onwrite](er, bw) {
|
|
105717
105717
|
if (er) this[_onerror](er);
|
|
@@ -105745,7 +105745,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105745
105745
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
105746
105746
|
const fd = this[_fd];
|
|
105747
105747
|
this[_fd] = null;
|
|
105748
|
-
fs$
|
|
105748
|
+
fs$11.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
105749
105749
|
}
|
|
105750
105750
|
}
|
|
105751
105751
|
};
|
|
@@ -105753,28 +105753,28 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105753
105753
|
[_open]() {
|
|
105754
105754
|
let fd;
|
|
105755
105755
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
105756
|
-
fd = fs$
|
|
105756
|
+
fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
105757
105757
|
} catch (er) {
|
|
105758
105758
|
if (er.code === "ENOENT") {
|
|
105759
105759
|
this[_flags] = "w";
|
|
105760
105760
|
return this[_open]();
|
|
105761
105761
|
} else throw er;
|
|
105762
105762
|
}
|
|
105763
|
-
else fd = fs$
|
|
105763
|
+
else fd = fs$11.openSync(this[_path], this[_flags], this[_mode]);
|
|
105764
105764
|
this[_onopen](null, fd);
|
|
105765
105765
|
}
|
|
105766
105766
|
[_close]() {
|
|
105767
105767
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
105768
105768
|
const fd = this[_fd];
|
|
105769
105769
|
this[_fd] = null;
|
|
105770
|
-
fs$
|
|
105770
|
+
fs$11.closeSync(fd);
|
|
105771
105771
|
this.emit("close");
|
|
105772
105772
|
}
|
|
105773
105773
|
}
|
|
105774
105774
|
[_write](buf) {
|
|
105775
105775
|
let threw = true;
|
|
105776
105776
|
try {
|
|
105777
|
-
this[_onwrite](null, fs$
|
|
105777
|
+
this[_onwrite](null, fs$11.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
105778
105778
|
threw = false;
|
|
105779
105779
|
} finally {
|
|
105780
105780
|
if (threw) try {
|
|
@@ -105791,7 +105791,7 @@ var require_lib$15 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
105791
105791
|
//#endregion
|
|
105792
105792
|
//#region ../../node_modules/cacache/lib/content/read.js
|
|
105793
105793
|
var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
105794
|
-
const fs$
|
|
105794
|
+
const fs$10 = require("fs/promises");
|
|
105795
105795
|
const fsm = require_lib$15();
|
|
105796
105796
|
const ssri = require_lib$17();
|
|
105797
105797
|
const contentPath = require_path();
|
|
@@ -105802,13 +105802,13 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105802
105802
|
const { size } = opts;
|
|
105803
105803
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
105804
105804
|
return {
|
|
105805
|
-
stat: size ? { size } : await fs$
|
|
105805
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
105806
105806
|
cpath,
|
|
105807
105807
|
sri
|
|
105808
105808
|
};
|
|
105809
105809
|
});
|
|
105810
105810
|
if (stat.size > MAX_SINGLE_READ_SIZE) return readPipeline(cpath, stat.size, sri, new Pipeline()).concat();
|
|
105811
|
-
const data = await fs$
|
|
105811
|
+
const data = await fs$10.readFile(cpath, { encoding: null });
|
|
105812
105812
|
if (stat.size !== data.length) throw sizeError(stat.size, data.length);
|
|
105813
105813
|
if (!ssri.checkData(data, sri)) throw integrityError(sri, cpath);
|
|
105814
105814
|
return data;
|
|
@@ -105831,7 +105831,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105831
105831
|
Promise.resolve().then(async () => {
|
|
105832
105832
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
105833
105833
|
return {
|
|
105834
|
-
stat: size ? { size } : await fs$
|
|
105834
|
+
stat: size ? { size } : await fs$10.stat(cpath),
|
|
105835
105835
|
cpath,
|
|
105836
105836
|
sri
|
|
105837
105837
|
};
|
|
@@ -105843,7 +105843,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105843
105843
|
module.exports.copy = copy;
|
|
105844
105844
|
function copy(cache, integrity, dest) {
|
|
105845
105845
|
return withContentSri(cache, integrity, (cpath) => {
|
|
105846
|
-
return fs$
|
|
105846
|
+
return fs$10.copyFile(cpath, dest);
|
|
105847
105847
|
});
|
|
105848
105848
|
}
|
|
105849
105849
|
module.exports.hasContent = hasContent;
|
|
@@ -105851,7 +105851,7 @@ var require_read = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
105851
105851
|
if (!integrity) return false;
|
|
105852
105852
|
try {
|
|
105853
105853
|
return await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
105854
|
-
const stat = await fs$
|
|
105854
|
+
const stat = await fs$10.stat(cpath);
|
|
105855
105855
|
return {
|
|
105856
105856
|
size: stat.size,
|
|
105857
105857
|
sri,
|
|
@@ -106491,7 +106491,7 @@ var require_minipass_flush = /* @__PURE__ */ require_chunk.__commonJSMin(((expor
|
|
|
106491
106491
|
var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
106492
106492
|
const events = require("events");
|
|
106493
106493
|
const contentPath = require_path();
|
|
106494
|
-
const fs$
|
|
106494
|
+
const fs$9 = require("fs/promises");
|
|
106495
106495
|
const { moveFile } = require_lib$16();
|
|
106496
106496
|
const { Minipass } = require_commonjs$10();
|
|
106497
106497
|
const Pipeline = require_minipass_pipeline();
|
|
@@ -106511,10 +106511,10 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106511
106511
|
const tmp = await makeTmp(cache, opts);
|
|
106512
106512
|
const hash = sri[algo].toString();
|
|
106513
106513
|
try {
|
|
106514
|
-
await fs$
|
|
106514
|
+
await fs$9.writeFile(tmp.target, data, { flag: "wx" });
|
|
106515
106515
|
await moveToDestination(tmp, cache, hash, opts);
|
|
106516
106516
|
} finally {
|
|
106517
|
-
if (!tmp.moved) await fs$
|
|
106517
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
106518
106518
|
recursive: true,
|
|
106519
106519
|
force: true
|
|
106520
106520
|
});
|
|
@@ -106568,7 +106568,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106568
106568
|
await moveToDestination(tmp, cache, res.integrity, opts);
|
|
106569
106569
|
return res;
|
|
106570
106570
|
} finally {
|
|
106571
|
-
if (!tmp.moved) await fs$
|
|
106571
|
+
if (!tmp.moved) await fs$9.rm(tmp.target, {
|
|
106572
106572
|
recursive: true,
|
|
106573
106573
|
force: true
|
|
106574
106574
|
});
|
|
@@ -106608,7 +106608,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106608
106608
|
}
|
|
106609
106609
|
async function makeTmp(cache, opts) {
|
|
106610
106610
|
const tmpTarget = tmpName(cache, opts.tmpPrefix);
|
|
106611
|
-
await fs$
|
|
106611
|
+
await fs$9.mkdir(path$13.dirname(tmpTarget), { recursive: true });
|
|
106612
106612
|
return {
|
|
106613
106613
|
target: tmpTarget,
|
|
106614
106614
|
moved: false
|
|
@@ -106618,7 +106618,7 @@ var require_write = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
106618
106618
|
const destination = contentPath(cache, sri);
|
|
106619
106619
|
const destDir = path$13.dirname(destination);
|
|
106620
106620
|
if (moveOperations.has(destination)) return moveOperations.get(destination);
|
|
106621
|
-
moveOperations.set(destination, fs$
|
|
106621
|
+
moveOperations.set(destination, fs$9.mkdir(destDir, { recursive: true }).then(async () => {
|
|
106622
106622
|
await moveFile(tmp.target, destination, { overwrite: false });
|
|
106623
106623
|
tmp.moved = true;
|
|
106624
106624
|
return tmp.moved;
|
|
@@ -110076,14 +110076,14 @@ var require_glob = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
110076
110076
|
//#endregion
|
|
110077
110077
|
//#region ../../node_modules/cacache/lib/content/rm.js
|
|
110078
110078
|
var require_rm$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110079
|
-
const fs$
|
|
110079
|
+
const fs$8 = require("fs/promises");
|
|
110080
110080
|
const contentPath = require_path();
|
|
110081
110081
|
const { hasContent } = require_read();
|
|
110082
110082
|
module.exports = rm;
|
|
110083
110083
|
async function rm(cache, integrity) {
|
|
110084
110084
|
const content = await hasContent(cache, integrity);
|
|
110085
110085
|
if (content && content.sri) {
|
|
110086
|
-
await fs$
|
|
110086
|
+
await fs$8.rm(contentPath(cache, content.sri), {
|
|
110087
110087
|
recursive: true,
|
|
110088
110088
|
force: true
|
|
110089
110089
|
});
|
|
@@ -110365,8 +110365,8 @@ var require_lib$14 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110365
110365
|
var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
110366
110366
|
const { Minipass } = require_commonjs$10();
|
|
110367
110367
|
const EE$2 = require("events").EventEmitter;
|
|
110368
|
-
const fs$
|
|
110369
|
-
const writev = fs$
|
|
110368
|
+
const fs$7 = require("fs");
|
|
110369
|
+
const writev = fs$7.writev;
|
|
110370
110370
|
const _autoClose = Symbol("_autoClose");
|
|
110371
110371
|
const _close = Symbol("_close");
|
|
110372
110372
|
const _ended = Symbol("_ended");
|
|
@@ -110426,7 +110426,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110426
110426
|
throw new TypeError("this is a readable stream");
|
|
110427
110427
|
}
|
|
110428
110428
|
[_open]() {
|
|
110429
|
-
fs$
|
|
110429
|
+
fs$7.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
110430
110430
|
}
|
|
110431
110431
|
[_onopen](er, fd) {
|
|
110432
110432
|
if (er) this[_onerror](er);
|
|
@@ -110445,7 +110445,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110445
110445
|
const buf = this[_makeBuf]();
|
|
110446
110446
|
/* istanbul ignore if */
|
|
110447
110447
|
if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf));
|
|
110448
|
-
fs$
|
|
110448
|
+
fs$7.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
110449
110449
|
}
|
|
110450
110450
|
}
|
|
110451
110451
|
[_onread](er, br, buf) {
|
|
@@ -110457,7 +110457,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110457
110457
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
110458
110458
|
const fd = this[_fd];
|
|
110459
110459
|
this[_fd] = null;
|
|
110460
|
-
fs$
|
|
110460
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
110461
110461
|
}
|
|
110462
110462
|
}
|
|
110463
110463
|
[_onerror](er) {
|
|
@@ -110495,7 +110495,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110495
110495
|
[_open]() {
|
|
110496
110496
|
let threw = true;
|
|
110497
110497
|
try {
|
|
110498
|
-
this[_onopen](null, fs$
|
|
110498
|
+
this[_onopen](null, fs$7.openSync(this[_path], "r"));
|
|
110499
110499
|
threw = false;
|
|
110500
110500
|
} finally {
|
|
110501
110501
|
if (threw) this[_close]();
|
|
@@ -110509,7 +110509,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110509
110509
|
do {
|
|
110510
110510
|
const buf = this[_makeBuf]();
|
|
110511
110511
|
/* istanbul ignore next */
|
|
110512
|
-
const br = buf.length === 0 ? 0 : fs$
|
|
110512
|
+
const br = buf.length === 0 ? 0 : fs$7.readSync(this[_fd], buf, 0, buf.length, null);
|
|
110513
110513
|
if (!this[_handleChunk](br, buf)) break;
|
|
110514
110514
|
} while (true);
|
|
110515
110515
|
this[_reading] = false;
|
|
@@ -110523,7 +110523,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110523
110523
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
110524
110524
|
const fd = this[_fd];
|
|
110525
110525
|
this[_fd] = null;
|
|
110526
|
-
fs$
|
|
110526
|
+
fs$7.closeSync(fd);
|
|
110527
110527
|
this.emit("close");
|
|
110528
110528
|
}
|
|
110529
110529
|
}
|
|
@@ -110568,7 +110568,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110568
110568
|
this.emit("error", er);
|
|
110569
110569
|
}
|
|
110570
110570
|
[_open]() {
|
|
110571
|
-
fs$
|
|
110571
|
+
fs$7.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
110572
110572
|
}
|
|
110573
110573
|
[_onopen](er, fd) {
|
|
110574
110574
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -110603,7 +110603,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110603
110603
|
return true;
|
|
110604
110604
|
}
|
|
110605
110605
|
[_write](buf) {
|
|
110606
|
-
fs$
|
|
110606
|
+
fs$7.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
110607
110607
|
}
|
|
110608
110608
|
[_onwrite](er, bw) {
|
|
110609
110609
|
if (er) this[_onerror](er);
|
|
@@ -110637,7 +110637,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110637
110637
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
110638
110638
|
const fd = this[_fd];
|
|
110639
110639
|
this[_fd] = null;
|
|
110640
|
-
fs$
|
|
110640
|
+
fs$7.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
110641
110641
|
}
|
|
110642
110642
|
}
|
|
110643
110643
|
};
|
|
@@ -110645,28 +110645,28 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110645
110645
|
[_open]() {
|
|
110646
110646
|
let fd;
|
|
110647
110647
|
if (this[_defaultFlag] && this[_flags] === "r+") try {
|
|
110648
|
-
fd = fs$
|
|
110648
|
+
fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
110649
110649
|
} catch (er) {
|
|
110650
110650
|
if (er.code === "ENOENT") {
|
|
110651
110651
|
this[_flags] = "w";
|
|
110652
110652
|
return this[_open]();
|
|
110653
110653
|
} else throw er;
|
|
110654
110654
|
}
|
|
110655
|
-
else fd = fs$
|
|
110655
|
+
else fd = fs$7.openSync(this[_path], this[_flags], this[_mode]);
|
|
110656
110656
|
this[_onopen](null, fd);
|
|
110657
110657
|
}
|
|
110658
110658
|
[_close]() {
|
|
110659
110659
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
110660
110660
|
const fd = this[_fd];
|
|
110661
110661
|
this[_fd] = null;
|
|
110662
|
-
fs$
|
|
110662
|
+
fs$7.closeSync(fd);
|
|
110663
110663
|
this.emit("close");
|
|
110664
110664
|
}
|
|
110665
110665
|
}
|
|
110666
110666
|
[_write](buf) {
|
|
110667
110667
|
let threw = true;
|
|
110668
110668
|
try {
|
|
110669
|
-
this[_onwrite](null, fs$
|
|
110669
|
+
this[_onwrite](null, fs$7.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
110670
110670
|
threw = false;
|
|
110671
110671
|
} finally {
|
|
110672
110672
|
if (threw) try {
|
|
@@ -110683,7 +110683,7 @@ var require_lib$13 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
110683
110683
|
//#endregion
|
|
110684
110684
|
//#region ../../node_modules/npm-bundled/lib/index.js
|
|
110685
110685
|
var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110686
|
-
const fs$
|
|
110686
|
+
const fs$6 = require("fs");
|
|
110687
110687
|
const path$9 = require("path");
|
|
110688
110688
|
const EE$1 = require("events").EventEmitter;
|
|
110689
110689
|
const normalizePackageBin = require_lib$21();
|
|
@@ -110739,7 +110739,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110739
110739
|
return this;
|
|
110740
110740
|
}
|
|
110741
110741
|
readPackageJson(pj) {
|
|
110742
|
-
fs$
|
|
110742
|
+
fs$6.readFile(pj, (er, data) => er ? this.done() : this.onPackageJson(pj, data));
|
|
110743
110743
|
}
|
|
110744
110744
|
onPackageJson(pj, data) {
|
|
110745
110745
|
try {
|
|
@@ -110797,7 +110797,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110797
110797
|
}
|
|
110798
110798
|
readPackageJson(pj) {
|
|
110799
110799
|
try {
|
|
110800
|
-
this.onPackageJson(pj, fs$
|
|
110800
|
+
this.onPackageJson(pj, fs$6.readFileSync(pj));
|
|
110801
110801
|
} catch {}
|
|
110802
110802
|
return this;
|
|
110803
110803
|
}
|
|
@@ -110816,7 +110816,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110816
110816
|
}
|
|
110817
110817
|
};
|
|
110818
110818
|
const readdirNodeModules = (nm, cb) => {
|
|
110819
|
-
fs$
|
|
110819
|
+
fs$6.readdir(nm, (er, set) => {
|
|
110820
110820
|
if (er) cb(er);
|
|
110821
110821
|
else {
|
|
110822
110822
|
const scopes = set.filter((f) => /^@/.test(f));
|
|
@@ -110825,7 +110825,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110825
110825
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
110826
110826
|
let count = scopes.length;
|
|
110827
110827
|
scopes.forEach((scope) => {
|
|
110828
|
-
fs$
|
|
110828
|
+
fs$6.readdir(nm + "/" + scope, (readdirEr, pkgs) => {
|
|
110829
110829
|
if (readdirEr || !pkgs.length) unscoped.push(scope);
|
|
110830
110830
|
else unscoped.push.apply(unscoped, pkgs.map((p) => scope + "/" + p));
|
|
110831
110831
|
if (--count === 0) cb(null, unscoped);
|
|
@@ -110836,11 +110836,11 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110836
110836
|
});
|
|
110837
110837
|
};
|
|
110838
110838
|
const readdirNodeModulesSync = (nm) => {
|
|
110839
|
-
const set = fs$
|
|
110839
|
+
const set = fs$6.readdirSync(nm);
|
|
110840
110840
|
const unscoped = set.filter((f) => !/^@/.test(f));
|
|
110841
110841
|
const scopes = set.filter((f) => /^@/.test(f)).map((scope) => {
|
|
110842
110842
|
try {
|
|
110843
|
-
const pkgs = fs$
|
|
110843
|
+
const pkgs = fs$6.readdirSync(nm + "/" + scope);
|
|
110844
110844
|
return pkgs.length ? pkgs.map((p) => scope + "/" + p) : [scope];
|
|
110845
110845
|
} catch (er) {
|
|
110846
110846
|
return [scope];
|
|
@@ -110867,7 +110867,7 @@ var require_lib$12 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110867
110867
|
var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
110868
110868
|
const bundled = require_lib$12();
|
|
110869
110869
|
const { readFile: readFile$5, readdir: readdir$3, stat: stat$3 } = require("fs/promises");
|
|
110870
|
-
const { resolve: resolve$8, basename: basename$3, dirname: dirname$
|
|
110870
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$7 } = require("path");
|
|
110871
110871
|
const normalizePackageBin = require_lib$21();
|
|
110872
110872
|
const readPackage = ({ path: path$51, packageJsonCache }) => packageJsonCache.has(path$51) ? Promise.resolve(packageJsonCache.get(path$51)) : readFile$5(path$51).then((json) => {
|
|
110873
110873
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -110906,9 +110906,9 @@ var require_lib$11 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
110906
110906
|
}));
|
|
110907
110907
|
if (pkg) {
|
|
110908
110908
|
if (pkg.bin) {
|
|
110909
|
-
const dir = dirname$
|
|
110909
|
+
const dir = dirname$7(path$53);
|
|
110910
110910
|
const scope = basename$3(dir);
|
|
110911
|
-
const nm = /^@.+/.test(scope) ? dirname$
|
|
110911
|
+
const nm = /^@.+/.test(scope) ? dirname$7(dir) : dir;
|
|
110912
110912
|
const binFiles = [];
|
|
110913
110913
|
Object.keys(pkg.bin).forEach((b) => {
|
|
110914
110914
|
const base = resolve$8(nm, ".bin", b);
|
|
@@ -116180,7 +116180,7 @@ var require_commonjs$5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports)
|
|
|
116180
116180
|
//#endregion
|
|
116181
116181
|
//#region ../../node_modules/ignore-walk/lib/index.js
|
|
116182
116182
|
var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
116183
|
-
const fs$
|
|
116183
|
+
const fs$5 = require("fs");
|
|
116184
116184
|
const path$8 = require("path");
|
|
116185
116185
|
const EE = require("events").EventEmitter;
|
|
116186
116186
|
const Minimatch = require_commonjs$5().Minimatch;
|
|
@@ -116219,7 +116219,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
116219
116219
|
return ret;
|
|
116220
116220
|
}
|
|
116221
116221
|
start() {
|
|
116222
|
-
fs$
|
|
116222
|
+
fs$5.readdir(this.path, (er, entries) => er ? this.emit("error", er) : this.onReaddir(entries));
|
|
116223
116223
|
return this;
|
|
116224
116224
|
}
|
|
116225
116225
|
isIgnoreFile(e) {
|
|
@@ -116243,7 +116243,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
116243
116243
|
}
|
|
116244
116244
|
addIgnoreFile(file, then) {
|
|
116245
116245
|
const ig = path$8.resolve(this.path, file);
|
|
116246
|
-
fs$
|
|
116246
|
+
fs$5.readFile(ig, "utf8", (er, data) => er ? this.emit("error", er) : this.onReadIgnoreFile(file, data, then));
|
|
116247
116247
|
}
|
|
116248
116248
|
onReadIgnoreFile(file, data, then) {
|
|
116249
116249
|
const mmopt = {
|
|
@@ -116299,11 +116299,11 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
116299
116299
|
}
|
|
116300
116300
|
stat({ entry, file, dir }, then) {
|
|
116301
116301
|
const abs = this.path + "/" + entry;
|
|
116302
|
-
fs$
|
|
116302
|
+
fs$5.lstat(abs, (lstatErr, lstatResult) => {
|
|
116303
116303
|
if (lstatErr) this.emit("error", lstatErr);
|
|
116304
116304
|
else {
|
|
116305
116305
|
const isSymbolicLink = lstatResult.isSymbolicLink();
|
|
116306
|
-
if (this.follow && isSymbolicLink) fs$
|
|
116306
|
+
if (this.follow && isSymbolicLink) fs$5.stat(abs, (statErr, statResult) => {
|
|
116307
116307
|
if (statErr) this.emit("error", statErr);
|
|
116308
116308
|
else this.onstat({
|
|
116309
116309
|
st: statResult,
|
|
@@ -116357,18 +116357,18 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
116357
116357
|
};
|
|
116358
116358
|
var WalkerSync = class WalkerSync extends Walker {
|
|
116359
116359
|
start() {
|
|
116360
|
-
this.onReaddir(fs$
|
|
116360
|
+
this.onReaddir(fs$5.readdirSync(this.path));
|
|
116361
116361
|
return this;
|
|
116362
116362
|
}
|
|
116363
116363
|
addIgnoreFile(file, then) {
|
|
116364
116364
|
const ig = path$8.resolve(this.path, file);
|
|
116365
|
-
this.onReadIgnoreFile(file, fs$
|
|
116365
|
+
this.onReadIgnoreFile(file, fs$5.readFileSync(ig, "utf8"), then);
|
|
116366
116366
|
}
|
|
116367
116367
|
stat({ entry, file, dir }, then) {
|
|
116368
116368
|
const abs = this.path + "/" + entry;
|
|
116369
|
-
let st = fs$
|
|
116369
|
+
let st = fs$5.lstatSync(abs);
|
|
116370
116370
|
const isSymbolicLink = st.isSymbolicLink();
|
|
116371
|
-
if (this.follow && isSymbolicLink) st = fs$
|
|
116371
|
+
if (this.follow && isSymbolicLink) st = fs$5.statSync(abs);
|
|
116372
116372
|
this.onstat({
|
|
116373
116373
|
st,
|
|
116374
116374
|
entry,
|
|
@@ -116399,7 +116399,7 @@ var require_lib$10 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
116399
116399
|
var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
116400
116400
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
116401
116401
|
const { lstatSync: lstat$1, readFileSync: readFile$4 } = require("fs");
|
|
116402
|
-
const { basename: basename$2, dirname: dirname$
|
|
116402
|
+
const { basename: basename$2, dirname: dirname$6, extname: extname$1, join: join$7, relative, resolve: resolve$6, sep } = require("path");
|
|
116403
116403
|
const { log } = require_lib$29();
|
|
116404
116404
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
116405
116405
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -116432,7 +116432,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116432
116432
|
const normalizePath = (path$48) => path$48.split("\\").join("/");
|
|
116433
116433
|
const readOutOfTreeIgnoreFiles = (root, rel, result = []) => {
|
|
116434
116434
|
for (const file of [".npmignore", ".gitignore"]) try {
|
|
116435
|
-
const ignoreContent = readFile$4(join$
|
|
116435
|
+
const ignoreContent = readFile$4(join$7(root, file), { encoding: "utf8" });
|
|
116436
116436
|
result.push(ignoreContent);
|
|
116437
116437
|
break;
|
|
116438
116438
|
} catch (err) {
|
|
@@ -116441,8 +116441,8 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116441
116441
|
}
|
|
116442
116442
|
if (!rel) return result;
|
|
116443
116443
|
const firstRel = rel.split(sep, 1)[0];
|
|
116444
|
-
const newRoot = join$
|
|
116445
|
-
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$
|
|
116444
|
+
const newRoot = join$7(root, firstRel);
|
|
116445
|
+
return readOutOfTreeIgnoreFiles(newRoot, relative(newRoot, join$7(root, rel)), result);
|
|
116446
116446
|
};
|
|
116447
116447
|
var PackWalker = class PackWalker extends IgnoreWalker {
|
|
116448
116448
|
constructor(tree, opts) {
|
|
@@ -116471,7 +116471,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116471
116471
|
const workspaces = options.workspaces.map((ws) => normalizePath(ws));
|
|
116472
116472
|
// istanbul ignore else - this does nothing unless we need it to
|
|
116473
116473
|
if (path$49 !== prefix && workspaces.includes(path$49)) {
|
|
116474
|
-
const relpath = relative(options.prefix, dirname$
|
|
116474
|
+
const relpath = relative(options.prefix, dirname$6(options.path));
|
|
116475
116475
|
additionalDefaults.push(...readOutOfTreeIgnoreFiles(options.prefix, relpath));
|
|
116476
116476
|
} else if (path$49 === prefix) additionalDefaults.push(...workspaces.map((w) => normalizePath(relative(options.path, w))));
|
|
116477
116477
|
}
|
|
@@ -116509,7 +116509,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116509
116509
|
let ignoreFiles = null;
|
|
116510
116510
|
if (this.tree.workspaces) {
|
|
116511
116511
|
const workspaceDirs = [...this.tree.workspaces.values()].map((dir) => dir.replace(/\\/g, "/"));
|
|
116512
|
-
const entryPath = join$
|
|
116512
|
+
const entryPath = join$7(this.path, entry).replace(/\\/g, "/");
|
|
116513
116513
|
if (workspaceDirs.includes(entryPath)) ignoreFiles = [
|
|
116514
116514
|
defaultRules,
|
|
116515
116515
|
"package.json",
|
|
@@ -116569,7 +116569,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116569
116569
|
if (file.endsWith("/*")) file += "*";
|
|
116570
116570
|
const inverse = `!${file}`;
|
|
116571
116571
|
try {
|
|
116572
|
-
const stat = lstat$1(join$
|
|
116572
|
+
const stat = lstat$1(join$7(this.path, file.replace(/^!+/, "")).replace(/\\/g, "/"));
|
|
116573
116573
|
if (stat.isFile()) {
|
|
116574
116574
|
strict.unshift(inverse);
|
|
116575
116575
|
this.requiredFiles.push(file.startsWith("/") ? file.slice(1) : file);
|
|
@@ -116626,7 +116626,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116626
116626
|
walker.start();
|
|
116627
116627
|
});
|
|
116628
116628
|
const relativeFrom = relative(this.root, walker.path);
|
|
116629
|
-
for (const file of bundled) this.result.add(join$
|
|
116629
|
+
for (const file of bundled) this.result.add(join$7(relativeFrom, file).replace(/\\/g, "/"));
|
|
116630
116630
|
}
|
|
116631
116631
|
}
|
|
116632
116632
|
};
|
|
@@ -116650,7 +116650,7 @@ var require_lib$9 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
116650
116650
|
//#region ../../node_modules/@npmcli/run-script/lib/set-path.js
|
|
116651
116651
|
var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
116652
116652
|
const { log } = require_lib$29();
|
|
116653
|
-
const { resolve: resolve$5, dirname: dirname$
|
|
116653
|
+
const { resolve: resolve$5, dirname: dirname$5, delimiter: delimiter$1 } = require("path");
|
|
116654
116654
|
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
116655
116655
|
const setPATH = (projectPath, binPaths, env) => {
|
|
116656
116656
|
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);
|
|
@@ -116668,7 +116668,7 @@ var require_set_path = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
116668
116668
|
do {
|
|
116669
116669
|
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
116670
116670
|
pp = p;
|
|
116671
|
-
p = dirname$
|
|
116671
|
+
p = dirname$5(p);
|
|
116672
116672
|
} while (p !== pp);
|
|
116673
116673
|
pathArr.push(nodeGypPath, PATH);
|
|
116674
116674
|
const pathVal = pathArr.join(delimiter$1);
|
|
@@ -116736,8 +116736,8 @@ var require_package_envs = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
|
|
|
116736
116736
|
//#region ../../node_modules/@npmcli/node-gyp/lib/index.js
|
|
116737
116737
|
var require_lib$8 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
116738
116738
|
const util$2 = require("util");
|
|
116739
|
-
const fs$
|
|
116740
|
-
const { stat } = fs$
|
|
116739
|
+
const fs$4 = require("fs");
|
|
116740
|
+
const { stat } = fs$4.promises || { stat: util$2.promisify(fs$4.stat) };
|
|
116741
116741
|
async function isNodeGypPackage(path) {
|
|
116742
116742
|
return await stat(`${path}/binding.gyp`).then((st) => st.isFile()).catch(() => false);
|
|
116743
116743
|
}
|
|
@@ -127709,7 +127709,7 @@ More info here: ${moreInfoUrl}`);
|
|
|
127709
127709
|
//#endregion
|
|
127710
127710
|
//#region ../../node_modules/npm-registry-fetch/lib/auth.js
|
|
127711
127711
|
var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
127712
|
-
const fs$
|
|
127712
|
+
const fs$3 = require("fs");
|
|
127713
127713
|
const npa = require_npa();
|
|
127714
127714
|
const { URL: URL$2 } = require("url");
|
|
127715
127715
|
const regFromURI = (uri, opts) => {
|
|
@@ -127749,7 +127749,7 @@ var require_auth = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
127749
127749
|
};
|
|
127750
127750
|
const maybeReadFile = (file) => {
|
|
127751
127751
|
try {
|
|
127752
|
-
return fs$
|
|
127752
|
+
return fs$3.readFileSync(file, "utf8");
|
|
127753
127753
|
} catch (er) {
|
|
127754
127754
|
if (er.code !== "ENOENT") throw er;
|
|
127755
127755
|
return null;
|
|
@@ -143994,7 +143994,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
143994
143994
|
exports.Updater = void 0;
|
|
143995
143995
|
const models_1 = require_dist$4();
|
|
143996
143996
|
const debug_1 = __importDefault(require_src$1());
|
|
143997
|
-
const fs$
|
|
143997
|
+
const fs$2 = __importStar(require("fs"));
|
|
143998
143998
|
const path$7 = __importStar(require("path"));
|
|
143999
143999
|
const package_json_1 = require_package$1();
|
|
144000
144000
|
const config_1 = require_config$1();
|
|
@@ -144065,17 +144065,17 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
144065
144065
|
}
|
|
144066
144066
|
const targetUrl = url.join(targetBaseUrl, targetFilePath);
|
|
144067
144067
|
await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => {
|
|
144068
|
-
await targetInfo.verify(fs$
|
|
144068
|
+
await targetInfo.verify(fs$2.createReadStream(fileName));
|
|
144069
144069
|
log("WRITE %s", targetPath);
|
|
144070
|
-
fs$
|
|
144070
|
+
fs$2.copyFileSync(fileName, targetPath);
|
|
144071
144071
|
});
|
|
144072
144072
|
return targetPath;
|
|
144073
144073
|
}
|
|
144074
144074
|
async findCachedTarget(targetInfo, filePath) {
|
|
144075
144075
|
if (!filePath) filePath = this.generateTargetPath(targetInfo);
|
|
144076
144076
|
try {
|
|
144077
|
-
if (fs$
|
|
144078
|
-
await targetInfo.verify(fs$
|
|
144077
|
+
if (fs$2.existsSync(filePath)) {
|
|
144078
|
+
await targetInfo.verify(fs$2.createReadStream(filePath));
|
|
144079
144079
|
return filePath;
|
|
144080
144080
|
}
|
|
144081
144081
|
} catch (error) {
|
|
@@ -144085,7 +144085,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
144085
144085
|
loadLocalMetadata(fileName) {
|
|
144086
144086
|
const filePath = path$7.join(this.dir, `${fileName}.json`);
|
|
144087
144087
|
log("READ %s", filePath);
|
|
144088
|
-
return fs$
|
|
144088
|
+
return fs$2.readFileSync(filePath);
|
|
144089
144089
|
}
|
|
144090
144090
|
async loadRoot() {
|
|
144091
144091
|
const lowerBound = this.trustedSet.root.signed.version + 1;
|
|
@@ -144203,7 +144203,7 @@ var require_updater = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) =>
|
|
|
144203
144203
|
try {
|
|
144204
144204
|
const filePath = path$7.join(this.dir, `${encodedName}.json`);
|
|
144205
144205
|
log("WRITE %s", filePath);
|
|
144206
|
-
fs$
|
|
144206
|
+
fs$2.writeFileSync(filePath, bytesData.toString("utf8"));
|
|
144207
144207
|
} catch (error) {
|
|
144208
144208
|
throw new error_1.PersistError(`Failed to persist metadata ${encodedName} error: ${error}`);
|
|
144209
144209
|
}
|
|
@@ -146019,7 +146019,7 @@ var require_registry = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
146019
146019
|
//#endregion
|
|
146020
146020
|
//#region ../../node_modules/pacote/lib/fetcher.js
|
|
146021
146021
|
var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
146022
|
-
const { basename: basename$1, dirname: dirname$
|
|
146022
|
+
const { basename: basename$1, dirname: dirname$4 } = require("node:path");
|
|
146023
146023
|
const { rm: rm$4, mkdir: mkdir$4 } = require("node:fs/promises");
|
|
146024
146024
|
const PackageJson = require_lib$18();
|
|
146025
146025
|
const cacache = require_lib$14();
|
|
@@ -146068,7 +146068,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
146068
146068
|
this.npmBin = opts.npmBin || "npm";
|
|
146069
146069
|
this.npmInstallCmd = opts.npmInstallCmd || ["install", "--force"];
|
|
146070
146070
|
this.npmCliConfig = opts.npmCliConfig || [
|
|
146071
|
-
`--cache=${dirname$
|
|
146071
|
+
`--cache=${dirname$4(this.cache)}`,
|
|
146072
146072
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
146073
146073
|
`--prefer-online=${!!this.preferOnline}`,
|
|
146074
146074
|
`--offline=${!!this.offline}`,
|
|
@@ -146224,7 +146224,7 @@ var require_fetcher = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
|
|
|
146224
146224
|
}));
|
|
146225
146225
|
}
|
|
146226
146226
|
async tarballFile(dest) {
|
|
146227
|
-
await mkdir$4(dirname$
|
|
146227
|
+
await mkdir$4(dirname$4(dest), { recursive: true });
|
|
146228
146228
|
return this.#toFile(dest);
|
|
146229
146229
|
}
|
|
146230
146230
|
#extract(dest, tarball) {
|
|
@@ -154645,7 +154645,9 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
154645
154645
|
}
|
|
154646
154646
|
})();
|
|
154647
154647
|
}));
|
|
154648
|
-
|
|
154648
|
+
//#endregion
|
|
154649
|
+
//#region ../../node_modules/serve-handler/src/index.js
|
|
154650
|
+
var require_src = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
154649
154651
|
const { promisify } = require("util");
|
|
154650
154652
|
const path$3 = require("path");
|
|
154651
154653
|
const { createHash } = require("crypto");
|
|
@@ -155097,12 +155099,13 @@ var require_error = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
155097
155099
|
response.writeHead(response.statusCode || 200, headers);
|
|
155098
155100
|
stream.pipe(response);
|
|
155099
155101
|
};
|
|
155100
|
-
}))
|
|
155102
|
+
}));
|
|
155101
155103
|
require_semver();
|
|
155102
155104
|
require_lib();
|
|
155105
|
+
require_src();
|
|
155103
155106
|
//#endregion
|
|
155104
155107
|
//#region ../../packages/core-node/src/handler-func.ts
|
|
155105
|
-
const { join: join$
|
|
155108
|
+
const { join: join$5 } = node_path.default;
|
|
155106
155109
|
//#endregion
|
|
155107
155110
|
//#region ../../packages/core-node/src/handlers/plugins.ts
|
|
155108
155111
|
const localPluginsMap = /* @__PURE__ */ new Map();
|