@prisma/internals 6.5.0-integration-fix-improve-global-omit-api-performance.1 → 6.5.0-integration-fix-improve-global-omit-api-performance-2.2
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-NXIWDQBF.js → chunk-3ERIN7PH.js} +5 -5
- package/dist/{chunk-5IPJRW2I.js → chunk-44KDLAL5.js} +7 -7
- package/dist/{chunk-P6JWAE6V.js → chunk-5YHJX6R5.js} +7 -7
- package/dist/{chunk-PSRK3GOS.js → chunk-7O5FFHIL.js} +39 -39
- package/dist/{chunk-5BZGQIRH.js → chunk-B2T7C2JL.js} +8 -8
- package/dist/{chunk-YSTRHGMU.js → chunk-FCLUXCBK.js} +5 -5
- package/dist/{chunk-QIVUAERL.js → chunk-GXDYIY4M.js} +1653 -1762
- package/dist/{chunk-H72GY63K.js → chunk-GXFFRDHK.js} +5 -5
- package/dist/{chunk-55RMSBQJ.js → chunk-IZ57EPVG.js} +776 -5
- package/dist/{chunk-2ILJBEIH.js → chunk-JRM42MK6.js} +5 -5
- package/dist/{chunk-G4BGJ6IP.js → chunk-KTBNIQ7N.js} +5 -5
- package/dist/{chunk-6TLRRQOC.js → chunk-MNMUVVYF.js} +8 -8
- package/dist/{chunk-ANCBOVIA.js → chunk-MVKD2LHS.js} +5 -5
- package/dist/{chunk-LK7U6TVK.js → chunk-NGOBF53T.js} +5 -5
- package/dist/{chunk-5XRQ7ONW.js → chunk-NJQWZ447.js} +5 -5
- package/dist/{chunk-SWSM63QH.js → chunk-NLCHWJIS.js} +39 -39
- package/dist/{chunk-IYHRQZ3I.js → chunk-ONTDFIZS.js} +8 -8
- package/dist/{chunk-WQXRNCPP.js → chunk-R3D6TBV3.js} +5 -5
- package/dist/{chunk-OYLZC5OV.js → chunk-TATYN3T2.js} +7 -7
- package/dist/{chunk-FTOI2OF7.js → chunk-TTPEDDRA.js} +5 -5
- package/dist/{chunk-DS5HCKHK.js → chunk-VURXE4OO.js} +7 -7
- package/dist/{chunk-K2RINR4Y.js → chunk-XHDNML25.js} +8 -8
- package/dist/{chunk-IWJ2BUYF.js → chunk-XLGODPZH.js} +5 -5
- package/dist/{chunk-3Q7XYZ62.js → chunk-ZDVVJKE3.js} +5 -5
- package/dist/{chunk-5S3CE7X2.js → chunk-ZKRL3DGS.js} +8 -8
- package/dist/{chunk-IYFPIGGM.js → chunk-ZLVVUJ3P.js} +8 -8
- package/dist/{chunk-4AIOCFJV.js → chunk-ZYIJBRFI.js} +6 -6
- package/dist/cli/checkUnsupportedDataProxy.js +19 -20
- package/dist/cli/getSchema.js +23 -24
- package/dist/cli/hashes.js +19 -20
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +18 -19
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +5 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +7 -8
- package/dist/engine-commands/index.js +29 -30
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +18 -19
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +18 -19
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +19 -20
- package/dist/get-generators/getGenerators.js +21 -22
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
- package/dist/getPackedPackage.js +2 -3
- package/dist/index.js +56 -57
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +8 -9
- package/dist/sendPanic.js +18 -19
- package/dist/utils/getEnvPaths.js +18 -19
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +18 -19
- package/dist/utils/loadEnvFile.js +18 -19
- package/dist/wasm.js +4 -4
- package/package.json +11 -11
- package/dist/chunk-H4J2FN2W.js +0 -796
@@ -26,8 +26,8 @@ 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_IZ57EPVG_exports = {};
|
30
|
+
__export(chunk_IZ57EPVG_exports, {
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
32
32
|
readPackageUp: () => readPackageUp,
|
33
33
|
require_glob: () => require_glob,
|
@@ -35,14 +35,13 @@ __export(chunk_55RMSBQJ_exports, {
|
|
35
35
|
require_minimatch: () => require_minimatch,
|
36
36
|
require_p_map: () => require_p_map
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_IZ57EPVG_exports);
|
39
39
|
var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
|
40
40
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
41
41
|
var import_chunk_CHMJ5V7I = require("./chunk-CHMJ5V7I.js");
|
42
42
|
var import_chunk_53LS3WUO = require("./chunk-53LS3WUO.js");
|
43
43
|
var import_chunk_4E7A3GDU = require("./chunk-4E7A3GDU.js");
|
44
44
|
var import_chunk_TZCE3PWZ = require("./chunk-TZCE3PWZ.js");
|
45
|
-
var import_chunk_H4J2FN2W = require("./chunk-H4J2FN2W.js");
|
46
45
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
47
46
|
var import_fs = __toESM(require("fs"));
|
48
47
|
var import_path = __toESM(require("path"));
|
@@ -9406,6 +9405,778 @@ var require_unique_string = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
9406
9405
|
module2.exports = () => cryptoRandomString(32);
|
9407
9406
|
}
|
9408
9407
|
});
|
9408
|
+
var require_polyfills = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
9409
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
9410
|
+
"use strict";
|
9411
|
+
var constants = (0, import_chunk_WWAWV7DQ.__require)("constants");
|
9412
|
+
var origCwd = process.cwd;
|
9413
|
+
var cwd = null;
|
9414
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
9415
|
+
process.cwd = function() {
|
9416
|
+
if (!cwd)
|
9417
|
+
cwd = origCwd.call(process);
|
9418
|
+
return cwd;
|
9419
|
+
};
|
9420
|
+
try {
|
9421
|
+
process.cwd();
|
9422
|
+
} catch (er) {
|
9423
|
+
}
|
9424
|
+
if (typeof process.chdir === "function") {
|
9425
|
+
chdir = process.chdir;
|
9426
|
+
process.chdir = function(d) {
|
9427
|
+
cwd = null;
|
9428
|
+
chdir.call(process, d);
|
9429
|
+
};
|
9430
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
9431
|
+
}
|
9432
|
+
var chdir;
|
9433
|
+
module2.exports = patch;
|
9434
|
+
function patch(fs4) {
|
9435
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
9436
|
+
patchLchmod(fs4);
|
9437
|
+
}
|
9438
|
+
if (!fs4.lutimes) {
|
9439
|
+
patchLutimes(fs4);
|
9440
|
+
}
|
9441
|
+
fs4.chown = chownFix(fs4.chown);
|
9442
|
+
fs4.fchown = chownFix(fs4.fchown);
|
9443
|
+
fs4.lchown = chownFix(fs4.lchown);
|
9444
|
+
fs4.chmod = chmodFix(fs4.chmod);
|
9445
|
+
fs4.fchmod = chmodFix(fs4.fchmod);
|
9446
|
+
fs4.lchmod = chmodFix(fs4.lchmod);
|
9447
|
+
fs4.chownSync = chownFixSync(fs4.chownSync);
|
9448
|
+
fs4.fchownSync = chownFixSync(fs4.fchownSync);
|
9449
|
+
fs4.lchownSync = chownFixSync(fs4.lchownSync);
|
9450
|
+
fs4.chmodSync = chmodFixSync(fs4.chmodSync);
|
9451
|
+
fs4.fchmodSync = chmodFixSync(fs4.fchmodSync);
|
9452
|
+
fs4.lchmodSync = chmodFixSync(fs4.lchmodSync);
|
9453
|
+
fs4.stat = statFix(fs4.stat);
|
9454
|
+
fs4.fstat = statFix(fs4.fstat);
|
9455
|
+
fs4.lstat = statFix(fs4.lstat);
|
9456
|
+
fs4.statSync = statFixSync(fs4.statSync);
|
9457
|
+
fs4.fstatSync = statFixSync(fs4.fstatSync);
|
9458
|
+
fs4.lstatSync = statFixSync(fs4.lstatSync);
|
9459
|
+
if (fs4.chmod && !fs4.lchmod) {
|
9460
|
+
fs4.lchmod = function(path5, mode, cb) {
|
9461
|
+
if (cb) process.nextTick(cb);
|
9462
|
+
};
|
9463
|
+
fs4.lchmodSync = function() {
|
9464
|
+
};
|
9465
|
+
}
|
9466
|
+
if (fs4.chown && !fs4.lchown) {
|
9467
|
+
fs4.lchown = function(path5, uid, gid, cb) {
|
9468
|
+
if (cb) process.nextTick(cb);
|
9469
|
+
};
|
9470
|
+
fs4.lchownSync = function() {
|
9471
|
+
};
|
9472
|
+
}
|
9473
|
+
if (platform === "win32") {
|
9474
|
+
fs4.rename = typeof fs4.rename !== "function" ? fs4.rename : function(fs$rename) {
|
9475
|
+
function rename(from, to, cb) {
|
9476
|
+
var start = Date.now();
|
9477
|
+
var backoff = 0;
|
9478
|
+
fs$rename(from, to, function CB(er) {
|
9479
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
9480
|
+
setTimeout(function() {
|
9481
|
+
fs4.stat(to, function(stater, st) {
|
9482
|
+
if (stater && stater.code === "ENOENT")
|
9483
|
+
fs$rename(from, to, CB);
|
9484
|
+
else
|
9485
|
+
cb(er);
|
9486
|
+
});
|
9487
|
+
}, backoff);
|
9488
|
+
if (backoff < 100)
|
9489
|
+
backoff += 10;
|
9490
|
+
return;
|
9491
|
+
}
|
9492
|
+
if (cb) cb(er);
|
9493
|
+
});
|
9494
|
+
}
|
9495
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
9496
|
+
return rename;
|
9497
|
+
}(fs4.rename);
|
9498
|
+
}
|
9499
|
+
fs4.read = typeof fs4.read !== "function" ? fs4.read : function(fs$read) {
|
9500
|
+
function read(fd, buffer, offset, length, position, callback_) {
|
9501
|
+
var callback;
|
9502
|
+
if (callback_ && typeof callback_ === "function") {
|
9503
|
+
var eagCounter = 0;
|
9504
|
+
callback = function(er, _, __) {
|
9505
|
+
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
9506
|
+
eagCounter++;
|
9507
|
+
return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
|
9508
|
+
}
|
9509
|
+
callback_.apply(this, arguments);
|
9510
|
+
};
|
9511
|
+
}
|
9512
|
+
return fs$read.call(fs4, fd, buffer, offset, length, position, callback);
|
9513
|
+
}
|
9514
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
9515
|
+
return read;
|
9516
|
+
}(fs4.read);
|
9517
|
+
fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) {
|
9518
|
+
return function(fd, buffer, offset, length, position) {
|
9519
|
+
var eagCounter = 0;
|
9520
|
+
while (true) {
|
9521
|
+
try {
|
9522
|
+
return fs$readSync.call(fs4, fd, buffer, offset, length, position);
|
9523
|
+
} catch (er) {
|
9524
|
+
if (er.code === "EAGAIN" && eagCounter < 10) {
|
9525
|
+
eagCounter++;
|
9526
|
+
continue;
|
9527
|
+
}
|
9528
|
+
throw er;
|
9529
|
+
}
|
9530
|
+
}
|
9531
|
+
};
|
9532
|
+
}(fs4.readSync);
|
9533
|
+
function patchLchmod(fs5) {
|
9534
|
+
fs5.lchmod = function(path5, mode, callback) {
|
9535
|
+
fs5.open(
|
9536
|
+
path5,
|
9537
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
9538
|
+
mode,
|
9539
|
+
function(err, fd) {
|
9540
|
+
if (err) {
|
9541
|
+
if (callback) callback(err);
|
9542
|
+
return;
|
9543
|
+
}
|
9544
|
+
fs5.fchmod(fd, mode, function(err2) {
|
9545
|
+
fs5.close(fd, function(err22) {
|
9546
|
+
if (callback) callback(err2 || err22);
|
9547
|
+
});
|
9548
|
+
});
|
9549
|
+
}
|
9550
|
+
);
|
9551
|
+
};
|
9552
|
+
fs5.lchmodSync = function(path5, mode) {
|
9553
|
+
var fd = fs5.openSync(path5, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
9554
|
+
var threw = true;
|
9555
|
+
var ret;
|
9556
|
+
try {
|
9557
|
+
ret = fs5.fchmodSync(fd, mode);
|
9558
|
+
threw = false;
|
9559
|
+
} finally {
|
9560
|
+
if (threw) {
|
9561
|
+
try {
|
9562
|
+
fs5.closeSync(fd);
|
9563
|
+
} catch (er) {
|
9564
|
+
}
|
9565
|
+
} else {
|
9566
|
+
fs5.closeSync(fd);
|
9567
|
+
}
|
9568
|
+
}
|
9569
|
+
return ret;
|
9570
|
+
};
|
9571
|
+
}
|
9572
|
+
function patchLutimes(fs5) {
|
9573
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
|
9574
|
+
fs5.lutimes = function(path5, at, mt, cb) {
|
9575
|
+
fs5.open(path5, constants.O_SYMLINK, function(er, fd) {
|
9576
|
+
if (er) {
|
9577
|
+
if (cb) cb(er);
|
9578
|
+
return;
|
9579
|
+
}
|
9580
|
+
fs5.futimes(fd, at, mt, function(er2) {
|
9581
|
+
fs5.close(fd, function(er22) {
|
9582
|
+
if (cb) cb(er2 || er22);
|
9583
|
+
});
|
9584
|
+
});
|
9585
|
+
});
|
9586
|
+
};
|
9587
|
+
fs5.lutimesSync = function(path5, at, mt) {
|
9588
|
+
var fd = fs5.openSync(path5, constants.O_SYMLINK);
|
9589
|
+
var ret;
|
9590
|
+
var threw = true;
|
9591
|
+
try {
|
9592
|
+
ret = fs5.futimesSync(fd, at, mt);
|
9593
|
+
threw = false;
|
9594
|
+
} finally {
|
9595
|
+
if (threw) {
|
9596
|
+
try {
|
9597
|
+
fs5.closeSync(fd);
|
9598
|
+
} catch (er) {
|
9599
|
+
}
|
9600
|
+
} else {
|
9601
|
+
fs5.closeSync(fd);
|
9602
|
+
}
|
9603
|
+
}
|
9604
|
+
return ret;
|
9605
|
+
};
|
9606
|
+
} else if (fs5.futimes) {
|
9607
|
+
fs5.lutimes = function(_a, _b, _c, cb) {
|
9608
|
+
if (cb) process.nextTick(cb);
|
9609
|
+
};
|
9610
|
+
fs5.lutimesSync = function() {
|
9611
|
+
};
|
9612
|
+
}
|
9613
|
+
}
|
9614
|
+
function chmodFix(orig) {
|
9615
|
+
if (!orig) return orig;
|
9616
|
+
return function(target, mode, cb) {
|
9617
|
+
return orig.call(fs4, target, mode, function(er) {
|
9618
|
+
if (chownErOk(er)) er = null;
|
9619
|
+
if (cb) cb.apply(this, arguments);
|
9620
|
+
});
|
9621
|
+
};
|
9622
|
+
}
|
9623
|
+
function chmodFixSync(orig) {
|
9624
|
+
if (!orig) return orig;
|
9625
|
+
return function(target, mode) {
|
9626
|
+
try {
|
9627
|
+
return orig.call(fs4, target, mode);
|
9628
|
+
} catch (er) {
|
9629
|
+
if (!chownErOk(er)) throw er;
|
9630
|
+
}
|
9631
|
+
};
|
9632
|
+
}
|
9633
|
+
function chownFix(orig) {
|
9634
|
+
if (!orig) return orig;
|
9635
|
+
return function(target, uid, gid, cb) {
|
9636
|
+
return orig.call(fs4, target, uid, gid, function(er) {
|
9637
|
+
if (chownErOk(er)) er = null;
|
9638
|
+
if (cb) cb.apply(this, arguments);
|
9639
|
+
});
|
9640
|
+
};
|
9641
|
+
}
|
9642
|
+
function chownFixSync(orig) {
|
9643
|
+
if (!orig) return orig;
|
9644
|
+
return function(target, uid, gid) {
|
9645
|
+
try {
|
9646
|
+
return orig.call(fs4, target, uid, gid);
|
9647
|
+
} catch (er) {
|
9648
|
+
if (!chownErOk(er)) throw er;
|
9649
|
+
}
|
9650
|
+
};
|
9651
|
+
}
|
9652
|
+
function statFix(orig) {
|
9653
|
+
if (!orig) return orig;
|
9654
|
+
return function(target, options, cb) {
|
9655
|
+
if (typeof options === "function") {
|
9656
|
+
cb = options;
|
9657
|
+
options = null;
|
9658
|
+
}
|
9659
|
+
function callback(er, stats) {
|
9660
|
+
if (stats) {
|
9661
|
+
if (stats.uid < 0) stats.uid += 4294967296;
|
9662
|
+
if (stats.gid < 0) stats.gid += 4294967296;
|
9663
|
+
}
|
9664
|
+
if (cb) cb.apply(this, arguments);
|
9665
|
+
}
|
9666
|
+
return options ? orig.call(fs4, target, options, callback) : orig.call(fs4, target, callback);
|
9667
|
+
};
|
9668
|
+
}
|
9669
|
+
function statFixSync(orig) {
|
9670
|
+
if (!orig) return orig;
|
9671
|
+
return function(target, options) {
|
9672
|
+
var stats = options ? orig.call(fs4, target, options) : orig.call(fs4, target);
|
9673
|
+
if (stats) {
|
9674
|
+
if (stats.uid < 0) stats.uid += 4294967296;
|
9675
|
+
if (stats.gid < 0) stats.gid += 4294967296;
|
9676
|
+
}
|
9677
|
+
return stats;
|
9678
|
+
};
|
9679
|
+
}
|
9680
|
+
function chownErOk(er) {
|
9681
|
+
if (!er)
|
9682
|
+
return true;
|
9683
|
+
if (er.code === "ENOSYS")
|
9684
|
+
return true;
|
9685
|
+
var nonroot = !process.getuid || process.getuid() !== 0;
|
9686
|
+
if (nonroot) {
|
9687
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
9688
|
+
return true;
|
9689
|
+
}
|
9690
|
+
return false;
|
9691
|
+
}
|
9692
|
+
}
|
9693
|
+
}
|
9694
|
+
});
|
9695
|
+
var require_legacy_streams = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
9696
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
9697
|
+
"use strict";
|
9698
|
+
var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
|
9699
|
+
module2.exports = legacy;
|
9700
|
+
function legacy(fs4) {
|
9701
|
+
return {
|
9702
|
+
ReadStream,
|
9703
|
+
WriteStream
|
9704
|
+
};
|
9705
|
+
function ReadStream(path5, options) {
|
9706
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path5, options);
|
9707
|
+
Stream.call(this);
|
9708
|
+
var self = this;
|
9709
|
+
this.path = path5;
|
9710
|
+
this.fd = null;
|
9711
|
+
this.readable = true;
|
9712
|
+
this.paused = false;
|
9713
|
+
this.flags = "r";
|
9714
|
+
this.mode = 438;
|
9715
|
+
this.bufferSize = 64 * 1024;
|
9716
|
+
options = options || {};
|
9717
|
+
var keys = Object.keys(options);
|
9718
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
9719
|
+
var key = keys[index];
|
9720
|
+
this[key] = options[key];
|
9721
|
+
}
|
9722
|
+
if (this.encoding) this.setEncoding(this.encoding);
|
9723
|
+
if (this.start !== void 0) {
|
9724
|
+
if ("number" !== typeof this.start) {
|
9725
|
+
throw TypeError("start must be a Number");
|
9726
|
+
}
|
9727
|
+
if (this.end === void 0) {
|
9728
|
+
this.end = Infinity;
|
9729
|
+
} else if ("number" !== typeof this.end) {
|
9730
|
+
throw TypeError("end must be a Number");
|
9731
|
+
}
|
9732
|
+
if (this.start > this.end) {
|
9733
|
+
throw new Error("start must be <= end");
|
9734
|
+
}
|
9735
|
+
this.pos = this.start;
|
9736
|
+
}
|
9737
|
+
if (this.fd !== null) {
|
9738
|
+
process.nextTick(function() {
|
9739
|
+
self._read();
|
9740
|
+
});
|
9741
|
+
return;
|
9742
|
+
}
|
9743
|
+
fs4.open(this.path, this.flags, this.mode, function(err, fd) {
|
9744
|
+
if (err) {
|
9745
|
+
self.emit("error", err);
|
9746
|
+
self.readable = false;
|
9747
|
+
return;
|
9748
|
+
}
|
9749
|
+
self.fd = fd;
|
9750
|
+
self.emit("open", fd);
|
9751
|
+
self._read();
|
9752
|
+
});
|
9753
|
+
}
|
9754
|
+
function WriteStream(path5, options) {
|
9755
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path5, options);
|
9756
|
+
Stream.call(this);
|
9757
|
+
this.path = path5;
|
9758
|
+
this.fd = null;
|
9759
|
+
this.writable = true;
|
9760
|
+
this.flags = "w";
|
9761
|
+
this.encoding = "binary";
|
9762
|
+
this.mode = 438;
|
9763
|
+
this.bytesWritten = 0;
|
9764
|
+
options = options || {};
|
9765
|
+
var keys = Object.keys(options);
|
9766
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
9767
|
+
var key = keys[index];
|
9768
|
+
this[key] = options[key];
|
9769
|
+
}
|
9770
|
+
if (this.start !== void 0) {
|
9771
|
+
if ("number" !== typeof this.start) {
|
9772
|
+
throw TypeError("start must be a Number");
|
9773
|
+
}
|
9774
|
+
if (this.start < 0) {
|
9775
|
+
throw new Error("start must be >= zero");
|
9776
|
+
}
|
9777
|
+
this.pos = this.start;
|
9778
|
+
}
|
9779
|
+
this.busy = false;
|
9780
|
+
this._queue = [];
|
9781
|
+
if (this.fd === null) {
|
9782
|
+
this._open = fs4.open;
|
9783
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
9784
|
+
this.flush();
|
9785
|
+
}
|
9786
|
+
}
|
9787
|
+
}
|
9788
|
+
}
|
9789
|
+
});
|
9790
|
+
var require_clone = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
9791
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) {
|
9792
|
+
"use strict";
|
9793
|
+
module2.exports = clone;
|
9794
|
+
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
9795
|
+
return obj.__proto__;
|
9796
|
+
};
|
9797
|
+
function clone(obj) {
|
9798
|
+
if (obj === null || typeof obj !== "object")
|
9799
|
+
return obj;
|
9800
|
+
if (obj instanceof Object)
|
9801
|
+
var copy = { __proto__: getPrototypeOf(obj) };
|
9802
|
+
else
|
9803
|
+
var copy = /* @__PURE__ */ Object.create(null);
|
9804
|
+
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
9805
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
9806
|
+
});
|
9807
|
+
return copy;
|
9808
|
+
}
|
9809
|
+
}
|
9810
|
+
});
|
9811
|
+
var require_graceful_fs = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
9812
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
9813
|
+
"use strict";
|
9814
|
+
var fs4 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
9815
|
+
var polyfills = require_polyfills();
|
9816
|
+
var legacy = require_legacy_streams();
|
9817
|
+
var clone = require_clone();
|
9818
|
+
var util = (0, import_chunk_WWAWV7DQ.__require)("util");
|
9819
|
+
var gracefulQueue;
|
9820
|
+
var previousSymbol;
|
9821
|
+
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
9822
|
+
gracefulQueue = Symbol.for("graceful-fs.queue");
|
9823
|
+
previousSymbol = Symbol.for("graceful-fs.previous");
|
9824
|
+
} else {
|
9825
|
+
gracefulQueue = "___graceful-fs.queue";
|
9826
|
+
previousSymbol = "___graceful-fs.previous";
|
9827
|
+
}
|
9828
|
+
function noop() {
|
9829
|
+
}
|
9830
|
+
function publishQueue(context, queue2) {
|
9831
|
+
Object.defineProperty(context, gracefulQueue, {
|
9832
|
+
get: function() {
|
9833
|
+
return queue2;
|
9834
|
+
}
|
9835
|
+
});
|
9836
|
+
}
|
9837
|
+
var debug = noop;
|
9838
|
+
if (util.debuglog)
|
9839
|
+
debug = util.debuglog("gfs4");
|
9840
|
+
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
9841
|
+
debug = function() {
|
9842
|
+
var m = util.format.apply(util, arguments);
|
9843
|
+
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
9844
|
+
console.error(m);
|
9845
|
+
};
|
9846
|
+
if (!fs4[gracefulQueue]) {
|
9847
|
+
queue = global[gracefulQueue] || [];
|
9848
|
+
publishQueue(fs4, queue);
|
9849
|
+
fs4.close = function(fs$close) {
|
9850
|
+
function close(fd, cb) {
|
9851
|
+
return fs$close.call(fs4, fd, function(err) {
|
9852
|
+
if (!err) {
|
9853
|
+
resetQueue();
|
9854
|
+
}
|
9855
|
+
if (typeof cb === "function")
|
9856
|
+
cb.apply(this, arguments);
|
9857
|
+
});
|
9858
|
+
}
|
9859
|
+
Object.defineProperty(close, previousSymbol, {
|
9860
|
+
value: fs$close
|
9861
|
+
});
|
9862
|
+
return close;
|
9863
|
+
}(fs4.close);
|
9864
|
+
fs4.closeSync = function(fs$closeSync) {
|
9865
|
+
function closeSync(fd) {
|
9866
|
+
fs$closeSync.apply(fs4, arguments);
|
9867
|
+
resetQueue();
|
9868
|
+
}
|
9869
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
9870
|
+
value: fs$closeSync
|
9871
|
+
});
|
9872
|
+
return closeSync;
|
9873
|
+
}(fs4.closeSync);
|
9874
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
9875
|
+
process.on("exit", function() {
|
9876
|
+
debug(fs4[gracefulQueue]);
|
9877
|
+
(0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs4[gracefulQueue].length, 0);
|
9878
|
+
});
|
9879
|
+
}
|
9880
|
+
}
|
9881
|
+
var queue;
|
9882
|
+
if (!global[gracefulQueue]) {
|
9883
|
+
publishQueue(global, fs4[gracefulQueue]);
|
9884
|
+
}
|
9885
|
+
module2.exports = patch(clone(fs4));
|
9886
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs4.__patched) {
|
9887
|
+
module2.exports = patch(fs4);
|
9888
|
+
fs4.__patched = true;
|
9889
|
+
}
|
9890
|
+
function patch(fs5) {
|
9891
|
+
polyfills(fs5);
|
9892
|
+
fs5.gracefulify = patch;
|
9893
|
+
fs5.createReadStream = createReadStream;
|
9894
|
+
fs5.createWriteStream = createWriteStream;
|
9895
|
+
var fs$readFile = fs5.readFile;
|
9896
|
+
fs5.readFile = readFile;
|
9897
|
+
function readFile(path5, options, cb) {
|
9898
|
+
if (typeof options === "function")
|
9899
|
+
cb = options, options = null;
|
9900
|
+
return go$readFile(path5, options, cb);
|
9901
|
+
function go$readFile(path6, options2, cb2, startTime) {
|
9902
|
+
return fs$readFile(path6, options2, function(err) {
|
9903
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
9904
|
+
enqueue([go$readFile, [path6, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
9905
|
+
else {
|
9906
|
+
if (typeof cb2 === "function")
|
9907
|
+
cb2.apply(this, arguments);
|
9908
|
+
}
|
9909
|
+
});
|
9910
|
+
}
|
9911
|
+
}
|
9912
|
+
var fs$writeFile = fs5.writeFile;
|
9913
|
+
fs5.writeFile = writeFile;
|
9914
|
+
function writeFile(path5, data, options, cb) {
|
9915
|
+
if (typeof options === "function")
|
9916
|
+
cb = options, options = null;
|
9917
|
+
return go$writeFile(path5, data, options, cb);
|
9918
|
+
function go$writeFile(path6, data2, options2, cb2, startTime) {
|
9919
|
+
return fs$writeFile(path6, data2, options2, function(err) {
|
9920
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
9921
|
+
enqueue([go$writeFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
9922
|
+
else {
|
9923
|
+
if (typeof cb2 === "function")
|
9924
|
+
cb2.apply(this, arguments);
|
9925
|
+
}
|
9926
|
+
});
|
9927
|
+
}
|
9928
|
+
}
|
9929
|
+
var fs$appendFile = fs5.appendFile;
|
9930
|
+
if (fs$appendFile)
|
9931
|
+
fs5.appendFile = appendFile;
|
9932
|
+
function appendFile(path5, data, options, cb) {
|
9933
|
+
if (typeof options === "function")
|
9934
|
+
cb = options, options = null;
|
9935
|
+
return go$appendFile(path5, data, options, cb);
|
9936
|
+
function go$appendFile(path6, data2, options2, cb2, startTime) {
|
9937
|
+
return fs$appendFile(path6, data2, options2, function(err) {
|
9938
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
9939
|
+
enqueue([go$appendFile, [path6, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
9940
|
+
else {
|
9941
|
+
if (typeof cb2 === "function")
|
9942
|
+
cb2.apply(this, arguments);
|
9943
|
+
}
|
9944
|
+
});
|
9945
|
+
}
|
9946
|
+
}
|
9947
|
+
var fs$copyFile = fs5.copyFile;
|
9948
|
+
if (fs$copyFile)
|
9949
|
+
fs5.copyFile = copyFile;
|
9950
|
+
function copyFile(src, dest, flags, cb) {
|
9951
|
+
if (typeof flags === "function") {
|
9952
|
+
cb = flags;
|
9953
|
+
flags = 0;
|
9954
|
+
}
|
9955
|
+
return go$copyFile(src, dest, flags, cb);
|
9956
|
+
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
9957
|
+
return fs$copyFile(src2, dest2, flags2, function(err) {
|
9958
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
9959
|
+
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
9960
|
+
else {
|
9961
|
+
if (typeof cb2 === "function")
|
9962
|
+
cb2.apply(this, arguments);
|
9963
|
+
}
|
9964
|
+
});
|
9965
|
+
}
|
9966
|
+
}
|
9967
|
+
var fs$readdir = fs5.readdir;
|
9968
|
+
fs5.readdir = readdir;
|
9969
|
+
var noReaddirOptionVersions = /^v[0-5]\./;
|
9970
|
+
function readdir(path5, options, cb) {
|
9971
|
+
if (typeof options === "function")
|
9972
|
+
cb = options, options = null;
|
9973
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path6, options2, cb2, startTime) {
|
9974
|
+
return fs$readdir(path6, fs$readdirCallback(
|
9975
|
+
path6,
|
9976
|
+
options2,
|
9977
|
+
cb2,
|
9978
|
+
startTime
|
9979
|
+
));
|
9980
|
+
} : function go$readdir2(path6, options2, cb2, startTime) {
|
9981
|
+
return fs$readdir(path6, options2, fs$readdirCallback(
|
9982
|
+
path6,
|
9983
|
+
options2,
|
9984
|
+
cb2,
|
9985
|
+
startTime
|
9986
|
+
));
|
9987
|
+
};
|
9988
|
+
return go$readdir(path5, options, cb);
|
9989
|
+
function fs$readdirCallback(path6, options2, cb2, startTime) {
|
9990
|
+
return function(err, files) {
|
9991
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
9992
|
+
enqueue([
|
9993
|
+
go$readdir,
|
9994
|
+
[path6, options2, cb2],
|
9995
|
+
err,
|
9996
|
+
startTime || Date.now(),
|
9997
|
+
Date.now()
|
9998
|
+
]);
|
9999
|
+
else {
|
10000
|
+
if (files && files.sort)
|
10001
|
+
files.sort();
|
10002
|
+
if (typeof cb2 === "function")
|
10003
|
+
cb2.call(this, err, files);
|
10004
|
+
}
|
10005
|
+
};
|
10006
|
+
}
|
10007
|
+
}
|
10008
|
+
if (process.version.substr(0, 4) === "v0.8") {
|
10009
|
+
var legStreams = legacy(fs5);
|
10010
|
+
ReadStream = legStreams.ReadStream;
|
10011
|
+
WriteStream = legStreams.WriteStream;
|
10012
|
+
}
|
10013
|
+
var fs$ReadStream = fs5.ReadStream;
|
10014
|
+
if (fs$ReadStream) {
|
10015
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
10016
|
+
ReadStream.prototype.open = ReadStream$open;
|
10017
|
+
}
|
10018
|
+
var fs$WriteStream = fs5.WriteStream;
|
10019
|
+
if (fs$WriteStream) {
|
10020
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
10021
|
+
WriteStream.prototype.open = WriteStream$open;
|
10022
|
+
}
|
10023
|
+
Object.defineProperty(fs5, "ReadStream", {
|
10024
|
+
get: function() {
|
10025
|
+
return ReadStream;
|
10026
|
+
},
|
10027
|
+
set: function(val) {
|
10028
|
+
ReadStream = val;
|
10029
|
+
},
|
10030
|
+
enumerable: true,
|
10031
|
+
configurable: true
|
10032
|
+
});
|
10033
|
+
Object.defineProperty(fs5, "WriteStream", {
|
10034
|
+
get: function() {
|
10035
|
+
return WriteStream;
|
10036
|
+
},
|
10037
|
+
set: function(val) {
|
10038
|
+
WriteStream = val;
|
10039
|
+
},
|
10040
|
+
enumerable: true,
|
10041
|
+
configurable: true
|
10042
|
+
});
|
10043
|
+
var FileReadStream = ReadStream;
|
10044
|
+
Object.defineProperty(fs5, "FileReadStream", {
|
10045
|
+
get: function() {
|
10046
|
+
return FileReadStream;
|
10047
|
+
},
|
10048
|
+
set: function(val) {
|
10049
|
+
FileReadStream = val;
|
10050
|
+
},
|
10051
|
+
enumerable: true,
|
10052
|
+
configurable: true
|
10053
|
+
});
|
10054
|
+
var FileWriteStream = WriteStream;
|
10055
|
+
Object.defineProperty(fs5, "FileWriteStream", {
|
10056
|
+
get: function() {
|
10057
|
+
return FileWriteStream;
|
10058
|
+
},
|
10059
|
+
set: function(val) {
|
10060
|
+
FileWriteStream = val;
|
10061
|
+
},
|
10062
|
+
enumerable: true,
|
10063
|
+
configurable: true
|
10064
|
+
});
|
10065
|
+
function ReadStream(path5, options) {
|
10066
|
+
if (this instanceof ReadStream)
|
10067
|
+
return fs$ReadStream.apply(this, arguments), this;
|
10068
|
+
else
|
10069
|
+
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
10070
|
+
}
|
10071
|
+
function ReadStream$open() {
|
10072
|
+
var that = this;
|
10073
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
10074
|
+
if (err) {
|
10075
|
+
if (that.autoClose)
|
10076
|
+
that.destroy();
|
10077
|
+
that.emit("error", err);
|
10078
|
+
} else {
|
10079
|
+
that.fd = fd;
|
10080
|
+
that.emit("open", fd);
|
10081
|
+
that.read();
|
10082
|
+
}
|
10083
|
+
});
|
10084
|
+
}
|
10085
|
+
function WriteStream(path5, options) {
|
10086
|
+
if (this instanceof WriteStream)
|
10087
|
+
return fs$WriteStream.apply(this, arguments), this;
|
10088
|
+
else
|
10089
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
10090
|
+
}
|
10091
|
+
function WriteStream$open() {
|
10092
|
+
var that = this;
|
10093
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
10094
|
+
if (err) {
|
10095
|
+
that.destroy();
|
10096
|
+
that.emit("error", err);
|
10097
|
+
} else {
|
10098
|
+
that.fd = fd;
|
10099
|
+
that.emit("open", fd);
|
10100
|
+
}
|
10101
|
+
});
|
10102
|
+
}
|
10103
|
+
function createReadStream(path5, options) {
|
10104
|
+
return new fs5.ReadStream(path5, options);
|
10105
|
+
}
|
10106
|
+
function createWriteStream(path5, options) {
|
10107
|
+
return new fs5.WriteStream(path5, options);
|
10108
|
+
}
|
10109
|
+
var fs$open = fs5.open;
|
10110
|
+
fs5.open = open;
|
10111
|
+
function open(path5, flags, mode, cb) {
|
10112
|
+
if (typeof mode === "function")
|
10113
|
+
cb = mode, mode = null;
|
10114
|
+
return go$open(path5, flags, mode, cb);
|
10115
|
+
function go$open(path6, flags2, mode2, cb2, startTime) {
|
10116
|
+
return fs$open(path6, flags2, mode2, function(err, fd) {
|
10117
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
10118
|
+
enqueue([go$open, [path6, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
10119
|
+
else {
|
10120
|
+
if (typeof cb2 === "function")
|
10121
|
+
cb2.apply(this, arguments);
|
10122
|
+
}
|
10123
|
+
});
|
10124
|
+
}
|
10125
|
+
}
|
10126
|
+
return fs5;
|
10127
|
+
}
|
10128
|
+
function enqueue(elem) {
|
10129
|
+
debug("ENQUEUE", elem[0].name, elem[1]);
|
10130
|
+
fs4[gracefulQueue].push(elem);
|
10131
|
+
retry();
|
10132
|
+
}
|
10133
|
+
var retryTimer;
|
10134
|
+
function resetQueue() {
|
10135
|
+
var now = Date.now();
|
10136
|
+
for (var i = 0; i < fs4[gracefulQueue].length; ++i) {
|
10137
|
+
if (fs4[gracefulQueue][i].length > 2) {
|
10138
|
+
fs4[gracefulQueue][i][3] = now;
|
10139
|
+
fs4[gracefulQueue][i][4] = now;
|
10140
|
+
}
|
10141
|
+
}
|
10142
|
+
retry();
|
10143
|
+
}
|
10144
|
+
function retry() {
|
10145
|
+
clearTimeout(retryTimer);
|
10146
|
+
retryTimer = void 0;
|
10147
|
+
if (fs4[gracefulQueue].length === 0)
|
10148
|
+
return;
|
10149
|
+
var elem = fs4[gracefulQueue].shift();
|
10150
|
+
var fn = elem[0];
|
10151
|
+
var args = elem[1];
|
10152
|
+
var err = elem[2];
|
10153
|
+
var startTime = elem[3];
|
10154
|
+
var lastTime = elem[4];
|
10155
|
+
if (startTime === void 0) {
|
10156
|
+
debug("RETRY", fn.name, args);
|
10157
|
+
fn.apply(null, args);
|
10158
|
+
} else if (Date.now() - startTime >= 6e4) {
|
10159
|
+
debug("TIMEOUT", fn.name, args);
|
10160
|
+
var cb = args.pop();
|
10161
|
+
if (typeof cb === "function")
|
10162
|
+
cb.call(null, err);
|
10163
|
+
} else {
|
10164
|
+
var sinceAttempt = Date.now() - lastTime;
|
10165
|
+
var sinceStart = Math.max(lastTime - startTime, 1);
|
10166
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
10167
|
+
if (sinceAttempt >= desiredDelay) {
|
10168
|
+
debug("RETRY", fn.name, args);
|
10169
|
+
fn.apply(null, args.concat([startTime]));
|
10170
|
+
} else {
|
10171
|
+
fs4[gracefulQueue].push(elem);
|
10172
|
+
}
|
10173
|
+
}
|
10174
|
+
if (retryTimer === void 0) {
|
10175
|
+
retryTimer = setTimeout(retry, 0);
|
10176
|
+
}
|
10177
|
+
}
|
10178
|
+
}
|
10179
|
+
});
|
9409
10180
|
var require_is_path_cwd = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
9410
10181
|
"../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module2) {
|
9411
10182
|
"use strict";
|
@@ -11706,7 +12477,7 @@ var require_del = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
11706
12477
|
var globby = (0, import_chunk_53LS3WUO.require_globby)();
|
11707
12478
|
var isGlob = (0, import_chunk_53LS3WUO.require_is_glob)();
|
11708
12479
|
var slash = (0, import_chunk_53LS3WUO.require_slash)();
|
11709
|
-
var gracefulFs =
|
12480
|
+
var gracefulFs = require_graceful_fs();
|
11710
12481
|
var isPathCwd = require_is_path_cwd();
|
11711
12482
|
var isPathInside = require_is_path_inside();
|
11712
12483
|
var rimraf = require_rimraf();
|