@prisma/migrate 6.1.0-dev.4 → 6.1.0-dev.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.
package/dist/bin.js CHANGED
@@ -60,7 +60,7 @@ var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
60
60
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
61
61
  var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
62
62
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
63
- var import_chunk_L3NXOGJI = require("./chunk-L3NXOGJI.js");
63
+ var import_chunk_AQI5DHMJ = require("./chunk-AQI5DHMJ.js");
64
64
  var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
65
65
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
66
66
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -93,7 +93,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
93
93
  (0, import_chunk_CK5VLKFM.init_MigrateCommand)();
94
94
  (0, import_chunk_X6GGREJW.init_MigrateDeploy)();
95
95
  (0, import_chunk_ILQWQHQO.init_MigrateDev)();
96
- (0, import_chunk_L3NXOGJI.init_MigrateDiff)();
96
+ (0, import_chunk_AQI5DHMJ.init_MigrateDiff)();
97
97
  (0, import_chunk_GUBDW6S7.init_MigrateReset)();
98
98
  (0, import_chunk_HODZFC64.init_MigrateResolve)();
99
99
  (0, import_chunk_PFEH6ILG.init_MigrateStatus)();
@@ -117,7 +117,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
117
117
  resolve: import_chunk_HODZFC64.MigrateResolve.new(),
118
118
  reset: import_chunk_GUBDW6S7.MigrateReset.new(),
119
119
  deploy: import_chunk_X6GGREJW.MigrateDeploy.new(),
120
- diff: import_chunk_L3NXOGJI.MigrateDiff.new()
120
+ diff: import_chunk_AQI5DHMJ.MigrateDiff.new()
121
121
  }),
122
122
  db: import_chunk_NJUAN6V2.DbCommand.new({
123
123
  execute: import_chunk_PNBMPQYH.DbExecute.new(),
@@ -26,12 +26,12 @@ 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_L3NXOGJI_exports = {};
30
- __export(chunk_L3NXOGJI_exports, {
29
+ var chunk_4KL6FYI7_exports = {};
30
+ __export(chunk_4KL6FYI7_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_L3NXOGJI_exports);
34
+ module.exports = __toCommonJS(chunk_4KL6FYI7_exports);
35
35
  var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -10757,7 +10757,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
10757
10757
  "../internals/package.json"(exports, module2) {
10758
10758
  module2.exports = {
10759
10759
  name: "@prisma/internals",
10760
- version: "6.1.0-dev.4",
10760
+ version: "0.0.0",
10761
10761
  description: "This package is intended for Prisma's internal use",
10762
10762
  main: "dist/index.js",
10763
10763
  types: "dist/index.d.ts",
@@ -10842,7 +10842,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
10842
10842
  "@prisma/fetch-engine": "workspace:*",
10843
10843
  "@prisma/generator-helper": "workspace:*",
10844
10844
  "@prisma/get-platform": "workspace:*",
10845
- "@prisma/prisma-schema-wasm": "6.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
10845
+ "@prisma/prisma-schema-wasm": "6.1.0-4.d6d59dde3ab34bef0a29a68cf223eeb013b631fc",
10846
10846
  "@prisma/schema-files-loader": "workspace:*",
10847
10847
  arg: "5.0.2",
10848
10848
  prompts: "2.4.2"
@@ -26,12 +26,12 @@ 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_66FMKE62_exports = {};
30
- __export(chunk_66FMKE62_exports, {
29
+ var chunk_AQI5DHMJ_exports = {};
30
+ __export(chunk_AQI5DHMJ_exports, {
31
31
  MigrateDiff: () => MigrateDiff,
32
32
  init_MigrateDiff: () => init_MigrateDiff
33
33
  });
34
- module.exports = __toCommonJS(chunk_66FMKE62_exports);
34
+ module.exports = __toCommonJS(chunk_AQI5DHMJ_exports);
35
35
  var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
36
36
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
37
37
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -5031,778 +5031,6 @@ var require_ensure = (0, import_chunk_WWAWV7DQ.__commonJS)({
5031
5031
  };
5032
5032
  }
5033
5033
  });
5034
- var require_polyfills2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5035
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
5036
- "use strict";
5037
- var constants = (0, import_chunk_WWAWV7DQ.__require)("constants");
5038
- var origCwd = process.cwd;
5039
- var cwd = null;
5040
- var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
5041
- process.cwd = function() {
5042
- if (!cwd)
5043
- cwd = origCwd.call(process);
5044
- return cwd;
5045
- };
5046
- try {
5047
- process.cwd();
5048
- } catch (er) {
5049
- }
5050
- if (typeof process.chdir === "function") {
5051
- chdir = process.chdir;
5052
- process.chdir = function(d) {
5053
- cwd = null;
5054
- chdir.call(process, d);
5055
- };
5056
- if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
5057
- }
5058
- var chdir;
5059
- module2.exports = patch;
5060
- function patch(fs3) {
5061
- if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
5062
- patchLchmod(fs3);
5063
- }
5064
- if (!fs3.lutimes) {
5065
- patchLutimes(fs3);
5066
- }
5067
- fs3.chown = chownFix(fs3.chown);
5068
- fs3.fchown = chownFix(fs3.fchown);
5069
- fs3.lchown = chownFix(fs3.lchown);
5070
- fs3.chmod = chmodFix(fs3.chmod);
5071
- fs3.fchmod = chmodFix(fs3.fchmod);
5072
- fs3.lchmod = chmodFix(fs3.lchmod);
5073
- fs3.chownSync = chownFixSync(fs3.chownSync);
5074
- fs3.fchownSync = chownFixSync(fs3.fchownSync);
5075
- fs3.lchownSync = chownFixSync(fs3.lchownSync);
5076
- fs3.chmodSync = chmodFixSync(fs3.chmodSync);
5077
- fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
5078
- fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
5079
- fs3.stat = statFix(fs3.stat);
5080
- fs3.fstat = statFix(fs3.fstat);
5081
- fs3.lstat = statFix(fs3.lstat);
5082
- fs3.statSync = statFixSync(fs3.statSync);
5083
- fs3.fstatSync = statFixSync(fs3.fstatSync);
5084
- fs3.lstatSync = statFixSync(fs3.lstatSync);
5085
- if (fs3.chmod && !fs3.lchmod) {
5086
- fs3.lchmod = function(path7, mode, cb) {
5087
- if (cb) process.nextTick(cb);
5088
- };
5089
- fs3.lchmodSync = function() {
5090
- };
5091
- }
5092
- if (fs3.chown && !fs3.lchown) {
5093
- fs3.lchown = function(path7, uid, gid, cb) {
5094
- if (cb) process.nextTick(cb);
5095
- };
5096
- fs3.lchownSync = function() {
5097
- };
5098
- }
5099
- if (platform === "win32") {
5100
- fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : function(fs$rename) {
5101
- function rename(from, to, cb) {
5102
- var start = Date.now();
5103
- var backoff = 0;
5104
- fs$rename(from, to, function CB(er) {
5105
- if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
5106
- setTimeout(function() {
5107
- fs3.stat(to, function(stater, st) {
5108
- if (stater && stater.code === "ENOENT")
5109
- fs$rename(from, to, CB);
5110
- else
5111
- cb(er);
5112
- });
5113
- }, backoff);
5114
- if (backoff < 100)
5115
- backoff += 10;
5116
- return;
5117
- }
5118
- if (cb) cb(er);
5119
- });
5120
- }
5121
- if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
5122
- return rename;
5123
- }(fs3.rename);
5124
- }
5125
- fs3.read = typeof fs3.read !== "function" ? fs3.read : function(fs$read) {
5126
- function read(fd, buffer, offset, length, position, callback_) {
5127
- var callback;
5128
- if (callback_ && typeof callback_ === "function") {
5129
- var eagCounter = 0;
5130
- callback = function(er, _, __) {
5131
- if (er && er.code === "EAGAIN" && eagCounter < 10) {
5132
- eagCounter++;
5133
- return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
5134
- }
5135
- callback_.apply(this, arguments);
5136
- };
5137
- }
5138
- return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
5139
- }
5140
- if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
5141
- return read;
5142
- }(fs3.read);
5143
- fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ function(fs$readSync) {
5144
- return function(fd, buffer, offset, length, position) {
5145
- var eagCounter = 0;
5146
- while (true) {
5147
- try {
5148
- return fs$readSync.call(fs3, fd, buffer, offset, length, position);
5149
- } catch (er) {
5150
- if (er.code === "EAGAIN" && eagCounter < 10) {
5151
- eagCounter++;
5152
- continue;
5153
- }
5154
- throw er;
5155
- }
5156
- }
5157
- };
5158
- }(fs3.readSync);
5159
- function patchLchmod(fs4) {
5160
- fs4.lchmod = function(path7, mode, callback) {
5161
- fs4.open(
5162
- path7,
5163
- constants.O_WRONLY | constants.O_SYMLINK,
5164
- mode,
5165
- function(err, fd) {
5166
- if (err) {
5167
- if (callback) callback(err);
5168
- return;
5169
- }
5170
- fs4.fchmod(fd, mode, function(err2) {
5171
- fs4.close(fd, function(err22) {
5172
- if (callback) callback(err2 || err22);
5173
- });
5174
- });
5175
- }
5176
- );
5177
- };
5178
- fs4.lchmodSync = function(path7, mode) {
5179
- var fd = fs4.openSync(path7, constants.O_WRONLY | constants.O_SYMLINK, mode);
5180
- var threw = true;
5181
- var ret;
5182
- try {
5183
- ret = fs4.fchmodSync(fd, mode);
5184
- threw = false;
5185
- } finally {
5186
- if (threw) {
5187
- try {
5188
- fs4.closeSync(fd);
5189
- } catch (er) {
5190
- }
5191
- } else {
5192
- fs4.closeSync(fd);
5193
- }
5194
- }
5195
- return ret;
5196
- };
5197
- }
5198
- function patchLutimes(fs4) {
5199
- if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
5200
- fs4.lutimes = function(path7, at, mt, cb) {
5201
- fs4.open(path7, constants.O_SYMLINK, function(er, fd) {
5202
- if (er) {
5203
- if (cb) cb(er);
5204
- return;
5205
- }
5206
- fs4.futimes(fd, at, mt, function(er2) {
5207
- fs4.close(fd, function(er22) {
5208
- if (cb) cb(er2 || er22);
5209
- });
5210
- });
5211
- });
5212
- };
5213
- fs4.lutimesSync = function(path7, at, mt) {
5214
- var fd = fs4.openSync(path7, constants.O_SYMLINK);
5215
- var ret;
5216
- var threw = true;
5217
- try {
5218
- ret = fs4.futimesSync(fd, at, mt);
5219
- threw = false;
5220
- } finally {
5221
- if (threw) {
5222
- try {
5223
- fs4.closeSync(fd);
5224
- } catch (er) {
5225
- }
5226
- } else {
5227
- fs4.closeSync(fd);
5228
- }
5229
- }
5230
- return ret;
5231
- };
5232
- } else if (fs4.futimes) {
5233
- fs4.lutimes = function(_a, _b, _c, cb) {
5234
- if (cb) process.nextTick(cb);
5235
- };
5236
- fs4.lutimesSync = function() {
5237
- };
5238
- }
5239
- }
5240
- function chmodFix(orig) {
5241
- if (!orig) return orig;
5242
- return function(target, mode, cb) {
5243
- return orig.call(fs3, target, mode, function(er) {
5244
- if (chownErOk(er)) er = null;
5245
- if (cb) cb.apply(this, arguments);
5246
- });
5247
- };
5248
- }
5249
- function chmodFixSync(orig) {
5250
- if (!orig) return orig;
5251
- return function(target, mode) {
5252
- try {
5253
- return orig.call(fs3, target, mode);
5254
- } catch (er) {
5255
- if (!chownErOk(er)) throw er;
5256
- }
5257
- };
5258
- }
5259
- function chownFix(orig) {
5260
- if (!orig) return orig;
5261
- return function(target, uid, gid, cb) {
5262
- return orig.call(fs3, target, uid, gid, function(er) {
5263
- if (chownErOk(er)) er = null;
5264
- if (cb) cb.apply(this, arguments);
5265
- });
5266
- };
5267
- }
5268
- function chownFixSync(orig) {
5269
- if (!orig) return orig;
5270
- return function(target, uid, gid) {
5271
- try {
5272
- return orig.call(fs3, target, uid, gid);
5273
- } catch (er) {
5274
- if (!chownErOk(er)) throw er;
5275
- }
5276
- };
5277
- }
5278
- function statFix(orig) {
5279
- if (!orig) return orig;
5280
- return function(target, options, cb) {
5281
- if (typeof options === "function") {
5282
- cb = options;
5283
- options = null;
5284
- }
5285
- function callback(er, stats) {
5286
- if (stats) {
5287
- if (stats.uid < 0) stats.uid += 4294967296;
5288
- if (stats.gid < 0) stats.gid += 4294967296;
5289
- }
5290
- if (cb) cb.apply(this, arguments);
5291
- }
5292
- return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
5293
- };
5294
- }
5295
- function statFixSync(orig) {
5296
- if (!orig) return orig;
5297
- return function(target, options) {
5298
- var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
5299
- if (stats) {
5300
- if (stats.uid < 0) stats.uid += 4294967296;
5301
- if (stats.gid < 0) stats.gid += 4294967296;
5302
- }
5303
- return stats;
5304
- };
5305
- }
5306
- function chownErOk(er) {
5307
- if (!er)
5308
- return true;
5309
- if (er.code === "ENOSYS")
5310
- return true;
5311
- var nonroot = !process.getuid || process.getuid() !== 0;
5312
- if (nonroot) {
5313
- if (er.code === "EINVAL" || er.code === "EPERM")
5314
- return true;
5315
- }
5316
- return false;
5317
- }
5318
- }
5319
- }
5320
- });
5321
- var require_legacy_streams2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5322
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
5323
- "use strict";
5324
- var Stream = (0, import_chunk_WWAWV7DQ.__require)("stream").Stream;
5325
- module2.exports = legacy;
5326
- function legacy(fs3) {
5327
- return {
5328
- ReadStream,
5329
- WriteStream
5330
- };
5331
- function ReadStream(path7, options) {
5332
- if (!(this instanceof ReadStream)) return new ReadStream(path7, options);
5333
- Stream.call(this);
5334
- var self = this;
5335
- this.path = path7;
5336
- this.fd = null;
5337
- this.readable = true;
5338
- this.paused = false;
5339
- this.flags = "r";
5340
- this.mode = 438;
5341
- this.bufferSize = 64 * 1024;
5342
- options = options || {};
5343
- var keys = Object.keys(options);
5344
- for (var index = 0, length = keys.length; index < length; index++) {
5345
- var key = keys[index];
5346
- this[key] = options[key];
5347
- }
5348
- if (this.encoding) this.setEncoding(this.encoding);
5349
- if (this.start !== void 0) {
5350
- if ("number" !== typeof this.start) {
5351
- throw TypeError("start must be a Number");
5352
- }
5353
- if (this.end === void 0) {
5354
- this.end = Infinity;
5355
- } else if ("number" !== typeof this.end) {
5356
- throw TypeError("end must be a Number");
5357
- }
5358
- if (this.start > this.end) {
5359
- throw new Error("start must be <= end");
5360
- }
5361
- this.pos = this.start;
5362
- }
5363
- if (this.fd !== null) {
5364
- process.nextTick(function() {
5365
- self._read();
5366
- });
5367
- return;
5368
- }
5369
- fs3.open(this.path, this.flags, this.mode, function(err, fd) {
5370
- if (err) {
5371
- self.emit("error", err);
5372
- self.readable = false;
5373
- return;
5374
- }
5375
- self.fd = fd;
5376
- self.emit("open", fd);
5377
- self._read();
5378
- });
5379
- }
5380
- function WriteStream(path7, options) {
5381
- if (!(this instanceof WriteStream)) return new WriteStream(path7, options);
5382
- Stream.call(this);
5383
- this.path = path7;
5384
- this.fd = null;
5385
- this.writable = true;
5386
- this.flags = "w";
5387
- this.encoding = "binary";
5388
- this.mode = 438;
5389
- this.bytesWritten = 0;
5390
- options = options || {};
5391
- var keys = Object.keys(options);
5392
- for (var index = 0, length = keys.length; index < length; index++) {
5393
- var key = keys[index];
5394
- this[key] = options[key];
5395
- }
5396
- if (this.start !== void 0) {
5397
- if ("number" !== typeof this.start) {
5398
- throw TypeError("start must be a Number");
5399
- }
5400
- if (this.start < 0) {
5401
- throw new Error("start must be >= zero");
5402
- }
5403
- this.pos = this.start;
5404
- }
5405
- this.busy = false;
5406
- this._queue = [];
5407
- if (this.fd === null) {
5408
- this._open = fs3.open;
5409
- this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
5410
- this.flush();
5411
- }
5412
- }
5413
- }
5414
- }
5415
- });
5416
- var require_clone2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5417
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
5418
- "use strict";
5419
- module2.exports = clone;
5420
- var getPrototypeOf = Object.getPrototypeOf || function(obj) {
5421
- return obj.__proto__;
5422
- };
5423
- function clone(obj) {
5424
- if (obj === null || typeof obj !== "object")
5425
- return obj;
5426
- if (obj instanceof Object)
5427
- var copy = { __proto__: getPrototypeOf(obj) };
5428
- else
5429
- var copy = /* @__PURE__ */ Object.create(null);
5430
- Object.getOwnPropertyNames(obj).forEach(function(key) {
5431
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
5432
- });
5433
- return copy;
5434
- }
5435
- }
5436
- });
5437
- var require_graceful_fs2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5438
- "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
5439
- "use strict";
5440
- var fs3 = (0, import_chunk_WWAWV7DQ.__require)("fs");
5441
- var polyfills = require_polyfills2();
5442
- var legacy = require_legacy_streams2();
5443
- var clone = require_clone2();
5444
- var util = (0, import_chunk_WWAWV7DQ.__require)("util");
5445
- var gracefulQueue;
5446
- var previousSymbol;
5447
- if (typeof Symbol === "function" && typeof Symbol.for === "function") {
5448
- gracefulQueue = Symbol.for("graceful-fs.queue");
5449
- previousSymbol = Symbol.for("graceful-fs.previous");
5450
- } else {
5451
- gracefulQueue = "___graceful-fs.queue";
5452
- previousSymbol = "___graceful-fs.previous";
5453
- }
5454
- function noop() {
5455
- }
5456
- function publishQueue(context, queue2) {
5457
- Object.defineProperty(context, gracefulQueue, {
5458
- get: function() {
5459
- return queue2;
5460
- }
5461
- });
5462
- }
5463
- var debug4 = noop;
5464
- if (util.debuglog)
5465
- debug4 = util.debuglog("gfs4");
5466
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
5467
- debug4 = function() {
5468
- var m = util.format.apply(util, arguments);
5469
- m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
5470
- console.error(m);
5471
- };
5472
- if (!fs3[gracefulQueue]) {
5473
- queue = global[gracefulQueue] || [];
5474
- publishQueue(fs3, queue);
5475
- fs3.close = function(fs$close) {
5476
- function close(fd, cb) {
5477
- return fs$close.call(fs3, fd, function(err) {
5478
- if (!err) {
5479
- resetQueue();
5480
- }
5481
- if (typeof cb === "function")
5482
- cb.apply(this, arguments);
5483
- });
5484
- }
5485
- Object.defineProperty(close, previousSymbol, {
5486
- value: fs$close
5487
- });
5488
- return close;
5489
- }(fs3.close);
5490
- fs3.closeSync = function(fs$closeSync) {
5491
- function closeSync(fd) {
5492
- fs$closeSync.apply(fs3, arguments);
5493
- resetQueue();
5494
- }
5495
- Object.defineProperty(closeSync, previousSymbol, {
5496
- value: fs$closeSync
5497
- });
5498
- return closeSync;
5499
- }(fs3.closeSync);
5500
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
5501
- process.on("exit", function() {
5502
- debug4(fs3[gracefulQueue]);
5503
- (0, import_chunk_WWAWV7DQ.__require)("assert").equal(fs3[gracefulQueue].length, 0);
5504
- });
5505
- }
5506
- }
5507
- var queue;
5508
- if (!global[gracefulQueue]) {
5509
- publishQueue(global, fs3[gracefulQueue]);
5510
- }
5511
- module2.exports = patch(clone(fs3));
5512
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
5513
- module2.exports = patch(fs3);
5514
- fs3.__patched = true;
5515
- }
5516
- function patch(fs4) {
5517
- polyfills(fs4);
5518
- fs4.gracefulify = patch;
5519
- fs4.createReadStream = createReadStream;
5520
- fs4.createWriteStream = createWriteStream;
5521
- var fs$readFile = fs4.readFile;
5522
- fs4.readFile = readFile2;
5523
- function readFile2(path7, options, cb) {
5524
- if (typeof options === "function")
5525
- cb = options, options = null;
5526
- return go$readFile(path7, options, cb);
5527
- function go$readFile(path8, options2, cb2, startTime) {
5528
- return fs$readFile(path8, options2, function(err) {
5529
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5530
- enqueue([go$readFile, [path8, options2, cb2], err, startTime || Date.now(), Date.now()]);
5531
- else {
5532
- if (typeof cb2 === "function")
5533
- cb2.apply(this, arguments);
5534
- }
5535
- });
5536
- }
5537
- }
5538
- var fs$writeFile = fs4.writeFile;
5539
- fs4.writeFile = writeFile;
5540
- function writeFile(path7, data, options, cb) {
5541
- if (typeof options === "function")
5542
- cb = options, options = null;
5543
- return go$writeFile(path7, data, options, cb);
5544
- function go$writeFile(path8, data2, options2, cb2, startTime) {
5545
- return fs$writeFile(path8, data2, options2, function(err) {
5546
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5547
- enqueue([go$writeFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
5548
- else {
5549
- if (typeof cb2 === "function")
5550
- cb2.apply(this, arguments);
5551
- }
5552
- });
5553
- }
5554
- }
5555
- var fs$appendFile = fs4.appendFile;
5556
- if (fs$appendFile)
5557
- fs4.appendFile = appendFile;
5558
- function appendFile(path7, data, options, cb) {
5559
- if (typeof options === "function")
5560
- cb = options, options = null;
5561
- return go$appendFile(path7, data, options, cb);
5562
- function go$appendFile(path8, data2, options2, cb2, startTime) {
5563
- return fs$appendFile(path8, data2, options2, function(err) {
5564
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5565
- enqueue([go$appendFile, [path8, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
5566
- else {
5567
- if (typeof cb2 === "function")
5568
- cb2.apply(this, arguments);
5569
- }
5570
- });
5571
- }
5572
- }
5573
- var fs$copyFile = fs4.copyFile;
5574
- if (fs$copyFile)
5575
- fs4.copyFile = copyFile;
5576
- function copyFile(src, dest, flags, cb) {
5577
- if (typeof flags === "function") {
5578
- cb = flags;
5579
- flags = 0;
5580
- }
5581
- return go$copyFile(src, dest, flags, cb);
5582
- function go$copyFile(src2, dest2, flags2, cb2, startTime) {
5583
- return fs$copyFile(src2, dest2, flags2, function(err) {
5584
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5585
- enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
5586
- else {
5587
- if (typeof cb2 === "function")
5588
- cb2.apply(this, arguments);
5589
- }
5590
- });
5591
- }
5592
- }
5593
- var fs$readdir = fs4.readdir;
5594
- fs4.readdir = readdir;
5595
- var noReaddirOptionVersions = /^v[0-5]\./;
5596
- function readdir(path7, options, cb) {
5597
- if (typeof options === "function")
5598
- cb = options, options = null;
5599
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path8, options2, cb2, startTime) {
5600
- return fs$readdir(path8, fs$readdirCallback(
5601
- path8,
5602
- options2,
5603
- cb2,
5604
- startTime
5605
- ));
5606
- } : function go$readdir2(path8, options2, cb2, startTime) {
5607
- return fs$readdir(path8, options2, fs$readdirCallback(
5608
- path8,
5609
- options2,
5610
- cb2,
5611
- startTime
5612
- ));
5613
- };
5614
- return go$readdir(path7, options, cb);
5615
- function fs$readdirCallback(path8, options2, cb2, startTime) {
5616
- return function(err, files) {
5617
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5618
- enqueue([
5619
- go$readdir,
5620
- [path8, options2, cb2],
5621
- err,
5622
- startTime || Date.now(),
5623
- Date.now()
5624
- ]);
5625
- else {
5626
- if (files && files.sort)
5627
- files.sort();
5628
- if (typeof cb2 === "function")
5629
- cb2.call(this, err, files);
5630
- }
5631
- };
5632
- }
5633
- }
5634
- if (process.version.substr(0, 4) === "v0.8") {
5635
- var legStreams = legacy(fs4);
5636
- ReadStream = legStreams.ReadStream;
5637
- WriteStream = legStreams.WriteStream;
5638
- }
5639
- var fs$ReadStream = fs4.ReadStream;
5640
- if (fs$ReadStream) {
5641
- ReadStream.prototype = Object.create(fs$ReadStream.prototype);
5642
- ReadStream.prototype.open = ReadStream$open;
5643
- }
5644
- var fs$WriteStream = fs4.WriteStream;
5645
- if (fs$WriteStream) {
5646
- WriteStream.prototype = Object.create(fs$WriteStream.prototype);
5647
- WriteStream.prototype.open = WriteStream$open;
5648
- }
5649
- Object.defineProperty(fs4, "ReadStream", {
5650
- get: function() {
5651
- return ReadStream;
5652
- },
5653
- set: function(val) {
5654
- ReadStream = val;
5655
- },
5656
- enumerable: true,
5657
- configurable: true
5658
- });
5659
- Object.defineProperty(fs4, "WriteStream", {
5660
- get: function() {
5661
- return WriteStream;
5662
- },
5663
- set: function(val) {
5664
- WriteStream = val;
5665
- },
5666
- enumerable: true,
5667
- configurable: true
5668
- });
5669
- var FileReadStream = ReadStream;
5670
- Object.defineProperty(fs4, "FileReadStream", {
5671
- get: function() {
5672
- return FileReadStream;
5673
- },
5674
- set: function(val) {
5675
- FileReadStream = val;
5676
- },
5677
- enumerable: true,
5678
- configurable: true
5679
- });
5680
- var FileWriteStream = WriteStream;
5681
- Object.defineProperty(fs4, "FileWriteStream", {
5682
- get: function() {
5683
- return FileWriteStream;
5684
- },
5685
- set: function(val) {
5686
- FileWriteStream = val;
5687
- },
5688
- enumerable: true,
5689
- configurable: true
5690
- });
5691
- function ReadStream(path7, options) {
5692
- if (this instanceof ReadStream)
5693
- return fs$ReadStream.apply(this, arguments), this;
5694
- else
5695
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
5696
- }
5697
- function ReadStream$open() {
5698
- var that = this;
5699
- open(that.path, that.flags, that.mode, function(err, fd) {
5700
- if (err) {
5701
- if (that.autoClose)
5702
- that.destroy();
5703
- that.emit("error", err);
5704
- } else {
5705
- that.fd = fd;
5706
- that.emit("open", fd);
5707
- that.read();
5708
- }
5709
- });
5710
- }
5711
- function WriteStream(path7, options) {
5712
- if (this instanceof WriteStream)
5713
- return fs$WriteStream.apply(this, arguments), this;
5714
- else
5715
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
5716
- }
5717
- function WriteStream$open() {
5718
- var that = this;
5719
- open(that.path, that.flags, that.mode, function(err, fd) {
5720
- if (err) {
5721
- that.destroy();
5722
- that.emit("error", err);
5723
- } else {
5724
- that.fd = fd;
5725
- that.emit("open", fd);
5726
- }
5727
- });
5728
- }
5729
- function createReadStream(path7, options) {
5730
- return new fs4.ReadStream(path7, options);
5731
- }
5732
- function createWriteStream(path7, options) {
5733
- return new fs4.WriteStream(path7, options);
5734
- }
5735
- var fs$open = fs4.open;
5736
- fs4.open = open;
5737
- function open(path7, flags, mode, cb) {
5738
- if (typeof mode === "function")
5739
- cb = mode, mode = null;
5740
- return go$open(path7, flags, mode, cb);
5741
- function go$open(path8, flags2, mode2, cb2, startTime) {
5742
- return fs$open(path8, flags2, mode2, function(err, fd) {
5743
- if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
5744
- enqueue([go$open, [path8, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
5745
- else {
5746
- if (typeof cb2 === "function")
5747
- cb2.apply(this, arguments);
5748
- }
5749
- });
5750
- }
5751
- }
5752
- return fs4;
5753
- }
5754
- function enqueue(elem) {
5755
- debug4("ENQUEUE", elem[0].name, elem[1]);
5756
- fs3[gracefulQueue].push(elem);
5757
- retry();
5758
- }
5759
- var retryTimer;
5760
- function resetQueue() {
5761
- var now = Date.now();
5762
- for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
5763
- if (fs3[gracefulQueue][i].length > 2) {
5764
- fs3[gracefulQueue][i][3] = now;
5765
- fs3[gracefulQueue][i][4] = now;
5766
- }
5767
- }
5768
- retry();
5769
- }
5770
- function retry() {
5771
- clearTimeout(retryTimer);
5772
- retryTimer = void 0;
5773
- if (fs3[gracefulQueue].length === 0)
5774
- return;
5775
- var elem = fs3[gracefulQueue].shift();
5776
- var fn = elem[0];
5777
- var args = elem[1];
5778
- var err = elem[2];
5779
- var startTime = elem[3];
5780
- var lastTime = elem[4];
5781
- if (startTime === void 0) {
5782
- debug4("RETRY", fn.name, args);
5783
- fn.apply(null, args);
5784
- } else if (Date.now() - startTime >= 6e4) {
5785
- debug4("TIMEOUT", fn.name, args);
5786
- var cb = args.pop();
5787
- if (typeof cb === "function")
5788
- cb.call(null, err);
5789
- } else {
5790
- var sinceAttempt = Date.now() - lastTime;
5791
- var sinceStart = Math.max(lastTime - startTime, 1);
5792
- var desiredDelay = Math.min(sinceStart * 1.2, 100);
5793
- if (sinceAttempt >= desiredDelay) {
5794
- debug4("RETRY", fn.name, args);
5795
- fn.apply(null, args.concat([startTime]));
5796
- } else {
5797
- fs3[gracefulQueue].push(elem);
5798
- }
5799
- }
5800
- if (retryTimer === void 0) {
5801
- retryTimer = setTimeout(retry, 0);
5802
- }
5803
- }
5804
- }
5805
- });
5806
5034
  var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
5807
5035
  "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
5808
5036
  "use strict";
@@ -5823,7 +5051,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
5823
5051
  "use strict";
5824
5052
  var _fs;
5825
5053
  try {
5826
- _fs = require_graceful_fs2();
5054
+ _fs = require_graceful_fs();
5827
5055
  } catch (_) {
5828
5056
  _fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
5829
5057
  }
@@ -11529,7 +10757,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11529
10757
  "../internals/package.json"(exports, module2) {
11530
10758
  module2.exports = {
11531
10759
  name: "@prisma/internals",
11532
- version: "0.0.0",
10760
+ version: "6.1.0-dev.6",
11533
10761
  description: "This package is intended for Prisma's internal use",
11534
10762
  main: "dist/index.js",
11535
10763
  types: "dist/index.d.ts",
@@ -11614,7 +10842,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
11614
10842
  "@prisma/fetch-engine": "workspace:*",
11615
10843
  "@prisma/generator-helper": "workspace:*",
11616
10844
  "@prisma/get-platform": "workspace:*",
11617
- "@prisma/prisma-schema-wasm": "6.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
10845
+ "@prisma/prisma-schema-wasm": "6.1.0-4.d6d59dde3ab34bef0a29a68cf223eeb013b631fc",
11618
10846
  "@prisma/schema-files-loader": "workspace:*",
11619
10847
  arg: "5.0.2",
11620
10848
  prompts: "2.4.2"
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var MigrateDiff_exports = {};
20
20
  __export(MigrateDiff_exports, {
21
- MigrateDiff: () => import_chunk_L3NXOGJI.MigrateDiff
21
+ MigrateDiff: () => import_chunk_AQI5DHMJ.MigrateDiff
22
22
  });
23
23
  module.exports = __toCommonJS(MigrateDiff_exports);
24
- var import_chunk_L3NXOGJI = require("../chunk-L3NXOGJI.js");
24
+ var import_chunk_AQI5DHMJ = require("../chunk-AQI5DHMJ.js");
25
25
  var import_chunk_NKQGJ3AE = require("../chunk-NKQGJ3AE.js");
26
26
  var import_chunk_XRTNIFND = require("../chunk-XRTNIFND.js");
27
27
  var import_chunk_TKAGMA5K = require("../chunk-TKAGMA5K.js");
@@ -33,4 +33,4 @@ var import_chunk_LVFPGUOH = require("../chunk-LVFPGUOH.js");
33
33
  var import_chunk_AAATUOV6 = require("../chunk-AAATUOV6.js");
34
34
  var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
35
35
  var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
36
- (0, import_chunk_L3NXOGJI.init_MigrateDiff)();
36
+ (0, import_chunk_AQI5DHMJ.init_MigrateDiff)();
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ __export(dist_exports, {
29
29
  MigrateCommand: () => import_chunk_CK5VLKFM.MigrateCommand,
30
30
  MigrateDeploy: () => import_chunk_X6GGREJW.MigrateDeploy,
31
31
  MigrateDev: () => import_chunk_ILQWQHQO.MigrateDev,
32
- MigrateDiff: () => import_chunk_L3NXOGJI.MigrateDiff,
32
+ MigrateDiff: () => import_chunk_AQI5DHMJ.MigrateDiff,
33
33
  MigrateReset: () => import_chunk_GUBDW6S7.MigrateReset,
34
34
  MigrateResolve: () => import_chunk_HODZFC64.MigrateResolve,
35
35
  MigrateStatus: () => import_chunk_PFEH6ILG.MigrateStatus,
@@ -69,7 +69,7 @@ var import_chunk_YKUZUAXA = require("./chunk-YKUZUAXA.js");
69
69
  var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
70
70
  var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
71
71
  var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
72
- var import_chunk_L3NXOGJI = require("./chunk-L3NXOGJI.js");
72
+ var import_chunk_AQI5DHMJ = require("./chunk-AQI5DHMJ.js");
73
73
  var import_chunk_NKQGJ3AE = require("./chunk-NKQGJ3AE.js");
74
74
  var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
75
75
  var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
@@ -98,7 +98,7 @@ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
98
98
  (0, import_chunk_CK5VLKFM.init_MigrateCommand)();
99
99
  (0, import_chunk_X6GGREJW.init_MigrateDeploy)();
100
100
  (0, import_chunk_ILQWQHQO.init_MigrateDev)();
101
- (0, import_chunk_L3NXOGJI.init_MigrateDiff)();
101
+ (0, import_chunk_AQI5DHMJ.init_MigrateDiff)();
102
102
  (0, import_chunk_GUBDW6S7.init_MigrateReset)();
103
103
  (0, import_chunk_HODZFC64.init_MigrateResolve)();
104
104
  (0, import_chunk_PFEH6ILG.init_MigrateStatus)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "6.1.0-dev.4",
3
+ "version": "6.1.0-dev.6",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/migrate/src/index.d.ts",
@@ -55,12 +55,12 @@
55
55
  "@prisma/internals": "*"
56
56
  },
57
57
  "dependencies": {
58
- "@prisma/engines-version": "6.1.0-3.025d69d4aa1362e128e0bcc53b5147a416dfebad",
58
+ "@prisma/engines-version": "6.1.0-4.d6d59dde3ab34bef0a29a68cf223eeb013b631fc",
59
59
  "prompts": "2.4.2",
60
- "@prisma/generator-helper": "6.1.0-dev.4",
61
- "@prisma/get-platform": "6.1.0-dev.4",
62
- "@prisma/debug": "6.1.0-dev.4",
63
- "@prisma/internals": "6.1.0-dev.4"
60
+ "@prisma/debug": "6.1.0-dev.6",
61
+ "@prisma/generator-helper": "6.1.0-dev.6",
62
+ "@prisma/get-platform": "6.1.0-dev.6",
63
+ "@prisma/internals": "6.1.0-dev.6"
64
64
  },
65
65
  "files": [
66
66
  "README.md",