@prisma/migrate 7.1.0-dev.2 → 7.1.0-dev.4

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
@@ -68,7 +68,7 @@ var import_config = require("@prisma/config");
68
68
  var import_debug = __toESM(require("@prisma/debug"));
69
69
  var import_engines_version = require("@prisma/engines-version");
70
70
  var import_internals = require("@prisma/internals");
71
- var version = "7.1.0-dev.2";
71
+ var version = "7.1.0-dev.4";
72
72
  process.on("uncaughtException", (e) => {
73
73
  console.log(e);
74
74
  });
@@ -16291,7 +16291,7 @@ var require_es_set_tostringtag = (0, import_chunk_2ESYSVXG.__commonJS)({
16291
16291
  }
16292
16292
  });
16293
16293
  var require_populate = (0, import_chunk_2ESYSVXG.__commonJS)({
16294
- "../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/populate.js"(exports, module2) {
16294
+ "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports, module2) {
16295
16295
  "use strict";
16296
16296
  module2.exports = function(dst, src) {
16297
16297
  Object.keys(src).forEach(function(prop) {
@@ -16302,7 +16302,7 @@ var require_populate = (0, import_chunk_2ESYSVXG.__commonJS)({
16302
16302
  }
16303
16303
  });
16304
16304
  var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16305
- "../../node_modules/.pnpm/form-data@4.0.2/node_modules/form-data/lib/form_data.js"(exports, module2) {
16305
+ "../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports, module2) {
16306
16306
  "use strict";
16307
16307
  var CombinedStream = require_combined_stream();
16308
16308
  var util2 = (0, import_chunk_2ESYSVXG.__require)("util");
@@ -16312,12 +16312,12 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16312
16312
  var parseUrl = (0, import_chunk_2ESYSVXG.__require)("url").parse;
16313
16313
  var fs4 = (0, import_chunk_2ESYSVXG.__require)("fs");
16314
16314
  var Stream = (0, import_chunk_2ESYSVXG.__require)("stream").Stream;
16315
+ var crypto4 = (0, import_chunk_2ESYSVXG.__require)("crypto");
16315
16316
  var mime = require_mime_types();
16316
16317
  var asynckit = require_asynckit();
16317
16318
  var setToStringTag = require_es_set_tostringtag();
16319
+ var hasOwn = require_hasown();
16318
16320
  var populate = require_populate();
16319
- module2.exports = FormData2;
16320
- util2.inherits(FormData2, CombinedStream);
16321
16321
  function FormData2(options) {
16322
16322
  if (!(this instanceof FormData2)) {
16323
16323
  return new FormData2(options);
@@ -16331,16 +16331,17 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16331
16331
  this[option] = options[option];
16332
16332
  }
16333
16333
  }
16334
+ util2.inherits(FormData2, CombinedStream);
16334
16335
  FormData2.LINE_BREAK = "\r\n";
16335
16336
  FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
16336
16337
  FormData2.prototype.append = function(field, value, options) {
16337
16338
  options = options || {};
16338
- if (typeof options == "string") {
16339
+ if (typeof options === "string") {
16339
16340
  options = { filename: options };
16340
16341
  }
16341
16342
  var append = CombinedStream.prototype.append.bind(this);
16342
- if (typeof value == "number") {
16343
- value = "" + value;
16343
+ if (typeof value === "number" || value == null) {
16344
+ value = String(value);
16344
16345
  }
16345
16346
  if (Array.isArray(value)) {
16346
16347
  this._error(new Error("Arrays are not supported."));
@@ -16356,7 +16357,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16356
16357
  FormData2.prototype._trackLength = function(header, value, options) {
16357
16358
  var valueLength = 0;
16358
16359
  if (options.knownLength != null) {
16359
- valueLength += +options.knownLength;
16360
+ valueLength += Number(options.knownLength);
16360
16361
  } else if (Buffer.isBuffer(value)) {
16361
16362
  valueLength = value.length;
16362
16363
  } else if (typeof value === "string") {
@@ -16364,7 +16365,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16364
16365
  }
16365
16366
  this._valueLength += valueLength;
16366
16367
  this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
16367
- if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
16368
+ if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
16368
16369
  return;
16369
16370
  }
16370
16371
  if (!options.knownLength) {
@@ -16372,26 +16373,25 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16372
16373
  }
16373
16374
  };
16374
16375
  FormData2.prototype._lengthRetriever = function(value, callback) {
16375
- if (Object.prototype.hasOwnProperty.call(value, "fd")) {
16376
+ if (hasOwn(value, "fd")) {
16376
16377
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
16377
16378
  callback(null, value.end + 1 - (value.start ? value.start : 0));
16378
16379
  } else {
16379
16380
  fs4.stat(value.path, function(err, stat) {
16380
- var fileSize;
16381
16381
  if (err) {
16382
16382
  callback(err);
16383
16383
  return;
16384
16384
  }
16385
- fileSize = stat.size - (value.start ? value.start : 0);
16385
+ var fileSize = stat.size - (value.start ? value.start : 0);
16386
16386
  callback(null, fileSize);
16387
16387
  });
16388
16388
  }
16389
- } else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
16390
- callback(null, +value.headers["content-length"]);
16391
- } else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
16389
+ } else if (hasOwn(value, "httpVersion")) {
16390
+ callback(null, Number(value.headers["content-length"]));
16391
+ } else if (hasOwn(value, "httpModule")) {
16392
16392
  value.on("response", function(response) {
16393
16393
  value.pause();
16394
- callback(null, +response.headers["content-length"]);
16394
+ callback(null, Number(response.headers["content-length"]));
16395
16395
  });
16396
16396
  value.resume();
16397
16397
  } else {
@@ -16399,7 +16399,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16399
16399
  }
16400
16400
  };
16401
16401
  FormData2.prototype._multiPartHeader = function(field, value, options) {
16402
- if (typeof options.header == "string") {
16402
+ if (typeof options.header === "string") {
16403
16403
  return options.header;
16404
16404
  }
16405
16405
  var contentDisposition = this._getContentDisposition(value, options);
@@ -16411,12 +16411,12 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16411
16411
  // if no content type. allow it to be empty array
16412
16412
  "Content-Type": [].concat(contentType || [])
16413
16413
  };
16414
- if (typeof options.header == "object") {
16414
+ if (typeof options.header === "object") {
16415
16415
  populate(headers, options.header);
16416
16416
  }
16417
16417
  var header;
16418
16418
  for (var prop in headers) {
16419
- if (Object.prototype.hasOwnProperty.call(headers, prop)) {
16419
+ if (hasOwn(headers, prop)) {
16420
16420
  header = headers[prop];
16421
16421
  if (header == null) {
16422
16422
  continue;
@@ -16432,34 +16432,33 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16432
16432
  return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
16433
16433
  };
16434
16434
  FormData2.prototype._getContentDisposition = function(value, options) {
16435
- var filename, contentDisposition;
16435
+ var filename;
16436
16436
  if (typeof options.filepath === "string") {
16437
16437
  filename = path4.normalize(options.filepath).replace(/\\/g, "/");
16438
- } else if (options.filename || value.name || value.path) {
16439
- filename = path4.basename(options.filename || value.name || value.path);
16440
- } else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
16438
+ } else if (options.filename || value && (value.name || value.path)) {
16439
+ filename = path4.basename(options.filename || value && (value.name || value.path));
16440
+ } else if (value && value.readable && hasOwn(value, "httpVersion")) {
16441
16441
  filename = path4.basename(value.client._httpMessage.path || "");
16442
16442
  }
16443
16443
  if (filename) {
16444
- contentDisposition = 'filename="' + filename + '"';
16444
+ return 'filename="' + filename + '"';
16445
16445
  }
16446
- return contentDisposition;
16447
16446
  };
16448
16447
  FormData2.prototype._getContentType = function(value, options) {
16449
16448
  var contentType = options.contentType;
16450
- if (!contentType && value.name) {
16449
+ if (!contentType && value && value.name) {
16451
16450
  contentType = mime.lookup(value.name);
16452
16451
  }
16453
- if (!contentType && value.path) {
16452
+ if (!contentType && value && value.path) {
16454
16453
  contentType = mime.lookup(value.path);
16455
16454
  }
16456
- if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
16455
+ if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
16457
16456
  contentType = value.headers["content-type"];
16458
16457
  }
16459
16458
  if (!contentType && (options.filepath || options.filename)) {
16460
16459
  contentType = mime.lookup(options.filepath || options.filename);
16461
16460
  }
16462
- if (!contentType && typeof value == "object") {
16461
+ if (!contentType && value && typeof value === "object") {
16463
16462
  contentType = FormData2.DEFAULT_CONTENT_TYPE;
16464
16463
  }
16465
16464
  return contentType;
@@ -16483,13 +16482,16 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16483
16482
  "content-type": "multipart/form-data; boundary=" + this.getBoundary()
16484
16483
  };
16485
16484
  for (header in userHeaders) {
16486
- if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
16485
+ if (hasOwn(userHeaders, header)) {
16487
16486
  formHeaders[header.toLowerCase()] = userHeaders[header];
16488
16487
  }
16489
16488
  }
16490
16489
  return formHeaders;
16491
16490
  };
16492
16491
  FormData2.prototype.setBoundary = function(boundary) {
16492
+ if (typeof boundary !== "string") {
16493
+ throw new TypeError("FormData boundary must be a string");
16494
+ }
16493
16495
  this._boundary = boundary;
16494
16496
  };
16495
16497
  FormData2.prototype.getBoundary = function() {
@@ -16516,11 +16518,7 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16516
16518
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
16517
16519
  };
16518
16520
  FormData2.prototype._generateBoundary = function() {
16519
- var boundary = "--------------------------";
16520
- for (var i = 0; i < 24; i++) {
16521
- boundary += Math.floor(Math.random() * 10).toString(16);
16522
- }
16523
- this._boundary = boundary;
16521
+ this._boundary = "--------------------------" + crypto4.randomBytes(12).toString("hex");
16524
16522
  };
16525
16523
  FormData2.prototype.getLengthSync = function() {
16526
16524
  var knownLength = this._overheadLength + this._valueLength;
@@ -16560,8 +16558,10 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16560
16558
  });
16561
16559
  };
16562
16560
  FormData2.prototype.submit = function(params, cb) {
16563
- var request3, options, defaults = { method: "post" };
16564
- if (typeof params == "string") {
16561
+ var request3;
16562
+ var options;
16563
+ var defaults = { method: "post" };
16564
+ if (typeof params === "string") {
16565
16565
  params = parseUrl(params);
16566
16566
  options = populate({
16567
16567
  port: params.port,
@@ -16572,11 +16572,11 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16572
16572
  } else {
16573
16573
  options = populate(params, defaults);
16574
16574
  if (!options.port) {
16575
- options.port = options.protocol == "https:" ? 443 : 80;
16575
+ options.port = options.protocol === "https:" ? 443 : 80;
16576
16576
  }
16577
16577
  }
16578
16578
  options.headers = this.getHeaders(params.headers);
16579
- if (options.protocol == "https:") {
16579
+ if (options.protocol === "https:") {
16580
16580
  request3 = https4.request(options);
16581
16581
  } else {
16582
16582
  request3 = http4.request(options);
@@ -16614,7 +16614,8 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
16614
16614
  FormData2.prototype.toString = function() {
16615
16615
  return "[object FormData]";
16616
16616
  };
16617
- setToStringTag(FormData2, "FormData");
16617
+ setToStringTag(FormData2.prototype, "FormData");
16618
+ module2.exports = FormData2;
16618
16619
  }
16619
16620
  });
16620
16621
  function formDataPolicy() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "7.1.0-dev.2",
3
+ "version": "7.1.0-dev.4",
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",
@@ -44,7 +44,7 @@
44
44
  "tempy": "1.0.1",
45
45
  "ts-pattern": "5.6.2",
46
46
  "typescript": "5.4.5",
47
- "@prisma/adapter-libsql": "7.1.0-dev.2"
47
+ "@prisma/adapter-libsql": "7.1.0-dev.4"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@prisma/internals": "*"
@@ -52,13 +52,13 @@
52
52
  "dependencies": {
53
53
  "@prisma/engines-version": "6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513",
54
54
  "prompts": "2.4.2",
55
- "@prisma/client-generator-registry": "7.1.0-dev.2",
56
- "@prisma/debug": "7.1.0-dev.2",
57
- "@prisma/config": "7.1.0-dev.2",
58
- "@prisma/generator": "7.1.0-dev.2",
59
- "@prisma/get-platform": "7.1.0-dev.2",
60
- "@prisma/driver-adapter-utils": "7.1.0-dev.2",
61
- "@prisma/internals": "7.1.0-dev.2"
55
+ "@prisma/client-generator-registry": "7.1.0-dev.4",
56
+ "@prisma/debug": "7.1.0-dev.4",
57
+ "@prisma/driver-adapter-utils": "7.1.0-dev.4",
58
+ "@prisma/config": "7.1.0-dev.4",
59
+ "@prisma/get-platform": "7.1.0-dev.4",
60
+ "@prisma/generator": "7.1.0-dev.4",
61
+ "@prisma/internals": "7.1.0-dev.4"
62
62
  },
63
63
  "files": [
64
64
  "README.md",