@prisma/migrate 5.17.0-dev.8 → 5.17.0-dev.9

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.
@@ -26,13 +26,13 @@ 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_AJFOZSAR_exports = {};
30
- __export(chunk_AJFOZSAR_exports, {
29
+ var chunk_CFODQL5W_exports = {};
30
+ __export(chunk_CFODQL5W_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_AJFOZSAR_exports);
35
- var import_chunk_ODPKPRK7 = require("./chunk-ODPKPRK7.js");
34
+ module.exports = __toCommonJS(chunk_CFODQL5W_exports);
35
+ var import_chunk_NNDVFXHL = require("./chunk-NNDVFXHL.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
38
38
  var import_chunk_WIZM7TFT = require("./chunk-WIZM7TFT.js");
@@ -5028,778 +5028,6 @@ var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
5028
5028
  };
5029
5029
  }
5030
5030
  });
5031
- var require_polyfills2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5032
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
5033
- "use strict";
5034
- var constants = (0, import_chunk_WWAWV7DQ.__require)("constants");
5035
- var origCwd = process.cwd;
5036
- var cwd = null;
5037
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
5038
- process.cwd = function() {
5039
- if (!cwd)
5040
- cwd = origCwd.call(process);
5041
- return cwd;
5042
- };
5043
- try {
5044
- process.cwd();
5045
- } catch (er) {
5046
- }
5047
- if (typeof process.chdir === "function") {
5048
- chdir = process.chdir;
5049
- process.chdir = function(d) {
5050
- cwd = null;
5051
- chdir.call(process, d);
5052
- };
5053
- if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
5054
- }
5055
- var chdir;
5056
- module2.exports = patch;
5057
- function patch(fs3) {
5058
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
5059
- patchLchmod(fs3);
5060
- }
5061
- if (!fs3.lutimes) {
5062
- patchLutimes(fs3);
5063
- }
5064
- fs3.chown = chownFix(fs3.chown);
5065
- fs3.fchown = chownFix(fs3.fchown);
5066
- fs3.lchown = chownFix(fs3.lchown);
5067
- fs3.chmod = chmodFix(fs3.chmod);
5068
- fs3.fchmod = chmodFix(fs3.fchmod);
5069
- fs3.lchmod = chmodFix(fs3.lchmod);
5070
- fs3.chownSync = chownFixSync(fs3.chownSync);
5071
- fs3.fchownSync = chownFixSync(fs3.fchownSync);
5072
- fs3.lchownSync = chownFixSync(fs3.lchownSync);
5073
- fs3.chmodSync = chmodFixSync(fs3.chmodSync);
5074
- fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
5075
- fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
5076
- fs3.stat = statFix(fs3.stat);
5077
- fs3.fstat = statFix(fs3.fstat);
5078
- fs3.lstat = statFix(fs3.lstat);
5079
- fs3.statSync = statFixSync(fs3.statSync);
5080
- fs3.fstatSync = statFixSync(fs3.fstatSync);
5081
- fs3.lstatSync = statFixSync(fs3.lstatSync);
5082
- if (fs3.chmod && !fs3.lchmod) {
5083
- fs3.lchmod = function(path7, mode, cb) {
5084
- if (cb) process.nextTick(cb);
5085
- };
5086
- fs3.lchmodSync = function() {
5087
- };
5088
- }
5089
- if (fs3.chown && !fs3.lchown) {
5090
- fs3.lchown = function(path7, uid, gid, cb) {
5091
- if (cb) process.nextTick(cb);
5092
- };
5093
- fs3.lchownSync = function() {
5094
- };
5095
- }
5096
- if (platform === "win32") {
5097
- fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
5098
- function rename(from, to, cb) {
5099
- var start = Date.now();
5100
- var backoff = 0;
5101
- fs$rename(from, to, function CB(er) {
5102
- if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
5103
- setTimeout(function() {
5104
- fs3.stat(to, function(stater, st) {
5105
- if (stater && stater.code === "ENOENT")
5106
- fs$rename(from, to, CB);
5107
- else
5108
- cb(er);
5109
- });
5110
- }, backoff);
5111
- if (backoff < 100)
5112
- backoff += 10;
5113
- return;
5114
- }
5115
- if (cb) cb(er);
5116
- });
5117
- }
5118
- if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
5119
- return rename;
5120
- }(fs3.rename);
5121
- }
5122
- fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
5123
- function read(fd, buffer, offset, length, position, callback_) {
5124
- var callback;
5125
- if (callback_ && typeof callback_ === "function") {
5126
- var eagCounter = 0;
5127
- callback = function(er, _, __) {
5128
- if (er && er.code === "EAGAIN" && eagCounter < 10) {
5129
- eagCounter++;
5130
- return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
5131
- }
5132
- callback_.apply(this, arguments);
5133
- };
5134
- }
5135
- return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
5136
- }
5137
- if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
5138
- return read;
5139
- }(fs3.read);
5140
- fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
5141
- return function(fd, buffer, offset, length, position) {
5142
- var eagCounter = 0;
5143
- while (true) {
5144
- try {
5145
- return fs$readSync.call(fs3, fd, buffer, offset, length, position);
5146
- } catch (er) {
5147
- if (er.code === "EAGAIN" && eagCounter < 10) {
5148
- eagCounter++;
5149
- continue;
5150
- }
5151
- throw er;
5152
- }
5153
- }
5154
- };
5155
- }(fs3.readSync);
5156
- function patchLchmod(fs4) {
5157
- fs4.lchmod = function(path7, mode, callback) {
5158
- fs4.open(
5159
- path7,
5160
- constants.O_WRONLY | constants.O_SYMLINK,
5161
- mode,
5162
- function(err, fd) {
5163
- if (err) {
5164
- if (callback) callback(err);
5165
- return;
5166
- }
5167
- fs4.fchmod(fd, mode, function(err2) {
5168
- fs4.close(fd, function(err22) {
5169
- if (callback) callback(err2 || err22);
5170
- });
5171
- });
5172
- }
5173
- );
5174
- };
5175
- fs4.lchmodSync = function(path7, mode) {
5176
- var fd = fs4.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
5177
- var threw = true;
5178
- var ret;
5179
- try {
5180
- ret = fs4.fchmodSync(fd, mode);
5181
- threw = false;
5182
- } finally {
5183
- if (threw) {
5184
- try {
5185
- fs4.closeSync(fd);
5186
- } catch (er) {
5187
- }
5188
- } else {
5189
- fs4.closeSync(fd);
5190
- }
5191
- }
5192
- return ret;
5193
- };
5194
- }
5195
- function patchLutimes(fs4) {
5196
- if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
5197
- fs4.lutimes = function(path7, at, mt, cb) {
5198
- fs4.open(path7, constants.O_SYMLINK, function(er, fd) {
5199
- if (er) {
5200
- if (cb) cb(er);
5201
- return;
5202
- }
5203
- fs4.futimes(fd, at, mt, function(er2) {
5204
- fs4.close(fd, function(er22) {
5205
- if (cb) cb(er2 || er22);
5206
- });
5207
- });
5208
- });
5209
- };
5210
- fs4.lutimesSync = function(path7, at, mt) {
5211
- var fd = fs4.openSync(path7, constants.O_SYMLINK);
5212
- var ret;
5213
- var threw = true;
5214
- try {
5215
- ret = fs4.futimesSync(fd, at, mt);
5216
- threw = false;
5217
- } finally {
5218
- if (threw) {
5219
- try {
5220
- fs4.closeSync(fd);
5221
- } catch (er) {
5222
- }
5223
- } else {
5224
- fs4.closeSync(fd);
5225
- }
5226
- }
5227
- return ret;
5228
- };
5229
- } else if (fs4.futimes) {
5230
- fs4.lutimes = function(_a, _b, _c, cb) {
5231
- if (cb) process.nextTick(cb);
5232
- };
5233
- fs4.lutimesSync = function() {
5234
- };
5235
- }
5236
- }
5237
- function chmodFix(orig) {
5238
- if (!orig) return orig;
5239
- return function(target, mode, cb) {
5240
- return orig.call(fs3, target, mode, function(er) {
5241
- if (chownErOk(er)) er = null;
5242
- if (cb) cb.apply(this, arguments);
5243
- });
5244
- };
5245
- }
5246
- function chmodFixSync(orig) {
5247
- if (!orig) return orig;
5248
- return function(target, mode) {
5249
- try {
5250
- return orig.call(fs3, target, mode);
5251
- } catch (er) {
5252
- if (!chownErOk(er)) throw er;
5253
- }
5254
- };
5255
- }
5256
- function chownFix(orig) {
5257
- if (!orig) return orig;
5258
- return function(target, uid, gid, cb) {
5259
- return orig.call(fs3, target, uid, gid, function(er) {
5260
- if (chownErOk(er)) er = null;
5261
- if (cb) cb.apply(this, arguments);
5262
- });
5263
- };
5264
- }
5265
- function chownFixSync(orig) {
5266
- if (!orig) return orig;
5267
- return function(target, uid, gid) {
5268
- try {
5269
- return orig.call(fs3, target, uid, gid);
5270
- } catch (er) {
5271
- if (!chownErOk(er)) throw er;
5272
- }
5273
- };
5274
- }
5275
- function statFix(orig) {
5276
- if (!orig) return orig;
5277
- return function(target, options, cb) {
5278
- if (typeof options === "function") {
5279
- cb = options;
5280
- options = null;
5281
- }
5282
- function callback(er, stats) {
5283
- if (stats) {
5284
- if (stats.uid < 0) stats.uid += 4294967296;
5285
- if (stats.gid < 0) stats.gid += 4294967296;
5286
- }
5287
- if (cb) cb.apply(this, arguments);
5288
- }
5289
- return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
5290
- };
5291
- }
5292
- function statFixSync(orig) {
5293
- if (!orig) return orig;
5294
- return function(target, options) {
5295
- var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
5296
- if (stats) {
5297
- if (stats.uid < 0) stats.uid += 4294967296;
5298
- if (stats.gid < 0) stats.gid += 4294967296;
5299
- }
5300
- return stats;
5301
- };
5302
- }
5303
- function chownErOk(er) {
5304
- if (!er)
5305
- return true;
5306
- if (er.code === "ENOSYS")
5307
- return true;
5308
- var nonroot = !process.getuid || process.getuid() !== 0;
5309
- if (nonroot) {
5310
- if (er.code === "EINVAL" || er.code === "EPERM")
5311
- return true;
5312
- }
5313
- return false;
5314
- }
5315
- }
5316
- }
5317
- });
5318
- var require_legacy_streams2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5319
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
5320
- "use strict";
5321
- var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
5322
- module2.exports = legacy;
5323
- function legacy(fs3) {
5324
- return {
5325
- ReadStream,
5326
- WriteStream
5327
- };
5328
- function ReadStream(path7, options) {
5329
- if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
5330
- Stream.call(this);
5331
- var self = this;
5332
- this.path = path7;
5333
- this.fd = null;
5334
- this.readable = true;
5335
- this.paused = false;
5336
- this.flags = "r";
5337
- this.mode = 438;
5338
- this.bufferSize = 64 * 1024;
5339
- options = options || {};
5340
- var keys = Object.keys(options);
5341
- for (var index = 0, length = keys.length; index < length; index++) {
5342
- var key = keys[index];
5343
- this[key] = options[key];
5344
- }
5345
- if (this.encoding) this.setEncoding(this.encoding);
5346
- if (this.start !== void 0) {
5347
- if ("number" !== typeof this.start) {
5348
- throw TypeError("start must be a Number");
5349
- }
5350
- if (this.end === void 0) {
5351
- this.end = Infinity;
5352
- } else if ("number" !== typeof this.end) {
5353
- throw TypeError("end must be a Number");
5354
- }
5355
- if (this.start > this.end) {
5356
- throw new Error("start must be <= end");
5357
- }
5358
- this.pos = this.start;
5359
- }
5360
- if (this.fd !== null) {
5361
- process.nextTick(function() {
5362
- self._read();
5363
- });
5364
- return;
5365
- }
5366
- fs3.open(this.path, this.flags, this.mode, function(err, fd) {
5367
- if (err) {
5368
- self.emit("error", err);
5369
- self.readable = false;
5370
- return;
5371
- }
5372
- self.fd = fd;
5373
- self.emit("open", fd);
5374
- self._read();
5375
- });
5376
- }
5377
- function WriteStream(path7, options) {
5378
- if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
5379
- Stream.call(this);
5380
- this.path = path7;
5381
- this.fd = null;
5382
- this.writable = true;
5383
- this.flags = "w";
5384
- this.encoding = "binary";
5385
- this.mode = 438;
5386
- this.bytesWritten = 0;
5387
- options = options || {};
5388
- var keys = Object.keys(options);
5389
- for (var index = 0, length = keys.length; index < length; index++) {
5390
- var key = keys[index];
5391
- this[key] = options[key];
5392
- }
5393
- if (this.start !== void 0) {
5394
- if ("number" !== typeof this.start) {
5395
- throw TypeError("start must be a Number");
5396
- }
5397
- if (this.start < 0) {
5398
- throw new Error("start must be >= zero");
5399
- }
5400
- this.pos = this.start;
5401
- }
5402
- this.busy = false;
5403
- this._queue = [];
5404
- if (this.fd === null) {
5405
- this._open = fs3.open;
5406
- this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
5407
- this.flush();
5408
- }
5409
- }
5410
- }
5411
- }
5412
- });
5413
- var require_clone2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5414
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
5415
- "use strict";
5416
- module2.exports = clone;
5417
- var getPrototypeOf = Object.getPrototypeOf || function(obj) {
5418
- return obj.__proto__;
5419
- };
5420
- function clone(obj) {
5421
- if (obj === null || typeof obj !== "object")
5422
- return obj;
5423
- if (obj instanceof Object)
5424
- var copy = { __proto__: getPrototypeOf(obj) };
5425
- else
5426
- var copy = /* @__PURE__ */ Object.create(null);
5427
- Object.getOwnPropertyNames(obj).forEach(function(key) {
5428
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
5429
- });
5430
- return copy;
5431
- }
5432
- }
5433
- });
5434
- var require_graceful_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5435
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
5436
- "use strict";
5437
- var fs3 = (0, import_chunk_WWAWV7DQ.__require)("fs");
5438
- var polyfills = require_polyfills2();
5439
- var legacy = require_legacy_streams2();
5440
- var clone = require_clone2();
5441
- var util = (0, import_chunk_WWAWV7DQ.__require)("util");
5442
- var gracefulQueue;
5443
- var previousSymbol;
5444
- if (typeof Symbol === "function" && typeof Symbol.for === "function") {
5445
- gracefulQueue = Symbol.for("graceful-fs.queue");
5446
- previousSymbol = Symbol.for("graceful-fs.previous");
5447
- } else {
5448
- gracefulQueue = "___graceful-fs.queue";
5449
- previousSymbol = "___graceful-fs.previous";
5450
- }
5451
- function noop() {
5452
- }
5453
- function publishQueue(context, queue2) {
5454
- Object.defineProperty(context, gracefulQueue, {
5455
- get: function() {
5456
- return queue2;
5457
- }
5458
- });
5459
- }
5460
- var debug4 = noop;
5461
- if (util.debuglog)
5462
- debug4 = util.debuglog("gfs4");
5463
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
5464
- debug4 = function() {
5465
- var m = util.format.apply(util, arguments);
5466
- m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
5467
- console.error(m);
5468
- };
5469
- if (!fs3[gracefulQueue]) {
5470
- queue = global[gracefulQueue] || [];
5471
- publishQueue(fs3, queue);
5472
- fs3.close = function(fs$close) {
5473
- function close(fd, cb) {
5474
- return fs$close.call(fs3, fd, function(err) {
5475
- if (!err) {
5476
- resetQueue();
5477
- }
5478
- if (typeof cb === "function")
5479
- cb.apply(this, arguments);
5480
- });
5481
- }
5482
- Object.defineProperty(close, previousSymbol, {
5483
- value: fs$close
5484
- });
5485
- return close;
5486
- }(fs3.close);
5487
- fs3.closeSync = function(fs$closeSync) {
5488
- function closeSync(fd) {
5489
- fs$closeSync.apply(fs3, arguments);
5490
- resetQueue();
5491
- }
5492
- Object.defineProperty(closeSync, previousSymbol, {
5493
- value: fs$closeSync
5494
- });
5495
- return closeSync;
5496
- }(fs3.closeSync);
5497
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
5498
- process.on("exit", function() {
5499
- debug4(fs3[gracefulQueue]);
5500
- (0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs3[gracefulQueue].length, 0);
5501
- });
5502
- }
5503
- }
5504
- var queue;
5505
- if (!global[gracefulQueue]) {
5506
- publishQueue(global, fs3[gracefulQueue]);
5507
- }
5508
- module2.exports = patch(clone(fs3));
5509
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
5510
- module2.exports = patch(fs3);
5511
- fs3.__patched = true;
5512
- }
5513
- function patch(fs4) {
5514
- polyfills(fs4);
5515
- fs4.gracefulify = patch;
5516
- fs4.createReadStream = createReadStream;
5517
- fs4.createWriteStream = createWriteStream;
5518
- var fs$readFile = fs4.readFile;
5519
- fs4.readFile = readFile2;
5520
- function readFile2(path7, options, cb) {
5521
- if (typeof options === "function")
5522
- cb = options, options = null;
5523
- return go$readFile(path7, options, cb);
5524
- function go$readFile(path8, options2, cb2, startTime) {
5525
- return fs$readFile(path8, options2, function(err) {
5526
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5527
- enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
5528
- else {
5529
- if (typeof cb2 === "function")
5530
- cb2.apply(this, arguments);
5531
- }
5532
- });
5533
- }
5534
- }
5535
- var fs$writeFile = fs4.writeFile;
5536
- fs4.writeFile = writeFile;
5537
- function writeFile(path7, data, options, cb) {
5538
- if (typeof options === "function")
5539
- cb = options, options = null;
5540
- return go$writeFile(path7, data, options, cb);
5541
- function go$writeFile(path8, data2, options2, cb2, startTime) {
5542
- return fs$writeFile(path8, data2, options2, function(err) {
5543
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5544
- enqueue([go$writeFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
5545
- else {
5546
- if (typeof cb2 === "function")
5547
- cb2.apply(this, arguments);
5548
- }
5549
- });
5550
- }
5551
- }
5552
- var fs$appendFile = fs4.appendFile;
5553
- if (fs$appendFile)
5554
- fs4.appendFile = appendFile;
5555
- function appendFile(path7, data, options, cb) {
5556
- if (typeof options === "function")
5557
- cb = options, options = null;
5558
- return go$appendFile(path7, data, options, cb);
5559
- function go$appendFile(path8, data2, options2, cb2, startTime) {
5560
- return fs$appendFile(path8, data2, options2, function(err) {
5561
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5562
- enqueue([go$appendFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
5563
- else {
5564
- if (typeof cb2 === "function")
5565
- cb2.apply(this, arguments);
5566
- }
5567
- });
5568
- }
5569
- }
5570
- var fs$copyFile = fs4.copyFile;
5571
- if (fs$copyFile)
5572
- fs4.copyFile = copyFile;
5573
- function copyFile(src, dest, flags, cb) {
5574
- if (typeof flags === "function") {
5575
- cb = flags;
5576
- flags = 0;
5577
- }
5578
- return go$copyFile(src, dest, flags, cb);
5579
- function go$copyFile(src2, dest2, flags2, cb2, startTime) {
5580
- return fs$copyFile(src2, dest2, flags2, function(err) {
5581
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5582
- enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
5583
- else {
5584
- if (typeof cb2 === "function")
5585
- cb2.apply(this, arguments);
5586
- }
5587
- });
5588
- }
5589
- }
5590
- var fs$readdir = fs4.readdir;
5591
- fs4.readdir = readdir;
5592
- var noReaddirOptionVersions = /^v[0-5]\./;
5593
- function readdir(path7, options, cb) {
5594
- if (typeof options === "function")
5595
- cb = options, options = null;
5596
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
5597
- return fs$readdir(path8, fs$readdirCallback(
5598
- path8,
5599
- options2,
5600
- cb2,
5601
- startTime
5602
- ));
5603
- } : function go$readdir2(path8, options2, cb2, startTime) {
5604
- return fs$readdir(path8, options2, fs$readdirCallback(
5605
- path8,
5606
- options2,
5607
- cb2,
5608
- startTime
5609
- ));
5610
- };
5611
- return go$readdir(path7, options, cb);
5612
- function fs$readdirCallback(path8, options2, cb2, startTime) {
5613
- return function(err, files) {
5614
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5615
- enqueue([
5616
- go$readdir,
5617
- [path8, options2, cb2],
5618
- err,
5619
- startTime || Date.now(),
5620
- Date.now()
5621
- ]);
5622
- else {
5623
- if (files && files.sort)
5624
- files.sort();
5625
- if (typeof cb2 === "function")
5626
- cb2.call(this, err, files);
5627
- }
5628
- };
5629
- }
5630
- }
5631
- if (process.version.substr(0, 4) === "v0.8") {
5632
- var legStreams = legacy(fs4);
5633
- ReadStream = legStreams.ReadStream;
5634
- WriteStream = legStreams.WriteStream;
5635
- }
5636
- var fs$ReadStream = fs4.ReadStream;
5637
- if (fs$ReadStream) {
5638
- ReadStream.prototype = Object.create(fs$ReadStream.prototype);
5639
- ReadStream.prototype.open = ReadStream$open;
5640
- }
5641
- var fs$WriteStream = fs4.WriteStream;
5642
- if (fs$WriteStream) {
5643
- WriteStream.prototype = Object.create(fs$WriteStream.prototype);
5644
- WriteStream.prototype.open = WriteStream$open;
5645
- }
5646
- Object.defineProperty(fs4, "ReadStream", {
5647
- get: function() {
5648
- return ReadStream;
5649
- },
5650
- set: function(val) {
5651
- ReadStream = val;
5652
- },
5653
- enumerable: true,
5654
- configurable: true
5655
- });
5656
- Object.defineProperty(fs4, "WriteStream", {
5657
- get: function() {
5658
- return WriteStream;
5659
- },
5660
- set: function(val) {
5661
- WriteStream = val;
5662
- },
5663
- enumerable: true,
5664
- configurable: true
5665
- });
5666
- var FileReadStream = ReadStream;
5667
- Object.defineProperty(fs4, "FileReadStream", {
5668
- get: function() {
5669
- return FileReadStream;
5670
- },
5671
- set: function(val) {
5672
- FileReadStream = val;
5673
- },
5674
- enumerable: true,
5675
- configurable: true
5676
- });
5677
- var FileWriteStream = WriteStream;
5678
- Object.defineProperty(fs4, "FileWriteStream", {
5679
- get: function() {
5680
- return FileWriteStream;
5681
- },
5682
- set: function(val) {
5683
- FileWriteStream = val;
5684
- },
5685
- enumerable: true,
5686
- configurable: true
5687
- });
5688
- function ReadStream(path7, options) {
5689
- if (this instanceof ReadStream)
5690
- return fs$ReadStream.apply(this, arguments), this;
5691
- else
5692
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
5693
- }
5694
- function ReadStream$open() {
5695
- var that = this;
5696
- open(that.path, that.flags, that.mode, function(err, fd) {
5697
- if (err) {
5698
- if (that.autoClose)
5699
- that.destroy();
5700
- that.emit("error", err);
5701
- } else {
5702
- that.fd = fd;
5703
- that.emit("open", fd);
5704
- that.read();
5705
- }
5706
- });
5707
- }
5708
- function WriteStream(path7, options) {
5709
- if (this instanceof WriteStream)
5710
- return fs$WriteStream.apply(this, arguments), this;
5711
- else
5712
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
5713
- }
5714
- function WriteStream$open() {
5715
- var that = this;
5716
- open(that.path, that.flags, that.mode, function(err, fd) {
5717
- if (err) {
5718
- that.destroy();
5719
- that.emit("error", err);
5720
- } else {
5721
- that.fd = fd;
5722
- that.emit("open", fd);
5723
- }
5724
- });
5725
- }
5726
- function createReadStream(path7, options) {
5727
- return new fs4.ReadStream(path7, options);
5728
- }
5729
- function createWriteStream(path7, options) {
5730
- return new fs4.WriteStream(path7, options);
5731
- }
5732
- var fs$open = fs4.open;
5733
- fs4.open = open;
5734
- function open(path7, flags, mode, cb) {
5735
- if (typeof mode === "function")
5736
- cb = mode, mode = null;
5737
- return go$open(path7, flags, mode, cb);
5738
- function go$open(path8, flags2, mode2, cb2, startTime) {
5739
- return fs$open(path8, flags2, mode2, function(err, fd) {
5740
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5741
- enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5742
- else {
5743
- if (typeof cb2 === "function")
5744
- cb2.apply(this, arguments);
5745
- }
5746
- });
5747
- }
5748
- }
5749
- return fs4;
5750
- }
5751
- function enqueue(elem) {
5752
- debug4("ENQUEUE", elem[0].name, elem[1]);
5753
- fs3[gracefulQueue].push(elem);
5754
- retry();
5755
- }
5756
- var retryTimer;
5757
- function resetQueue() {
5758
- var now = Date.now();
5759
- for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
5760
- if (fs3[gracefulQueue][i].length > 2) {
5761
- fs3[gracefulQueue][i][3] = now;
5762
- fs3[gracefulQueue][i][4] = now;
5763
- }
5764
- }
5765
- retry();
5766
- }
5767
- function retry() {
5768
- clearTimeout(retryTimer);
5769
- retryTimer = void 0;
5770
- if (fs3[gracefulQueue].length === 0)
5771
- return;
5772
- var elem = fs3[gracefulQueue].shift();
5773
- var fn = elem[0];
5774
- var args = elem[1];
5775
- var err = elem[2];
5776
- var startTime = elem[3];
5777
- var lastTime = elem[4];
5778
- if (startTime === void 0) {
5779
- debug4("RETRY", fn.name, args);
5780
- fn.apply(null, args);
5781
- } else if (Date.now() - startTime >= 6e4) {
5782
- debug4("TIMEOUT", fn.name, args);
5783
- var cb = args.pop();
5784
- if (typeof cb === "function")
5785
- cb.call(null, err);
5786
- } else {
5787
- var sinceAttempt = Date.now() - lastTime;
5788
- var sinceStart = Math.max(lastTime - startTime, 1);
5789
- var desiredDelay = Math.min(sinceStart * 1.2, 100);
5790
- if (sinceAttempt >= desiredDelay) {
5791
- debug4("RETRY", fn.name, args);
5792
- fn.apply(null, args.concat([startTime]));
5793
- } else {
5794
- fs3[gracefulQueue].push(elem);
5795
- }
5796
- }
5797
- if (retryTimer === void 0) {
5798
- retryTimer = setTimeout(retry, 0);
5799
- }
5800
- }
5801
- }
5802
- });
5803
5031
  var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5804
5032
  "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
5805
5033
  "use strict";
@@ -5820,7 +5048,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
5820
5048
  "use strict";
5821
5049
  var _fs;
5822
5050
  try {
5823
- _fs = require_graceful_fs2();
5051
+ _fs = require_graceful_fs();
5824
5052
  } catch (_) {
5825
5053
  _fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
5826
5054
  }
@@ -8540,6 +7768,448 @@ ${codeFrame}
8540
7768
  );
8541
7769
  }
8542
7770
  });
7771
+ var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
7772
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/debug.js"(exports, module2) {
7773
+ "use strict";
7774
+ var debug4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
7775
+ };
7776
+ module2.exports = debug4;
7777
+ }
7778
+ });
7779
+ var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
7780
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/constants.js"(exports, module2) {
7781
+ "use strict";
7782
+ var SEMVER_SPEC_VERSION = "2.0.0";
7783
+ var MAX_LENGTH = 256;
7784
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
7785
+ 9007199254740991;
7786
+ var MAX_SAFE_COMPONENT_LENGTH = 16;
7787
+ var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
7788
+ var RELEASE_TYPES = [
7789
+ "major",
7790
+ "premajor",
7791
+ "minor",
7792
+ "preminor",
7793
+ "patch",
7794
+ "prepatch",
7795
+ "prerelease"
7796
+ ];
7797
+ module2.exports = {
7798
+ MAX_LENGTH,
7799
+ MAX_SAFE_COMPONENT_LENGTH,
7800
+ MAX_SAFE_BUILD_LENGTH,
7801
+ MAX_SAFE_INTEGER,
7802
+ RELEASE_TYPES,
7803
+ SEMVER_SPEC_VERSION,
7804
+ FLAG_INCLUDE_PRERELEASE: 1,
7805
+ FLAG_LOOSE: 2
7806
+ };
7807
+ }
7808
+ });
7809
+ var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
7810
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/re.js"(exports, module2) {
7811
+ "use strict";
7812
+ var {
7813
+ MAX_SAFE_COMPONENT_LENGTH,
7814
+ MAX_SAFE_BUILD_LENGTH,
7815
+ MAX_LENGTH
7816
+ } = require_constants();
7817
+ var debug4 = require_debug();
7818
+ exports = module2.exports = {};
7819
+ var re = exports.re = [];
7820
+ var safeRe = exports.safeRe = [];
7821
+ var src = exports.src = [];
7822
+ var t = exports.t = {};
7823
+ var R = 0;
7824
+ var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
7825
+ var safeRegexReplacements = [
7826
+ ["\\s", 1],
7827
+ ["\\d", MAX_LENGTH],
7828
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
7829
+ ];
7830
+ var makeSafeRegex = (value) => {
7831
+ for (const [token, max] of safeRegexReplacements) {
7832
+ value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
7833
+ }
7834
+ return value;
7835
+ };
7836
+ var createToken = (name, value, isGlobal) => {
7837
+ const safe = makeSafeRegex(value);
7838
+ const index = R++;
7839
+ debug4(name, index, value);
7840
+ t[name] = index;
7841
+ src[index] = value;
7842
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
7843
+ safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
7844
+ };
7845
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
7846
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
7847
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
7848
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
7849
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
7850
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
7851
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
7852
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
7853
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
7854
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
7855
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
7856
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
7857
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
7858
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
7859
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
7860
+ createToken("GTLT", "((?:<|>)?=?)");
7861
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
7862
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
7863
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
7864
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
7865
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
7866
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
7867
+ createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
7868
+ createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
7869
+ createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
7870
+ createToken("COERCERTL", src[t.COERCE], true);
7871
+ createToken("COERCERTLFULL", src[t.COERCEFULL], true);
7872
+ createToken("LONETILDE", "(?:~>?)");
7873
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
7874
+ exports.tildeTrimReplace = "$1~";
7875
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
7876
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
7877
+ createToken("LONECARET", "(?:\\^)");
7878
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
7879
+ exports.caretTrimReplace = "$1^";
7880
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
7881
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
7882
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
7883
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
7884
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
7885
+ exports.comparatorTrimReplace = "$1$2$3";
7886
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
7887
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
7888
+ createToken("STAR", "(<|>)?=?\\s*\\*");
7889
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
7890
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
7891
+ }
7892
+ });
7893
+ var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
7894
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/parse-options.js"(exports, module2) {
7895
+ "use strict";
7896
+ var looseOption = Object.freeze({ loose: true });
7897
+ var emptyOpts = Object.freeze({});
7898
+ var parseOptions = (options) => {
7899
+ if (!options) {
7900
+ return emptyOpts;
7901
+ }
7902
+ if (typeof options !== "object") {
7903
+ return looseOption;
7904
+ }
7905
+ return options;
7906
+ };
7907
+ module2.exports = parseOptions;
7908
+ }
7909
+ });
7910
+ var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
7911
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/internal/identifiers.js"(exports, module2) {
7912
+ "use strict";
7913
+ var numeric = /^[0-9]+$/;
7914
+ var compareIdentifiers = (a, b) => {
7915
+ const anum = numeric.test(a);
7916
+ const bnum = numeric.test(b);
7917
+ if (anum && bnum) {
7918
+ a = +a;
7919
+ b = +b;
7920
+ }
7921
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
7922
+ };
7923
+ var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
7924
+ module2.exports = {
7925
+ compareIdentifiers,
7926
+ rcompareIdentifiers
7927
+ };
7928
+ }
7929
+ });
7930
+ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
7931
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/classes/semver.js"(exports, module2) {
7932
+ "use strict";
7933
+ var debug4 = require_debug();
7934
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
7935
+ var { safeRe: re, t } = require_re();
7936
+ var parseOptions = require_parse_options();
7937
+ var { compareIdentifiers } = require_identifiers();
7938
+ var SemVer = class _SemVer {
7939
+ constructor(version2, options) {
7940
+ options = parseOptions(options);
7941
+ if (version2 instanceof _SemVer) {
7942
+ if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
7943
+ return version2;
7944
+ } else {
7945
+ version2 = version2.version;
7946
+ }
7947
+ } else if (typeof version2 !== "string") {
7948
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
7949
+ }
7950
+ if (version2.length > MAX_LENGTH) {
7951
+ throw new TypeError(
7952
+ `version is longer than ${MAX_LENGTH} characters`
7953
+ );
7954
+ }
7955
+ debug4("SemVer", version2, options);
7956
+ this.options = options;
7957
+ this.loose = !!options.loose;
7958
+ this.includePrerelease = !!options.includePrerelease;
7959
+ const m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
7960
+ if (!m) {
7961
+ throw new TypeError(`Invalid Version: ${version2}`);
7962
+ }
7963
+ this.raw = version2;
7964
+ this.major = +m[1];
7965
+ this.minor = +m[2];
7966
+ this.patch = +m[3];
7967
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
7968
+ throw new TypeError("Invalid major version");
7969
+ }
7970
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
7971
+ throw new TypeError("Invalid minor version");
7972
+ }
7973
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
7974
+ throw new TypeError("Invalid patch version");
7975
+ }
7976
+ if (!m[4]) {
7977
+ this.prerelease = [];
7978
+ } else {
7979
+ this.prerelease = m[4].split(".").map((id) => {
7980
+ if (/^[0-9]+$/.test(id)) {
7981
+ const num = +id;
7982
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
7983
+ return num;
7984
+ }
7985
+ }
7986
+ return id;
7987
+ });
7988
+ }
7989
+ this.build = m[5] ? m[5].split(".") : [];
7990
+ this.format();
7991
+ }
7992
+ format() {
7993
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
7994
+ if (this.prerelease.length) {
7995
+ this.version += `-${this.prerelease.join(".")}`;
7996
+ }
7997
+ return this.version;
7998
+ }
7999
+ toString() {
8000
+ return this.version;
8001
+ }
8002
+ compare(other) {
8003
+ debug4("SemVer.compare", this.version, this.options, other);
8004
+ if (!(other instanceof _SemVer)) {
8005
+ if (typeof other === "string" && other === this.version) {
8006
+ return 0;
8007
+ }
8008
+ other = new _SemVer(other, this.options);
8009
+ }
8010
+ if (other.version === this.version) {
8011
+ return 0;
8012
+ }
8013
+ return this.compareMain(other) || this.comparePre(other);
8014
+ }
8015
+ compareMain(other) {
8016
+ if (!(other instanceof _SemVer)) {
8017
+ other = new _SemVer(other, this.options);
8018
+ }
8019
+ return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
8020
+ }
8021
+ comparePre(other) {
8022
+ if (!(other instanceof _SemVer)) {
8023
+ other = new _SemVer(other, this.options);
8024
+ }
8025
+ if (this.prerelease.length && !other.prerelease.length) {
8026
+ return -1;
8027
+ } else if (!this.prerelease.length && other.prerelease.length) {
8028
+ return 1;
8029
+ } else if (!this.prerelease.length && !other.prerelease.length) {
8030
+ return 0;
8031
+ }
8032
+ let i = 0;
8033
+ do {
8034
+ const a = this.prerelease[i];
8035
+ const b = other.prerelease[i];
8036
+ debug4("prerelease compare", i, a, b);
8037
+ if (a === void 0 && b === void 0) {
8038
+ return 0;
8039
+ } else if (b === void 0) {
8040
+ return 1;
8041
+ } else if (a === void 0) {
8042
+ return -1;
8043
+ } else if (a === b) {
8044
+ continue;
8045
+ } else {
8046
+ return compareIdentifiers(a, b);
8047
+ }
8048
+ } while (++i);
8049
+ }
8050
+ compareBuild(other) {
8051
+ if (!(other instanceof _SemVer)) {
8052
+ other = new _SemVer(other, this.options);
8053
+ }
8054
+ let i = 0;
8055
+ do {
8056
+ const a = this.build[i];
8057
+ const b = other.build[i];
8058
+ debug4("build compare", i, a, b);
8059
+ if (a === void 0 && b === void 0) {
8060
+ return 0;
8061
+ } else if (b === void 0) {
8062
+ return 1;
8063
+ } else if (a === void 0) {
8064
+ return -1;
8065
+ } else if (a === b) {
8066
+ continue;
8067
+ } else {
8068
+ return compareIdentifiers(a, b);
8069
+ }
8070
+ } while (++i);
8071
+ }
8072
+ // preminor will bump the version up to the next minor release, and immediately
8073
+ // down to pre-release. premajor and prepatch work the same way.
8074
+ inc(release, identifier, identifierBase) {
8075
+ switch (release) {
8076
+ case "premajor":
8077
+ this.prerelease.length = 0;
8078
+ this.patch = 0;
8079
+ this.minor = 0;
8080
+ this.major++;
8081
+ this.inc("pre", identifier, identifierBase);
8082
+ break;
8083
+ case "preminor":
8084
+ this.prerelease.length = 0;
8085
+ this.patch = 0;
8086
+ this.minor++;
8087
+ this.inc("pre", identifier, identifierBase);
8088
+ break;
8089
+ case "prepatch":
8090
+ this.prerelease.length = 0;
8091
+ this.inc("patch", identifier, identifierBase);
8092
+ this.inc("pre", identifier, identifierBase);
8093
+ break;
8094
+ case "prerelease":
8095
+ if (this.prerelease.length === 0) {
8096
+ this.inc("patch", identifier, identifierBase);
8097
+ }
8098
+ this.inc("pre", identifier, identifierBase);
8099
+ break;
8100
+ case "major":
8101
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
8102
+ this.major++;
8103
+ }
8104
+ this.minor = 0;
8105
+ this.patch = 0;
8106
+ this.prerelease = [];
8107
+ break;
8108
+ case "minor":
8109
+ if (this.patch !== 0 || this.prerelease.length === 0) {
8110
+ this.minor++;
8111
+ }
8112
+ this.patch = 0;
8113
+ this.prerelease = [];
8114
+ break;
8115
+ case "patch":
8116
+ if (this.prerelease.length === 0) {
8117
+ this.patch++;
8118
+ }
8119
+ this.prerelease = [];
8120
+ break;
8121
+ case "pre": {
8122
+ const base = Number(identifierBase) ? 1 : 0;
8123
+ if (!identifier && identifierBase === false) {
8124
+ throw new Error("invalid increment argument: identifier is empty");
8125
+ }
8126
+ if (this.prerelease.length === 0) {
8127
+ this.prerelease = [base];
8128
+ } else {
8129
+ let i = this.prerelease.length;
8130
+ while (--i >= 0) {
8131
+ if (typeof this.prerelease[i] === "number") {
8132
+ this.prerelease[i]++;
8133
+ i = -2;
8134
+ }
8135
+ }
8136
+ if (i === -1) {
8137
+ if (identifier === this.prerelease.join(".") && identifierBase === false) {
8138
+ throw new Error("invalid increment argument: identifier already exists");
8139
+ }
8140
+ this.prerelease.push(base);
8141
+ }
8142
+ }
8143
+ if (identifier) {
8144
+ let prerelease = [identifier, base];
8145
+ if (identifierBase === false) {
8146
+ prerelease = [identifier];
8147
+ }
8148
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
8149
+ if (isNaN(this.prerelease[1])) {
8150
+ this.prerelease = prerelease;
8151
+ }
8152
+ } else {
8153
+ this.prerelease = prerelease;
8154
+ }
8155
+ }
8156
+ break;
8157
+ }
8158
+ default:
8159
+ throw new Error(`invalid increment argument: ${release}`);
8160
+ }
8161
+ this.raw = this.format();
8162
+ if (this.build.length) {
8163
+ this.raw += `+${this.build.join(".")}`;
8164
+ }
8165
+ return this;
8166
+ }
8167
+ };
8168
+ module2.exports = SemVer;
8169
+ }
8170
+ });
8171
+ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
8172
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/parse.js"(exports, module2) {
8173
+ "use strict";
8174
+ var SemVer = require_semver();
8175
+ var parse = (version2, options, throwErrors = false) => {
8176
+ if (version2 instanceof SemVer) {
8177
+ return version2;
8178
+ }
8179
+ try {
8180
+ return new SemVer(version2, options);
8181
+ } catch (er) {
8182
+ if (!throwErrors) {
8183
+ return null;
8184
+ }
8185
+ throw er;
8186
+ }
8187
+ };
8188
+ module2.exports = parse;
8189
+ }
8190
+ });
8191
+ var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
8192
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/valid.js"(exports, module2) {
8193
+ "use strict";
8194
+ var parse = require_parse();
8195
+ var valid = (version2, options) => {
8196
+ const v = parse(version2, options);
8197
+ return v ? v.version : null;
8198
+ };
8199
+ module2.exports = valid;
8200
+ }
8201
+ });
8202
+ var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
8203
+ "../../node_modules/.pnpm/semver@7.6.2/node_modules/semver/functions/clean.js"(exports, module2) {
8204
+ "use strict";
8205
+ var parse = require_parse();
8206
+ var clean = (version2, options) => {
8207
+ const s = parse(version2.trim().replace(/^[=v]+/, ""), options);
8208
+ return s ? s.version : null;
8209
+ };
8210
+ module2.exports = clean;
8211
+ }
8212
+ });
8543
8213
  var require_spdx_license_ids = (0, import_chunk_WWAWV7DQ.__commonJS)({
8544
8214
  "../../node_modules/.pnpm/spdx-license-ids@3.0.18/node_modules/spdx-license-ids/index.json"(exports, module2) {
8545
8215
  module2.exports = [
@@ -9348,7 +9018,7 @@ var require_scan = (0, import_chunk_WWAWV7DQ.__commonJS)({
9348
9018
  };
9349
9019
  }
9350
9020
  });
9351
- var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
9021
+ var require_parse2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
9352
9022
  "../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js"(exports, module2) {
9353
9023
  "use strict";
9354
9024
  module2.exports = function(tokens) {
@@ -9464,7 +9134,7 @@ var require_spdx_expression_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
9464
9134
  "../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js"(exports, module2) {
9465
9135
  "use strict";
9466
9136
  var scan = require_scan();
9467
- var parse = require_parse();
9137
+ var parse = require_parse2();
9468
9138
  module2.exports = function(source) {
9469
9139
  return parse(scan(source));
9470
9140
  };
@@ -10313,93 +9983,12 @@ var require_lib5 = (0, import_chunk_WWAWV7DQ.__commonJS)({
10313
9983
  module2.exports = GitHost;
10314
9984
  }
10315
9985
  });
10316
- var require_implementation = (0, import_chunk_WWAWV7DQ.__commonJS)({
10317
- "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
10318
- "use strict";
10319
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
10320
- var toStr = Object.prototype.toString;
10321
- var max = Math.max;
10322
- var funcType = "[object Function]";
10323
- var concatty = function concatty2(a, b) {
10324
- var arr = [];
10325
- for (var i = 0; i < a.length; i += 1) {
10326
- arr[i] = a[i];
10327
- }
10328
- for (var j = 0; j < b.length; j += 1) {
10329
- arr[j + a.length] = b[j];
10330
- }
10331
- return arr;
10332
- };
10333
- var slicy = function slicy2(arrLike, offset) {
10334
- var arr = [];
10335
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
10336
- arr[j] = arrLike[i];
10337
- }
10338
- return arr;
10339
- };
10340
- var joiny = function(arr, joiner) {
10341
- var str = "";
10342
- for (var i = 0; i < arr.length; i += 1) {
10343
- str += arr[i];
10344
- if (i + 1 < arr.length) {
10345
- str += joiner;
10346
- }
10347
- }
10348
- return str;
10349
- };
10350
- module2.exports = function bind2(that) {
10351
- var target = this;
10352
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
10353
- throw new TypeError(ERROR_MESSAGE + target);
10354
- }
10355
- var args = slicy(arguments, 1);
10356
- var bound;
10357
- var binder = function() {
10358
- if (this instanceof bound) {
10359
- var result = target.apply(
10360
- this,
10361
- concatty(args, arguments)
10362
- );
10363
- if (Object(result) === result) {
10364
- return result;
10365
- }
10366
- return this;
10367
- }
10368
- return target.apply(
10369
- that,
10370
- concatty(args, arguments)
10371
- );
10372
- };
10373
- var boundLength = max(0, target.length - args.length);
10374
- var boundArgs = [];
10375
- for (var i = 0; i < boundLength; i++) {
10376
- boundArgs[i] = "$" + i;
10377
- }
10378
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
10379
- if (target.prototype) {
10380
- var Empty = function Empty2() {
10381
- };
10382
- Empty.prototype = target.prototype;
10383
- bound.prototype = new Empty();
10384
- Empty.prototype = null;
10385
- }
10386
- return bound;
10387
- };
10388
- }
10389
- });
10390
- var require_function_bind = (0, import_chunk_WWAWV7DQ.__commonJS)({
10391
- "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
10392
- "use strict";
10393
- var implementation = require_implementation();
10394
- module2.exports = Function.prototype.bind || implementation;
10395
- }
10396
- });
10397
9986
  var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
10398
9987
  "../../node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports, module2) {
10399
9988
  "use strict";
10400
9989
  var call = Function.prototype.call;
10401
9990
  var $hasOwn = Object.prototype.hasOwnProperty;
10402
- var bind2 = require_function_bind();
9991
+ var bind2 = (0, import_chunk_NNDVFXHL.require_function_bind)();
10403
9992
  module2.exports = bind2.call(call, $hasOwn);
10404
9993
  }
10405
9994
  });
@@ -10683,8 +10272,8 @@ var require_typos = (0, import_chunk_WWAWV7DQ.__commonJS)({
10683
10272
  var require_fixer = (0, import_chunk_WWAWV7DQ.__commonJS)({
10684
10273
  "../../node_modules/.pnpm/normalize-package-data@6.0.0/node_modules/normalize-package-data/lib/fixer.js"(exports, module2) {
10685
10274
  "use strict";
10686
- var isValidSemver = (0, import_chunk_ODPKPRK7.require_valid)();
10687
- var cleanSemver = (0, import_chunk_ODPKPRK7.require_clean)();
10275
+ var isValidSemver = require_valid();
10276
+ var cleanSemver = require_clean();
10688
10277
  var validateLicense = require_validate_npm_package_license();
10689
10278
  var hostedGitInfo = require_lib5();
10690
10279
  var isBuiltinModule = require_is_core_module();
@@ -11520,7 +11109,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11520
11109
  "../internals/package.json"(exports, module2) {
11521
11110
  module2.exports = {
11522
11111
  name: "@prisma/internals",
11523
- version: "0.0.0",
11112
+ version: "5.17.0-dev.9",
11524
11113
  description: "This package is intended for Prisma's internal use",
11525
11114
  main: "dist/index.js",
11526
11115
  types: "dist/index.d.ts",