@prisma/internals 6.1.0-dev.16 → 6.1.0-dev.17

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 (58) hide show
  1. package/dist/{chunk-H3T4L34H.js → chunk-25RJ7YTB.js} +88 -83
  2. package/dist/{chunk-S4LINK5Y.js → chunk-2XRDQCIA.js} +5 -5
  3. package/dist/{chunk-2DXAGCPS.js → chunk-3DMEILBC.js} +11 -11
  4. package/dist/{chunk-LATZTP6I.js → chunk-6VQNACCJ.js} +5 -5
  5. package/dist/{chunk-NM5GRZUZ.js → chunk-6Z4G2HUQ.js} +14 -14
  6. package/dist/{chunk-JTG7OZIV.js → chunk-7RQQQMVJ.js} +5 -5
  7. package/dist/{chunk-S3RSLT5E.js → chunk-B635PHDW.js} +5 -5
  8. package/dist/{chunk-PC46MJ4M.js → chunk-BTVQXJCY.js} +15 -15
  9. package/dist/{chunk-V7Z7JKVU.js → chunk-CBT2JDO2.js} +15 -15
  10. package/dist/{chunk-I4467NNA.js → chunk-CXEMRKV4.js} +6 -6
  11. package/dist/{chunk-ZARJI3YA.js → chunk-DKYVVZJS.js} +5 -5
  12. package/dist/{chunk-V2VWODV3.js → chunk-EKBX4J6O.js} +5 -5
  13. package/dist/{chunk-7OIRG4DY.js → chunk-HUPMOQXK.js} +13 -13
  14. package/dist/{chunk-CVDEO2SW.js → chunk-I6ARU6UV.js} +27 -27
  15. package/dist/{chunk-OTGIAUDE.js → chunk-IJZBI63R.js} +27 -27
  16. package/dist/{chunk-2PP7BHKH.js → chunk-JVNF5V6D.js} +5 -5
  17. package/dist/{chunk-DUSBGGO7.js → chunk-MGFN2DTW.js} +14 -14
  18. package/dist/{chunk-J4MA2JIK.js → chunk-N6K7M2HZ.js} +5 -5
  19. package/dist/{chunk-PDG6GFQR.js → chunk-N75APZYT.js} +5 -5
  20. package/dist/{chunk-SM6BW5WS.js → chunk-NAT4O7NW.js} +5 -5
  21. package/dist/{chunk-Z75GVIRM.js → chunk-NAXNJDRZ.js} +5 -5
  22. package/dist/{chunk-RFYKY4ZX.js → chunk-NO5X2ADB.js} +13 -13
  23. package/dist/{chunk-SLBBRUQS.js → chunk-QTXYAZFX.js} +5 -5
  24. package/dist/{chunk-LSTUJ7L4.js → chunk-RHPV7ERN.js} +5 -5
  25. package/dist/{chunk-T2RTHBYQ.js → chunk-UCB5JX3B.js} +4 -4
  26. package/dist/{chunk-HPF5G47V.js → chunk-UPIULDLZ.js} +5 -5
  27. package/dist/{chunk-EPKZPJC5.js → chunk-V5LBZC3L.js} +14 -14
  28. package/dist/{chunk-BK7GVFPW.js → chunk-ZHIIE6KR.js} +14 -14
  29. package/dist/cli/checkUnsupportedDataProxy.js +20 -20
  30. package/dist/cli/getSchema.js +25 -25
  31. package/dist/cli/hashes.js +20 -20
  32. package/dist/engine-commands/errorHelpers.js +4 -4
  33. package/dist/engine-commands/formatSchema.js +19 -19
  34. package/dist/engine-commands/getConfig.js +12 -12
  35. package/dist/engine-commands/getDmmf.js +9 -9
  36. package/dist/engine-commands/getEngineVersion.js +6 -6
  37. package/dist/engine-commands/getEnginesMetaInfo.js +8 -8
  38. package/dist/engine-commands/index.js +30 -30
  39. package/dist/engine-commands/lintSchema.js +8 -8
  40. package/dist/engine-commands/mergeSchemas.js +9 -9
  41. package/dist/engine-commands/queryEngineCommons.js +6 -6
  42. package/dist/engine-commands/validate.js +9 -9
  43. package/dist/get-generators/generatorResolvers/generatorResolvers.js +19 -19
  44. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +19 -19
  45. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +20 -20
  46. package/dist/get-generators/getGenerators.js +22 -22
  47. package/dist/index.js +52 -52
  48. package/dist/sendPanic.js +19 -19
  49. package/dist/utils/cloudflareD1.js +3 -3
  50. package/dist/utils/getEnvPaths.js +19 -19
  51. package/dist/utils/getGitHubIssueUrl.js +4 -4
  52. package/dist/utils/getVersionFromPackageJson.js +3 -3
  53. package/dist/utils/handleEngineLoadingErrors.js +3 -3
  54. package/dist/utils/handlePanic.js +19 -19
  55. package/dist/utils/load.js +4 -4
  56. package/dist/utils/loadEnvFile.js +19 -19
  57. package/dist/wasm.js +4 -4
  58. package/package.json +8 -8
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_OTGIAUDE_exports = {};
30
- __export2(chunk_OTGIAUDE_exports, {
29
+ var chunk_IJZBI63R_exports = {};
30
+ __export2(chunk_IJZBI63R_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -55,7 +55,7 @@ __export2(chunk_OTGIAUDE_exports, {
55
55
  sendPanic: () => sendPanic,
56
56
  skipIndex: () => skipIndex
57
57
  });
58
- module.exports = __toCommonJS2(chunk_OTGIAUDE_exports);
58
+ module.exports = __toCommonJS2(chunk_IJZBI63R_exports);
59
59
  var import_chunk_77IC3DNO = require("./chunk-77IC3DNO.js");
60
60
  var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
61
61
  var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
@@ -76,17 +76,17 @@ var import_chunk_2MWIMEFK = require("./chunk-2MWIMEFK.js");
76
76
  var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
77
77
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
78
78
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
79
- var import_chunk_SLBBRUQS = require("./chunk-SLBBRUQS.js");
79
+ var import_chunk_QTXYAZFX = require("./chunk-QTXYAZFX.js");
80
80
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
81
81
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
82
82
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
83
- var import_chunk_ZARJI3YA = require("./chunk-ZARJI3YA.js");
84
- var import_chunk_7OIRG4DY = require("./chunk-7OIRG4DY.js");
85
- var import_chunk_V7Z7JKVU = require("./chunk-V7Z7JKVU.js");
86
- var import_chunk_BK7GVFPW = require("./chunk-BK7GVFPW.js");
83
+ var import_chunk_N75APZYT = require("./chunk-N75APZYT.js");
84
+ var import_chunk_HUPMOQXK = require("./chunk-HUPMOQXK.js");
85
+ var import_chunk_BTVQXJCY = require("./chunk-BTVQXJCY.js");
86
+ var import_chunk_V5LBZC3L = require("./chunk-V5LBZC3L.js");
87
87
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
88
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
89
- var import_chunk_LSTUJ7L4 = require("./chunk-LSTUJ7L4.js");
88
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
89
+ var import_chunk_NAT4O7NW = require("./chunk-NAT4O7NW.js");
90
90
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
91
91
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
92
92
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
@@ -14751,7 +14751,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14751
14751
  }
14752
14752
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14753
14753
  debug2("Loading config");
14754
- const config2 = await (0, import_chunk_V7Z7JKVU.getConfig)({
14754
+ const config2 = await (0, import_chunk_BTVQXJCY.getConfig)({
14755
14755
  datamodel: files,
14756
14756
  ignoreEnvVarErrors: true
14757
14757
  });
@@ -15059,8 +15059,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15059
15059
  if (argName.includes("schema")) {
15060
15060
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15061
15061
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15062
- const config2 = await (0, import_chunk_V7Z7JKVU.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15063
- const url = (0, import_chunk_V7Z7JKVU.resolveUrl)((0, import_chunk_V7Z7JKVU.getEffectiveUrl)(config2.datasources[0]));
15062
+ const config2 = await (0, import_chunk_BTVQXJCY.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15063
+ const url = (0, import_chunk_BTVQXJCY.resolveUrl)((0, import_chunk_BTVQXJCY.getEffectiveUrl)(config2.datasources[0]));
15064
15064
  if (url?.startsWith("prisma://")) {
15065
15065
  return forbiddenCmdWithDataProxyFlagMessage(command);
15066
15066
  }
@@ -15232,7 +15232,7 @@ async function getGenerators(options) {
15232
15232
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15233
15233
  }
15234
15234
  }
15235
- const config = await (0, import_chunk_V7Z7JKVU.getConfig)({
15235
+ const config = await (0, import_chunk_BTVQXJCY.getConfig)({
15236
15236
  datamodel: schemas,
15237
15237
  datamodelPath: schemaPath,
15238
15238
  prismaPath,
@@ -15243,7 +15243,7 @@ async function getGenerators(options) {
15243
15243
  }
15244
15244
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15245
15245
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15246
- const dmmf = await (0, import_chunk_BK7GVFPW.getDMMF)({
15246
+ const dmmf = await (0, import_chunk_V5LBZC3L.getDMMF)({
15247
15247
  datamodel: schemas,
15248
15248
  datamodelPath: schemaPath,
15249
15249
  prismaPath,
@@ -15304,7 +15304,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15304
15304
  fromEnvVar: "null"
15305
15305
  };
15306
15306
  }
15307
- const datamodel = (0, import_chunk_7OIRG4DY.mergeSchemas)({ schemas });
15307
+ const datamodel = (0, import_chunk_HUPMOQXK.mergeSchemas)({ schemas });
15308
15308
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15309
15309
  const options2 = {
15310
15310
  datamodel,
@@ -15387,7 +15387,7 @@ generator gen {
15387
15387
  debug6({ generatorBinaryPaths });
15388
15388
  generator.setBinaryPaths(generatorBinaryPaths);
15389
15389
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15390
- const customDmmf = await (0, import_chunk_BK7GVFPW.getDMMF)({
15390
+ const customDmmf = await (0, import_chunk_V5LBZC3L.getDMMF)({
15391
15391
  datamodel: schemas,
15392
15392
  datamodelPath: schemaPath,
15393
15393
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15505,23 +15505,23 @@ async function sendPanic({
15505
15505
  enginesVersion: enginesVersion2,
15506
15506
  getDatabaseVersionSafe
15507
15507
  }) {
15508
- const schema = await (0, import_chunk_H3T4L34H.$)(error).with({ schemaPath: import_chunk_H3T4L34H.N.not(import_chunk_H3T4L34H.N.nullish) }, (err) => {
15508
+ const schema = await (0, import_chunk_25RJ7YTB.z)(error).with({ schemaPath: import_chunk_25RJ7YTB.N.not(import_chunk_25RJ7YTB.N.nullish) }, (err) => {
15509
15509
  return getSchema(err.schemaPath);
15510
- }).with({ schema: import_chunk_H3T4L34H.N.not(import_chunk_H3T4L34H.N.nullish) }, (err) => Promise.resolve(err.schema)).otherwise(() => void 0);
15510
+ }).with({ schema: import_chunk_25RJ7YTB.N.not(import_chunk_25RJ7YTB.N.nullish) }, (err) => Promise.resolve(err.schema)).otherwise(() => void 0);
15511
15511
  const maskedSchema = schema ? (0, import_chunk_KDHESRKE.maskSchemas)(schema) : void 0;
15512
15512
  let dbVersion;
15513
15513
  if (error.area === "LIFT_CLI") {
15514
- const getDatabaseVersionParams = (0, import_chunk_H3T4L34H.$)({
15514
+ const getDatabaseVersionParams = (0, import_chunk_25RJ7YTB.z)({
15515
15515
  schema,
15516
15516
  introspectionUrl: error.introspectionUrl
15517
- }).with({ schema: import_chunk_H3T4L34H.N.not(void 0) }, ({ schema: schema2 }) => {
15517
+ }).with({ schema: import_chunk_25RJ7YTB.N.not(void 0) }, ({ schema: schema2 }) => {
15518
15518
  return {
15519
15519
  datasource: {
15520
15520
  tag: "Schema",
15521
15521
  ...(0, import_chunk_JHQHVXIR.toSchemasContainer)(schema2)
15522
15522
  }
15523
15523
  };
15524
- }).with({ introspectionUrl: import_chunk_H3T4L34H.N.not(void 0) }, ({ introspectionUrl }) => {
15524
+ }).with({ introspectionUrl: import_chunk_25RJ7YTB.N.not(void 0) }, ({ introspectionUrl }) => {
15525
15525
  return {
15526
15526
  datasource: {
15527
15527
  tag: "ConnectionString",
@@ -15671,7 +15671,7 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
15671
15671
  console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
15672
15672
  }
15673
15673
  }
15674
- await (0, import_chunk_SLBBRUQS.wouldYouLikeToCreateANewIssue)({
15674
+ await (0, import_chunk_QTXYAZFX.wouldYouLikeToCreateANewIssue)({
15675
15675
  prompt: !shouldSubmitReport,
15676
15676
  error,
15677
15677
  cliVersion: cliVersion2,
@@ -15685,7 +15685,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15685
15685
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15686
15686
  handleFormatPanic(
15687
15687
  () => {
15688
- import_chunk_LSTUJ7L4.prismaSchemaWasm.debug_panic();
15688
+ import_chunk_NAT4O7NW.prismaSchemaWasm.debug_panic();
15689
15689
  },
15690
15690
  { schemas: schemas2 }
15691
15691
  );
@@ -15705,12 +15705,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15705
15705
  () => {
15706
15706
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15707
15707
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15708
- const lintDiagnostics2 = (0, import_chunk_ZARJI3YA.lintSchema)({ schemas: formattedMultipleSchemas2 });
15708
+ const lintDiagnostics2 = (0, import_chunk_N75APZYT.lintSchema)({ schemas: formattedMultipleSchemas2 });
15709
15709
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15710
15710
  },
15711
15711
  { schemas: schemas2 }
15712
15712
  );
15713
- const lintWarnings = (0, import_chunk_ZARJI3YA.getLintWarningsAsText)(lintDiagnostics);
15713
+ const lintWarnings = (0, import_chunk_N75APZYT.getLintWarningsAsText)(lintDiagnostics);
15714
15714
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
15715
15715
  console.warn(lintWarnings);
15716
15716
  }
@@ -15740,7 +15740,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15740
15740
  }
15741
15741
  }
15742
15742
  function formatWasm(schema, documentFormattingParams) {
15743
- const formattedSchema = import_chunk_LSTUJ7L4.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15743
+ const formattedSchema = import_chunk_NAT4O7NW.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15744
15744
  return formattedSchema;
15745
15745
  }
15746
15746
  /*! Bundled license information:
@@ -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_2PP7BHKH_exports = {};
20
- __export(chunk_2PP7BHKH_exports, {
19
+ var chunk_JVNF5V6D_exports = {};
20
+ __export(chunk_JVNF5V6D_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_2PP7BHKH_exports);
24
- var import_chunk_T2RTHBYQ = require("./chunk-T2RTHBYQ.js");
25
- var packageJson = (0, import_chunk_T2RTHBYQ.require_package)();
23
+ module.exports = __toCommonJS(chunk_JVNF5V6D_exports);
24
+ var import_chunk_NAXNJDRZ = require("./chunk-NAXNJDRZ.js");
25
+ var packageJson = (0, import_chunk_NAXNJDRZ.require_package)();
26
26
  var version = packageJson.version;
@@ -26,19 +26,19 @@ 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_DUSBGGO7_exports = {};
30
- __export(chunk_DUSBGGO7_exports, {
29
+ var chunk_MGFN2DTW_exports = {};
30
+ __export(chunk_MGFN2DTW_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_DUSBGGO7_exports);
34
+ module.exports = __toCommonJS(chunk_MGFN2DTW_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
36
+ var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_S3RSLT5E = require("./chunk-S3RSLT5E.js");
38
+ var import_chunk_B635PHDW = require("./chunk-B635PHDW.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_LSTUJ7L4 = require("./chunk-LSTUJ7L4.js");
40
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
41
+ var import_chunk_RHPV7ERN = require("./chunk-RHPV7ERN.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:validate");
49
49
  var ValidateError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_S3RSLT5E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_B635PHDW.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_LSTUJ7L4.prismaSchemaWasm.debug_panic();
75
+ import_chunk_RHPV7ERN.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_LSTUJ7L4.prismaSchemaWasm.validate(params);
81
+ import_chunk_RHPV7ERN.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -90,7 +90,7 @@ function validate(options) {
90
90
  if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
91
91
  return;
92
92
  }
93
- const error = (0, import_chunk_H3T4L34H.$)(validateEither.left).with({ type: "wasm-error" }, (e) => {
93
+ const error = (0, import_chunk_25RJ7YTB.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
94
94
  debugErrorType(e);
95
95
  console.error("");
96
96
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -16,12 +16,12 @@ 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_J4MA2JIK_exports = {};
20
- __export(chunk_J4MA2JIK_exports, {
19
+ var chunk_N6K7M2HZ_exports = {};
20
+ __export(chunk_N6K7M2HZ_exports, {
21
21
  handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
22
22
  });
23
- module.exports = __toCommonJS(chunk_J4MA2JIK_exports);
24
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
23
+ module.exports = __toCommonJS(chunk_N6K7M2HZ_exports);
24
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
25
25
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
26
26
  var import_get_platform = require("@prisma/get-platform");
27
27
  function handleLibraryLoadingErrors(args) {
@@ -32,7 +32,7 @@ function handleLibraryLoadingErrors(args) {
32
32
  "https://pris.ly/d/system-requirements"
33
33
  )}`;
34
34
  const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
35
- const potentialReasonMessage = (0, import_chunk_H3T4L34H.$)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
35
+ const potentialReasonMessage = (0, import_chunk_25RJ7YTB.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
36
36
  ({ message }) => hasLinkingProblem && message.includes("libz"),
37
37
  () => {
38
38
  return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
@@ -16,21 +16,21 @@ 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_PDG6GFQR_exports = {};
20
- __export(chunk_PDG6GFQR_exports, {
19
+ var chunk_N75APZYT_exports = {};
20
+ __export(chunk_N75APZYT_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_PDG6GFQR_exports);
27
+ module.exports = __toCommonJS(chunk_N75APZYT_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
29
+ var import_chunk_NAT4O7NW = require("./chunk-NAT4O7NW.js");
30
30
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_SM6BW5WS.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_NAT4O7NW.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -26,14 +26,14 @@ 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_SM6BW5WS_exports = {};
30
- __export(chunk_SM6BW5WS_exports, {
29
+ var chunk_NAT4O7NW_exports = {};
30
+ __export(chunk_NAT4O7NW_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_SM6BW5WS_exports);
36
- var import_chunk_T2RTHBYQ = require("./chunk-T2RTHBYQ.js");
35
+ module.exports = __toCommonJS(chunk_NAT4O7NW_exports);
36
+ var import_chunk_UCB5JX3B = require("./chunk-UCB5JX3B.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_T2RTHBYQ.require_package)();
45
+ var { dependencies } = (0, import_chunk_UCB5JX3B.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -16,17 +16,17 @@ 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_Z75GVIRM_exports = {};
20
- __export(chunk_Z75GVIRM_exports, {
19
+ var chunk_NAXNJDRZ_exports = {};
20
+ __export(chunk_NAXNJDRZ_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_Z75GVIRM_exports);
23
+ module.exports = __toCommonJS(chunk_NAXNJDRZ_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.1.0-dev.16",
29
+ version: "6.1.0-dev.17",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -100,7 +100,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
100
100
  "terminal-link": "2.1.1",
101
101
  tmp: "0.2.3",
102
102
  "ts-node": "10.9.2",
103
- "ts-pattern": "5.2.0",
103
+ "ts-pattern": "5.6.0",
104
104
  "ts-toolbelt": "9.6.0",
105
105
  typescript: "5.4.5",
106
106
  yarn: "1.22.22"
@@ -26,19 +26,19 @@ 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_RFYKY4ZX_exports = {};
30
- __export(chunk_RFYKY4ZX_exports, {
29
+ var chunk_NO5X2ADB_exports = {};
30
+ __export(chunk_NO5X2ADB_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_RFYKY4ZX_exports);
34
+ module.exports = __toCommonJS(chunk_NO5X2ADB_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
36
+ var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_LATZTP6I = require("./chunk-LATZTP6I.js");
38
+ var import_chunk_B635PHDW = require("./chunk-B635PHDW.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
40
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
41
+ var import_chunk_RHPV7ERN = require("./chunk-RHPV7ERN.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
49
49
  var MergeSchemasError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_LATZTP6I.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_B635PHDW.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
67
67
  function mergeSchemas(options) {
68
- const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "mergeSchemasWasm");
68
+ const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "mergeSchemasWasm");
69
69
  debug(`Using mergeSchemas Wasm`);
70
70
  const mergeSchemasEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_SM6BW5WS.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_RHPV7ERN.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -85,7 +85,7 @@ function mergeSchemas(options) {
85
85
  if ((0, import_chunk_7MD6344A.isRight)(mergeSchemasEither)) {
86
86
  return mergeSchemasEither.right;
87
87
  }
88
- const error = (0, import_chunk_H3T4L34H.$)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
+ const error = (0, import_chunk_25RJ7YTB.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
89
89
  debugErrorType(e);
90
90
  console.error("");
91
91
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
108
108
  return panic;
109
109
  }
110
110
  const errorOutput = e.error.message;
111
- return new MergeSchemasError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
111
+ return new MergeSchemasError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
112
  }).exhaustive();
113
113
  throw error;
114
114
  }
@@ -26,14 +26,14 @@ 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_SLBBRUQS_exports = {};
30
- __export(chunk_SLBBRUQS_exports, {
29
+ var chunk_QTXYAZFX_exports = {};
30
+ __export(chunk_QTXYAZFX_exports, {
31
31
  getGitHubIssueUrl: () => getGitHubIssueUrl,
32
32
  wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
33
33
  });
34
- module.exports = __toCommonJS(chunk_SLBBRUQS_exports);
34
+ module.exports = __toCommonJS(chunk_QTXYAZFX_exports);
35
35
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
36
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
36
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
37
37
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
38
38
  var import_get_platform = require("@prisma/get-platform");
39
39
  var import_node_process = __toESM(require("node:process"));
@@ -379,7 +379,7 @@ function getGitHubIssueUrl({
379
379
  });
380
380
  }
381
381
  async function wouldYouLikeToCreateANewIssue(options) {
382
- const shouldCreateNewIssue = await (0, import_chunk_H3T4L34H.$)(options.prompt).with(true, async () => {
382
+ const shouldCreateNewIssue = await (0, import_chunk_25RJ7YTB.z)(options.prompt).with(true, async () => {
383
383
  const createNewIssueResponse = await (0, import_prompts.default)({
384
384
  type: "select",
385
385
  name: "value",
@@ -26,14 +26,14 @@ 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_LSTUJ7L4_exports = {};
30
- __export(chunk_LSTUJ7L4_exports, {
29
+ var chunk_RHPV7ERN_exports = {};
30
+ __export(chunk_RHPV7ERN_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_LSTUJ7L4_exports);
36
- var import_chunk_Z75GVIRM = require("./chunk-Z75GVIRM.js");
35
+ module.exports = __toCommonJS(chunk_RHPV7ERN_exports);
36
+ var import_chunk_NAXNJDRZ = require("./chunk-NAXNJDRZ.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_Z75GVIRM.require_package)();
45
+ var { dependencies } = (0, import_chunk_NAXNJDRZ.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -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_T2RTHBYQ_exports = {};
20
- __export(chunk_T2RTHBYQ_exports, {
19
+ var chunk_UCB5JX3B_exports = {};
20
+ __export(chunk_UCB5JX3B_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_T2RTHBYQ_exports);
23
+ module.exports = __toCommonJS(chunk_UCB5JX3B_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -100,7 +100,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
100
100
  "terminal-link": "2.1.1",
101
101
  tmp: "0.2.3",
102
102
  "ts-node": "10.9.2",
103
- "ts-pattern": "5.2.0",
103
+ "ts-pattern": "5.6.0",
104
104
  "ts-toolbelt": "9.6.0",
105
105
  typescript: "5.4.5",
106
106
  yarn: "1.22.22"
@@ -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_HPF5G47V_exports = {};
30
- __export(chunk_HPF5G47V_exports, {
29
+ var chunk_UPIULDLZ_exports = {};
30
+ __export(chunk_UPIULDLZ_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_HPF5G47V_exports);
34
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
33
+ module.exports = __toCommonJS(chunk_UPIULDLZ_exports);
34
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
35
35
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
36
36
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
37
  var import_node_path = __toESM(require("node:path"));
@@ -50,7 +50,7 @@ async function locateLocalCloudflareD1({ arg }) {
50
50
  );
51
51
  }
52
52
  if (d1Databases.length > 1) {
53
- const { originalArg, recommendedArg } = (0, import_chunk_H3T4L34H.$)(arg).with("--to-local-d1", (originalArg2) => ({
53
+ const { originalArg, recommendedArg } = (0, import_chunk_25RJ7YTB.z)(arg).with("--to-local-d1", (originalArg2) => ({
54
54
  originalArg: originalArg2,
55
55
  recommendedArg: "--to-url file:"
56
56
  })).with("--from-local-d1", (originalArg2) => ({