@prisma/fetch-engine 6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.4 → 6.6.0-integration-mcp.1
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/{chunk-H5RYYN3Z.js → chunk-7F3MN3GY.js} +81 -818
- package/dist/{chunk-RXM4EBGR.js → chunk-BYDIRBHB.js} +687 -213
- package/dist/{chunk-YJOPKU47.js → chunk-I6EKS5RC.js} +4 -3
- package/dist/{chunk-4GLRZ2GS.js → chunk-OLGUBERP.js} +5 -5
- package/dist/{chunk-LOOX3H4O.js → chunk-PYNY5L6J.js} +63 -232
- package/dist/{chunk-OQIGK5MD.js → chunk-WS5WYOB2.js} +29 -29
- package/dist/{chunk-QQS4VIKF.js → chunk-Y35F36N3.js} +30 -30
- package/dist/cleanupCache.js +3 -3
- package/dist/download.js +12 -12
- package/dist/downloadZip.js +5 -5
- package/dist/getProxyAgent.js +2 -2
- package/dist/index.js +15 -15
- package/dist/{multipart-parser-ASKQAOL4.js → multipart-parser-AOASR4DL.js} +6 -6
- package/dist/utils.js +5 -5
- package/package.json +4 -4
|
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_7F3MN3GY_exports = {};
|
|
30
|
+
__export(chunk_7F3MN3GY_exports, {
|
|
31
31
|
downloadZip: () => downloadZip,
|
|
32
32
|
require_is_stream: () => require_is_stream,
|
|
33
33
|
require_temp_dir: () => require_temp_dir
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
36
|
-
var
|
|
35
|
+
module.exports = __toCommonJS(chunk_7F3MN3GY_exports);
|
|
36
|
+
var import_chunk_BYDIRBHB = require("./chunk-BYDIRBHB.js");
|
|
37
37
|
var import_chunk_SVP4SRAT = require("./chunk-SVP4SRAT.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_I6EKS5RC = require("./chunk-I6EKS5RC.js");
|
|
39
|
+
var import_chunk_PYNY5L6J = require("./chunk-PYNY5L6J.js");
|
|
40
40
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
41
41
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
42
42
|
var import_fs = __toESM(require("fs"));
|
|
@@ -4463,7 +4463,7 @@ var require_out2 = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4463
4463
|
}
|
|
4464
4464
|
});
|
|
4465
4465
|
var require_reusify = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
4466
|
-
"../../node_modules/.pnpm/reusify@1.0
|
|
4466
|
+
"../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module2) {
|
|
4467
4467
|
"use strict";
|
|
4468
4468
|
function reusify(Constructor) {
|
|
4469
4469
|
var head = new Constructor();
|
|
@@ -4492,17 +4492,17 @@ var require_reusify = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4492
4492
|
}
|
|
4493
4493
|
});
|
|
4494
4494
|
var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
4495
|
-
"../../node_modules/.pnpm/fastq@1.
|
|
4495
|
+
"../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js"(exports, module2) {
|
|
4496
4496
|
"use strict";
|
|
4497
4497
|
var reusify = require_reusify();
|
|
4498
|
-
function fastqueue(context, worker,
|
|
4498
|
+
function fastqueue(context, worker, _concurrency) {
|
|
4499
4499
|
if (typeof context === "function") {
|
|
4500
|
-
|
|
4500
|
+
_concurrency = worker;
|
|
4501
4501
|
worker = context;
|
|
4502
4502
|
context = null;
|
|
4503
4503
|
}
|
|
4504
|
-
if (
|
|
4505
|
-
throw new Error("fastqueue concurrency must be greater than 1");
|
|
4504
|
+
if (!(_concurrency >= 1)) {
|
|
4505
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4506
4506
|
}
|
|
4507
4507
|
var cache = reusify(Task);
|
|
4508
4508
|
var queueHead = null;
|
|
@@ -4515,7 +4515,20 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4515
4515
|
saturated: noop,
|
|
4516
4516
|
pause,
|
|
4517
4517
|
paused: false,
|
|
4518
|
-
concurrency
|
|
4518
|
+
get concurrency() {
|
|
4519
|
+
return _concurrency;
|
|
4520
|
+
},
|
|
4521
|
+
set concurrency(value) {
|
|
4522
|
+
if (!(value >= 1)) {
|
|
4523
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4524
|
+
}
|
|
4525
|
+
_concurrency = value;
|
|
4526
|
+
if (self.paused) return;
|
|
4527
|
+
for (; queueHead && _running < _concurrency; ) {
|
|
4528
|
+
_running++;
|
|
4529
|
+
release();
|
|
4530
|
+
}
|
|
4531
|
+
},
|
|
4519
4532
|
running,
|
|
4520
4533
|
resume,
|
|
4521
4534
|
idle,
|
|
@@ -4555,7 +4568,12 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4555
4568
|
function resume() {
|
|
4556
4569
|
if (!self.paused) return;
|
|
4557
4570
|
self.paused = false;
|
|
4558
|
-
|
|
4571
|
+
if (queueHead === null) {
|
|
4572
|
+
_running++;
|
|
4573
|
+
release();
|
|
4574
|
+
return;
|
|
4575
|
+
}
|
|
4576
|
+
for (; queueHead && _running < _concurrency; ) {
|
|
4559
4577
|
_running++;
|
|
4560
4578
|
release();
|
|
4561
4579
|
}
|
|
@@ -4570,7 +4588,7 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4570
4588
|
current.value = value;
|
|
4571
4589
|
current.callback = done || noop;
|
|
4572
4590
|
current.errorHandler = errorHandler;
|
|
4573
|
-
if (_running
|
|
4591
|
+
if (_running >= _concurrency || self.paused) {
|
|
4574
4592
|
if (queueTail) {
|
|
4575
4593
|
queueTail.next = current;
|
|
4576
4594
|
queueTail = current;
|
|
@@ -4590,7 +4608,8 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4590
4608
|
current.release = release;
|
|
4591
4609
|
current.value = value;
|
|
4592
4610
|
current.callback = done || noop;
|
|
4593
|
-
|
|
4611
|
+
current.errorHandler = errorHandler;
|
|
4612
|
+
if (_running >= _concurrency || self.paused) {
|
|
4594
4613
|
if (queueHead) {
|
|
4595
4614
|
current.next = queueHead;
|
|
4596
4615
|
queueHead = current;
|
|
@@ -4609,7 +4628,7 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4609
4628
|
cache.release(holder);
|
|
4610
4629
|
}
|
|
4611
4630
|
var next = queueHead;
|
|
4612
|
-
if (next) {
|
|
4631
|
+
if (next && _running <= _concurrency) {
|
|
4613
4632
|
if (!self.paused) {
|
|
4614
4633
|
if (queueTail === queueHead) {
|
|
4615
4634
|
queueTail = null;
|
|
@@ -4665,9 +4684,9 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4665
4684
|
self.release(self);
|
|
4666
4685
|
};
|
|
4667
4686
|
}
|
|
4668
|
-
function queueAsPromised(context, worker,
|
|
4687
|
+
function queueAsPromised(context, worker, _concurrency) {
|
|
4669
4688
|
if (typeof context === "function") {
|
|
4670
|
-
|
|
4689
|
+
_concurrency = worker;
|
|
4671
4690
|
worker = context;
|
|
4672
4691
|
context = null;
|
|
4673
4692
|
}
|
|
@@ -4676,7 +4695,7 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4676
4695
|
cb(null, res);
|
|
4677
4696
|
}, cb);
|
|
4678
4697
|
}
|
|
4679
|
-
var queue = fastqueue(context, asyncWrapper,
|
|
4698
|
+
var queue = fastqueue(context, asyncWrapper, _concurrency);
|
|
4680
4699
|
var pushCb = queue.push;
|
|
4681
4700
|
var unshiftCb = queue.unshift;
|
|
4682
4701
|
queue.push = push;
|
|
@@ -4710,17 +4729,19 @@ var require_queue = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
4710
4729
|
return p;
|
|
4711
4730
|
}
|
|
4712
4731
|
function drained() {
|
|
4713
|
-
if (queue.idle()) {
|
|
4714
|
-
return new Promise(function(resolve) {
|
|
4715
|
-
resolve();
|
|
4716
|
-
});
|
|
4717
|
-
}
|
|
4718
|
-
var previousDrain = queue.drain;
|
|
4719
4732
|
var p = new Promise(function(resolve) {
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4733
|
+
process.nextTick(function() {
|
|
4734
|
+
if (queue.idle()) {
|
|
4735
|
+
resolve();
|
|
4736
|
+
} else {
|
|
4737
|
+
var previousDrain = queue.drain;
|
|
4738
|
+
queue.drain = function() {
|
|
4739
|
+
if (typeof previousDrain === "function") previousDrain();
|
|
4740
|
+
resolve();
|
|
4741
|
+
queue.drain = previousDrain;
|
|
4742
|
+
};
|
|
4743
|
+
}
|
|
4744
|
+
});
|
|
4724
4745
|
});
|
|
4725
4746
|
return p;
|
|
4726
4747
|
}
|
|
@@ -5952,7 +5973,7 @@ var require_dir_glob = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
5952
5973
|
}
|
|
5953
5974
|
});
|
|
5954
5975
|
var require_ignore = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
5955
|
-
"../../node_modules/.pnpm/ignore@5.2
|
|
5976
|
+
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
|
|
5956
5977
|
"use strict";
|
|
5957
5978
|
function makeArray(subject) {
|
|
5958
5979
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -5984,18 +6005,32 @@ var require_ignore = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
5984
6005
|
return slashes.slice(0, length - length % 2);
|
|
5985
6006
|
};
|
|
5986
6007
|
var REPLACERS = [
|
|
6008
|
+
[
|
|
6009
|
+
// remove BOM
|
|
6010
|
+
// TODO:
|
|
6011
|
+
// Other similar zero-width characters?
|
|
6012
|
+
/^\uFEFF/,
|
|
6013
|
+
() => EMPTY
|
|
6014
|
+
],
|
|
5987
6015
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
5988
6016
|
[
|
|
5989
6017
|
// (a\ ) -> (a )
|
|
5990
6018
|
// (a ) -> (a)
|
|
6019
|
+
// (a ) -> (a)
|
|
5991
6020
|
// (a \ ) -> (a )
|
|
5992
|
-
|
|
5993
|
-
(
|
|
6021
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
6022
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
5994
6023
|
],
|
|
5995
6024
|
// replace (\ ) with ' '
|
|
6025
|
+
// (\ ) -> ' '
|
|
6026
|
+
// (\\ ) -> '\\ '
|
|
6027
|
+
// (\\\ ) -> '\\ '
|
|
5996
6028
|
[
|
|
5997
|
-
|
|
5998
|
-
() =>
|
|
6029
|
+
/(\\+?)\s/g,
|
|
6030
|
+
(_, m1) => {
|
|
6031
|
+
const { length } = m1;
|
|
6032
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
6033
|
+
}
|
|
5999
6034
|
],
|
|
6000
6035
|
// Escape metacharacters
|
|
6001
6036
|
// which is written down by users but means special for regular expressions.
|
|
@@ -6130,7 +6165,7 @@ var require_ignore = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
6130
6165
|
let source = regexCache[pattern];
|
|
6131
6166
|
if (!source) {
|
|
6132
6167
|
source = REPLACERS.reduce(
|
|
6133
|
-
(prev,
|
|
6168
|
+
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
6134
6169
|
pattern
|
|
6135
6170
|
);
|
|
6136
6171
|
regexCache[pattern] = source;
|
|
@@ -6607,778 +6642,6 @@ var require_globby = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
6607
6642
|
module2.exports.gitignore = gitignore;
|
|
6608
6643
|
}
|
|
6609
6644
|
});
|
|
6610
|
-
var require_polyfills = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
6611
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
6612
|
-
"use strict";
|
|
6613
|
-
var constants = (0, import_chunk_QGM4M3NI.__require)("constants");
|
|
6614
|
-
var origCwd = process.cwd;
|
|
6615
|
-
var cwd = null;
|
|
6616
|
-
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
6617
|
-
process.cwd = function() {
|
|
6618
|
-
if (!cwd)
|
|
6619
|
-
cwd = origCwd.call(process);
|
|
6620
|
-
return cwd;
|
|
6621
|
-
};
|
|
6622
|
-
try {
|
|
6623
|
-
process.cwd();
|
|
6624
|
-
} catch (er) {
|
|
6625
|
-
}
|
|
6626
|
-
if (typeof process.chdir === "function") {
|
|
6627
|
-
chdir = process.chdir;
|
|
6628
|
-
process.chdir = function(d) {
|
|
6629
|
-
cwd = null;
|
|
6630
|
-
chdir.call(process, d);
|
|
6631
|
-
};
|
|
6632
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
6633
|
-
}
|
|
6634
|
-
var chdir;
|
|
6635
|
-
module2.exports = patch;
|
|
6636
|
-
function patch(fs2) {
|
|
6637
|
-
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
6638
|
-
patchLchmod(fs2);
|
|
6639
|
-
}
|
|
6640
|
-
if (!fs2.lutimes) {
|
|
6641
|
-
patchLutimes(fs2);
|
|
6642
|
-
}
|
|
6643
|
-
fs2.chown = chownFix(fs2.chown);
|
|
6644
|
-
fs2.fchown = chownFix(fs2.fchown);
|
|
6645
|
-
fs2.lchown = chownFix(fs2.lchown);
|
|
6646
|
-
fs2.chmod = chmodFix(fs2.chmod);
|
|
6647
|
-
fs2.fchmod = chmodFix(fs2.fchmod);
|
|
6648
|
-
fs2.lchmod = chmodFix(fs2.lchmod);
|
|
6649
|
-
fs2.chownSync = chownFixSync(fs2.chownSync);
|
|
6650
|
-
fs2.fchownSync = chownFixSync(fs2.fchownSync);
|
|
6651
|
-
fs2.lchownSync = chownFixSync(fs2.lchownSync);
|
|
6652
|
-
fs2.chmodSync = chmodFixSync(fs2.chmodSync);
|
|
6653
|
-
fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
|
|
6654
|
-
fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
|
|
6655
|
-
fs2.stat = statFix(fs2.stat);
|
|
6656
|
-
fs2.fstat = statFix(fs2.fstat);
|
|
6657
|
-
fs2.lstat = statFix(fs2.lstat);
|
|
6658
|
-
fs2.statSync = statFixSync(fs2.statSync);
|
|
6659
|
-
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
6660
|
-
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
6661
|
-
if (fs2.chmod && !fs2.lchmod) {
|
|
6662
|
-
fs2.lchmod = function(path2, mode, cb) {
|
|
6663
|
-
if (cb) process.nextTick(cb);
|
|
6664
|
-
};
|
|
6665
|
-
fs2.lchmodSync = function() {
|
|
6666
|
-
};
|
|
6667
|
-
}
|
|
6668
|
-
if (fs2.chown && !fs2.lchown) {
|
|
6669
|
-
fs2.lchown = function(path2, uid, gid, cb) {
|
|
6670
|
-
if (cb) process.nextTick(cb);
|
|
6671
|
-
};
|
|
6672
|
-
fs2.lchownSync = function() {
|
|
6673
|
-
};
|
|
6674
|
-
}
|
|
6675
|
-
if (platform === "win32") {
|
|
6676
|
-
fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
|
|
6677
|
-
function rename(from, to, cb) {
|
|
6678
|
-
var start = Date.now();
|
|
6679
|
-
var backoff = 0;
|
|
6680
|
-
fs$rename(from, to, function CB(er) {
|
|
6681
|
-
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
6682
|
-
setTimeout(function() {
|
|
6683
|
-
fs2.stat(to, function(stater, st) {
|
|
6684
|
-
if (stater && stater.code === "ENOENT")
|
|
6685
|
-
fs$rename(from, to, CB);
|
|
6686
|
-
else
|
|
6687
|
-
cb(er);
|
|
6688
|
-
});
|
|
6689
|
-
}, backoff);
|
|
6690
|
-
if (backoff < 100)
|
|
6691
|
-
backoff += 10;
|
|
6692
|
-
return;
|
|
6693
|
-
}
|
|
6694
|
-
if (cb) cb(er);
|
|
6695
|
-
});
|
|
6696
|
-
}
|
|
6697
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
6698
|
-
return rename;
|
|
6699
|
-
}(fs2.rename);
|
|
6700
|
-
}
|
|
6701
|
-
fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
|
|
6702
|
-
function read(fd, buffer, offset, length, position, callback_) {
|
|
6703
|
-
var callback;
|
|
6704
|
-
if (callback_ && typeof callback_ === "function") {
|
|
6705
|
-
var eagCounter = 0;
|
|
6706
|
-
callback = function(er, _, __) {
|
|
6707
|
-
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
6708
|
-
eagCounter++;
|
|
6709
|
-
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
6710
|
-
}
|
|
6711
|
-
callback_.apply(this, arguments);
|
|
6712
|
-
};
|
|
6713
|
-
}
|
|
6714
|
-
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
6715
|
-
}
|
|
6716
|
-
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
6717
|
-
return read;
|
|
6718
|
-
}(fs2.read);
|
|
6719
|
-
fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
6720
|
-
return function(fd, buffer, offset, length, position) {
|
|
6721
|
-
var eagCounter = 0;
|
|
6722
|
-
while (true) {
|
|
6723
|
-
try {
|
|
6724
|
-
return fs$readSync.call(fs2, fd, buffer, offset, length, position);
|
|
6725
|
-
} catch (er) {
|
|
6726
|
-
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
6727
|
-
eagCounter++;
|
|
6728
|
-
continue;
|
|
6729
|
-
}
|
|
6730
|
-
throw er;
|
|
6731
|
-
}
|
|
6732
|
-
}
|
|
6733
|
-
};
|
|
6734
|
-
}(fs2.readSync);
|
|
6735
|
-
function patchLchmod(fs3) {
|
|
6736
|
-
fs3.lchmod = function(path2, mode, callback) {
|
|
6737
|
-
fs3.open(
|
|
6738
|
-
path2,
|
|
6739
|
-
constants.O_WRONLY | constants.O_SYMLINK,
|
|
6740
|
-
mode,
|
|
6741
|
-
function(err, fd) {
|
|
6742
|
-
if (err) {
|
|
6743
|
-
if (callback) callback(err);
|
|
6744
|
-
return;
|
|
6745
|
-
}
|
|
6746
|
-
fs3.fchmod(fd, mode, function(err2) {
|
|
6747
|
-
fs3.close(fd, function(err22) {
|
|
6748
|
-
if (callback) callback(err2 || err22);
|
|
6749
|
-
});
|
|
6750
|
-
});
|
|
6751
|
-
}
|
|
6752
|
-
);
|
|
6753
|
-
};
|
|
6754
|
-
fs3.lchmodSync = function(path2, mode) {
|
|
6755
|
-
var fd = fs3.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
6756
|
-
var threw = true;
|
|
6757
|
-
var ret;
|
|
6758
|
-
try {
|
|
6759
|
-
ret = fs3.fchmodSync(fd, mode);
|
|
6760
|
-
threw = false;
|
|
6761
|
-
} finally {
|
|
6762
|
-
if (threw) {
|
|
6763
|
-
try {
|
|
6764
|
-
fs3.closeSync(fd);
|
|
6765
|
-
} catch (er) {
|
|
6766
|
-
}
|
|
6767
|
-
} else {
|
|
6768
|
-
fs3.closeSync(fd);
|
|
6769
|
-
}
|
|
6770
|
-
}
|
|
6771
|
-
return ret;
|
|
6772
|
-
};
|
|
6773
|
-
}
|
|
6774
|
-
function patchLutimes(fs3) {
|
|
6775
|
-
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
6776
|
-
fs3.lutimes = function(path2, at, mt, cb) {
|
|
6777
|
-
fs3.open(path2, constants.O_SYMLINK, function(er, fd) {
|
|
6778
|
-
if (er) {
|
|
6779
|
-
if (cb) cb(er);
|
|
6780
|
-
return;
|
|
6781
|
-
}
|
|
6782
|
-
fs3.futimes(fd, at, mt, function(er2) {
|
|
6783
|
-
fs3.close(fd, function(er22) {
|
|
6784
|
-
if (cb) cb(er2 || er22);
|
|
6785
|
-
});
|
|
6786
|
-
});
|
|
6787
|
-
});
|
|
6788
|
-
};
|
|
6789
|
-
fs3.lutimesSync = function(path2, at, mt) {
|
|
6790
|
-
var fd = fs3.openSync(path2, constants.O_SYMLINK);
|
|
6791
|
-
var ret;
|
|
6792
|
-
var threw = true;
|
|
6793
|
-
try {
|
|
6794
|
-
ret = fs3.futimesSync(fd, at, mt);
|
|
6795
|
-
threw = false;
|
|
6796
|
-
} finally {
|
|
6797
|
-
if (threw) {
|
|
6798
|
-
try {
|
|
6799
|
-
fs3.closeSync(fd);
|
|
6800
|
-
} catch (er) {
|
|
6801
|
-
}
|
|
6802
|
-
} else {
|
|
6803
|
-
fs3.closeSync(fd);
|
|
6804
|
-
}
|
|
6805
|
-
}
|
|
6806
|
-
return ret;
|
|
6807
|
-
};
|
|
6808
|
-
} else if (fs3.futimes) {
|
|
6809
|
-
fs3.lutimes = function(_a, _b, _c, cb) {
|
|
6810
|
-
if (cb) process.nextTick(cb);
|
|
6811
|
-
};
|
|
6812
|
-
fs3.lutimesSync = function() {
|
|
6813
|
-
};
|
|
6814
|
-
}
|
|
6815
|
-
}
|
|
6816
|
-
function chmodFix(orig) {
|
|
6817
|
-
if (!orig) return orig;
|
|
6818
|
-
return function(target, mode, cb) {
|
|
6819
|
-
return orig.call(fs2, target, mode, function(er) {
|
|
6820
|
-
if (chownErOk(er)) er = null;
|
|
6821
|
-
if (cb) cb.apply(this, arguments);
|
|
6822
|
-
});
|
|
6823
|
-
};
|
|
6824
|
-
}
|
|
6825
|
-
function chmodFixSync(orig) {
|
|
6826
|
-
if (!orig) return orig;
|
|
6827
|
-
return function(target, mode) {
|
|
6828
|
-
try {
|
|
6829
|
-
return orig.call(fs2, target, mode);
|
|
6830
|
-
} catch (er) {
|
|
6831
|
-
if (!chownErOk(er)) throw er;
|
|
6832
|
-
}
|
|
6833
|
-
};
|
|
6834
|
-
}
|
|
6835
|
-
function chownFix(orig) {
|
|
6836
|
-
if (!orig) return orig;
|
|
6837
|
-
return function(target, uid, gid, cb) {
|
|
6838
|
-
return orig.call(fs2, target, uid, gid, function(er) {
|
|
6839
|
-
if (chownErOk(er)) er = null;
|
|
6840
|
-
if (cb) cb.apply(this, arguments);
|
|
6841
|
-
});
|
|
6842
|
-
};
|
|
6843
|
-
}
|
|
6844
|
-
function chownFixSync(orig) {
|
|
6845
|
-
if (!orig) return orig;
|
|
6846
|
-
return function(target, uid, gid) {
|
|
6847
|
-
try {
|
|
6848
|
-
return orig.call(fs2, target, uid, gid);
|
|
6849
|
-
} catch (er) {
|
|
6850
|
-
if (!chownErOk(er)) throw er;
|
|
6851
|
-
}
|
|
6852
|
-
};
|
|
6853
|
-
}
|
|
6854
|
-
function statFix(orig) {
|
|
6855
|
-
if (!orig) return orig;
|
|
6856
|
-
return function(target, options, cb) {
|
|
6857
|
-
if (typeof options === "function") {
|
|
6858
|
-
cb = options;
|
|
6859
|
-
options = null;
|
|
6860
|
-
}
|
|
6861
|
-
function callback(er, stats) {
|
|
6862
|
-
if (stats) {
|
|
6863
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
|
6864
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
|
6865
|
-
}
|
|
6866
|
-
if (cb) cb.apply(this, arguments);
|
|
6867
|
-
}
|
|
6868
|
-
return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
|
|
6869
|
-
};
|
|
6870
|
-
}
|
|
6871
|
-
function statFixSync(orig) {
|
|
6872
|
-
if (!orig) return orig;
|
|
6873
|
-
return function(target, options) {
|
|
6874
|
-
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
6875
|
-
if (stats) {
|
|
6876
|
-
if (stats.uid < 0) stats.uid += 4294967296;
|
|
6877
|
-
if (stats.gid < 0) stats.gid += 4294967296;
|
|
6878
|
-
}
|
|
6879
|
-
return stats;
|
|
6880
|
-
};
|
|
6881
|
-
}
|
|
6882
|
-
function chownErOk(er) {
|
|
6883
|
-
if (!er)
|
|
6884
|
-
return true;
|
|
6885
|
-
if (er.code === "ENOSYS")
|
|
6886
|
-
return true;
|
|
6887
|
-
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
6888
|
-
if (nonroot) {
|
|
6889
|
-
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
6890
|
-
return true;
|
|
6891
|
-
}
|
|
6892
|
-
return false;
|
|
6893
|
-
}
|
|
6894
|
-
}
|
|
6895
|
-
}
|
|
6896
|
-
});
|
|
6897
|
-
var require_legacy_streams = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
6898
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
6899
|
-
"use strict";
|
|
6900
|
-
var Stream3 = (0, import_chunk_QGM4M3NI.__require)("stream").Stream;
|
|
6901
|
-
module2.exports = legacy;
|
|
6902
|
-
function legacy(fs2) {
|
|
6903
|
-
return {
|
|
6904
|
-
ReadStream,
|
|
6905
|
-
WriteStream
|
|
6906
|
-
};
|
|
6907
|
-
function ReadStream(path2, options) {
|
|
6908
|
-
if (!(this instanceof ReadStream)) return new ReadStream(path2, options);
|
|
6909
|
-
Stream3.call(this);
|
|
6910
|
-
var self = this;
|
|
6911
|
-
this.path = path2;
|
|
6912
|
-
this.fd = null;
|
|
6913
|
-
this.readable = true;
|
|
6914
|
-
this.paused = false;
|
|
6915
|
-
this.flags = "r";
|
|
6916
|
-
this.mode = 438;
|
|
6917
|
-
this.bufferSize = 64 * 1024;
|
|
6918
|
-
options = options || {};
|
|
6919
|
-
var keys = Object.keys(options);
|
|
6920
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
6921
|
-
var key = keys[index];
|
|
6922
|
-
this[key] = options[key];
|
|
6923
|
-
}
|
|
6924
|
-
if (this.encoding) this.setEncoding(this.encoding);
|
|
6925
|
-
if (this.start !== void 0) {
|
|
6926
|
-
if ("number" !== typeof this.start) {
|
|
6927
|
-
throw TypeError("start must be a Number");
|
|
6928
|
-
}
|
|
6929
|
-
if (this.end === void 0) {
|
|
6930
|
-
this.end = Infinity;
|
|
6931
|
-
} else if ("number" !== typeof this.end) {
|
|
6932
|
-
throw TypeError("end must be a Number");
|
|
6933
|
-
}
|
|
6934
|
-
if (this.start > this.end) {
|
|
6935
|
-
throw new Error("start must be <= end");
|
|
6936
|
-
}
|
|
6937
|
-
this.pos = this.start;
|
|
6938
|
-
}
|
|
6939
|
-
if (this.fd !== null) {
|
|
6940
|
-
process.nextTick(function() {
|
|
6941
|
-
self._read();
|
|
6942
|
-
});
|
|
6943
|
-
return;
|
|
6944
|
-
}
|
|
6945
|
-
fs2.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
6946
|
-
if (err) {
|
|
6947
|
-
self.emit("error", err);
|
|
6948
|
-
self.readable = false;
|
|
6949
|
-
return;
|
|
6950
|
-
}
|
|
6951
|
-
self.fd = fd;
|
|
6952
|
-
self.emit("open", fd);
|
|
6953
|
-
self._read();
|
|
6954
|
-
});
|
|
6955
|
-
}
|
|
6956
|
-
function WriteStream(path2, options) {
|
|
6957
|
-
if (!(this instanceof WriteStream)) return new WriteStream(path2, options);
|
|
6958
|
-
Stream3.call(this);
|
|
6959
|
-
this.path = path2;
|
|
6960
|
-
this.fd = null;
|
|
6961
|
-
this.writable = true;
|
|
6962
|
-
this.flags = "w";
|
|
6963
|
-
this.encoding = "binary";
|
|
6964
|
-
this.mode = 438;
|
|
6965
|
-
this.bytesWritten = 0;
|
|
6966
|
-
options = options || {};
|
|
6967
|
-
var keys = Object.keys(options);
|
|
6968
|
-
for (var index = 0, length = keys.length; index < length; index++) {
|
|
6969
|
-
var key = keys[index];
|
|
6970
|
-
this[key] = options[key];
|
|
6971
|
-
}
|
|
6972
|
-
if (this.start !== void 0) {
|
|
6973
|
-
if ("number" !== typeof this.start) {
|
|
6974
|
-
throw TypeError("start must be a Number");
|
|
6975
|
-
}
|
|
6976
|
-
if (this.start < 0) {
|
|
6977
|
-
throw new Error("start must be >= zero");
|
|
6978
|
-
}
|
|
6979
|
-
this.pos = this.start;
|
|
6980
|
-
}
|
|
6981
|
-
this.busy = false;
|
|
6982
|
-
this._queue = [];
|
|
6983
|
-
if (this.fd === null) {
|
|
6984
|
-
this._open = fs2.open;
|
|
6985
|
-
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
6986
|
-
this.flush();
|
|
6987
|
-
}
|
|
6988
|
-
}
|
|
6989
|
-
}
|
|
6990
|
-
}
|
|
6991
|
-
});
|
|
6992
|
-
var require_clone = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
6993
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
6994
|
-
"use strict";
|
|
6995
|
-
module2.exports = clone2;
|
|
6996
|
-
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
6997
|
-
return obj.__proto__;
|
|
6998
|
-
};
|
|
6999
|
-
function clone2(obj) {
|
|
7000
|
-
if (obj === null || typeof obj !== "object")
|
|
7001
|
-
return obj;
|
|
7002
|
-
if (obj instanceof Object)
|
|
7003
|
-
var copy = { __proto__: getPrototypeOf(obj) };
|
|
7004
|
-
else
|
|
7005
|
-
var copy = /* @__PURE__ */ Object.create(null);
|
|
7006
|
-
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
7007
|
-
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
7008
|
-
});
|
|
7009
|
-
return copy;
|
|
7010
|
-
}
|
|
7011
|
-
}
|
|
7012
|
-
});
|
|
7013
|
-
var require_graceful_fs = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
7014
|
-
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
7015
|
-
"use strict";
|
|
7016
|
-
var fs2 = (0, import_chunk_QGM4M3NI.__require)("fs");
|
|
7017
|
-
var polyfills = require_polyfills();
|
|
7018
|
-
var legacy = require_legacy_streams();
|
|
7019
|
-
var clone2 = require_clone();
|
|
7020
|
-
var util = (0, import_chunk_QGM4M3NI.__require)("util");
|
|
7021
|
-
var gracefulQueue;
|
|
7022
|
-
var previousSymbol;
|
|
7023
|
-
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
7024
|
-
gracefulQueue = Symbol.for("graceful-fs.queue");
|
|
7025
|
-
previousSymbol = Symbol.for("graceful-fs.previous");
|
|
7026
|
-
} else {
|
|
7027
|
-
gracefulQueue = "___graceful-fs.queue";
|
|
7028
|
-
previousSymbol = "___graceful-fs.previous";
|
|
7029
|
-
}
|
|
7030
|
-
function noop() {
|
|
7031
|
-
}
|
|
7032
|
-
function publishQueue(context, queue2) {
|
|
7033
|
-
Object.defineProperty(context, gracefulQueue, {
|
|
7034
|
-
get: function() {
|
|
7035
|
-
return queue2;
|
|
7036
|
-
}
|
|
7037
|
-
});
|
|
7038
|
-
}
|
|
7039
|
-
var debug2 = noop;
|
|
7040
|
-
if (util.debuglog)
|
|
7041
|
-
debug2 = util.debuglog("gfs4");
|
|
7042
|
-
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
7043
|
-
debug2 = function() {
|
|
7044
|
-
var m = util.format.apply(util, arguments);
|
|
7045
|
-
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
7046
|
-
console.error(m);
|
|
7047
|
-
};
|
|
7048
|
-
if (!fs2[gracefulQueue]) {
|
|
7049
|
-
queue = global[gracefulQueue] || [];
|
|
7050
|
-
publishQueue(fs2, queue);
|
|
7051
|
-
fs2.close = function(fs$close) {
|
|
7052
|
-
function close(fd, cb) {
|
|
7053
|
-
return fs$close.call(fs2, fd, function(err) {
|
|
7054
|
-
if (!err) {
|
|
7055
|
-
resetQueue();
|
|
7056
|
-
}
|
|
7057
|
-
if (typeof cb === "function")
|
|
7058
|
-
cb.apply(this, arguments);
|
|
7059
|
-
});
|
|
7060
|
-
}
|
|
7061
|
-
Object.defineProperty(close, previousSymbol, {
|
|
7062
|
-
value: fs$close
|
|
7063
|
-
});
|
|
7064
|
-
return close;
|
|
7065
|
-
}(fs2.close);
|
|
7066
|
-
fs2.closeSync = function(fs$closeSync) {
|
|
7067
|
-
function closeSync(fd) {
|
|
7068
|
-
fs$closeSync.apply(fs2, arguments);
|
|
7069
|
-
resetQueue();
|
|
7070
|
-
}
|
|
7071
|
-
Object.defineProperty(closeSync, previousSymbol, {
|
|
7072
|
-
value: fs$closeSync
|
|
7073
|
-
});
|
|
7074
|
-
return closeSync;
|
|
7075
|
-
}(fs2.closeSync);
|
|
7076
|
-
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
7077
|
-
process.on("exit", function() {
|
|
7078
|
-
debug2(fs2[gracefulQueue]);
|
|
7079
|
-
(0, import_chunk_QGM4M3NI.__require)("assert").equal(fs2[gracefulQueue].length, 0);
|
|
7080
|
-
});
|
|
7081
|
-
}
|
|
7082
|
-
}
|
|
7083
|
-
var queue;
|
|
7084
|
-
if (!global[gracefulQueue]) {
|
|
7085
|
-
publishQueue(global, fs2[gracefulQueue]);
|
|
7086
|
-
}
|
|
7087
|
-
module2.exports = patch(clone2(fs2));
|
|
7088
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
|
|
7089
|
-
module2.exports = patch(fs2);
|
|
7090
|
-
fs2.__patched = true;
|
|
7091
|
-
}
|
|
7092
|
-
function patch(fs3) {
|
|
7093
|
-
polyfills(fs3);
|
|
7094
|
-
fs3.gracefulify = patch;
|
|
7095
|
-
fs3.createReadStream = createReadStream;
|
|
7096
|
-
fs3.createWriteStream = createWriteStream;
|
|
7097
|
-
var fs$readFile = fs3.readFile;
|
|
7098
|
-
fs3.readFile = readFile;
|
|
7099
|
-
function readFile(path2, options, cb) {
|
|
7100
|
-
if (typeof options === "function")
|
|
7101
|
-
cb = options, options = null;
|
|
7102
|
-
return go$readFile(path2, options, cb);
|
|
7103
|
-
function go$readFile(path3, options2, cb2, startTime) {
|
|
7104
|
-
return fs$readFile(path3, options2, function(err) {
|
|
7105
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
7106
|
-
enqueue([go$readFile, [path3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
7107
|
-
else {
|
|
7108
|
-
if (typeof cb2 === "function")
|
|
7109
|
-
cb2.apply(this, arguments);
|
|
7110
|
-
}
|
|
7111
|
-
});
|
|
7112
|
-
}
|
|
7113
|
-
}
|
|
7114
|
-
var fs$writeFile = fs3.writeFile;
|
|
7115
|
-
fs3.writeFile = writeFile;
|
|
7116
|
-
function writeFile(path2, data, options, cb) {
|
|
7117
|
-
if (typeof options === "function")
|
|
7118
|
-
cb = options, options = null;
|
|
7119
|
-
return go$writeFile(path2, data, options, cb);
|
|
7120
|
-
function go$writeFile(path3, data2, options2, cb2, startTime) {
|
|
7121
|
-
return fs$writeFile(path3, data2, options2, function(err) {
|
|
7122
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
7123
|
-
enqueue([go$writeFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
7124
|
-
else {
|
|
7125
|
-
if (typeof cb2 === "function")
|
|
7126
|
-
cb2.apply(this, arguments);
|
|
7127
|
-
}
|
|
7128
|
-
});
|
|
7129
|
-
}
|
|
7130
|
-
}
|
|
7131
|
-
var fs$appendFile = fs3.appendFile;
|
|
7132
|
-
if (fs$appendFile)
|
|
7133
|
-
fs3.appendFile = appendFile;
|
|
7134
|
-
function appendFile(path2, data, options, cb) {
|
|
7135
|
-
if (typeof options === "function")
|
|
7136
|
-
cb = options, options = null;
|
|
7137
|
-
return go$appendFile(path2, data, options, cb);
|
|
7138
|
-
function go$appendFile(path3, data2, options2, cb2, startTime) {
|
|
7139
|
-
return fs$appendFile(path3, data2, options2, function(err) {
|
|
7140
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
7141
|
-
enqueue([go$appendFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
7142
|
-
else {
|
|
7143
|
-
if (typeof cb2 === "function")
|
|
7144
|
-
cb2.apply(this, arguments);
|
|
7145
|
-
}
|
|
7146
|
-
});
|
|
7147
|
-
}
|
|
7148
|
-
}
|
|
7149
|
-
var fs$copyFile = fs3.copyFile;
|
|
7150
|
-
if (fs$copyFile)
|
|
7151
|
-
fs3.copyFile = copyFile;
|
|
7152
|
-
function copyFile(src, dest, flags, cb) {
|
|
7153
|
-
if (typeof flags === "function") {
|
|
7154
|
-
cb = flags;
|
|
7155
|
-
flags = 0;
|
|
7156
|
-
}
|
|
7157
|
-
return go$copyFile(src, dest, flags, cb);
|
|
7158
|
-
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
7159
|
-
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
7160
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
7161
|
-
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
7162
|
-
else {
|
|
7163
|
-
if (typeof cb2 === "function")
|
|
7164
|
-
cb2.apply(this, arguments);
|
|
7165
|
-
}
|
|
7166
|
-
});
|
|
7167
|
-
}
|
|
7168
|
-
}
|
|
7169
|
-
var fs$readdir = fs3.readdir;
|
|
7170
|
-
fs3.readdir = readdir;
|
|
7171
|
-
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
7172
|
-
function readdir(path2, options, cb) {
|
|
7173
|
-
if (typeof options === "function")
|
|
7174
|
-
cb = options, options = null;
|
|
7175
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path3, options2, cb2, startTime) {
|
|
7176
|
-
return fs$readdir(path3, fs$readdirCallback(
|
|
7177
|
-
path3,
|
|
7178
|
-
options2,
|
|
7179
|
-
cb2,
|
|
7180
|
-
startTime
|
|
7181
|
-
));
|
|
7182
|
-
} : function go$readdir2(path3, options2, cb2, startTime) {
|
|
7183
|
-
return fs$readdir(path3, options2, fs$readdirCallback(
|
|
7184
|
-
path3,
|
|
7185
|
-
options2,
|
|
7186
|
-
cb2,
|
|
7187
|
-
startTime
|
|
7188
|
-
));
|
|
7189
|
-
};
|
|
7190
|
-
return go$readdir(path2, options, cb);
|
|
7191
|
-
function fs$readdirCallback(path3, options2, cb2, startTime) {
|
|
7192
|
-
return function(err, files) {
|
|
7193
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
7194
|
-
enqueue([
|
|
7195
|
-
go$readdir,
|
|
7196
|
-
[path3, options2, cb2],
|
|
7197
|
-
err,
|
|
7198
|
-
startTime || Date.now(),
|
|
7199
|
-
Date.now()
|
|
7200
|
-
]);
|
|
7201
|
-
else {
|
|
7202
|
-
if (files && files.sort)
|
|
7203
|
-
files.sort();
|
|
7204
|
-
if (typeof cb2 === "function")
|
|
7205
|
-
cb2.call(this, err, files);
|
|
7206
|
-
}
|
|
7207
|
-
};
|
|
7208
|
-
}
|
|
7209
|
-
}
|
|
7210
|
-
if (process.version.substr(0, 4) === "v0.8") {
|
|
7211
|
-
var legStreams = legacy(fs3);
|
|
7212
|
-
ReadStream = legStreams.ReadStream;
|
|
7213
|
-
WriteStream = legStreams.WriteStream;
|
|
7214
|
-
}
|
|
7215
|
-
var fs$ReadStream = fs3.ReadStream;
|
|
7216
|
-
if (fs$ReadStream) {
|
|
7217
|
-
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
7218
|
-
ReadStream.prototype.open = ReadStream$open;
|
|
7219
|
-
}
|
|
7220
|
-
var fs$WriteStream = fs3.WriteStream;
|
|
7221
|
-
if (fs$WriteStream) {
|
|
7222
|
-
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
7223
|
-
WriteStream.prototype.open = WriteStream$open;
|
|
7224
|
-
}
|
|
7225
|
-
Object.defineProperty(fs3, "ReadStream", {
|
|
7226
|
-
get: function() {
|
|
7227
|
-
return ReadStream;
|
|
7228
|
-
},
|
|
7229
|
-
set: function(val) {
|
|
7230
|
-
ReadStream = val;
|
|
7231
|
-
},
|
|
7232
|
-
enumerable: true,
|
|
7233
|
-
configurable: true
|
|
7234
|
-
});
|
|
7235
|
-
Object.defineProperty(fs3, "WriteStream", {
|
|
7236
|
-
get: function() {
|
|
7237
|
-
return WriteStream;
|
|
7238
|
-
},
|
|
7239
|
-
set: function(val) {
|
|
7240
|
-
WriteStream = val;
|
|
7241
|
-
},
|
|
7242
|
-
enumerable: true,
|
|
7243
|
-
configurable: true
|
|
7244
|
-
});
|
|
7245
|
-
var FileReadStream = ReadStream;
|
|
7246
|
-
Object.defineProperty(fs3, "FileReadStream", {
|
|
7247
|
-
get: function() {
|
|
7248
|
-
return FileReadStream;
|
|
7249
|
-
},
|
|
7250
|
-
set: function(val) {
|
|
7251
|
-
FileReadStream = val;
|
|
7252
|
-
},
|
|
7253
|
-
enumerable: true,
|
|
7254
|
-
configurable: true
|
|
7255
|
-
});
|
|
7256
|
-
var FileWriteStream = WriteStream;
|
|
7257
|
-
Object.defineProperty(fs3, "FileWriteStream", {
|
|
7258
|
-
get: function() {
|
|
7259
|
-
return FileWriteStream;
|
|
7260
|
-
},
|
|
7261
|
-
set: function(val) {
|
|
7262
|
-
FileWriteStream = val;
|
|
7263
|
-
},
|
|
7264
|
-
enumerable: true,
|
|
7265
|
-
configurable: true
|
|
7266
|
-
});
|
|
7267
|
-
function ReadStream(path2, options) {
|
|
7268
|
-
if (this instanceof ReadStream)
|
|
7269
|
-
return fs$ReadStream.apply(this, arguments), this;
|
|
7270
|
-
else
|
|
7271
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
7272
|
-
}
|
|
7273
|
-
function ReadStream$open() {
|
|
7274
|
-
var that = this;
|
|
7275
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
7276
|
-
if (err) {
|
|
7277
|
-
if (that.autoClose)
|
|
7278
|
-
that.destroy();
|
|
7279
|
-
that.emit("error", err);
|
|
7280
|
-
} else {
|
|
7281
|
-
that.fd = fd;
|
|
7282
|
-
that.emit("open", fd);
|
|
7283
|
-
that.read();
|
|
7284
|
-
}
|
|
7285
|
-
});
|
|
7286
|
-
}
|
|
7287
|
-
function WriteStream(path2, options) {
|
|
7288
|
-
if (this instanceof WriteStream)
|
|
7289
|
-
return fs$WriteStream.apply(this, arguments), this;
|
|
7290
|
-
else
|
|
7291
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
7292
|
-
}
|
|
7293
|
-
function WriteStream$open() {
|
|
7294
|
-
var that = this;
|
|
7295
|
-
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
7296
|
-
if (err) {
|
|
7297
|
-
that.destroy();
|
|
7298
|
-
that.emit("error", err);
|
|
7299
|
-
} else {
|
|
7300
|
-
that.fd = fd;
|
|
7301
|
-
that.emit("open", fd);
|
|
7302
|
-
}
|
|
7303
|
-
});
|
|
7304
|
-
}
|
|
7305
|
-
function createReadStream(path2, options) {
|
|
7306
|
-
return new fs3.ReadStream(path2, options);
|
|
7307
|
-
}
|
|
7308
|
-
function createWriteStream(path2, options) {
|
|
7309
|
-
return new fs3.WriteStream(path2, options);
|
|
7310
|
-
}
|
|
7311
|
-
var fs$open = fs3.open;
|
|
7312
|
-
fs3.open = open;
|
|
7313
|
-
function open(path2, flags, mode, cb) {
|
|
7314
|
-
if (typeof mode === "function")
|
|
7315
|
-
cb = mode, mode = null;
|
|
7316
|
-
return go$open(path2, flags, mode, cb);
|
|
7317
|
-
function go$open(path3, flags2, mode2, cb2, startTime) {
|
|
7318
|
-
return fs$open(path3, flags2, mode2, function(err, fd) {
|
|
7319
|
-
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
7320
|
-
enqueue([go$open, [path3, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
7321
|
-
else {
|
|
7322
|
-
if (typeof cb2 === "function")
|
|
7323
|
-
cb2.apply(this, arguments);
|
|
7324
|
-
}
|
|
7325
|
-
});
|
|
7326
|
-
}
|
|
7327
|
-
}
|
|
7328
|
-
return fs3;
|
|
7329
|
-
}
|
|
7330
|
-
function enqueue(elem) {
|
|
7331
|
-
debug2("ENQUEUE", elem[0].name, elem[1]);
|
|
7332
|
-
fs2[gracefulQueue].push(elem);
|
|
7333
|
-
retry2();
|
|
7334
|
-
}
|
|
7335
|
-
var retryTimer;
|
|
7336
|
-
function resetQueue() {
|
|
7337
|
-
var now = Date.now();
|
|
7338
|
-
for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
|
|
7339
|
-
if (fs2[gracefulQueue][i].length > 2) {
|
|
7340
|
-
fs2[gracefulQueue][i][3] = now;
|
|
7341
|
-
fs2[gracefulQueue][i][4] = now;
|
|
7342
|
-
}
|
|
7343
|
-
}
|
|
7344
|
-
retry2();
|
|
7345
|
-
}
|
|
7346
|
-
function retry2() {
|
|
7347
|
-
clearTimeout(retryTimer);
|
|
7348
|
-
retryTimer = void 0;
|
|
7349
|
-
if (fs2[gracefulQueue].length === 0)
|
|
7350
|
-
return;
|
|
7351
|
-
var elem = fs2[gracefulQueue].shift();
|
|
7352
|
-
var fn = elem[0];
|
|
7353
|
-
var args = elem[1];
|
|
7354
|
-
var err = elem[2];
|
|
7355
|
-
var startTime = elem[3];
|
|
7356
|
-
var lastTime = elem[4];
|
|
7357
|
-
if (startTime === void 0) {
|
|
7358
|
-
debug2("RETRY", fn.name, args);
|
|
7359
|
-
fn.apply(null, args);
|
|
7360
|
-
} else if (Date.now() - startTime >= 6e4) {
|
|
7361
|
-
debug2("TIMEOUT", fn.name, args);
|
|
7362
|
-
var cb = args.pop();
|
|
7363
|
-
if (typeof cb === "function")
|
|
7364
|
-
cb.call(null, err);
|
|
7365
|
-
} else {
|
|
7366
|
-
var sinceAttempt = Date.now() - lastTime;
|
|
7367
|
-
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
7368
|
-
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
7369
|
-
if (sinceAttempt >= desiredDelay) {
|
|
7370
|
-
debug2("RETRY", fn.name, args);
|
|
7371
|
-
fn.apply(null, args.concat([startTime]));
|
|
7372
|
-
} else {
|
|
7373
|
-
fs2[gracefulQueue].push(elem);
|
|
7374
|
-
}
|
|
7375
|
-
}
|
|
7376
|
-
if (retryTimer === void 0) {
|
|
7377
|
-
retryTimer = setTimeout(retry2, 0);
|
|
7378
|
-
}
|
|
7379
|
-
}
|
|
7380
|
-
}
|
|
7381
|
-
});
|
|
7382
6645
|
var require_is_path_cwd = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
7383
6646
|
"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module2) {
|
|
7384
6647
|
"use strict";
|
|
@@ -9963,7 +9226,7 @@ var require_del = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
|
9963
9226
|
var globby = require_globby();
|
|
9964
9227
|
var isGlob = require_is_glob();
|
|
9965
9228
|
var slash = require_slash();
|
|
9966
|
-
var gracefulFs = require_graceful_fs();
|
|
9229
|
+
var gracefulFs = (0, import_chunk_I6EKS5RC.require_graceful_fs)();
|
|
9967
9230
|
var isPathCwd = require_is_path_cwd();
|
|
9968
9231
|
var isPathInside = require_is_path_inside();
|
|
9969
9232
|
var rimraf2 = require_rimraf();
|
|
@@ -10231,8 +9494,8 @@ var Body = class {
|
|
|
10231
9494
|
} else if (ArrayBuffer.isView(body)) {
|
|
10232
9495
|
body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
10233
9496
|
} else if (body instanceof import_node_stream2.default) {
|
|
10234
|
-
} else if (body instanceof
|
|
10235
|
-
body = (0,
|
|
9497
|
+
} else if (body instanceof import_chunk_BYDIRBHB.FormData) {
|
|
9498
|
+
body = (0, import_chunk_BYDIRBHB.formDataToBlob)(body);
|
|
10236
9499
|
boundary = body.type.split("=")[1];
|
|
10237
9500
|
} else {
|
|
10238
9501
|
body = import_node_buffer2.Buffer.from(String(body));
|
|
@@ -10276,14 +9539,14 @@ var Body = class {
|
|
|
10276
9539
|
async formData() {
|
|
10277
9540
|
const ct = this.headers.get("content-type");
|
|
10278
9541
|
if (ct.startsWith("application/x-www-form-urlencoded")) {
|
|
10279
|
-
const formData = new
|
|
9542
|
+
const formData = new import_chunk_BYDIRBHB.FormData();
|
|
10280
9543
|
const parameters = new URLSearchParams(await this.text());
|
|
10281
9544
|
for (const [name, value] of parameters) {
|
|
10282
9545
|
formData.append(name, value);
|
|
10283
9546
|
}
|
|
10284
9547
|
return formData;
|
|
10285
9548
|
}
|
|
10286
|
-
const { toFormData } = await import("./multipart-parser-
|
|
9549
|
+
const { toFormData } = await import("./multipart-parser-AOASR4DL.js");
|
|
10287
9550
|
return toFormData(this.body, ct);
|
|
10288
9551
|
}
|
|
10289
9552
|
/**
|
|
@@ -10294,7 +9557,7 @@ var Body = class {
|
|
|
10294
9557
|
async blob() {
|
|
10295
9558
|
const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
|
|
10296
9559
|
const buf = await this.arrayBuffer();
|
|
10297
|
-
return new
|
|
9560
|
+
return new import_chunk_BYDIRBHB.fetch_blob_default([buf], {
|
|
10298
9561
|
type: ct
|
|
10299
9562
|
});
|
|
10300
9563
|
}
|
|
@@ -10422,7 +9685,7 @@ var extractContentType = (body, request) => {
|
|
|
10422
9685
|
if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
|
10423
9686
|
return null;
|
|
10424
9687
|
}
|
|
10425
|
-
if (body instanceof
|
|
9688
|
+
if (body instanceof import_chunk_BYDIRBHB.FormData) {
|
|
10426
9689
|
return `multipart/form-data; boundary=${request[INTERNALS].boundary}`;
|
|
10427
9690
|
}
|
|
10428
9691
|
if (body && typeof body.getBoundary === "function") {
|
|
@@ -11368,7 +10631,7 @@ async function fetchChecksum(url) {
|
|
|
11368
10631
|
try {
|
|
11369
10632
|
const checksumUrl = `${url}.sha256`;
|
|
11370
10633
|
const response = await fetch(checksumUrl, {
|
|
11371
|
-
agent: (0,
|
|
10634
|
+
agent: (0, import_chunk_PYNY5L6J.getProxyAgent)(url)
|
|
11372
10635
|
});
|
|
11373
10636
|
if (!response.ok) {
|
|
11374
10637
|
let errorMessage = `Failed to fetch sha256 checksum at ${checksumUrl} - ${response.status} ${response.statusText}`;
|
|
@@ -11414,7 +10677,7 @@ async function downloadZip(url, target, progressCb) {
|
|
|
11414
10677
|
async () => {
|
|
11415
10678
|
const response = await fetch(url, {
|
|
11416
10679
|
compress: false,
|
|
11417
|
-
agent: (0,
|
|
10680
|
+
agent: (0, import_chunk_PYNY5L6J.getProxyAgent)(url)
|
|
11418
10681
|
});
|
|
11419
10682
|
if (!response.ok) {
|
|
11420
10683
|
throw new Error(`Failed to fetch the engine file at ${url} - ${response.status} ${response.statusText}`);
|
|
@@ -11461,7 +10724,7 @@ async function downloadZip(url, target, progressCb) {
|
|
|
11461
10724
|
onFailedAttempt: (err) => debug("An error occurred while downloading the engine file", err)
|
|
11462
10725
|
}
|
|
11463
10726
|
);
|
|
11464
|
-
await (0,
|
|
10727
|
+
await (0, import_chunk_I6EKS5RC.overwriteFile)(partial, target);
|
|
11465
10728
|
try {
|
|
11466
10729
|
await (0, import_chunk_SVP4SRAT.rimraf)(partial);
|
|
11467
10730
|
await (0, import_chunk_SVP4SRAT.rimraf)(tmpDir);
|