@prisma/internals 6.13.0-dev.2 → 6.13.0-dev.21

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.
Files changed (54) hide show
  1. package/dist/{chunk-IGE4S4UJ.js → chunk-2UFNYXA3.js} +8 -8
  2. package/dist/{chunk-CHOXBASF.js → chunk-4JCVHBYR.js} +5 -5
  3. package/dist/{chunk-MY5KA4VU.js → chunk-67I7CEQJ.js} +329 -12
  4. package/dist/{chunk-X4L5SQSX.js → chunk-6EJNNKEA.js} +5 -5
  5. package/dist/{chunk-6I574ZIF.js → chunk-7ZJ7S27P.js} +26 -26
  6. package/dist/{chunk-JIFFPM7F.js → chunk-B6XQZIID.js} +5 -5
  7. package/dist/{chunk-ZIFBTC6Y.js → chunk-CILEY36B.js} +5150 -477
  8. package/dist/{chunk-Z2AJ5IEE.js → chunk-D5RDJLBJ.js} +6 -6
  9. package/dist/{chunk-2VKVT363.js → chunk-DAYDE7YQ.js} +5 -5
  10. package/dist/{chunk-WTTNML3O.js → chunk-DM3ZXIHJ.js} +8 -8
  11. package/dist/{chunk-BL6J3WTY.js → chunk-DPROWRKB.js} +5 -5
  12. package/dist/{chunk-ZCBEMBHR.js → chunk-EYVG6XQS.js} +11 -23
  13. package/dist/{chunk-PMQVIRHN.js → chunk-FCB3X5KT.js} +5 -5
  14. package/dist/{chunk-MMDCFN6O.js → chunk-HGLEMCSZ.js} +7 -7
  15. package/dist/{chunk-SFFH45R3.js → chunk-K6LYTSEW.js} +5 -5
  16. package/dist/{chunk-4L22GQK3.js → chunk-KRBSTBRC.js} +5 -5
  17. package/dist/chunk-LWJT6EL5.js +27 -0
  18. package/dist/{chunk-THMJMRIA.js → chunk-MMBH4JP3.js} +7 -7
  19. package/dist/{chunk-7LZMIPS5.js → chunk-OX3ZKFTA.js} +8 -8
  20. package/dist/{chunk-NSA7BFND.js → chunk-PO2BM2YN.js} +5 -5
  21. package/dist/{chunk-VMDJ6R7V.js → chunk-SC2H7JM5.js} +8 -8
  22. package/dist/{chunk-536AZBM2.js → chunk-SOAV6IHB.js} +26 -26
  23. package/dist/{chunk-7G7FICFI.js → chunk-VXUA6PHH.js} +7 -7
  24. package/dist/{chunk-O3FLU6UD.js → chunk-WYKJQ7YM.js} +8 -8
  25. package/dist/{chunk-7S4F5QCB.js → chunk-X2MN2QGK.js} +8 -8
  26. package/dist/{chunk-WXRTT6AT.js → chunk-XLPPGCBH.js} +8 -8
  27. package/dist/{chunk-5JNTOFOR.js → chunk-ZA5HX3EO.js} +5 -5
  28. package/dist/cli/checkUnsupportedDataProxy.js +20 -21
  29. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +20 -21
  30. package/dist/cli/getSchema.d.ts +6 -8
  31. package/dist/cli/getSchema.js +5 -9
  32. package/dist/cli/hashes.js +4 -7
  33. package/dist/cli/schemaContext.js +20 -21
  34. package/dist/engine-commands/errorHelpers.js +4 -4
  35. package/dist/engine-commands/formatSchema.js +19 -20
  36. package/dist/engine-commands/getConfig.js +10 -10
  37. package/dist/engine-commands/getDmmf.js +7 -7
  38. package/dist/engine-commands/index.js +28 -29
  39. package/dist/engine-commands/lintSchema.js +8 -8
  40. package/dist/engine-commands/mergeSchemas.js +7 -7
  41. package/dist/engine-commands/validate.js +7 -7
  42. package/dist/get-generators/getGenerators.js +22 -23
  43. package/dist/getPackedPackage.js +5 -6
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +48 -50
  46. package/dist/migrateTypes.d.ts +10 -0
  47. package/dist/resolvePkg.js +2 -3
  48. package/dist/utils/getEnvPaths.js +4 -6
  49. package/dist/utils/getVersionFromPackageJson.js +3 -3
  50. package/dist/utils/loadEnvFile.js +5 -7
  51. package/dist/wasm.js +5 -5
  52. package/package.json +13 -13
  53. package/dist/chunk-PSFQKG2Q.js +0 -6291
  54. package/dist/chunk-QS3WUGE3.js +0 -341
@@ -26,16 +26,16 @@ 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_IGE4S4UJ_exports = {};
30
- __export(chunk_IGE4S4UJ_exports, {
29
+ var chunk_2UFNYXA3_exports = {};
30
+ __export(chunk_2UFNYXA3_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_IGE4S4UJ_exports);
34
+ module.exports = __toCommonJS(chunk_2UFNYXA3_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_5JNTOFOR = require("./chunk-5JNTOFOR.js");
38
- var import_chunk_4L22GQK3 = require("./chunk-4L22GQK3.js");
37
+ var import_chunk_DPROWRKB = require("./chunk-DPROWRKB.js");
38
+ var import_chunk_PO2BM2YN = require("./chunk-PO2BM2YN.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_5JNTOFOR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_DPROWRKB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_4L22GQK3.prismaSchemaWasm.debug_panic();
73
+ import_chunk_PO2BM2YN.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_4L22GQK3.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_PO2BM2YN.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -26,16 +26,16 @@ 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_CHOXBASF_exports = {};
30
- __export(chunk_CHOXBASF_exports, {
29
+ var chunk_4JCVHBYR_exports = {};
30
+ __export(chunk_4JCVHBYR_exports, {
31
31
  getCLIPathHash: () => getCLIPathHash,
32
32
  getProjectHash: () => getProjectHash
33
33
  });
34
- module.exports = __toCommonJS(chunk_CHOXBASF_exports);
35
- var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
34
+ module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
35
+ var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
36
36
  var import_crypto = __toESM(require("crypto"));
37
37
  async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
38
- const projectPath = (await (0, import_chunk_ZCBEMBHR.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
38
+ const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
39
39
  return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
40
40
  }
41
41
  function getCLIPathHash() {
@@ -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_MY5KA4VU_exports = {};
30
- __export(chunk_MY5KA4VU_exports, {
29
+ var chunk_67I7CEQJ_exports = {};
30
+ __export(chunk_67I7CEQJ_exports, {
31
+ require_is_core_module: () => require_is_core_module,
31
32
  resolvePkg: () => resolvePkg
32
33
  });
33
- module.exports = __toCommonJS(chunk_MY5KA4VU_exports);
34
- var import_chunk_QS3WUGE3 = require("./chunk-QS3WUGE3.js");
34
+ module.exports = __toCommonJS(chunk_67I7CEQJ_exports);
35
35
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
36
36
  var import_path = __toESM(require("path"));
37
37
  var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
@@ -175,6 +175,323 @@ var require_normalize_options = (0, import_chunk_4VNS5WPM.__commonJS)({
175
175
  };
176
176
  }
177
177
  });
178
+ var require_implementation = (0, import_chunk_4VNS5WPM.__commonJS)({
179
+ "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
180
+ "use strict";
181
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
182
+ var toStr = Object.prototype.toString;
183
+ var max = Math.max;
184
+ var funcType = "[object Function]";
185
+ var concatty = function concatty2(a, b) {
186
+ var arr = [];
187
+ for (var i = 0; i < a.length; i += 1) {
188
+ arr[i] = a[i];
189
+ }
190
+ for (var j = 0; j < b.length; j += 1) {
191
+ arr[j + a.length] = b[j];
192
+ }
193
+ return arr;
194
+ };
195
+ var slicy = function slicy2(arrLike, offset) {
196
+ var arr = [];
197
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
198
+ arr[j] = arrLike[i];
199
+ }
200
+ return arr;
201
+ };
202
+ var joiny = function(arr, joiner) {
203
+ var str = "";
204
+ for (var i = 0; i < arr.length; i += 1) {
205
+ str += arr[i];
206
+ if (i + 1 < arr.length) {
207
+ str += joiner;
208
+ }
209
+ }
210
+ return str;
211
+ };
212
+ module2.exports = function bind(that) {
213
+ var target = this;
214
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
215
+ throw new TypeError(ERROR_MESSAGE + target);
216
+ }
217
+ var args = slicy(arguments, 1);
218
+ var bound;
219
+ var binder = function() {
220
+ if (this instanceof bound) {
221
+ var result = target.apply(
222
+ this,
223
+ concatty(args, arguments)
224
+ );
225
+ if (Object(result) === result) {
226
+ return result;
227
+ }
228
+ return this;
229
+ }
230
+ return target.apply(
231
+ that,
232
+ concatty(args, arguments)
233
+ );
234
+ };
235
+ var boundLength = max(0, target.length - args.length);
236
+ var boundArgs = [];
237
+ for (var i = 0; i < boundLength; i++) {
238
+ boundArgs[i] = "$" + i;
239
+ }
240
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
241
+ if (target.prototype) {
242
+ var Empty = function Empty2() {
243
+ };
244
+ Empty.prototype = target.prototype;
245
+ bound.prototype = new Empty();
246
+ Empty.prototype = null;
247
+ }
248
+ return bound;
249
+ };
250
+ }
251
+ });
252
+ var require_function_bind = (0, import_chunk_4VNS5WPM.__commonJS)({
253
+ "../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
254
+ "use strict";
255
+ var implementation = require_implementation();
256
+ module2.exports = Function.prototype.bind || implementation;
257
+ }
258
+ });
259
+ var require_hasown = (0, import_chunk_4VNS5WPM.__commonJS)({
260
+ "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
261
+ "use strict";
262
+ var call = Function.prototype.call;
263
+ var $hasOwn = Object.prototype.hasOwnProperty;
264
+ var bind = require_function_bind();
265
+ module2.exports = bind.call(call, $hasOwn);
266
+ }
267
+ });
268
+ var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
269
+ "../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports, module2) {
270
+ module2.exports = {
271
+ assert: true,
272
+ "node:assert": [">= 14.18 && < 15", ">= 16"],
273
+ "assert/strict": ">= 15",
274
+ "node:assert/strict": ">= 16",
275
+ async_hooks: ">= 8",
276
+ "node:async_hooks": [">= 14.18 && < 15", ">= 16"],
277
+ buffer_ieee754: ">= 0.5 && < 0.9.7",
278
+ buffer: true,
279
+ "node:buffer": [">= 14.18 && < 15", ">= 16"],
280
+ child_process: true,
281
+ "node:child_process": [">= 14.18 && < 15", ">= 16"],
282
+ cluster: ">= 0.5",
283
+ "node:cluster": [">= 14.18 && < 15", ">= 16"],
284
+ console: true,
285
+ "node:console": [">= 14.18 && < 15", ">= 16"],
286
+ constants: true,
287
+ "node:constants": [">= 14.18 && < 15", ">= 16"],
288
+ crypto: true,
289
+ "node:crypto": [">= 14.18 && < 15", ">= 16"],
290
+ _debug_agent: ">= 1 && < 8",
291
+ _debugger: "< 8",
292
+ dgram: true,
293
+ "node:dgram": [">= 14.18 && < 15", ">= 16"],
294
+ diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"],
295
+ "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"],
296
+ dns: true,
297
+ "node:dns": [">= 14.18 && < 15", ">= 16"],
298
+ "dns/promises": ">= 15",
299
+ "node:dns/promises": ">= 16",
300
+ domain: ">= 0.7.12",
301
+ "node:domain": [">= 14.18 && < 15", ">= 16"],
302
+ events: true,
303
+ "node:events": [">= 14.18 && < 15", ">= 16"],
304
+ freelist: "< 6",
305
+ fs: true,
306
+ "node:fs": [">= 14.18 && < 15", ">= 16"],
307
+ "fs/promises": [">= 10 && < 10.1", ">= 14"],
308
+ "node:fs/promises": [">= 14.18 && < 15", ">= 16"],
309
+ _http_agent: ">= 0.11.1",
310
+ "node:_http_agent": [">= 14.18 && < 15", ">= 16"],
311
+ _http_client: ">= 0.11.1",
312
+ "node:_http_client": [">= 14.18 && < 15", ">= 16"],
313
+ _http_common: ">= 0.11.1",
314
+ "node:_http_common": [">= 14.18 && < 15", ">= 16"],
315
+ _http_incoming: ">= 0.11.1",
316
+ "node:_http_incoming": [">= 14.18 && < 15", ">= 16"],
317
+ _http_outgoing: ">= 0.11.1",
318
+ "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"],
319
+ _http_server: ">= 0.11.1",
320
+ "node:_http_server": [">= 14.18 && < 15", ">= 16"],
321
+ http: true,
322
+ "node:http": [">= 14.18 && < 15", ">= 16"],
323
+ http2: ">= 8.8",
324
+ "node:http2": [">= 14.18 && < 15", ">= 16"],
325
+ https: true,
326
+ "node:https": [">= 14.18 && < 15", ">= 16"],
327
+ inspector: ">= 8",
328
+ "node:inspector": [">= 14.18 && < 15", ">= 16"],
329
+ "inspector/promises": [">= 19"],
330
+ "node:inspector/promises": [">= 19"],
331
+ _linklist: "< 8",
332
+ module: true,
333
+ "node:module": [">= 14.18 && < 15", ">= 16"],
334
+ net: true,
335
+ "node:net": [">= 14.18 && < 15", ">= 16"],
336
+ "node-inspect/lib/_inspect": ">= 7.6 && < 12",
337
+ "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12",
338
+ "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12",
339
+ os: true,
340
+ "node:os": [">= 14.18 && < 15", ">= 16"],
341
+ path: true,
342
+ "node:path": [">= 14.18 && < 15", ">= 16"],
343
+ "path/posix": ">= 15.3",
344
+ "node:path/posix": ">= 16",
345
+ "path/win32": ">= 15.3",
346
+ "node:path/win32": ">= 16",
347
+ perf_hooks: ">= 8.5",
348
+ "node:perf_hooks": [">= 14.18 && < 15", ">= 16"],
349
+ process: ">= 1",
350
+ "node:process": [">= 14.18 && < 15", ">= 16"],
351
+ punycode: ">= 0.5",
352
+ "node:punycode": [">= 14.18 && < 15", ">= 16"],
353
+ querystring: true,
354
+ "node:querystring": [">= 14.18 && < 15", ">= 16"],
355
+ readline: true,
356
+ "node:readline": [">= 14.18 && < 15", ">= 16"],
357
+ "readline/promises": ">= 17",
358
+ "node:readline/promises": ">= 17",
359
+ repl: true,
360
+ "node:repl": [">= 14.18 && < 15", ">= 16"],
361
+ "node:sea": [">= 20.12 && < 21", ">= 21.7"],
362
+ smalloc: ">= 0.11.5 && < 3",
363
+ "node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
364
+ _stream_duplex: ">= 0.9.4",
365
+ "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
366
+ _stream_transform: ">= 0.9.4",
367
+ "node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
368
+ _stream_wrap: ">= 1.4.1",
369
+ "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
370
+ _stream_passthrough: ">= 0.9.4",
371
+ "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
372
+ _stream_readable: ">= 0.9.4",
373
+ "node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
374
+ _stream_writable: ">= 0.9.4",
375
+ "node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
376
+ stream: true,
377
+ "node:stream": [">= 14.18 && < 15", ">= 16"],
378
+ "stream/consumers": ">= 16.7",
379
+ "node:stream/consumers": ">= 16.7",
380
+ "stream/promises": ">= 15",
381
+ "node:stream/promises": ">= 16",
382
+ "stream/web": ">= 16.5",
383
+ "node:stream/web": ">= 16.5",
384
+ string_decoder: true,
385
+ "node:string_decoder": [">= 14.18 && < 15", ">= 16"],
386
+ sys: [">= 0.4 && < 0.7", ">= 0.8"],
387
+ "node:sys": [">= 14.18 && < 15", ">= 16"],
388
+ "test/reporters": ">= 19.9 && < 20.2",
389
+ "node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
390
+ "test/mock_loader": ">= 22.3 && < 22.7",
391
+ "node:test/mock_loader": ">= 22.3 && < 22.7",
392
+ "node:test": [">= 16.17 && < 17", ">= 18"],
393
+ timers: true,
394
+ "node:timers": [">= 14.18 && < 15", ">= 16"],
395
+ "timers/promises": ">= 15",
396
+ "node:timers/promises": ">= 16",
397
+ _tls_common: ">= 0.11.13",
398
+ "node:_tls_common": [">= 14.18 && < 15", ">= 16"],
399
+ _tls_legacy: ">= 0.11.3 && < 10",
400
+ _tls_wrap: ">= 0.11.3",
401
+ "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"],
402
+ tls: true,
403
+ "node:tls": [">= 14.18 && < 15", ">= 16"],
404
+ trace_events: ">= 10",
405
+ "node:trace_events": [">= 14.18 && < 15", ">= 16"],
406
+ tty: true,
407
+ "node:tty": [">= 14.18 && < 15", ">= 16"],
408
+ url: true,
409
+ "node:url": [">= 14.18 && < 15", ">= 16"],
410
+ util: true,
411
+ "node:util": [">= 14.18 && < 15", ">= 16"],
412
+ "util/types": ">= 15.3",
413
+ "node:util/types": ">= 16",
414
+ "v8/tools/arguments": ">= 10 && < 12",
415
+ "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"],
416
+ "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"],
417
+ "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"],
418
+ "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"],
419
+ "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"],
420
+ "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"],
421
+ v8: ">= 1",
422
+ "node:v8": [">= 14.18 && < 15", ">= 16"],
423
+ vm: true,
424
+ "node:vm": [">= 14.18 && < 15", ">= 16"],
425
+ wasi: [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
426
+ "node:wasi": [">= 18.17 && < 19", ">= 20"],
427
+ worker_threads: ">= 11.7",
428
+ "node:worker_threads": [">= 14.18 && < 15", ">= 16"],
429
+ zlib: ">= 0.5",
430
+ "node:zlib": [">= 14.18 && < 15", ">= 16"]
431
+ };
432
+ }
433
+ });
434
+ var require_is_core_module = (0, import_chunk_4VNS5WPM.__commonJS)({
435
+ "../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(exports, module2) {
436
+ "use strict";
437
+ var hasOwn = require_hasown();
438
+ function specifierIncluded(current, specifier) {
439
+ var nodeParts = current.split(".");
440
+ var parts = specifier.split(" ");
441
+ var op = parts.length > 1 ? parts[0] : "=";
442
+ var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split(".");
443
+ for (var i = 0; i < 3; ++i) {
444
+ var cur = parseInt(nodeParts[i] || 0, 10);
445
+ var ver = parseInt(versionParts[i] || 0, 10);
446
+ if (cur === ver) {
447
+ continue;
448
+ }
449
+ if (op === "<") {
450
+ return cur < ver;
451
+ }
452
+ if (op === ">=") {
453
+ return cur >= ver;
454
+ }
455
+ return false;
456
+ }
457
+ return op === ">=";
458
+ }
459
+ function matchesRange(current, range) {
460
+ var specifiers = range.split(/ ?&& ?/);
461
+ if (specifiers.length === 0) {
462
+ return false;
463
+ }
464
+ for (var i = 0; i < specifiers.length; ++i) {
465
+ if (!specifierIncluded(current, specifiers[i])) {
466
+ return false;
467
+ }
468
+ }
469
+ return true;
470
+ }
471
+ function versionIncluded(nodeVersion, specifierValue) {
472
+ if (typeof specifierValue === "boolean") {
473
+ return specifierValue;
474
+ }
475
+ var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion;
476
+ if (typeof current !== "string") {
477
+ throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required");
478
+ }
479
+ if (specifierValue && typeof specifierValue === "object") {
480
+ for (var i = 0; i < specifierValue.length; ++i) {
481
+ if (matchesRange(current, specifierValue[i])) {
482
+ return true;
483
+ }
484
+ }
485
+ return false;
486
+ }
487
+ return matchesRange(current, specifierValue);
488
+ }
489
+ var data = require_core();
490
+ module2.exports = function isCore(x, nodeVersion) {
491
+ return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
492
+ };
493
+ }
494
+ });
178
495
  var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
179
496
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/async.js"(exports, module2) {
180
497
  "use strict";
@@ -184,7 +501,7 @@ var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
184
501
  var caller = require_caller();
185
502
  var nodeModulesPaths = require_node_modules_paths();
186
503
  var normalizeOptions = require_normalize_options();
187
- var isCore = (0, import_chunk_QS3WUGE3.require_is_core_module)();
504
+ var isCore = require_is_core_module();
188
505
  var realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath;
189
506
  var homedir = getHomedir();
190
507
  var defaultPaths = function() {
@@ -469,7 +786,7 @@ var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
469
786
  };
470
787
  }
471
788
  });
472
- var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
789
+ var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
473
790
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(exports, module2) {
474
791
  module2.exports = {
475
792
  assert: true,
@@ -635,11 +952,11 @@ var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
635
952
  };
636
953
  }
637
954
  });
638
- var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
955
+ var require_core3 = (0, import_chunk_4VNS5WPM.__commonJS)({
639
956
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(exports, module2) {
640
957
  "use strict";
641
- var isCoreModule = (0, import_chunk_QS3WUGE3.require_is_core_module)();
642
- var data = require_core();
958
+ var isCoreModule = require_is_core_module();
959
+ var data = require_core2();
643
960
  var core = {};
644
961
  for (mod in data) {
645
962
  if (Object.prototype.hasOwnProperty.call(data, mod)) {
@@ -653,7 +970,7 @@ var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
653
970
  var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
654
971
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(exports, module2) {
655
972
  "use strict";
656
- var isCoreModule = (0, import_chunk_QS3WUGE3.require_is_core_module)();
973
+ var isCoreModule = require_is_core_module();
657
974
  module2.exports = function isCore(x) {
658
975
  return isCoreModule(x);
659
976
  };
@@ -662,7 +979,7 @@ var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
662
979
  var require_sync = (0, import_chunk_4VNS5WPM.__commonJS)({
663
980
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/sync.js"(exports, module2) {
664
981
  "use strict";
665
- var isCore = (0, import_chunk_QS3WUGE3.require_is_core_module)();
982
+ var isCore = require_is_core_module();
666
983
  var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
667
984
  var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
668
985
  var getHomedir = require_homedir();
@@ -855,7 +1172,7 @@ var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
855
1172
  "../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(exports, module2) {
856
1173
  "use strict";
857
1174
  var async = require_async();
858
- async.core = require_core2();
1175
+ async.core = require_core3();
859
1176
  async.isCore = require_is_core();
860
1177
  async.sync = require_sync();
861
1178
  module2.exports = async;
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_X4L5SQSX_exports = {};
20
- __export(chunk_X4L5SQSX_exports, {
19
+ var chunk_6EJNNKEA_exports = {};
20
+ __export(chunk_6EJNNKEA_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_X4L5SQSX_exports);
23
+ module.exports = __toCommonJS(chunk_6EJNNKEA_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -113,8 +113,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
113
113
  "@prisma/generator": "workspace:*",
114
114
  "@prisma/generator-helper": "workspace:*",
115
115
  "@prisma/get-platform": "workspace:*",
116
- "@prisma/prisma-schema-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
117
- "@prisma/schema-engine-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
116
+ "@prisma/prisma-schema-wasm": "6.13.0-29.6fa05d5450d42acad5f90a1d02c7d1f4fc88d300",
117
+ "@prisma/schema-engine-wasm": "6.13.0-29.6fa05d5450d42acad5f90a1d02c7d1f4fc88d300",
118
118
  "@prisma/schema-files-loader": "workspace:*",
119
119
  arg: "5.0.2",
120
120
  prompts: "2.4.2"
@@ -26,8 +26,8 @@ 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_6I574ZIF_exports = {};
30
- __export(chunk_6I574ZIF_exports, {
29
+ var chunk_7ZJ7S27P_exports = {};
30
+ __export(chunk_7ZJ7S27P_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
33
  forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
@@ -42,7 +42,7 @@ __export(chunk_6I574ZIF_exports, {
42
42
  processSchemaResult: () => processSchemaResult,
43
43
  skipIndex: () => skipIndex
44
44
  });
45
- module.exports = __toCommonJS(chunk_6I574ZIF_exports);
45
+ module.exports = __toCommonJS(chunk_7ZJ7S27P_exports);
46
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
47
47
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
48
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
@@ -52,15 +52,15 @@ var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
52
52
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
53
53
  var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
54
54
  var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
55
- var import_chunk_WXRTT6AT = require("./chunk-WXRTT6AT.js");
55
+ var import_chunk_XLPPGCBH = require("./chunk-XLPPGCBH.js");
56
56
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
57
57
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
58
- var import_chunk_O3FLU6UD = require("./chunk-O3FLU6UD.js");
59
- var import_chunk_VMDJ6R7V = require("./chunk-VMDJ6R7V.js");
60
- var import_chunk_JIFFPM7F = require("./chunk-JIFFPM7F.js");
61
- var import_chunk_MMDCFN6O = require("./chunk-MMDCFN6O.js");
62
- var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
63
- var import_chunk_NSA7BFND = require("./chunk-NSA7BFND.js");
58
+ var import_chunk_DM3ZXIHJ = require("./chunk-DM3ZXIHJ.js");
59
+ var import_chunk_SC2H7JM5 = require("./chunk-SC2H7JM5.js");
60
+ var import_chunk_FCB3X5KT = require("./chunk-FCB3X5KT.js");
61
+ var import_chunk_HGLEMCSZ = require("./chunk-HGLEMCSZ.js");
62
+ var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
63
+ var import_chunk_KRBSTBRC = require("./chunk-KRBSTBRC.js");
64
64
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
65
65
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
66
66
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
@@ -68,7 +68,7 @@ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
68
68
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
69
69
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
70
70
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
71
- var import_chunk_ZIFBTC6Y = require("./chunk-ZIFBTC6Y.js");
71
+ var import_chunk_CILEY36B = require("./chunk-CILEY36B.js");
72
72
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
73
73
  var import_path = __toESM(require("path"));
74
74
  var import_debug = __toESM(require("@prisma/debug"));
@@ -79,7 +79,7 @@ var import_path2 = __toESM(require("path"));
79
79
  var import_get_platform2 = require("@prisma/get-platform");
80
80
  var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
81
81
  Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
82
- defining a ${(0, import_chunk_PG5FDKSF.green)(`migrate.adapter`)} in ${(0, import_chunk_PG5FDKSF.green)(`prisma.config.ts`)}.
82
+ defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
83
83
 
84
84
  More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
85
85
  `;
@@ -102,7 +102,7 @@ var debug = (0, import_debug.default)("prisma:format");
102
102
  async function formatSchema({ schemas }, inputFormattingOptions) {
103
103
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
104
104
  handleFormatPanic(() => {
105
- import_chunk_NSA7BFND.prismaSchemaWasm.debug_panic();
105
+ import_chunk_KRBSTBRC.prismaSchemaWasm.debug_panic();
106
106
  });
107
107
  }
108
108
  const defaultFormattingOptions = {
@@ -119,10 +119,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
119
119
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
120
120
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
121
121
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
122
- const lintDiagnostics2 = (0, import_chunk_JIFFPM7F.lintSchema)({ schemas: formattedMultipleSchemas2 });
122
+ const lintDiagnostics2 = (0, import_chunk_FCB3X5KT.lintSchema)({ schemas: formattedMultipleSchemas2 });
123
123
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
124
124
  });
125
- const lintWarnings = (0, import_chunk_JIFFPM7F.getLintWarningsAsText)(lintDiagnostics);
125
+ const lintWarnings = (0, import_chunk_FCB3X5KT.getLintWarningsAsText)(lintDiagnostics);
126
126
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
127
127
  console.warn(lintWarnings);
128
128
  }
@@ -149,7 +149,7 @@ function handleFormatPanic(tryCb) {
149
149
  }
150
150
  }
151
151
  function formatWasm(schema, documentFormattingParams) {
152
- const formattedSchema = import_chunk_NSA7BFND.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
152
+ const formattedSchema = import_chunk_KRBSTBRC.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
153
153
  return formattedSchema;
154
154
  }
155
155
  async function loadSchemaContext({
@@ -163,13 +163,13 @@ async function loadSchemaContext({
163
163
  } = {}) {
164
164
  let schemaResult = null;
165
165
  if (allowNull) {
166
- schemaResult = await (0, import_chunk_ZCBEMBHR.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
166
+ schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
167
167
  argumentName: schemaPathArgumentName,
168
168
  cwd
169
169
  });
170
170
  if (!schemaResult) return null;
171
171
  } else {
172
- schemaResult = await (0, import_chunk_ZCBEMBHR.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
172
+ schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
173
173
  argumentName: schemaPathArgumentName,
174
174
  cwd
175
175
  });
@@ -184,9 +184,9 @@ async function processSchemaResult({
184
184
  }) {
185
185
  const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
186
186
  if (printLoadMessage) {
187
- (0, import_chunk_ZCBEMBHR.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
187
+ (0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
188
188
  }
189
- const configFromPsl = await (0, import_chunk_O3FLU6UD.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
189
+ const configFromPsl = await (0, import_chunk_DM3ZXIHJ.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
190
190
  const primaryDatasource = configFromPsl.datasources.at(0);
191
191
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
192
192
  return {
@@ -208,7 +208,7 @@ function primaryDatasourceDirectory(primaryDatasource) {
208
208
  }
209
209
  return null;
210
210
  }
211
- var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ZIFBTC6Y.require_p_map)());
211
+ var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_CILEY36B.require_p_map)());
212
212
  var debug2 = (0, import_debug2.default)("prisma:getGenerators");
213
213
  async function getGenerators(options) {
214
214
  if (options.registry === void 0 && options.providerAliases !== void 0) {
@@ -246,7 +246,7 @@ async function getGenerators(options) {
246
246
  }
247
247
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
248
248
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
249
- const dmmf = await (0, import_chunk_VMDJ6R7V.getDMMF)({
249
+ const dmmf = await (0, import_chunk_SC2H7JM5.getDMMF)({
250
250
  datamodel: schemaContext.schemaFiles,
251
251
  previewFeatures
252
252
  });
@@ -297,8 +297,8 @@ You need to define \`output\` in the generator block in the schema file.`
297
297
  fromEnvVar: null
298
298
  };
299
299
  }
300
- const datamodel = (0, import_chunk_MMDCFN6O.mergeSchemas)({ schemas: schemaContext.schemaFiles });
301
- const envPaths = await (0, import_chunk_WXRTT6AT.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
300
+ const datamodel = (0, import_chunk_HGLEMCSZ.mergeSchemas)({ schemas: schemaContext.schemaFiles });
301
+ const envPaths = await (0, import_chunk_XLPPGCBH.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
302
302
  const options2 = {
303
303
  datamodel,
304
304
  datasources: schemaContext.datasources,
@@ -389,7 +389,7 @@ generator gen {
389
389
  debug2({ generatorBinaryPaths });
390
390
  generator.setBinaryPaths(generatorBinaryPaths);
391
391
  if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
392
- const customDmmf = await (0, import_chunk_VMDJ6R7V.getDMMF)({
392
+ const customDmmf = await (0, import_chunk_SC2H7JM5.getDMMF)({
393
393
  datamodel: schemaContext.schemaFiles,
394
394
  previewFeatures
395
395
  });
@@ -510,7 +510,7 @@ function checkUnsupportedDataProxy({
510
510
  }
511
511
  }
512
512
  if (!schemaContext?.primaryDatasource) return;
513
- const url = (0, import_chunk_O3FLU6UD.resolveUrl)((0, import_chunk_O3FLU6UD.getEffectiveUrl)(schemaContext.primaryDatasource));
513
+ const url = (0, import_chunk_DM3ZXIHJ.resolveUrl)((0, import_chunk_DM3ZXIHJ.getEffectiveUrl)(schemaContext.primaryDatasource));
514
514
  if (url?.startsWith("prisma://")) {
515
515
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
516
516
  }