@prisma/migrate 7.2.0-dev.1 → 7.2.0-dev.3

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.2.0-dev.1";
71
+ var version = "7.2.0-dev.3";
72
72
  process.on("uncaughtException", (e) => {
73
73
  console.log(e);
74
74
  });
@@ -29385,7 +29385,7 @@ var require_safe_buffer = (0, import_chunk_2ESYSVXG.__commonJS)({
29385
29385
  }
29386
29386
  });
29387
29387
  var require_data_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29388
- "../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/lib/data-stream.js"(exports, module2) {
29388
+ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/data-stream.js"(exports, module2) {
29389
29389
  "use strict";
29390
29390
  var Buffer2 = require_safe_buffer().Buffer;
29391
29391
  var Stream = (0, import_chunk_2ESYSVXG.__require)("stream");
@@ -29431,38 +29431,6 @@ var require_data_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29431
29431
  module2.exports = DataStream;
29432
29432
  }
29433
29433
  });
29434
- var require_buffer_equal_constant_time = (0, import_chunk_2ESYSVXG.__commonJS)({
29435
- "../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js"(exports, module2) {
29436
- "use strict";
29437
- var Buffer2 = (0, import_chunk_2ESYSVXG.__require)("buffer").Buffer;
29438
- var SlowBuffer = (0, import_chunk_2ESYSVXG.__require)("buffer").SlowBuffer;
29439
- module2.exports = bufferEq;
29440
- function bufferEq(a, b) {
29441
- if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
29442
- return false;
29443
- }
29444
- if (a.length !== b.length) {
29445
- return false;
29446
- }
29447
- var c = 0;
29448
- for (var i = 0; i < a.length; i++) {
29449
- c |= a[i] ^ b[i];
29450
- }
29451
- return c === 0;
29452
- }
29453
- bufferEq.install = function() {
29454
- Buffer2.prototype.equal = SlowBuffer.prototype.equal = function equal(that) {
29455
- return bufferEq(this, that);
29456
- };
29457
- };
29458
- var origBufEqual = Buffer2.prototype.equal;
29459
- var origSlowBufEqual = SlowBuffer.prototype.equal;
29460
- bufferEq.restore = function() {
29461
- Buffer2.prototype.equal = origBufEqual;
29462
- SlowBuffer.prototype.equal = origSlowBufEqual;
29463
- };
29464
- }
29465
- });
29466
29434
  var require_param_bytes_for_alg = (0, import_chunk_2ESYSVXG.__commonJS)({
29467
29435
  "../../node_modules/.pnpm/ecdsa-sig-formatter@1.0.11/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js"(exports, module2) {
29468
29436
  "use strict";
@@ -29623,10 +29591,41 @@ var require_ecdsa_sig_formatter = (0, import_chunk_2ESYSVXG.__commonJS)({
29623
29591
  };
29624
29592
  }
29625
29593
  });
29594
+ var require_buffer_equal_constant_time = (0, import_chunk_2ESYSVXG.__commonJS)({
29595
+ "../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js"(exports, module2) {
29596
+ "use strict";
29597
+ var Buffer2 = (0, import_chunk_2ESYSVXG.__require)("buffer").Buffer;
29598
+ var SlowBuffer = (0, import_chunk_2ESYSVXG.__require)("buffer").SlowBuffer;
29599
+ module2.exports = bufferEq;
29600
+ function bufferEq(a, b) {
29601
+ if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
29602
+ return false;
29603
+ }
29604
+ if (a.length !== b.length) {
29605
+ return false;
29606
+ }
29607
+ var c = 0;
29608
+ for (var i = 0; i < a.length; i++) {
29609
+ c |= a[i] ^ b[i];
29610
+ }
29611
+ return c === 0;
29612
+ }
29613
+ bufferEq.install = function() {
29614
+ Buffer2.prototype.equal = SlowBuffer.prototype.equal = function equal(that) {
29615
+ return bufferEq(this, that);
29616
+ };
29617
+ };
29618
+ var origBufEqual = Buffer2.prototype.equal;
29619
+ var origSlowBufEqual = SlowBuffer.prototype.equal;
29620
+ bufferEq.restore = function() {
29621
+ Buffer2.prototype.equal = origBufEqual;
29622
+ SlowBuffer.prototype.equal = origSlowBufEqual;
29623
+ };
29624
+ }
29625
+ });
29626
29626
  var require_jwa = (0, import_chunk_2ESYSVXG.__commonJS)({
29627
- "../../node_modules/.pnpm/jwa@1.4.1/node_modules/jwa/index.js"(exports, module2) {
29627
+ "../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js"(exports, module2) {
29628
29628
  "use strict";
29629
- var bufferEqual = require_buffer_equal_constant_time();
29630
29629
  var Buffer2 = require_safe_buffer().Buffer;
29631
29630
  var crypto4 = (0, import_chunk_2ESYSVXG.__require)("crypto");
29632
29631
  var formatEcdsa = require_ecdsa_sig_formatter();
@@ -29730,10 +29729,22 @@ var require_jwa = (0, import_chunk_2ESYSVXG.__commonJS)({
29730
29729
  return fromBase64(sig);
29731
29730
  };
29732
29731
  }
29732
+ var bufferEqual;
29733
+ var timingSafeEqual = "timingSafeEqual" in crypto4 ? function timingSafeEqual2(a, b) {
29734
+ if (a.byteLength !== b.byteLength) {
29735
+ return false;
29736
+ }
29737
+ return crypto4.timingSafeEqual(a, b);
29738
+ } : function timingSafeEqual2(a, b) {
29739
+ if (!bufferEqual) {
29740
+ bufferEqual = require_buffer_equal_constant_time();
29741
+ }
29742
+ return bufferEqual(a, b);
29743
+ };
29733
29744
  function createHmacVerifier(bits) {
29734
29745
  return function verify(thing, signature, secret) {
29735
29746
  var computedSig = createHmacSigner(bits)(thing, secret);
29736
- return bufferEqual(Buffer2.from(signature), Buffer2.from(computedSig));
29747
+ return timingSafeEqual(Buffer2.from(signature), Buffer2.from(computedSig));
29737
29748
  };
29738
29749
  }
29739
29750
  function createKeySigner(bits) {
@@ -29823,7 +29834,7 @@ var require_jwa = (0, import_chunk_2ESYSVXG.__commonJS)({
29823
29834
  es: createECDSAVerifer,
29824
29835
  none: createNoneVerifier
29825
29836
  };
29826
- var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
29837
+ var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);
29827
29838
  if (!match)
29828
29839
  throw typeError(MSG_INVALID_ALGORITHM, algorithm);
29829
29840
  var algo = (match[1] || match[3]).toLowerCase();
@@ -29836,7 +29847,7 @@ var require_jwa = (0, import_chunk_2ESYSVXG.__commonJS)({
29836
29847
  }
29837
29848
  });
29838
29849
  var require_tostring = (0, import_chunk_2ESYSVXG.__commonJS)({
29839
- "../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/lib/tostring.js"(exports, module2) {
29850
+ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/tostring.js"(exports, module2) {
29840
29851
  "use strict";
29841
29852
  var Buffer2 = (0, import_chunk_2ESYSVXG.__require)("buffer").Buffer;
29842
29853
  module2.exports = function toString(obj) {
@@ -29849,7 +29860,7 @@ var require_tostring = (0, import_chunk_2ESYSVXG.__commonJS)({
29849
29860
  }
29850
29861
  });
29851
29862
  var require_sign_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29852
- "../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/lib/sign-stream.js"(exports, module2) {
29863
+ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/sign-stream.js"(exports, module2) {
29853
29864
  "use strict";
29854
29865
  var Buffer2 = require_safe_buffer().Buffer;
29855
29866
  var DataStream = require_data_stream();
@@ -29877,7 +29888,12 @@ var require_sign_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29877
29888
  return util2.format("%s.%s", securedInput, signature);
29878
29889
  }
29879
29890
  function SignStream(opts) {
29880
- var secret = opts.secret || opts.privateKey || opts.key;
29891
+ var secret = opts.secret;
29892
+ secret = secret == null ? opts.privateKey : secret;
29893
+ secret = secret == null ? opts.key : secret;
29894
+ if (/^hs/i.test(opts.header.alg) === true && secret == null) {
29895
+ throw new TypeError("secret must be a string or buffer or a KeyObject");
29896
+ }
29881
29897
  var secretStream = new DataStream(secret);
29882
29898
  this.readable = true;
29883
29899
  this.header = opts.header;
@@ -29918,7 +29934,7 @@ var require_sign_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29918
29934
  }
29919
29935
  });
29920
29936
  var require_verify_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29921
- "../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/lib/verify-stream.js"(exports, module2) {
29937
+ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/verify-stream.js"(exports, module2) {
29922
29938
  "use strict";
29923
29939
  var Buffer2 = require_safe_buffer().Buffer;
29924
29940
  var DataStream = require_data_stream();
@@ -29988,7 +30004,12 @@ var require_verify_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
29988
30004
  }
29989
30005
  function VerifyStream(opts) {
29990
30006
  opts = opts || {};
29991
- var secretOrKey = opts.secret || opts.publicKey || opts.key;
30007
+ var secretOrKey = opts.secret;
30008
+ secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey;
30009
+ secretOrKey = secretOrKey == null ? opts.key : secretOrKey;
30010
+ if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) {
30011
+ throw new TypeError("secret must be a string or buffer or a KeyObject");
30012
+ }
29992
30013
  var secretStream = new DataStream(secretOrKey);
29993
30014
  this.readable = true;
29994
30015
  this.algorithm = opts.algorithm;
@@ -30027,7 +30048,7 @@ var require_verify_stream = (0, import_chunk_2ESYSVXG.__commonJS)({
30027
30048
  }
30028
30049
  });
30029
30050
  var require_jws = (0, import_chunk_2ESYSVXG.__commonJS)({
30030
- "../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/index.js"(exports) {
30051
+ "../../node_modules/.pnpm/jws@4.0.1/node_modules/jws/index.js"(exports) {
30031
30052
  "use strict";
30032
30053
  var SignStream = require_sign_stream();
30033
30054
  var VerifyStream = require_verify_stream();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "7.2.0-dev.1",
3
+ "version": "7.2.0-dev.3",
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,21 +44,21 @@
44
44
  "tempy": "1.0.1",
45
45
  "ts-pattern": "5.6.2",
46
46
  "typescript": "5.4.5",
47
- "@prisma/adapter-libsql": "7.2.0-dev.1"
47
+ "@prisma/adapter-libsql": "7.2.0-dev.3"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@prisma/internals": "*"
51
51
  },
52
52
  "dependencies": {
53
- "@prisma/engines-version": "7.1.0-6.ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",
53
+ "@prisma/engines-version": "7.2.0-1.3f298657b368429158ee75de33d3dc7ca4b307a5",
54
54
  "prompts": "2.4.2",
55
- "@prisma/client-generator-registry": "7.2.0-dev.1",
56
- "@prisma/config": "7.2.0-dev.1",
57
- "@prisma/driver-adapter-utils": "7.2.0-dev.1",
58
- "@prisma/generator": "7.2.0-dev.1",
59
- "@prisma/get-platform": "7.2.0-dev.1",
60
- "@prisma/internals": "7.2.0-dev.1",
61
- "@prisma/debug": "7.2.0-dev.1"
55
+ "@prisma/client-generator-registry": "7.2.0-dev.3",
56
+ "@prisma/config": "7.2.0-dev.3",
57
+ "@prisma/driver-adapter-utils": "7.2.0-dev.3",
58
+ "@prisma/debug": "7.2.0-dev.3",
59
+ "@prisma/get-platform": "7.2.0-dev.3",
60
+ "@prisma/generator": "7.2.0-dev.3",
61
+ "@prisma/internals": "7.2.0-dev.3"
62
62
  },
63
63
  "files": [
64
64
  "README.md",