@prisma/internals 6.19.0-integration-engines-6-19-0-32-next-568b222d0ab829bbbe5f2fd48ed587836813346c.1 → 6.19.0-integration-feat-remove-library-engine.6

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.
Files changed (116) hide show
  1. package/dist/{chunk-DK5SCKNO.js → chunk-2KREE2OX.js} +5 -5
  2. package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
  3. package/dist/{chunk-ZKW5OHDA.js → chunk-2RRPXN7D.js} +5 -5
  4. package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
  5. package/dist/{chunk-4HCWAIVZ.js → chunk-33FYCEWF.js} +14 -20
  6. package/dist/{chunk-FYZCPL2Z.js → chunk-3CAPLXKF.js} +5 -8
  7. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  8. package/dist/{chunk-JD36HS5L.js → chunk-3XBUWR5Q.js} +14 -20
  9. package/dist/{chunk-OAT7ZJED.js → chunk-4YDN7W7B.js} +7 -20
  10. package/dist/{chunk-SH2TNBI6.js → chunk-5B5U2HVK.js} +7 -8
  11. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  12. package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
  13. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  14. package/dist/{chunk-2MJTY4KQ.js → chunk-6FP5PMMX.js} +5 -5
  15. package/dist/{chunk-ISSTUMGH.js → chunk-6QTJ35DP.js} +12 -12
  16. package/dist/{chunk-TGOAMULH.js → chunk-AH4RJ3ZD.js} +8 -9
  17. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  18. package/dist/{chunk-HFFWZTVM.js → chunk-BUQN4WLU.js} +7 -9
  19. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  20. package/dist/{chunk-GMW36QQF.js → chunk-DOO45FN6.js} +7 -7
  21. package/dist/chunk-DYV47NUW.js +796 -0
  22. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  23. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  24. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  25. package/dist/{chunk-VDOBMNYY.js → chunk-HBU4ZVCA.js} +11 -11
  26. package/dist/{chunk-DSG2XXJJ.js → chunk-HQE53CGA.js} +11 -11
  27. package/dist/{chunk-UHI6VYFX.js → chunk-IHC4ZVPQ.js} +5 -5
  28. package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
  29. package/dist/{chunk-UQUWZJVN.js → chunk-IU77SCOB.js} +9 -9
  30. package/dist/{chunk-RKDOMYIG.js → chunk-KMMKQUIO.js} +38 -71
  31. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  32. package/dist/{chunk-PWLNUJDJ.js → chunk-KZ5SMOBR.js} +5 -5
  33. package/dist/{chunk-AX5N26KG.js → chunk-L2CX3ZWZ.js} +6 -6
  34. package/dist/{chunk-U2GOPCRA.js → chunk-M6EEXN7F.js} +5 -5
  35. package/dist/{chunk-N3UPGHTD.js → chunk-M6PZRD57.js} +38 -71
  36. package/dist/{chunk-DX7WJ45H.js → chunk-MEBZK5AR.js} +5 -5
  37. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  38. package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
  39. package/dist/{chunk-7QC5VORA.js → chunk-MYLPCGTT.js} +5 -5
  40. package/dist/{chunk-PZEUONUZ.js → chunk-NHHVDNJP.js} +11 -11
  41. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  42. package/dist/{chunk-LBEUT2S6.js → chunk-PLUTM2U3.js} +5 -5
  43. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  44. package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
  45. package/dist/{chunk-IKIW52QS.js → chunk-VNACSIGX.js} +11 -11
  46. package/dist/{chunk-RIACS7RB.js → chunk-WL7623RR.js} +5 -5
  47. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  48. package/dist/{chunk-YU52YNDP.js → chunk-WU7O7E3V.js} +12 -12
  49. package/dist/cli/checkUnsupportedDataProxy.js +56 -62
  50. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +56 -62
  51. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  52. package/dist/cli/getSchema.d.ts +1 -15
  53. package/dist/cli/getSchema.js +4 -5
  54. package/dist/cli/hashes.js +4 -4
  55. package/dist/cli/schemaContext.d.ts +1 -3
  56. package/dist/cli/schemaContext.js +56 -62
  57. package/dist/engine-commands/errorHelpers.js +4 -4
  58. package/dist/engine-commands/formatSchema.js +55 -61
  59. package/dist/engine-commands/getConfig.d.ts +0 -1
  60. package/dist/engine-commands/getConfig.js +13 -13
  61. package/dist/engine-commands/getDmmf.js +10 -10
  62. package/dist/engine-commands/getEngineVersion.js +6 -9
  63. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  64. package/dist/engine-commands/getEnginesInfo.js +7 -9
  65. package/dist/engine-commands/index.js +67 -73
  66. package/dist/engine-commands/lintSchema.js +9 -9
  67. package/dist/engine-commands/mergeSchemas.js +10 -10
  68. package/dist/engine-commands/queryEngineCommons.js +6 -6
  69. package/dist/engine-commands/validate.js +10 -10
  70. package/dist/errorReporting.js +6 -6
  71. package/dist/get-generators/getGenerators.d.ts +0 -1
  72. package/dist/get-generators/getGenerators.js +58 -64
  73. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  74. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  75. package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
  76. package/dist/getPackedPackage.js +4 -3
  77. package/dist/index.d.ts +1 -8
  78. package/dist/index.js +101 -115
  79. package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
  80. package/dist/resolveBinary.js +8 -7
  81. package/dist/schemaEngineCommands.js +9 -8
  82. package/dist/sendPanic.js +4 -4
  83. package/dist/utils/canPrompt.js +3 -3
  84. package/dist/utils/cloudflareD1.js +3 -3
  85. package/dist/utils/drawBox.js +2 -2
  86. package/dist/utils/fs-functional.js +10 -10
  87. package/dist/utils/fs-utils.js +8 -8
  88. package/dist/utils/getVersionFromPackageJson.js +3 -3
  89. package/dist/utils/handlePanic.js +8 -8
  90. package/dist/utils/link.js +2 -2
  91. package/dist/utils/missingDatasource.js +3 -3
  92. package/dist/utils/missingGeneratorMessage.js +5 -5
  93. package/dist/utils/serializeQueryEngineName.js +2 -2
  94. package/dist/wasm.js +5 -5
  95. package/package.json +15 -16
  96. package/dist/chunk-3FP46GUV.js +0 -471
  97. package/dist/chunk-46ABODUM.js +0 -186
  98. package/dist/chunk-6TTRTZXU.js +0 -37
  99. package/dist/chunk-DZYINYAA.js +0 -68
  100. package/dist/chunk-ERSH2BQA.js +0 -58
  101. package/dist/chunk-PZMRR772.js +0 -41
  102. package/dist/chunk-T2PM5TKT.js +0 -55
  103. package/dist/client/getClientEngineType.d.ts +0 -7
  104. package/dist/client/getClientEngineType.js +0 -26
  105. package/dist/dotenvExpand.d.ts +0 -35
  106. package/dist/dotenvExpand.js +0 -25
  107. package/dist/utils/getEnvPaths.d.ts +0 -14
  108. package/dist/utils/getEnvPaths.js +0 -29
  109. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  110. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  111. package/dist/utils/load.d.ts +0 -6
  112. package/dist/utils/load.js +0 -28
  113. package/dist/utils/loadEnvFile.d.ts +0 -10
  114. package/dist/utils/loadEnvFile.js +0 -30
  115. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  116. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -26,16 +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 chunk_BVJP43JS_exports = {};
30
- __export(chunk_BVJP43JS_exports, {
29
+ var chunk_32LLAKF4_exports = {};
30
+ __export(chunk_32LLAKF4_exports, {
31
31
  getPackedPackage: () => getPackedPackage,
32
32
  require_p_map: () => require_p_map
33
33
  });
34
- module.exports = __toCommonJS(chunk_BVJP43JS_exports);
34
+ module.exports = __toCommonJS(chunk_32LLAKF4_exports);
35
35
  var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
36
- var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
36
+ var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
37
37
  var import_chunk_UMM35VP5 = require("./chunk-UMM35VP5.js");
38
38
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
39
+ var import_chunk_DYV47NUW = require("./chunk-DYV47NUW.js");
39
40
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
41
  var import_node_path = require("node:path");
41
42
  var import_node_fs = require("node:fs");
@@ -366,7 +367,7 @@ var require_balanced_match = (0, import_chunk_4VNS5WPM.__commonJS)({
366
367
  }
367
368
  });
368
369
  var require_brace_expansion = (0, import_chunk_4VNS5WPM.__commonJS)({
369
- "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
370
+ "../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js"(exports, module2) {
370
371
  "use strict";
371
372
  var balanced = require_balanced_match();
372
373
  module2.exports = expandTop;
@@ -441,7 +442,7 @@ var require_brace_expansion = (0, import_chunk_4VNS5WPM.__commonJS)({
441
442
  var isSequence = isNumericSequence || isAlphaSequence;
442
443
  var isOptions = m.body.indexOf(",") >= 0;
443
444
  if (!isSequence && !isOptions) {
444
- if (m.post.match(/,.*\}/)) {
445
+ if (m.post.match(/,(?!,).*\}/)) {
445
446
  str = m.pre + "{" + m.body + escClose + m.post;
446
447
  return expand(str);
447
448
  }
@@ -3185,778 +3186,6 @@ var require_is_stream = (0, import_chunk_4VNS5WPM.__commonJS)({
3185
3186
  module2.exports = isStream;
3186
3187
  }
3187
3188
  });
3188
- var require_polyfills = (0, import_chunk_4VNS5WPM.__commonJS)({
3189
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) {
3190
- "use strict";
3191
- var constants = (0, import_chunk_4VNS5WPM.__require)("constants");
3192
- var origCwd = process.cwd;
3193
- var cwd = null;
3194
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
3195
- process.cwd = function() {
3196
- if (!cwd)
3197
- cwd = origCwd.call(process);
3198
- return cwd;
3199
- };
3200
- try {
3201
- process.cwd();
3202
- } catch (er) {
3203
- }
3204
- if (typeof process.chdir === "function") {
3205
- chdir = process.chdir;
3206
- process.chdir = function(d) {
3207
- cwd = null;
3208
- chdir.call(process, d);
3209
- };
3210
- if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
3211
- }
3212
- var chdir;
3213
- module2.exports = patch;
3214
- function patch(fs2) {
3215
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
3216
- patchLchmod(fs2);
3217
- }
3218
- if (!fs2.lutimes) {
3219
- patchLutimes(fs2);
3220
- }
3221
- fs2.chown = chownFix(fs2.chown);
3222
- fs2.fchown = chownFix(fs2.fchown);
3223
- fs2.lchown = chownFix(fs2.lchown);
3224
- fs2.chmod = chmodFix(fs2.chmod);
3225
- fs2.fchmod = chmodFix(fs2.fchmod);
3226
- fs2.lchmod = chmodFix(fs2.lchmod);
3227
- fs2.chownSync = chownFixSync(fs2.chownSync);
3228
- fs2.fchownSync = chownFixSync(fs2.fchownSync);
3229
- fs2.lchownSync = chownFixSync(fs2.lchownSync);
3230
- fs2.chmodSync = chmodFixSync(fs2.chmodSync);
3231
- fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
3232
- fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
3233
- fs2.stat = statFix(fs2.stat);
3234
- fs2.fstat = statFix(fs2.fstat);
3235
- fs2.lstat = statFix(fs2.lstat);
3236
- fs2.statSync = statFixSync(fs2.statSync);
3237
- fs2.fstatSync = statFixSync(fs2.fstatSync);
3238
- fs2.lstatSync = statFixSync(fs2.lstatSync);
3239
- if (fs2.chmod && !fs2.lchmod) {
3240
- fs2.lchmod = function(path2, mode, cb) {
3241
- if (cb) process.nextTick(cb);
3242
- };
3243
- fs2.lchmodSync = function() {
3244
- };
3245
- }
3246
- if (fs2.chown && !fs2.lchown) {
3247
- fs2.lchown = function(path2, uid, gid, cb) {
3248
- if (cb) process.nextTick(cb);
3249
- };
3250
- fs2.lchownSync = function() {
3251
- };
3252
- }
3253
- if (platform === "win32") {
3254
- fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
3255
- function rename(from, to, cb) {
3256
- var start = Date.now();
3257
- var backoff = 0;
3258
- fs$rename(from, to, function CB(er) {
3259
- if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
3260
- setTimeout(function() {
3261
- fs2.stat(to, function(stater, st) {
3262
- if (stater && stater.code === "ENOENT")
3263
- fs$rename(from, to, CB);
3264
- else
3265
- cb(er);
3266
- });
3267
- }, backoff);
3268
- if (backoff < 100)
3269
- backoff += 10;
3270
- return;
3271
- }
3272
- if (cb) cb(er);
3273
- });
3274
- }
3275
- if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
3276
- return rename;
3277
- }(fs2.rename);
3278
- }
3279
- fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
3280
- function read(fd, buffer, offset, length, position, callback_) {
3281
- var callback;
3282
- if (callback_ && typeof callback_ === "function") {
3283
- var eagCounter = 0;
3284
- callback = function(er, _, __) {
3285
- if (er && er.code === "EAGAIN" && eagCounter < 10) {
3286
- eagCounter++;
3287
- return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
3288
- }
3289
- callback_.apply(this, arguments);
3290
- };
3291
- }
3292
- return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
3293
- }
3294
- if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
3295
- return read;
3296
- }(fs2.read);
3297
- fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : /* @__PURE__ */ function(fs$readSync) {
3298
- return function(fd, buffer, offset, length, position) {
3299
- var eagCounter = 0;
3300
- while (true) {
3301
- try {
3302
- return fs$readSync.call(fs2, fd, buffer, offset, length, position);
3303
- } catch (er) {
3304
- if (er.code === "EAGAIN" && eagCounter < 10) {
3305
- eagCounter++;
3306
- continue;
3307
- }
3308
- throw er;
3309
- }
3310
- }
3311
- };
3312
- }(fs2.readSync);
3313
- function patchLchmod(fs3) {
3314
- fs3.lchmod = function(path2, mode, callback) {
3315
- fs3.open(
3316
- path2,
3317
- constants.O_WRONLY | constants.O_SYMLINK,
3318
- mode,
3319
- function(err, fd) {
3320
- if (err) {
3321
- if (callback) callback(err);
3322
- return;
3323
- }
3324
- fs3.fchmod(fd, mode, function(err2) {
3325
- fs3.close(fd, function(err22) {
3326
- if (callback) callback(err2 || err22);
3327
- });
3328
- });
3329
- }
3330
- );
3331
- };
3332
- fs3.lchmodSync = function(path2, mode) {
3333
- var fd = fs3.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode);
3334
- var threw = true;
3335
- var ret;
3336
- try {
3337
- ret = fs3.fchmodSync(fd, mode);
3338
- threw = false;
3339
- } finally {
3340
- if (threw) {
3341
- try {
3342
- fs3.closeSync(fd);
3343
- } catch (er) {
3344
- }
3345
- } else {
3346
- fs3.closeSync(fd);
3347
- }
3348
- }
3349
- return ret;
3350
- };
3351
- }
3352
- function patchLutimes(fs3) {
3353
- if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
3354
- fs3.lutimes = function(path2, at, mt, cb) {
3355
- fs3.open(path2, constants.O_SYMLINK, function(er, fd) {
3356
- if (er) {
3357
- if (cb) cb(er);
3358
- return;
3359
- }
3360
- fs3.futimes(fd, at, mt, function(er2) {
3361
- fs3.close(fd, function(er22) {
3362
- if (cb) cb(er2 || er22);
3363
- });
3364
- });
3365
- });
3366
- };
3367
- fs3.lutimesSync = function(path2, at, mt) {
3368
- var fd = fs3.openSync(path2, constants.O_SYMLINK);
3369
- var ret;
3370
- var threw = true;
3371
- try {
3372
- ret = fs3.futimesSync(fd, at, mt);
3373
- threw = false;
3374
- } finally {
3375
- if (threw) {
3376
- try {
3377
- fs3.closeSync(fd);
3378
- } catch (er) {
3379
- }
3380
- } else {
3381
- fs3.closeSync(fd);
3382
- }
3383
- }
3384
- return ret;
3385
- };
3386
- } else if (fs3.futimes) {
3387
- fs3.lutimes = function(_a, _b, _c, cb) {
3388
- if (cb) process.nextTick(cb);
3389
- };
3390
- fs3.lutimesSync = function() {
3391
- };
3392
- }
3393
- }
3394
- function chmodFix(orig) {
3395
- if (!orig) return orig;
3396
- return function(target, mode, cb) {
3397
- return orig.call(fs2, target, mode, function(er) {
3398
- if (chownErOk(er)) er = null;
3399
- if (cb) cb.apply(this, arguments);
3400
- });
3401
- };
3402
- }
3403
- function chmodFixSync(orig) {
3404
- if (!orig) return orig;
3405
- return function(target, mode) {
3406
- try {
3407
- return orig.call(fs2, target, mode);
3408
- } catch (er) {
3409
- if (!chownErOk(er)) throw er;
3410
- }
3411
- };
3412
- }
3413
- function chownFix(orig) {
3414
- if (!orig) return orig;
3415
- return function(target, uid, gid, cb) {
3416
- return orig.call(fs2, target, uid, gid, function(er) {
3417
- if (chownErOk(er)) er = null;
3418
- if (cb) cb.apply(this, arguments);
3419
- });
3420
- };
3421
- }
3422
- function chownFixSync(orig) {
3423
- if (!orig) return orig;
3424
- return function(target, uid, gid) {
3425
- try {
3426
- return orig.call(fs2, target, uid, gid);
3427
- } catch (er) {
3428
- if (!chownErOk(er)) throw er;
3429
- }
3430
- };
3431
- }
3432
- function statFix(orig) {
3433
- if (!orig) return orig;
3434
- return function(target, options, cb) {
3435
- if (typeof options === "function") {
3436
- cb = options;
3437
- options = null;
3438
- }
3439
- function callback(er, stats) {
3440
- if (stats) {
3441
- if (stats.uid < 0) stats.uid += 4294967296;
3442
- if (stats.gid < 0) stats.gid += 4294967296;
3443
- }
3444
- if (cb) cb.apply(this, arguments);
3445
- }
3446
- return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
3447
- };
3448
- }
3449
- function statFixSync(orig) {
3450
- if (!orig) return orig;
3451
- return function(target, options) {
3452
- var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
3453
- if (stats) {
3454
- if (stats.uid < 0) stats.uid += 4294967296;
3455
- if (stats.gid < 0) stats.gid += 4294967296;
3456
- }
3457
- return stats;
3458
- };
3459
- }
3460
- function chownErOk(er) {
3461
- if (!er)
3462
- return true;
3463
- if (er.code === "ENOSYS")
3464
- return true;
3465
- var nonroot = !process.getuid || process.getuid() !== 0;
3466
- if (nonroot) {
3467
- if (er.code === "EINVAL" || er.code === "EPERM")
3468
- return true;
3469
- }
3470
- return false;
3471
- }
3472
- }
3473
- }
3474
- });
3475
- var require_legacy_streams = (0, import_chunk_4VNS5WPM.__commonJS)({
3476
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
3477
- "use strict";
3478
- var Stream = (0, import_chunk_4VNS5WPM.__require)("stream").Stream;
3479
- module2.exports = legacy;
3480
- function legacy(fs2) {
3481
- return {
3482
- ReadStream,
3483
- WriteStream
3484
- };
3485
- function ReadStream(path2, options) {
3486
- if (!(this instanceof ReadStream)) return new ReadStream(path2, options);
3487
- Stream.call(this);
3488
- var self = this;
3489
- this.path = path2;
3490
- this.fd = null;
3491
- this.readable = true;
3492
- this.paused = false;
3493
- this.flags = "r";
3494
- this.mode = 438;
3495
- this.bufferSize = 64 * 1024;
3496
- options = options || {};
3497
- var keys = Object.keys(options);
3498
- for (var index = 0, length = keys.length; index < length; index++) {
3499
- var key = keys[index];
3500
- this[key] = options[key];
3501
- }
3502
- if (this.encoding) this.setEncoding(this.encoding);
3503
- if (this.start !== void 0) {
3504
- if ("number" !== typeof this.start) {
3505
- throw TypeError("start must be a Number");
3506
- }
3507
- if (this.end === void 0) {
3508
- this.end = Infinity;
3509
- } else if ("number" !== typeof this.end) {
3510
- throw TypeError("end must be a Number");
3511
- }
3512
- if (this.start > this.end) {
3513
- throw new Error("start must be <= end");
3514
- }
3515
- this.pos = this.start;
3516
- }
3517
- if (this.fd !== null) {
3518
- process.nextTick(function() {
3519
- self._read();
3520
- });
3521
- return;
3522
- }
3523
- fs2.open(this.path, this.flags, this.mode, function(err, fd) {
3524
- if (err) {
3525
- self.emit("error", err);
3526
- self.readable = false;
3527
- return;
3528
- }
3529
- self.fd = fd;
3530
- self.emit("open", fd);
3531
- self._read();
3532
- });
3533
- }
3534
- function WriteStream(path2, options) {
3535
- if (!(this instanceof WriteStream)) return new WriteStream(path2, options);
3536
- Stream.call(this);
3537
- this.path = path2;
3538
- this.fd = null;
3539
- this.writable = true;
3540
- this.flags = "w";
3541
- this.encoding = "binary";
3542
- this.mode = 438;
3543
- this.bytesWritten = 0;
3544
- options = options || {};
3545
- var keys = Object.keys(options);
3546
- for (var index = 0, length = keys.length; index < length; index++) {
3547
- var key = keys[index];
3548
- this[key] = options[key];
3549
- }
3550
- if (this.start !== void 0) {
3551
- if ("number" !== typeof this.start) {
3552
- throw TypeError("start must be a Number");
3553
- }
3554
- if (this.start < 0) {
3555
- throw new Error("start must be >= zero");
3556
- }
3557
- this.pos = this.start;
3558
- }
3559
- this.busy = false;
3560
- this._queue = [];
3561
- if (this.fd === null) {
3562
- this._open = fs2.open;
3563
- this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
3564
- this.flush();
3565
- }
3566
- }
3567
- }
3568
- }
3569
- });
3570
- var require_clone = (0, import_chunk_4VNS5WPM.__commonJS)({
3571
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) {
3572
- "use strict";
3573
- module2.exports = clone;
3574
- var getPrototypeOf = Object.getPrototypeOf || function(obj) {
3575
- return obj.__proto__;
3576
- };
3577
- function clone(obj) {
3578
- if (obj === null || typeof obj !== "object")
3579
- return obj;
3580
- if (obj instanceof Object)
3581
- var copy = { __proto__: getPrototypeOf(obj) };
3582
- else
3583
- var copy = /* @__PURE__ */ Object.create(null);
3584
- Object.getOwnPropertyNames(obj).forEach(function(key) {
3585
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
3586
- });
3587
- return copy;
3588
- }
3589
- }
3590
- });
3591
- var require_graceful_fs = (0, import_chunk_4VNS5WPM.__commonJS)({
3592
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
3593
- "use strict";
3594
- var fs2 = (0, import_chunk_4VNS5WPM.__require)("fs");
3595
- var polyfills = require_polyfills();
3596
- var legacy = require_legacy_streams();
3597
- var clone = require_clone();
3598
- var util = (0, import_chunk_4VNS5WPM.__require)("util");
3599
- var gracefulQueue;
3600
- var previousSymbol;
3601
- if (typeof Symbol === "function" && typeof Symbol.for === "function") {
3602
- gracefulQueue = Symbol.for("graceful-fs.queue");
3603
- previousSymbol = Symbol.for("graceful-fs.previous");
3604
- } else {
3605
- gracefulQueue = "___graceful-fs.queue";
3606
- previousSymbol = "___graceful-fs.previous";
3607
- }
3608
- function noop() {
3609
- }
3610
- function publishQueue(context, queue2) {
3611
- Object.defineProperty(context, gracefulQueue, {
3612
- get: function() {
3613
- return queue2;
3614
- }
3615
- });
3616
- }
3617
- var debug = noop;
3618
- if (util.debuglog)
3619
- debug = util.debuglog("gfs4");
3620
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
3621
- debug = function() {
3622
- var m = util.format.apply(util, arguments);
3623
- m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
3624
- console.error(m);
3625
- };
3626
- if (!fs2[gracefulQueue]) {
3627
- queue = global[gracefulQueue] || [];
3628
- publishQueue(fs2, queue);
3629
- fs2.close = function(fs$close) {
3630
- function close(fd, cb) {
3631
- return fs$close.call(fs2, fd, function(err) {
3632
- if (!err) {
3633
- resetQueue();
3634
- }
3635
- if (typeof cb === "function")
3636
- cb.apply(this, arguments);
3637
- });
3638
- }
3639
- Object.defineProperty(close, previousSymbol, {
3640
- value: fs$close
3641
- });
3642
- return close;
3643
- }(fs2.close);
3644
- fs2.closeSync = function(fs$closeSync) {
3645
- function closeSync(fd) {
3646
- fs$closeSync.apply(fs2, arguments);
3647
- resetQueue();
3648
- }
3649
- Object.defineProperty(closeSync, previousSymbol, {
3650
- value: fs$closeSync
3651
- });
3652
- return closeSync;
3653
- }(fs2.closeSync);
3654
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
3655
- process.on("exit", function() {
3656
- debug(fs2[gracefulQueue]);
3657
- (0, import_chunk_4VNS5WPM.__require)("assert").equal(fs2[gracefulQueue].length, 0);
3658
- });
3659
- }
3660
- }
3661
- var queue;
3662
- if (!global[gracefulQueue]) {
3663
- publishQueue(global, fs2[gracefulQueue]);
3664
- }
3665
- module2.exports = patch(clone(fs2));
3666
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
3667
- module2.exports = patch(fs2);
3668
- fs2.__patched = true;
3669
- }
3670
- function patch(fs3) {
3671
- polyfills(fs3);
3672
- fs3.gracefulify = patch;
3673
- fs3.createReadStream = createReadStream;
3674
- fs3.createWriteStream = createWriteStream;
3675
- var fs$readFile = fs3.readFile;
3676
- fs3.readFile = readFile;
3677
- function readFile(path2, options, cb) {
3678
- if (typeof options === "function")
3679
- cb = options, options = null;
3680
- return go$readFile(path2, options, cb);
3681
- function go$readFile(path3, options2, cb2, startTime) {
3682
- return fs$readFile(path3, options2, function(err) {
3683
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3684
- enqueue([go$readFile, [path3, options2, cb2], err, startTime || Date.now(), Date.now()]);
3685
- else {
3686
- if (typeof cb2 === "function")
3687
- cb2.apply(this, arguments);
3688
- }
3689
- });
3690
- }
3691
- }
3692
- var fs$writeFile = fs3.writeFile;
3693
- fs3.writeFile = writeFile;
3694
- function writeFile(path2, data, options, cb) {
3695
- if (typeof options === "function")
3696
- cb = options, options = null;
3697
- return go$writeFile(path2, data, options, cb);
3698
- function go$writeFile(path3, data2, options2, cb2, startTime) {
3699
- return fs$writeFile(path3, data2, options2, function(err) {
3700
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3701
- enqueue([go$writeFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3702
- else {
3703
- if (typeof cb2 === "function")
3704
- cb2.apply(this, arguments);
3705
- }
3706
- });
3707
- }
3708
- }
3709
- var fs$appendFile = fs3.appendFile;
3710
- if (fs$appendFile)
3711
- fs3.appendFile = appendFile;
3712
- function appendFile(path2, data, options, cb) {
3713
- if (typeof options === "function")
3714
- cb = options, options = null;
3715
- return go$appendFile(path2, data, options, cb);
3716
- function go$appendFile(path3, data2, options2, cb2, startTime) {
3717
- return fs$appendFile(path3, data2, options2, function(err) {
3718
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3719
- enqueue([go$appendFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
3720
- else {
3721
- if (typeof cb2 === "function")
3722
- cb2.apply(this, arguments);
3723
- }
3724
- });
3725
- }
3726
- }
3727
- var fs$copyFile = fs3.copyFile;
3728
- if (fs$copyFile)
3729
- fs3.copyFile = copyFile;
3730
- function copyFile(src, dest, flags, cb) {
3731
- if (typeof flags === "function") {
3732
- cb = flags;
3733
- flags = 0;
3734
- }
3735
- return go$copyFile(src, dest, flags, cb);
3736
- function go$copyFile(src2, dest2, flags2, cb2, startTime) {
3737
- return fs$copyFile(src2, dest2, flags2, function(err) {
3738
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3739
- enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
3740
- else {
3741
- if (typeof cb2 === "function")
3742
- cb2.apply(this, arguments);
3743
- }
3744
- });
3745
- }
3746
- }
3747
- var fs$readdir = fs3.readdir;
3748
- fs3.readdir = readdir;
3749
- var noReaddirOptionVersions = /^v[0-5]\./;
3750
- function readdir(path2, options, cb) {
3751
- if (typeof options === "function")
3752
- cb = options, options = null;
3753
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path3, options2, cb2, startTime) {
3754
- return fs$readdir(path3, fs$readdirCallback(
3755
- path3,
3756
- options2,
3757
- cb2,
3758
- startTime
3759
- ));
3760
- } : function go$readdir2(path3, options2, cb2, startTime) {
3761
- return fs$readdir(path3, options2, fs$readdirCallback(
3762
- path3,
3763
- options2,
3764
- cb2,
3765
- startTime
3766
- ));
3767
- };
3768
- return go$readdir(path2, options, cb);
3769
- function fs$readdirCallback(path3, options2, cb2, startTime) {
3770
- return function(err, files) {
3771
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3772
- enqueue([
3773
- go$readdir,
3774
- [path3, options2, cb2],
3775
- err,
3776
- startTime || Date.now(),
3777
- Date.now()
3778
- ]);
3779
- else {
3780
- if (files && files.sort)
3781
- files.sort();
3782
- if (typeof cb2 === "function")
3783
- cb2.call(this, err, files);
3784
- }
3785
- };
3786
- }
3787
- }
3788
- if (process.version.substr(0, 4) === "v0.8") {
3789
- var legStreams = legacy(fs3);
3790
- ReadStream = legStreams.ReadStream;
3791
- WriteStream = legStreams.WriteStream;
3792
- }
3793
- var fs$ReadStream = fs3.ReadStream;
3794
- if (fs$ReadStream) {
3795
- ReadStream.prototype = Object.create(fs$ReadStream.prototype);
3796
- ReadStream.prototype.open = ReadStream$open;
3797
- }
3798
- var fs$WriteStream = fs3.WriteStream;
3799
- if (fs$WriteStream) {
3800
- WriteStream.prototype = Object.create(fs$WriteStream.prototype);
3801
- WriteStream.prototype.open = WriteStream$open;
3802
- }
3803
- Object.defineProperty(fs3, "ReadStream", {
3804
- get: function() {
3805
- return ReadStream;
3806
- },
3807
- set: function(val) {
3808
- ReadStream = val;
3809
- },
3810
- enumerable: true,
3811
- configurable: true
3812
- });
3813
- Object.defineProperty(fs3, "WriteStream", {
3814
- get: function() {
3815
- return WriteStream;
3816
- },
3817
- set: function(val) {
3818
- WriteStream = val;
3819
- },
3820
- enumerable: true,
3821
- configurable: true
3822
- });
3823
- var FileReadStream = ReadStream;
3824
- Object.defineProperty(fs3, "FileReadStream", {
3825
- get: function() {
3826
- return FileReadStream;
3827
- },
3828
- set: function(val) {
3829
- FileReadStream = val;
3830
- },
3831
- enumerable: true,
3832
- configurable: true
3833
- });
3834
- var FileWriteStream = WriteStream;
3835
- Object.defineProperty(fs3, "FileWriteStream", {
3836
- get: function() {
3837
- return FileWriteStream;
3838
- },
3839
- set: function(val) {
3840
- FileWriteStream = val;
3841
- },
3842
- enumerable: true,
3843
- configurable: true
3844
- });
3845
- function ReadStream(path2, options) {
3846
- if (this instanceof ReadStream)
3847
- return fs$ReadStream.apply(this, arguments), this;
3848
- else
3849
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
3850
- }
3851
- function ReadStream$open() {
3852
- var that = this;
3853
- open(that.path, that.flags, that.mode, function(err, fd) {
3854
- if (err) {
3855
- if (that.autoClose)
3856
- that.destroy();
3857
- that.emit("error", err);
3858
- } else {
3859
- that.fd = fd;
3860
- that.emit("open", fd);
3861
- that.read();
3862
- }
3863
- });
3864
- }
3865
- function WriteStream(path2, options) {
3866
- if (this instanceof WriteStream)
3867
- return fs$WriteStream.apply(this, arguments), this;
3868
- else
3869
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
3870
- }
3871
- function WriteStream$open() {
3872
- var that = this;
3873
- open(that.path, that.flags, that.mode, function(err, fd) {
3874
- if (err) {
3875
- that.destroy();
3876
- that.emit("error", err);
3877
- } else {
3878
- that.fd = fd;
3879
- that.emit("open", fd);
3880
- }
3881
- });
3882
- }
3883
- function createReadStream(path2, options) {
3884
- return new fs3.ReadStream(path2, options);
3885
- }
3886
- function createWriteStream(path2, options) {
3887
- return new fs3.WriteStream(path2, options);
3888
- }
3889
- var fs$open = fs3.open;
3890
- fs3.open = open;
3891
- function open(path2, flags, mode, cb) {
3892
- if (typeof mode === "function")
3893
- cb = mode, mode = null;
3894
- return go$open(path2, flags, mode, cb);
3895
- function go$open(path3, flags2, mode2, cb2, startTime) {
3896
- return fs$open(path3, flags2, mode2, function(err, fd) {
3897
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
3898
- enqueue([go$open, [path3, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
3899
- else {
3900
- if (typeof cb2 === "function")
3901
- cb2.apply(this, arguments);
3902
- }
3903
- });
3904
- }
3905
- }
3906
- return fs3;
3907
- }
3908
- function enqueue(elem) {
3909
- debug("ENQUEUE", elem[0].name, elem[1]);
3910
- fs2[gracefulQueue].push(elem);
3911
- retry();
3912
- }
3913
- var retryTimer;
3914
- function resetQueue() {
3915
- var now = Date.now();
3916
- for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
3917
- if (fs2[gracefulQueue][i].length > 2) {
3918
- fs2[gracefulQueue][i][3] = now;
3919
- fs2[gracefulQueue][i][4] = now;
3920
- }
3921
- }
3922
- retry();
3923
- }
3924
- function retry() {
3925
- clearTimeout(retryTimer);
3926
- retryTimer = void 0;
3927
- if (fs2[gracefulQueue].length === 0)
3928
- return;
3929
- var elem = fs2[gracefulQueue].shift();
3930
- var fn = elem[0];
3931
- var args = elem[1];
3932
- var err = elem[2];
3933
- var startTime = elem[3];
3934
- var lastTime = elem[4];
3935
- if (startTime === void 0) {
3936
- debug("RETRY", fn.name, args);
3937
- fn.apply(null, args);
3938
- } else if (Date.now() - startTime >= 6e4) {
3939
- debug("TIMEOUT", fn.name, args);
3940
- var cb = args.pop();
3941
- if (typeof cb === "function")
3942
- cb.call(null, err);
3943
- } else {
3944
- var sinceAttempt = Date.now() - lastTime;
3945
- var sinceStart = Math.max(lastTime - startTime, 1);
3946
- var desiredDelay = Math.min(sinceStart * 1.2, 100);
3947
- if (sinceAttempt >= desiredDelay) {
3948
- debug("RETRY", fn.name, args);
3949
- fn.apply(null, args.concat([startTime]));
3950
- } else {
3951
- fs2[gracefulQueue].push(elem);
3952
- }
3953
- }
3954
- if (retryTimer === void 0) {
3955
- retryTimer = setTimeout(retry, 0);
3956
- }
3957
- }
3958
- }
3959
- });
3960
3189
  var require_is_path_cwd = (0, import_chunk_4VNS5WPM.__commonJS)({
3961
3190
  "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module2) {
3962
3191
  "use strict";
@@ -4002,7 +3231,7 @@ var require_concat_map = (0, import_chunk_4VNS5WPM.__commonJS)({
4002
3231
  }
4003
3232
  });
4004
3233
  var require_brace_expansion2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4005
- "../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module2) {
3234
+ "../../node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js"(exports, module2) {
4006
3235
  "use strict";
4007
3236
  var concatMap = require_concat_map();
4008
3237
  var balanced = require_balanced_match();
@@ -4070,7 +3299,7 @@ var require_brace_expansion2 = (0, import_chunk_4VNS5WPM.__commonJS)({
4070
3299
  var isSequence = isNumericSequence || isAlphaSequence;
4071
3300
  var isOptions = m.body.indexOf(",") >= 0;
4072
3301
  if (!isSequence && !isOptions) {
4073
- if (m.post.match(/,.*\}/)) {
3302
+ if (m.post.match(/,(?!,).*\}/)) {
4074
3303
  str = m.pre + "{" + m.body + escClose + m.post;
4075
3304
  return expand(str);
4076
3305
  }
@@ -6254,10 +5483,10 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
6254
5483
  "use strict";
6255
5484
  var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
6256
5485
  var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
6257
- var globby = (0, import_chunk_JOIIWB3U.require_globby)();
6258
- var isGlob = (0, import_chunk_JOIIWB3U.require_is_glob)();
6259
- var slash = (0, import_chunk_JOIIWB3U.require_slash)();
6260
- var gracefulFs = require_graceful_fs();
5486
+ var globby = (0, import_chunk_2LOGW45F.require_globby)();
5487
+ var isGlob = (0, import_chunk_2LOGW45F.require_is_glob)();
5488
+ var slash = (0, import_chunk_2LOGW45F.require_slash)();
5489
+ var gracefulFs = (0, import_chunk_DYV47NUW.require_graceful_fs)();
6261
5490
  var isPathCwd = require_is_path_cwd();
6262
5491
  var isPathInside = require_is_path_inside();
6263
5492
  var rimraf = require_rimraf();