@prisma/migrate 5.17.0-dev.9 → 5.17.0-integration-es2021.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +3 -3
- package/dist/{chunk-MD7G42VG.js → chunk-3BUUXV4H.js} +776 -4
- package/dist/{chunk-CFODQL5W.js → chunk-JT7VAATB.js} +4 -4
- package/dist/commands/MigrateDiff.js +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/setupMSSQL.js +1 -1
- package/dist/utils/setupMongo.js +37 -37
- package/package.json +6 -6
package/dist/bin.js
CHANGED
|
@@ -60,7 +60,7 @@ var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.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
|
|
63
|
+
var import_chunk_JT7VAATB = require("./chunk-JT7VAATB.js");
|
|
64
64
|
var import_chunk_NNDVFXHL = require("./chunk-NNDVFXHL.js");
|
|
65
65
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
66
66
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
|
@@ -94,7 +94,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
94
94
|
(0, import_chunk_CK5VLKFM.init_MigrateCommand)();
|
|
95
95
|
(0, import_chunk_URVCS3KZ.init_MigrateDeploy)();
|
|
96
96
|
(0, import_chunk_N3MKZNHF.init_MigrateDev)();
|
|
97
|
-
(0,
|
|
97
|
+
(0, import_chunk_JT7VAATB.init_MigrateDiff)();
|
|
98
98
|
(0, import_chunk_SRQV752O.init_MigrateReset)();
|
|
99
99
|
(0, import_chunk_YOJLWWHS.init_MigrateResolve)();
|
|
100
100
|
(0, import_chunk_EXUE5VNG.init_MigrateStatus)();
|
|
@@ -118,7 +118,7 @@ var require_bin = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
118
118
|
resolve: import_chunk_YOJLWWHS.MigrateResolve.new(),
|
|
119
119
|
reset: import_chunk_SRQV752O.MigrateReset.new(),
|
|
120
120
|
deploy: import_chunk_URVCS3KZ.MigrateDeploy.new(),
|
|
121
|
-
diff:
|
|
121
|
+
diff: import_chunk_JT7VAATB.MigrateDiff.new()
|
|
122
122
|
}),
|
|
123
123
|
db: import_chunk_NJUAN6V2.DbCommand.new({
|
|
124
124
|
execute: import_chunk_ABP7SDTZ.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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_3BUUXV4H_exports = {};
|
|
30
|
+
__export(chunk_3BUUXV4H_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_3BUUXV4H_exports);
|
|
35
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");
|
|
@@ -5028,6 +5028,778 @@ 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
|
+
});
|
|
5031
5803
|
var require_utils2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5032
5804
|
"../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
5033
5805
|
"use strict";
|
|
@@ -5048,7 +5820,7 @@ var require_jsonfile = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5048
5820
|
"use strict";
|
|
5049
5821
|
var _fs;
|
|
5050
5822
|
try {
|
|
5051
|
-
_fs =
|
|
5823
|
+
_fs = require_graceful_fs2();
|
|
5052
5824
|
} catch (_) {
|
|
5053
5825
|
_fs = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
5054
5826
|
}
|
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_JT7VAATB_exports = {};
|
|
30
|
+
__export(chunk_JT7VAATB_exports, {
|
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_JT7VAATB_exports);
|
|
35
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");
|
|
@@ -11109,7 +11109,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
11109
11109
|
"../internals/package.json"(exports, module2) {
|
|
11110
11110
|
module2.exports = {
|
|
11111
11111
|
name: "@prisma/internals",
|
|
11112
|
-
version: "5.17.0-
|
|
11112
|
+
version: "5.17.0-integration-es2021.2",
|
|
11113
11113
|
description: "This package is intended for Prisma's internal use",
|
|
11114
11114
|
main: "dist/index.js",
|
|
11115
11115
|
types: "dist/index.d.ts",
|
|
@@ -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: () =>
|
|
21
|
+
MigrateDiff: () => import_chunk_JT7VAATB.MigrateDiff
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(MigrateDiff_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_JT7VAATB = require("../chunk-JT7VAATB.js");
|
|
25
25
|
var import_chunk_NNDVFXHL = require("../chunk-NNDVFXHL.js");
|
|
26
26
|
var import_chunk_XRTNIFND = require("../chunk-XRTNIFND.js");
|
|
27
27
|
var import_chunk_TKAGMA5K = require("../chunk-TKAGMA5K.js");
|
|
@@ -34,4 +34,4 @@ var import_chunk_O3QZYLDQ = require("../chunk-O3QZYLDQ.js");
|
|
|
34
34
|
var import_chunk_AAATUOV6 = require("../chunk-AAATUOV6.js");
|
|
35
35
|
var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
|
|
36
36
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
|
37
|
-
(0,
|
|
37
|
+
(0, import_chunk_JT7VAATB.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_URVCS3KZ.MigrateDeploy,
|
|
31
31
|
MigrateDev: () => import_chunk_N3MKZNHF.MigrateDev,
|
|
32
|
-
MigrateDiff: () =>
|
|
32
|
+
MigrateDiff: () => import_chunk_JT7VAATB.MigrateDiff,
|
|
33
33
|
MigrateReset: () => import_chunk_SRQV752O.MigrateReset,
|
|
34
34
|
MigrateResolve: () => import_chunk_YOJLWWHS.MigrateResolve,
|
|
35
35
|
MigrateStatus: () => import_chunk_EXUE5VNG.MigrateStatus,
|
|
@@ -67,7 +67,7 @@ var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
|
|
67
67
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
|
68
68
|
var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
|
|
69
69
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
|
70
|
-
var
|
|
70
|
+
var import_chunk_JT7VAATB = require("./chunk-JT7VAATB.js");
|
|
71
71
|
var import_chunk_NNDVFXHL = require("./chunk-NNDVFXHL.js");
|
|
72
72
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
|
73
73
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
|
@@ -97,7 +97,7 @@ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
|
97
97
|
(0, import_chunk_CK5VLKFM.init_MigrateCommand)();
|
|
98
98
|
(0, import_chunk_URVCS3KZ.init_MigrateDeploy)();
|
|
99
99
|
(0, import_chunk_N3MKZNHF.init_MigrateDev)();
|
|
100
|
-
(0,
|
|
100
|
+
(0, import_chunk_JT7VAATB.init_MigrateDiff)();
|
|
101
101
|
(0, import_chunk_SRQV752O.init_MigrateReset)();
|
|
102
102
|
(0, import_chunk_YOJLWWHS.init_MigrateResolve)();
|
|
103
103
|
(0, import_chunk_EXUE5VNG.init_MigrateStatus)();
|
package/dist/utils/setupMSSQL.js
CHANGED
|
@@ -63707,7 +63707,7 @@ var require_connection = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
63707
63707
|
const payloadStream = _stream.Readable.from(payload);
|
|
63708
63708
|
payloadStream.once("error", (error) => {
|
|
63709
63709
|
payloadStream.unpipe(message);
|
|
63710
|
-
request3.error
|
|
63710
|
+
request3.error ??= error;
|
|
63711
63711
|
message.ignore = true;
|
|
63712
63712
|
message.end();
|
|
63713
63713
|
});
|
package/dist/utils/setupMongo.js
CHANGED
|
@@ -349,14 +349,14 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
349
349
|
var TextDecoderNonFatal;
|
|
350
350
|
function parseUtf8(buffer2, start, end, fatal) {
|
|
351
351
|
if (fatal) {
|
|
352
|
-
TextDecoderFatal
|
|
352
|
+
TextDecoderFatal ??= new TextDecoder("utf8", { fatal: true });
|
|
353
353
|
try {
|
|
354
354
|
return TextDecoderFatal.decode(buffer2.subarray(start, end));
|
|
355
355
|
} catch (cause) {
|
|
356
356
|
throw new BSONError("Invalid UTF-8 string in BSON document", { cause });
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
TextDecoderNonFatal
|
|
359
|
+
TextDecoderNonFatal ??= new TextDecoder("utf8", { fatal: false });
|
|
360
360
|
return TextDecoderNonFatal.decode(buffer2.subarray(start, end));
|
|
361
361
|
}
|
|
362
362
|
function tryReadBasicLatin(uint8array, start, end) {
|
|
@@ -739,7 +739,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
739
739
|
return type === BSON_BINARY_SUBTYPE_UUID_NEW ? new UUID(data) : new _Binary(data, type);
|
|
740
740
|
}
|
|
741
741
|
inspect(depth, options, inspect) {
|
|
742
|
-
inspect
|
|
742
|
+
inspect ??= defaultInspect;
|
|
743
743
|
const base64 = ByteUtils.toBase64(this.buffer.subarray(0, this.position));
|
|
744
744
|
const base64Arg = inspect(base64, options);
|
|
745
745
|
const subTypeArg = inspect(this.sub_type, options);
|
|
@@ -856,7 +856,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
856
856
|
return UUID_WITHOUT_DASHES.test(representation) || UUID_WITH_DASHES.test(representation);
|
|
857
857
|
}
|
|
858
858
|
inspect(depth, options, inspect) {
|
|
859
|
-
inspect
|
|
859
|
+
inspect ??= defaultInspect;
|
|
860
860
|
return `new UUID(${inspect(this.toHexString(), options)})`;
|
|
861
861
|
}
|
|
862
862
|
};
|
|
@@ -885,7 +885,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
885
885
|
return new _Code(doc.$code, doc.$scope);
|
|
886
886
|
}
|
|
887
887
|
inspect(depth, options, inspect) {
|
|
888
|
-
inspect
|
|
888
|
+
inspect ??= defaultInspect;
|
|
889
889
|
let parametersString = inspect(this.code, options);
|
|
890
890
|
const multiLineFn = parametersString.includes("\n");
|
|
891
891
|
if (this.scope != null) {
|
|
@@ -951,7 +951,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
951
951
|
return new _DBRef(doc.$ref, doc.$id, doc.$db, copy);
|
|
952
952
|
}
|
|
953
953
|
inspect(depth, options, inspect) {
|
|
954
|
-
inspect
|
|
954
|
+
inspect ??= defaultInspect;
|
|
955
955
|
const args = [
|
|
956
956
|
inspect(this.namespace, options),
|
|
957
957
|
inspect(this.oid, options),
|
|
@@ -1103,7 +1103,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1103
1103
|
} else {
|
|
1104
1104
|
unsigned = !!unsignedOrRadix;
|
|
1105
1105
|
}
|
|
1106
|
-
radix
|
|
1106
|
+
radix ??= 10;
|
|
1107
1107
|
if (str.trim() !== str) {
|
|
1108
1108
|
throw new BSONError(`Input: '${str}' contains leading and/or trailing whitespace`);
|
|
1109
1109
|
}
|
|
@@ -1124,7 +1124,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1124
1124
|
} else {
|
|
1125
1125
|
unsigned = !!unsignedOrRadix;
|
|
1126
1126
|
}
|
|
1127
|
-
radix
|
|
1127
|
+
radix ??= 10;
|
|
1128
1128
|
if (str === "NaN" && radix < 24) {
|
|
1129
1129
|
return _Long.ZERO;
|
|
1130
1130
|
} else if ((str === "Infinity" || str === "+Infinity" || str === "-Infinity") && radix < 35) {
|
|
@@ -1615,7 +1615,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1615
1615
|
return longResult;
|
|
1616
1616
|
}
|
|
1617
1617
|
inspect(depth, options, inspect) {
|
|
1618
|
-
inspect
|
|
1618
|
+
inspect ??= defaultInspect;
|
|
1619
1619
|
const longVal = inspect(this.toString(), options);
|
|
1620
1620
|
const unsignedVal = this.unsigned ? `, ${inspect(this.unsigned, options)}` : "";
|
|
1621
1621
|
return `new Long(${longVal}${unsignedVal})`;
|
|
@@ -2188,7 +2188,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2188
2188
|
return _Decimal128.fromString(doc.$numberDecimal);
|
|
2189
2189
|
}
|
|
2190
2190
|
inspect(depth, options, inspect) {
|
|
2191
|
-
inspect
|
|
2191
|
+
inspect ??= defaultInspect;
|
|
2192
2192
|
const d128string = inspect(this.toString(), options);
|
|
2193
2193
|
return `new Decimal128(${d128string})`;
|
|
2194
2194
|
}
|
|
@@ -2251,7 +2251,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2251
2251
|
return options && options.relaxed ? doubleValue : new _Double(doubleValue);
|
|
2252
2252
|
}
|
|
2253
2253
|
inspect(depth, options, inspect) {
|
|
2254
|
-
inspect
|
|
2254
|
+
inspect ??= defaultInspect;
|
|
2255
2255
|
return `new Double(${inspect(this.value, options)})`;
|
|
2256
2256
|
}
|
|
2257
2257
|
};
|
|
@@ -2298,7 +2298,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2298
2298
|
return options && options.relaxed ? parseInt(doc.$numberInt, 10) : new _Int32(doc.$numberInt);
|
|
2299
2299
|
}
|
|
2300
2300
|
inspect(depth, options, inspect) {
|
|
2301
|
-
inspect
|
|
2301
|
+
inspect ??= defaultInspect;
|
|
2302
2302
|
return `new Int32(${inspect(this.value, options)})`;
|
|
2303
2303
|
}
|
|
2304
2304
|
};
|
|
@@ -2612,7 +2612,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2612
2612
|
return new _ObjectId(doc.$oid);
|
|
2613
2613
|
}
|
|
2614
2614
|
inspect(depth, options, inspect) {
|
|
2615
|
-
inspect
|
|
2615
|
+
inspect ??= defaultInspect;
|
|
2616
2616
|
return `new ObjectId(${inspect(this.toHexString(), options)})`;
|
|
2617
2617
|
}
|
|
2618
2618
|
};
|
|
@@ -2759,7 +2759,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2759
2759
|
}
|
|
2760
2760
|
inspect(depth, options, inspect) {
|
|
2761
2761
|
const stylize = getStylizeFunction(options) ?? ((v) => v);
|
|
2762
|
-
inspect
|
|
2762
|
+
inspect ??= defaultInspect;
|
|
2763
2763
|
const pattern = stylize(inspect(this.pattern), "regexp");
|
|
2764
2764
|
const flags = stylize(inspect(this.options), "regexp");
|
|
2765
2765
|
return `new BSONRegExp(${pattern}, ${flags})`;
|
|
@@ -2789,7 +2789,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2789
2789
|
return new _BSONSymbol(doc.$symbol);
|
|
2790
2790
|
}
|
|
2791
2791
|
inspect(depth, options, inspect) {
|
|
2792
|
-
inspect
|
|
2792
|
+
inspect ??= defaultInspect;
|
|
2793
2793
|
return `new BSONSymbol(${inspect(this.value, options)})`;
|
|
2794
2794
|
}
|
|
2795
2795
|
};
|
|
@@ -2857,7 +2857,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2857
2857
|
return new _Timestamp({ t, i });
|
|
2858
2858
|
}
|
|
2859
2859
|
inspect(depth, options, inspect) {
|
|
2860
|
-
inspect
|
|
2860
|
+
inspect ??= defaultInspect;
|
|
2861
2861
|
const t = inspect(this.high >>> 0, options);
|
|
2862
2862
|
const i = inspect(this.low >>> 0, options);
|
|
2863
2863
|
return `new Timestamp({ t: ${t}, i: ${i} })`;
|
|
@@ -4072,7 +4072,7 @@ var require_bson = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4072
4072
|
return nullTerminatorOffset;
|
|
4073
4073
|
}
|
|
4074
4074
|
function parseToElements(bytes, startOffset = 0) {
|
|
4075
|
-
startOffset
|
|
4075
|
+
startOffset ??= 0;
|
|
4076
4076
|
if (bytes.length < 5) {
|
|
4077
4077
|
throw new BSONOffsetError(`Input must be at least 5 bytes, got ${bytes.length} bytes`, startOffset);
|
|
4078
4078
|
}
|
|
@@ -9020,9 +9020,9 @@ var require_responses = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9020
9020
|
/** Indicates this document is a server error */
|
|
9021
9021
|
get isError() {
|
|
9022
9022
|
let isError = this.ok === 0;
|
|
9023
|
-
isError
|
|
9024
|
-
isError
|
|
9025
|
-
isError
|
|
9023
|
+
isError ||= this.has("errmsg");
|
|
9024
|
+
isError ||= this.has("code");
|
|
9025
|
+
isError ||= this.has("$err");
|
|
9026
9026
|
return isError;
|
|
9027
9027
|
}
|
|
9028
9028
|
/**
|
|
@@ -12980,7 +12980,7 @@ var require_find_and_modify = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
12980
12980
|
new: false,
|
|
12981
12981
|
upsert: false
|
|
12982
12982
|
};
|
|
12983
|
-
options.includeResultMetadata
|
|
12983
|
+
options.includeResultMetadata ??= false;
|
|
12984
12984
|
const sort = (0, sort_1.formatSort)(options.sort);
|
|
12985
12985
|
if (sort) {
|
|
12986
12986
|
this.cmdBase.sort = sort;
|
|
@@ -21757,7 +21757,7 @@ var require_client_metadata = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
21757
21757
|
var dockerPromise;
|
|
21758
21758
|
async function getContainerMetadata() {
|
|
21759
21759
|
const containerMetadata = {};
|
|
21760
|
-
dockerPromise
|
|
21760
|
+
dockerPromise ??= (0, utils_1.fileIsAccessible)("/.dockerenv");
|
|
21761
21761
|
const isDocker = await dockerPromise;
|
|
21762
21762
|
const { KUBERNETES_SERVICE_HOST = "" } = process2.env;
|
|
21763
21763
|
const isKubernetes = KUBERNETES_SERVICE_HOST.length > 0 ? true : false;
|
|
@@ -22263,7 +22263,7 @@ var require_compression = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
22263
22263
|
const zlibOptions = {};
|
|
22264
22264
|
switch (options.agreedCompressor) {
|
|
22265
22265
|
case "snappy": {
|
|
22266
|
-
Snappy
|
|
22266
|
+
Snappy ??= loadSnappy();
|
|
22267
22267
|
return await Snappy.compress(dataToBeCompressed);
|
|
22268
22268
|
}
|
|
22269
22269
|
case "zstd": {
|
|
@@ -22291,7 +22291,7 @@ var require_compression = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
22291
22291
|
}
|
|
22292
22292
|
switch (compressorID) {
|
|
22293
22293
|
case exports.Compressor.snappy: {
|
|
22294
|
-
Snappy
|
|
22294
|
+
Snappy ??= loadSnappy();
|
|
22295
22295
|
return await Snappy.uncompress(compressedData, { asBuffer: true });
|
|
22296
22296
|
}
|
|
22297
22297
|
case exports.Compressor.zstd: {
|
|
@@ -22623,7 +22623,7 @@ var require_aws_temporary_credentials = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
22623
22623
|
var AWS_EC2_PATH = "/latest/meta-data/iam/security-credentials";
|
|
22624
22624
|
var AWSTemporaryCredentialProvider = class _AWSTemporaryCredentialProvider {
|
|
22625
22625
|
static get awsSDK() {
|
|
22626
|
-
_AWSTemporaryCredentialProvider._awsSDK
|
|
22626
|
+
_AWSTemporaryCredentialProvider._awsSDK ??= (0, deps_1.getAwsCredentialProvider)();
|
|
22627
22627
|
return _AWSTemporaryCredentialProvider._awsSDK;
|
|
22628
22628
|
}
|
|
22629
22629
|
static get isAWSSDKInstalled() {
|
|
@@ -23103,7 +23103,7 @@ var require_state_machine = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
23103
23103
|
});
|
|
23104
23104
|
await willConnect;
|
|
23105
23105
|
try {
|
|
23106
|
-
socks
|
|
23106
|
+
socks ??= loadSocks();
|
|
23107
23107
|
options.socket = (await socks.SocksClient.createConnection({
|
|
23108
23108
|
existing_socket: netSocket,
|
|
23109
23109
|
command: "connect",
|
|
@@ -24199,17 +24199,17 @@ var require_connection = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
24199
24199
|
this.emit(_Connection.CLUSTER_TIME_RECEIVED, document.$clusterTime);
|
|
24200
24200
|
}
|
|
24201
24201
|
if (document.has("writeConcernError")) {
|
|
24202
|
-
object
|
|
24202
|
+
object ??= document.toObject(bsonOptions);
|
|
24203
24203
|
throw new error_1.MongoWriteConcernError(object.writeConcernError, object);
|
|
24204
24204
|
}
|
|
24205
24205
|
if (document.isError) {
|
|
24206
|
-
throw new error_1.MongoServerError(object
|
|
24206
|
+
throw new error_1.MongoServerError(object ??= document.toObject(bsonOptions));
|
|
24207
24207
|
}
|
|
24208
24208
|
if (this.shouldEmitAndLogCommand) {
|
|
24209
|
-
this.emitAndLogCommand(this.monitorCommands, _Connection.COMMAND_SUCCEEDED, message.databaseName, this.established, new command_monitoring_events_1.CommandSucceededEvent(this, message, options.noResponse ? void 0 : object
|
|
24209
|
+
this.emitAndLogCommand(this.monitorCommands, _Connection.COMMAND_SUCCEEDED, message.databaseName, this.established, new command_monitoring_events_1.CommandSucceededEvent(this, message, options.noResponse ? void 0 : object ??= document.toObject(bsonOptions), started, this.description.serverConnectionId));
|
|
24210
24210
|
}
|
|
24211
24211
|
if (responseType == null) {
|
|
24212
|
-
yield object
|
|
24212
|
+
yield object ??= document.toObject(bsonOptions);
|
|
24213
24213
|
} else {
|
|
24214
24214
|
yield document;
|
|
24215
24215
|
}
|
|
@@ -24218,7 +24218,7 @@ var require_connection = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
24218
24218
|
} catch (error2) {
|
|
24219
24219
|
if (this.shouldEmitAndLogCommand) {
|
|
24220
24220
|
if (error2.name === "MongoWriteConcernError") {
|
|
24221
|
-
this.emitAndLogCommand(this.monitorCommands, _Connection.COMMAND_SUCCEEDED, message.databaseName, this.established, new command_monitoring_events_1.CommandSucceededEvent(this, message, options.noResponse ? void 0 : object
|
|
24221
|
+
this.emitAndLogCommand(this.monitorCommands, _Connection.COMMAND_SUCCEEDED, message.databaseName, this.established, new command_monitoring_events_1.CommandSucceededEvent(this, message, options.noResponse ? void 0 : object ??= document?.toObject(bsonOptions), started, this.description.serverConnectionId));
|
|
24222
24222
|
} else {
|
|
24223
24223
|
this.emitAndLogCommand(this.monitorCommands, _Connection.COMMAND_FAILED, message.databaseName, this.established, new command_monitoring_events_1.CommandFailedEvent(this, message, error2, started, this.description.serverConnectionId));
|
|
24224
24224
|
}
|
|
@@ -24642,7 +24642,7 @@ var require_connect = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
24642
24642
|
if (typeof destination.host !== "string" || typeof destination.port !== "number") {
|
|
24643
24643
|
throw new error_1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts");
|
|
24644
24644
|
}
|
|
24645
|
-
socks
|
|
24645
|
+
socks ??= loadSocks();
|
|
24646
24646
|
try {
|
|
24647
24647
|
const { socket } = await socks.SocksClient.createConnection({
|
|
24648
24648
|
existing_socket: rawSocket,
|
|
@@ -29088,7 +29088,7 @@ var require_topology = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
29088
29088
|
}
|
|
29089
29089
|
/** Initiate server connect */
|
|
29090
29090
|
async connect(options) {
|
|
29091
|
-
this.connectionLock
|
|
29091
|
+
this.connectionLock ??= this._connect(options);
|
|
29092
29092
|
try {
|
|
29093
29093
|
await this.connectionLock;
|
|
29094
29094
|
return this;
|
|
@@ -29662,16 +29662,16 @@ var require_mongo_client = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
29662
29662
|
const options = this[kOptions];
|
|
29663
29663
|
if (options.tls) {
|
|
29664
29664
|
if (typeof options.tlsCAFile === "string") {
|
|
29665
|
-
options.ca
|
|
29665
|
+
options.ca ??= await fs_1.promises.readFile(options.tlsCAFile);
|
|
29666
29666
|
}
|
|
29667
29667
|
if (typeof options.tlsCRLFile === "string") {
|
|
29668
|
-
options.crl
|
|
29668
|
+
options.crl ??= await fs_1.promises.readFile(options.tlsCRLFile);
|
|
29669
29669
|
}
|
|
29670
29670
|
if (typeof options.tlsCertificateKeyFile === "string") {
|
|
29671
29671
|
if (!options.key || !options.cert) {
|
|
29672
29672
|
const contents = await fs_1.promises.readFile(options.tlsCertificateKeyFile);
|
|
29673
|
-
options.key
|
|
29674
|
-
options.cert
|
|
29673
|
+
options.key ??= contents;
|
|
29674
|
+
options.cert ??= contents;
|
|
29675
29675
|
}
|
|
29676
29676
|
}
|
|
29677
29677
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/migrate",
|
|
3
|
-
"version": "5.17.0-
|
|
3
|
+
"version": "5.17.0-integration-es2021.2",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"tempy": "1.0.1",
|
|
50
50
|
"ts-pattern": "5.2.0",
|
|
51
51
|
"typescript": "5.4.5",
|
|
52
|
-
"wrangler": "3.
|
|
52
|
+
"wrangler": "3.61.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@prisma/generator-helper": "*",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@prisma/engines-version": "5.16.0-24.34ace0eb2704183d2c05b60b52fba5c43c13f303",
|
|
60
60
|
"prompts": "2.4.2",
|
|
61
|
-
"@prisma/
|
|
62
|
-
"@prisma/
|
|
63
|
-
"@prisma/
|
|
64
|
-
"@prisma/
|
|
61
|
+
"@prisma/generator-helper": "5.17.0-integration-es2021.2",
|
|
62
|
+
"@prisma/internals": "5.17.0-integration-es2021.2",
|
|
63
|
+
"@prisma/debug": "5.17.0-integration-es2021.2",
|
|
64
|
+
"@prisma/get-platform": "5.17.0-integration-es2021.2"
|
|
65
65
|
},
|
|
66
66
|
"files": [
|
|
67
67
|
"README.md",
|