@prisma/internals 5.19.0-integration-feat-typed-sql.2 → 5.19.0-integration-feat-typed-sql.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.
Files changed (50) hide show
  1. package/dist/{chunk-JSFAZ43I.js → chunk-7WE2ITKJ.js} +8 -8
  2. package/dist/{chunk-XIWZFSTR.js → chunk-AYV4L55K.js} +5 -5
  3. package/dist/{chunk-SMYEIQP2.js → chunk-B4KYWWMV.js} +5 -5
  4. package/dist/{chunk-IINMWKBZ.js → chunk-BFFNJPN2.js} +8 -8
  5. package/dist/{chunk-2MV6JFB4.js → chunk-DN5QQJP6.js} +7 -7
  6. package/dist/{chunk-ICI3HEHW.js → chunk-DS2LUGKG.js} +5 -5
  7. package/dist/{chunk-NJB3A2FL.js → chunk-EO7BDEWM.js} +6 -4
  8. package/dist/{chunk-SLGMG65I.js → chunk-ESY3UZBI.js} +14 -178
  9. package/dist/chunk-FHXAG4A2.js +29 -0
  10. package/dist/{chunk-LNF7AUE3.js → chunk-HWDOPJDL.js} +35 -35
  11. package/dist/{chunk-UFDOSVWQ.js → chunk-KXWHSZYC.js} +5 -3
  12. package/dist/{chunk-WZYYLYEI.js → chunk-OI5RUNIV.js} +5 -5
  13. package/dist/{chunk-GRUJOQGE.js → chunk-P2HFVVRY.js} +8 -8
  14. package/dist/{chunk-YVSBIU6Z.js → chunk-Q77DQHDZ.js} +8 -8
  15. package/dist/{chunk-RH2QBFDQ.js → chunk-QF24V7VM.js} +5 -5
  16. package/dist/{chunk-IEVQOUVE.js → chunk-QGWQK3FX.js} +8 -8
  17. package/dist/{chunk-RFDXHMHL.js → chunk-S5WXQYLR.js} +7 -7
  18. package/dist/chunk-T5RACBRF.js +189 -0
  19. package/dist/{chunk-SD47M7EE.js → chunk-UY2MAGUM.js} +5 -5
  20. package/dist/{chunk-SQ2IEXGU.js → chunk-WQQLBNTD.js} +5 -5
  21. package/dist/{chunk-NM7ATUD2.js → chunk-YWVIUKXT.js} +35 -35
  22. package/dist/{chunk-4SZRVZQO.js → chunk-ZAUBQLJH.js} +5 -5
  23. package/dist/{chunk-CQHQ4JUN.js → chunk-ZT46JXZT.js} +8 -8
  24. package/dist/cli/checkUnsupportedDataProxy.js +15 -14
  25. package/dist/cli/getSchema.js +20 -19
  26. package/dist/cli/hashes.js +15 -14
  27. package/dist/engine-commands/errorHelpers.js +4 -4
  28. package/dist/engine-commands/formatSchema.js +14 -13
  29. package/dist/engine-commands/getConfig.js +10 -10
  30. package/dist/engine-commands/getDmmf.js +7 -7
  31. package/dist/engine-commands/index.js +23 -22
  32. package/dist/engine-commands/lintSchema.js +8 -8
  33. package/dist/engine-commands/mergeSchemas.js +7 -7
  34. package/dist/engine-commands/validate.js +7 -7
  35. package/dist/get-generators/generatorResolvers/generatorResolvers.js +14 -13
  36. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +14 -13
  37. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +14 -13
  38. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +15 -14
  39. package/dist/get-generators/getGenerators.js +17 -16
  40. package/dist/getPackedPackage.js +3 -2
  41. package/dist/index.js +44 -43
  42. package/dist/sendPanic.js +14 -13
  43. package/dist/utils/getEnvPaths.js +14 -13
  44. package/dist/utils/getVersionFromPackageJson.js +3 -3
  45. package/dist/utils/handlePanic.js +14 -13
  46. package/dist/utils/isValidJsIdentifier.js +3 -2
  47. package/dist/utils/loadEnvFile.js +14 -13
  48. package/dist/wasm.js +4 -4
  49. package/package.json +9 -7
  50. package/dist/chunk-NRYEKFWP.js +0 -96
@@ -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_LNF7AUE3_exports = {};
30
- __export2(chunk_LNF7AUE3_exports, {
29
+ var chunk_HWDOPJDL_exports = {};
30
+ __export2(chunk_HWDOPJDL_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  checkYarnVersion: () => checkYarnVersion,
@@ -56,7 +56,7 @@ __export2(chunk_LNF7AUE3_exports, {
56
56
  sendPanic: () => sendPanic,
57
57
  skipIndex: () => skipIndex
58
58
  });
59
- module.exports = __toCommonJS2(chunk_LNF7AUE3_exports);
59
+ module.exports = __toCommonJS2(chunk_HWDOPJDL_exports);
60
60
  var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
61
61
  var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
62
62
  var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
@@ -81,13 +81,13 @@ var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
81
81
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
82
82
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
83
83
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
84
- var import_chunk_SQ2IEXGU = require("./chunk-SQ2IEXGU.js");
85
- var import_chunk_RFDXHMHL = require("./chunk-RFDXHMHL.js");
86
- var import_chunk_GRUJOQGE = require("./chunk-GRUJOQGE.js");
87
- var import_chunk_IINMWKBZ = require("./chunk-IINMWKBZ.js");
84
+ var import_chunk_B4KYWWMV = require("./chunk-B4KYWWMV.js");
85
+ var import_chunk_DN5QQJP6 = require("./chunk-DN5QQJP6.js");
86
+ var import_chunk_7WE2ITKJ = require("./chunk-7WE2ITKJ.js");
87
+ var import_chunk_Q77DQHDZ = require("./chunk-Q77DQHDZ.js");
88
88
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
89
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
90
- var import_chunk_4SZRVZQO = require("./chunk-4SZRVZQO.js");
90
+ var import_chunk_ZAUBQLJH = require("./chunk-ZAUBQLJH.js");
91
91
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
92
92
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
93
93
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
@@ -96,7 +96,7 @@ var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
96
96
  var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
97
97
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
98
98
  var import_chunk_4NFLAUKD = require("./chunk-4NFLAUKD.js");
99
- var import_chunk_SLGMG65I = require("./chunk-SLGMG65I.js");
99
+ var import_chunk_ESY3UZBI = require("./chunk-ESY3UZBI.js");
100
100
  var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
101
101
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
102
102
  var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
@@ -440,7 +440,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
440
440
  module2.exports = readdirGlob;
441
441
  var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
442
442
  var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
443
- var { Minimatch } = (0, import_chunk_SLGMG65I.require_minimatch)();
443
+ var { Minimatch } = (0, import_chunk_ESY3UZBI.require_minimatch)();
444
444
  var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
445
445
  function readdir(dir2, strict) {
446
446
  return new Promise((resolve2, reject2) => {
@@ -3619,7 +3619,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
3619
3619
  var Duplex;
3620
3620
  Writable.WritableState = WritableState;
3621
3621
  var util = Object.create(require_util());
3622
- util.inherits = (0, import_chunk_SLGMG65I.require_inherits)();
3622
+ util.inherits = (0, import_chunk_ESY3UZBI.require_inherits)();
3623
3623
  var internalUtil = {
3624
3624
  deprecate: require_node()
3625
3625
  };
@@ -4057,7 +4057,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
4057
4057
  };
4058
4058
  module2.exports = Duplex;
4059
4059
  var util = Object.create(require_util());
4060
- util.inherits = (0, import_chunk_SLGMG65I.require_inherits)();
4060
+ util.inherits = (0, import_chunk_ESY3UZBI.require_inherits)();
4061
4061
  var Readable = require_stream_readable();
4062
4062
  var Writable = require_stream_writable();
4063
4063
  util.inherits(Duplex, Readable);
@@ -4378,7 +4378,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
4378
4378
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
4379
4379
  }
4380
4380
  var util = Object.create(require_util());
4381
- util.inherits = (0, import_chunk_SLGMG65I.require_inherits)();
4381
+ util.inherits = (0, import_chunk_ESY3UZBI.require_inherits)();
4382
4382
  var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
4383
4383
  var debug8 = void 0;
4384
4384
  if (debugUtil && debugUtil.debuglog) {
@@ -5045,7 +5045,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
5045
5045
  module2.exports = Transform;
5046
5046
  var Duplex = require_stream_duplex();
5047
5047
  var util = Object.create(require_util());
5048
- util.inherits = (0, import_chunk_SLGMG65I.require_inherits)();
5048
+ util.inherits = (0, import_chunk_ESY3UZBI.require_inherits)();
5049
5049
  util.inherits(Transform, Duplex);
5050
5050
  function afterTransform(er, data) {
5051
5051
  var ts = this._transformState;
@@ -5143,7 +5143,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
5143
5143
  module2.exports = PassThrough;
5144
5144
  var Transform = require_stream_transform();
5145
5145
  var util = Object.create(require_util());
5146
- util.inherits = (0, import_chunk_SLGMG65I.require_inherits)();
5146
+ util.inherits = (0, import_chunk_ESY3UZBI.require_inherits)();
5147
5147
  util.inherits(PassThrough, Transform);
5148
5148
  function PassThrough(options2) {
5149
5149
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
@@ -6429,7 +6429,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6429
6429
  var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
6430
6430
  var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
6431
6431
  var errorOrDestroy = destroyImpl.errorOrDestroy;
6432
- (0, import_chunk_SLGMG65I.require_inherits)()(Writable, Stream);
6432
+ (0, import_chunk_ESY3UZBI.require_inherits)()(Writable, Stream);
6433
6433
  function nop() {
6434
6434
  }
6435
6435
  function WritableState(options2, stream, isDuplex) {
@@ -6871,7 +6871,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
6871
6871
  module2.exports = Duplex;
6872
6872
  var Readable = require_stream_readable2();
6873
6873
  var Writable = require_stream_writable2();
6874
- (0, import_chunk_SLGMG65I.require_inherits)()(Duplex, Readable);
6874
+ (0, import_chunk_ESY3UZBI.require_inherits)()(Duplex, Readable);
6875
6875
  {
6876
6876
  keys = objectKeys(Writable.prototype);
6877
6877
  for (v = 0; v < keys.length; v++) {
@@ -7648,7 +7648,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
7648
7648
  var StringDecoder;
7649
7649
  var createReadableStreamAsyncIterator;
7650
7650
  var from;
7651
- (0, import_chunk_SLGMG65I.require_inherits)()(Readable, Stream);
7651
+ (0, import_chunk_ESY3UZBI.require_inherits)()(Readable, Stream);
7652
7652
  var errorOrDestroy = destroyImpl.errorOrDestroy;
7653
7653
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
7654
7654
  function prependListener(emitter, event, fn) {
@@ -8353,7 +8353,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
8353
8353
  var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
8354
8354
  var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
8355
8355
  var Duplex = require_stream_duplex2();
8356
- (0, import_chunk_SLGMG65I.require_inherits)()(Transform, Duplex);
8356
+ (0, import_chunk_ESY3UZBI.require_inherits)()(Transform, Duplex);
8357
8357
  function afterTransform(er, data) {
8358
8358
  var ts = this._transformState;
8359
8359
  ts.transforming = false;
@@ -8447,7 +8447,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
8447
8447
  "use strict";
8448
8448
  module2.exports = PassThrough;
8449
8449
  var Transform = require_stream_transform2();
8450
- (0, import_chunk_SLGMG65I.require_inherits)()(PassThrough, Transform);
8450
+ (0, import_chunk_ESY3UZBI.require_inherits)()(PassThrough, Transform);
8451
8451
  function PassThrough(options2) {
8452
8452
  if (!(this instanceof PassThrough)) return new PassThrough(options2);
8453
8453
  Transform.call(this, options2);
@@ -9321,7 +9321,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
9321
9321
  var difference = require_difference();
9322
9322
  var union = require_union();
9323
9323
  var isPlainObject = require_isPlainObject();
9324
- var glob = (0, import_chunk_SLGMG65I.require_glob)();
9324
+ var glob = (0, import_chunk_ESY3UZBI.require_glob)();
9325
9325
  var file = module2.exports = {};
9326
9326
  var pathSeparatorRe = /[\/\\]/g;
9327
9327
  var processPatterns = function(patterns, fn) {
@@ -15517,7 +15517,7 @@ async function readSchemaFromDirectory(schemaPath2) {
15517
15517
  }
15518
15518
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
15519
15519
  debug2("Loading config");
15520
- const config2 = await (0, import_chunk_GRUJOQGE.getConfig)({
15520
+ const config2 = await (0, import_chunk_7WE2ITKJ.getConfig)({
15521
15521
  datamodel: files,
15522
15522
  ignoreEnvVarErrors: true
15523
15523
  });
@@ -15626,7 +15626,7 @@ function renderDefaultLookupError(error, cwd) {
15626
15626
  return parts.join("\n");
15627
15627
  }
15628
15628
  async function getPrismaConfigFromPackageJson(cwd) {
15629
- const pkgJson = await (0, import_chunk_SLGMG65I.readPackageUp)({ cwd, normalize: false });
15629
+ const pkgJson = await (0, import_chunk_ESY3UZBI.readPackageUp)({ cwd, normalize: false });
15630
15630
  const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
15631
15631
  if (!pkgJson) {
15632
15632
  return null;
@@ -15799,7 +15799,7 @@ function isPkgJsonWorkspaceRoot(pkgJson) {
15799
15799
  return Array.isArray(workspaces) || workspaces.packages !== void 0;
15800
15800
  }
15801
15801
  async function isNearestPkgJsonWorkspaceRoot(cwd) {
15802
- const pkgJson = await (0, import_chunk_SLGMG65I.readPackageUp)({ cwd, normalize: false });
15802
+ const pkgJson = await (0, import_chunk_ESY3UZBI.readPackageUp)({ cwd, normalize: false });
15803
15803
  if (!pkgJson) {
15804
15804
  return null;
15805
15805
  }
@@ -15909,8 +15909,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15909
15909
  if (argName.includes("schema")) {
15910
15910
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15911
15911
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15912
- const config2 = await (0, import_chunk_GRUJOQGE.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
- const url = (0, import_chunk_GRUJOQGE.resolveUrl)((0, import_chunk_GRUJOQGE.getEffectiveUrl)(config2.datasources[0]));
15912
+ const config2 = await (0, import_chunk_7WE2ITKJ.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
+ const url = (0, import_chunk_7WE2ITKJ.resolveUrl)((0, import_chunk_7WE2ITKJ.getEffectiveUrl)(config2.datasources[0]));
15914
15914
  if (url?.startsWith("prisma://")) {
15915
15915
  return forbiddenCmdWithDataProxyFlagMessage(command);
15916
15916
  }
@@ -15931,7 +15931,7 @@ function getCLIPathHash() {
15931
15931
  const cliPath = process.argv[1];
15932
15932
  return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
15933
15933
  }
15934
- var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_SLGMG65I.require_p_map)());
15934
+ var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_ESY3UZBI.require_p_map)());
15935
15935
  var debug4 = (0, import_debug6.default)("prisma:generator");
15936
15936
  async function checkTypeScriptVersion() {
15937
15937
  const minVersion = "4.1.0";
@@ -16114,7 +16114,7 @@ async function getGenerators(options) {
16114
16114
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
16115
16115
  }
16116
16116
  }
16117
- const config = await (0, import_chunk_GRUJOQGE.getConfig)({
16117
+ const config = await (0, import_chunk_7WE2ITKJ.getConfig)({
16118
16118
  datamodel: schemas,
16119
16119
  datamodelPath: schemaPath,
16120
16120
  prismaPath,
@@ -16125,7 +16125,7 @@ async function getGenerators(options) {
16125
16125
  }
16126
16126
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
16127
16127
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
16128
- const dmmf = await (0, import_chunk_IINMWKBZ.getDMMF)({
16128
+ const dmmf = await (0, import_chunk_Q77DQHDZ.getDMMF)({
16129
16129
  datamodel: schemas,
16130
16130
  datamodelPath: schemaPath,
16131
16131
  prismaPath,
@@ -16186,7 +16186,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
16186
16186
  fromEnvVar: "null"
16187
16187
  };
16188
16188
  }
16189
- const datamodel = (0, import_chunk_RFDXHMHL.mergeSchemas)({ schemas });
16189
+ const datamodel = (0, import_chunk_DN5QQJP6.mergeSchemas)({ schemas });
16190
16190
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
16191
16191
  const options2 = {
16192
16192
  datamodel,
@@ -16269,7 +16269,7 @@ generator gen {
16269
16269
  debug6({ generatorBinaryPaths });
16270
16270
  generator.setBinaryPaths(generatorBinaryPaths);
16271
16271
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
16272
- const customDmmf = await (0, import_chunk_IINMWKBZ.getDMMF)({
16272
+ const customDmmf = await (0, import_chunk_Q77DQHDZ.getDMMF)({
16273
16273
  datamodel: schemas,
16274
16274
  datamodelPath: schemaPath,
16275
16275
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -16567,7 +16567,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16567
16567
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
16568
16568
  handleFormatPanic(
16569
16569
  () => {
16570
- import_chunk_4SZRVZQO.prismaSchemaWasm.debug_panic();
16570
+ import_chunk_ZAUBQLJH.prismaSchemaWasm.debug_panic();
16571
16571
  },
16572
16572
  { schemas: schemas2 }
16573
16573
  );
@@ -16587,12 +16587,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16587
16587
  () => {
16588
16588
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
16589
16589
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
16590
- const lintDiagnostics2 = (0, import_chunk_SQ2IEXGU.lintSchema)({ schemas: formattedMultipleSchemas2 });
16590
+ const lintDiagnostics2 = (0, import_chunk_B4KYWWMV.lintSchema)({ schemas: formattedMultipleSchemas2 });
16591
16591
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
16592
16592
  },
16593
16593
  { schemas: schemas2 }
16594
16594
  );
16595
- const lintWarnings = (0, import_chunk_SQ2IEXGU.getLintWarningsAsText)(lintDiagnostics);
16595
+ const lintWarnings = (0, import_chunk_B4KYWWMV.getLintWarningsAsText)(lintDiagnostics);
16596
16596
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
16597
16597
  console.warn(lintWarnings);
16598
16598
  }
@@ -16622,7 +16622,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
16622
16622
  }
16623
16623
  }
16624
16624
  function formatWasm(schema, documentFormattingParams) {
16625
- const formattedSchema = import_chunk_4SZRVZQO.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16625
+ const formattedSchema = import_chunk_ZAUBQLJH.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16626
16626
  return formattedSchema;
16627
16627
  }
16628
16628
  /*! 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_UFDOSVWQ_exports = {};
20
- __export(chunk_UFDOSVWQ_exports, {
19
+ var chunk_KXWHSZYC_exports = {};
20
+ __export(chunk_KXWHSZYC_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_UFDOSVWQ_exports);
23
+ module.exports = __toCommonJS(chunk_KXWHSZYC_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) {
@@ -54,9 +54,11 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
54
54
  ],
55
55
  devDependencies: {
56
56
  "@antfu/ni": "0.21.12",
57
+ "@babel/helper-validator-identifier": "7.24.7",
57
58
  "@opentelemetry/api": "1.9.0",
58
59
  "@swc/core": "1.2.204",
59
60
  "@swc/jest": "0.2.36",
61
+ "@types/babel__helper-validator-identifier": "7.15.2",
60
62
  "@types/jest": "29.5.12",
61
63
  "@types/node": "18.19.31",
62
64
  "@types/resolve": "1.20.6",
@@ -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_WZYYLYEI_exports = {};
30
- __export(chunk_WZYYLYEI_exports, {
29
+ var chunk_OI5RUNIV_exports = {};
30
+ __export(chunk_OI5RUNIV_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_WZYYLYEI_exports);
36
- var import_chunk_UFDOSVWQ = require("./chunk-UFDOSVWQ.js");
35
+ module.exports = __toCommonJS(chunk_OI5RUNIV_exports);
36
+ var import_chunk_KXWHSZYC = require("./chunk-KXWHSZYC.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_UFDOSVWQ.require_package)();
45
+ var { dependencies } = (0, import_chunk_KXWHSZYC.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -26,22 +26,22 @@ 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_GRUJOQGE_exports = {};
30
- __export(chunk_GRUJOQGE_exports, {
29
+ var chunk_P2HFVVRY_exports = {};
30
+ __export(chunk_P2HFVVRY_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_GRUJOQGE_exports);
37
+ module.exports = __toCommonJS(chunk_P2HFVVRY_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
39
  var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
40
40
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
41
- var import_chunk_RH2QBFDQ = require("./chunk-RH2QBFDQ.js");
41
+ var import_chunk_AYV4L55K = require("./chunk-AYV4L55K.js");
42
42
  var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
43
43
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
44
- var import_chunk_4SZRVZQO = require("./chunk-4SZRVZQO.js");
44
+ var import_chunk_OI5RUNIV = require("./chunk-OI5RUNIV.js");
45
45
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
46
46
  var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_RH2QBFDQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_AYV4L55K.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -90,7 +90,7 @@ async function getConfig(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_4SZRVZQO.prismaSchemaWasm.debug_panic();
93
+ import_chunk_OI5RUNIV.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_4SZRVZQO.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_OI5RUNIV.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -26,18 +26,18 @@ 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_YVSBIU6Z_exports = {};
30
- __export(chunk_YVSBIU6Z_exports, {
29
+ var chunk_Q77DQHDZ_exports = {};
30
+ __export(chunk_Q77DQHDZ_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_YVSBIU6Z_exports);
34
+ module.exports = __toCommonJS(chunk_Q77DQHDZ_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
- var import_chunk_XIWZFSTR = require("./chunk-XIWZFSTR.js");
37
+ var import_chunk_QF24V7VM = require("./chunk-QF24V7VM.js");
38
38
  var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
39
39
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
40
- var import_chunk_WZYYLYEI = require("./chunk-WZYYLYEI.js");
40
+ var import_chunk_ZAUBQLJH = require("./chunk-ZAUBQLJH.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
42
  var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_XIWZFSTR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_QF24V7VM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -91,13 +91,13 @@ async function getDMMF(options) {
91
91
  () => {
92
92
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
93
93
  debug("Triggering a Rust panic...");
94
- import_chunk_WZYYLYEI.prismaSchemaWasm.debug_panic();
94
+ import_chunk_ZAUBQLJH.prismaSchemaWasm.debug_panic();
95
95
  }
96
96
  const params = JSON.stringify({
97
97
  prismaSchema: datamodel,
98
98
  noColor: Boolean(process.env.NO_COLOR)
99
99
  });
100
- const data = import_chunk_WZYYLYEI.prismaSchemaWasm.get_dmmf(params);
100
+ const data = import_chunk_ZAUBQLJH.prismaSchemaWasm.get_dmmf(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -16,15 +16,15 @@ 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_RH2QBFDQ_exports = {};
20
- __export(chunk_RH2QBFDQ_exports, {
19
+ var chunk_QF24V7VM_exports = {};
20
+ __export(chunk_QF24V7VM_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_RH2QBFDQ_exports);
24
- var import_chunk_SD47M7EE = require("./chunk-SD47M7EE.js");
23
+ module.exports = __toCommonJS(chunk_QF24V7VM_exports);
24
+ var import_chunk_DS2LUGKG = require("./chunk-DS2LUGKG.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_SD47M7EE.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_DS2LUGKG.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_IEVQOUVE_exports = {};
30
- __export(chunk_IEVQOUVE_exports, {
29
+ var chunk_QGWQK3FX_exports = {};
30
+ __export(chunk_QGWQK3FX_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_IEVQOUVE_exports);
34
+ module.exports = __toCommonJS(chunk_QGWQK3FX_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
37
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_RH2QBFDQ = require("./chunk-RH2QBFDQ.js");
38
+ var import_chunk_QF24V7VM = require("./chunk-QF24V7VM.js");
39
39
  var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_4SZRVZQO = require("./chunk-4SZRVZQO.js");
41
+ var import_chunk_ZAUBQLJH = require("./chunk-ZAUBQLJH.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_RH2QBFDQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_QF24V7VM.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_4SZRVZQO.prismaSchemaWasm.debug_panic();
75
+ import_chunk_ZAUBQLJH.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_4SZRVZQO.prismaSchemaWasm.validate(params);
81
+ import_chunk_ZAUBQLJH.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -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_RFDXHMHL_exports = {};
30
- __export(chunk_RFDXHMHL_exports, {
29
+ var chunk_S5WXQYLR_exports = {};
30
+ __export(chunk_S5WXQYLR_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_RFDXHMHL_exports);
34
+ module.exports = __toCommonJS(chunk_S5WXQYLR_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_KUMD5MBR = require("./chunk-KUMD5MBR.js");
37
37
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_RH2QBFDQ = require("./chunk-RH2QBFDQ.js");
38
+ var import_chunk_AYV4L55K = require("./chunk-AYV4L55K.js");
39
39
  var import_chunk_QOTVZEEZ = require("./chunk-QOTVZEEZ.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_4SZRVZQO = require("./chunk-4SZRVZQO.js");
41
+ var import_chunk_OI5RUNIV = require("./chunk-OI5RUNIV.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_4A5ZK522 = require("./chunk-4A5ZK522.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_RH2QBFDQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_AYV4L55K.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_4SZRVZQO.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_OI5RUNIV.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",