@prisma/internals 6.6.0-dev.57 → 6.6.0-dev.59

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 (74) hide show
  1. package/dist/Generator.d.ts +23 -5
  2. package/dist/Generator.js +4 -2
  3. package/dist/{chunk-VVPSLVOR.js → chunk-67I7CEQJ.js} +6 -7
  4. package/dist/{chunk-OGCUCDZ7.js → chunk-6WQVUWQM.js} +5 -5
  5. package/dist/{chunk-2CMKZNGP.js → chunk-A5O5JLW5.js} +8 -8
  6. package/dist/{chunk-2CR67TJT.js → chunk-A6IRWWSZ.js} +4 -5
  7. package/dist/{chunk-DYVL6P7F.js → chunk-BPDMLM32.js} +46 -13
  8. package/dist/{chunk-OGXOI4RU.js → chunk-CQQIMP6N.js} +8 -8
  9. package/dist/{chunk-J72OZOSE.js → chunk-CW6KQ3VH.js} +8 -8
  10. package/dist/{chunk-QWMXGEHC.js → chunk-DB3Y5NDC.js} +7 -7
  11. package/dist/{chunk-TOHL7KMJ.js → chunk-GNKWZC7O.js} +5 -5
  12. package/dist/{chunk-BD7L3WI4.js → chunk-GQD56R42.js} +8 -8
  13. package/dist/{chunk-7EPWXFTQ.js → chunk-HQXQG5GY.js} +83 -198
  14. package/dist/{chunk-WKCFN36R.js → chunk-J3YY6H66.js} +5 -5
  15. package/dist/{chunk-MTTVYCXS.js → chunk-JETLVL4E.js} +5 -5
  16. package/dist/{chunk-O2YDPK7X.js → chunk-JHOV6GLG.js} +5 -6
  17. package/dist/{chunk-6NXJ2LD6.js → chunk-JUTACZEX.js} +5 -5
  18. package/dist/{chunk-RU5ZW2PM.js → chunk-LOQLID3N.js} +8 -8
  19. package/dist/{chunk-K5W6WZ6E.js → chunk-MJIP3FY5.js} +6 -238
  20. package/dist/{chunk-GA3QUNF6.js → chunk-NWAAPGFA.js} +5 -5
  21. package/dist/{chunk-CORSUW3M.js → chunk-QJ72IP2K.js} +8 -8
  22. package/dist/{chunk-X2CA5QBB.js → chunk-QXNNDOVP.js} +83 -198
  23. package/dist/{chunk-QKMCPXKL.js → chunk-T5MMBF2S.js} +5 -5
  24. package/dist/{chunk-X3NPQOIN.js → chunk-TN4KCTWC.js} +7 -7
  25. package/dist/{chunk-WVNFXG35.js → chunk-TRF2UWX2.js} +5 -5
  26. package/dist/cli/checkUnsupportedDataProxy.js +22 -28
  27. package/dist/cli/getSchema.js +25 -31
  28. package/dist/cli/hashes.js +22 -28
  29. package/dist/cli/schemaContext.js +22 -28
  30. package/dist/engine-commands/errorHelpers.js +4 -4
  31. package/dist/engine-commands/formatSchema.js +21 -27
  32. package/dist/engine-commands/getConfig.js +10 -10
  33. package/dist/engine-commands/getDmmf.js +7 -7
  34. package/dist/engine-commands/index.js +30 -36
  35. package/dist/engine-commands/lintSchema.js +8 -8
  36. package/dist/engine-commands/mergeSchemas.js +7 -7
  37. package/dist/engine-commands/validate.js +7 -7
  38. package/dist/get-generators/getGenerators.d.ts +18 -9
  39. package/dist/get-generators/getGenerators.js +24 -30
  40. package/dist/getPackedPackage.js +3 -3
  41. package/dist/index.d.ts +2 -4
  42. package/dist/index.js +51 -57
  43. package/dist/resolvePkg.d.ts +7 -0
  44. package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
  45. package/dist/utils/getEnvPaths.js +21 -27
  46. package/dist/utils/getVersionFromPackageJson.js +3 -3
  47. package/dist/utils/loadEnvFile.js +21 -27
  48. package/dist/wasm.js +4 -4
  49. package/package.json +11 -12
  50. package/dist/chunk-72UZXEBG.js +0 -28
  51. package/dist/chunk-BWGDP6B5.js +0 -4948
  52. package/dist/chunk-EUTJYQDW.js +0 -46
  53. package/dist/chunk-EWWOTVR3.js +0 -52
  54. package/dist/chunk-GHHABGYW.js +0 -28
  55. package/dist/chunk-QGJH4P4N.js +0 -35
  56. package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
  57. package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -138
  58. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
  59. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
  60. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
  61. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
  62. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
  63. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
  64. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
  65. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -138
  66. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
  67. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
  68. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
  69. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
  70. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
  71. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
  72. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
  73. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
  74. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -139
@@ -1,13 +1,15 @@
1
- import type { BinaryPaths, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
2
- export declare class Generator {
3
- private generatorProcess;
1
+ import type { BinaryPaths, Generator as IGenerator, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
2
+ export declare abstract class Generator {
4
3
  manifest: GeneratorManifest | null;
5
4
  config: GeneratorConfig;
6
5
  options?: GeneratorOptions;
7
- constructor(executablePath: string, config: GeneratorConfig, isNode?: boolean);
6
+ constructor(config: GeneratorConfig);
8
7
  init(): Promise<void>;
9
- stop(): void;
8
+ protected abstract initImpl(): Promise<void>;
9
+ protected abstract getManifest(): Promise<GeneratorManifest | null>;
10
+ abstract stop(): void;
10
11
  generate(): Promise<void>;
12
+ protected abstract generateImpl(options: GeneratorOptions): Promise<void>;
11
13
  setOptions(options: GeneratorOptions): void;
12
14
  setBinaryPaths(binaryPaths: BinaryPaths): void;
13
15
  /**
@@ -22,3 +24,19 @@ export declare class Generator {
22
24
  */
23
25
  getProvider(): string;
24
26
  }
27
+ export declare class JsonRpcGenerator extends Generator {
28
+ #private;
29
+ constructor(executablePath: string, config: GeneratorConfig, isNode?: boolean);
30
+ protected initImpl(): Promise<void>;
31
+ protected getManifest(): Promise<GeneratorManifest | null>;
32
+ protected generateImpl(options: GeneratorOptions): Promise<void>;
33
+ stop(): void;
34
+ }
35
+ export declare class InProcessGenerator extends Generator {
36
+ #private;
37
+ constructor(config: GeneratorConfig, generator: IGenerator);
38
+ protected initImpl(): Promise<void>;
39
+ protected getManifest(): Promise<GeneratorManifest | null>;
40
+ protected generateImpl(options: GeneratorOptions): Promise<void>;
41
+ stop(): void;
42
+ }
package/dist/Generator.js CHANGED
@@ -18,10 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var Generator_exports = {};
20
20
  __export(Generator_exports, {
21
- Generator: () => import_chunk_DYVL6P7F.Generator
21
+ Generator: () => import_chunk_BPDMLM32.Generator,
22
+ InProcessGenerator: () => import_chunk_BPDMLM32.InProcessGenerator,
23
+ JsonRpcGenerator: () => import_chunk_BPDMLM32.JsonRpcGenerator
22
24
  });
23
25
  module.exports = __toCommonJS(Generator_exports);
24
- var import_chunk_DYVL6P7F = require("./chunk-DYVL6P7F.js");
26
+ var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
25
27
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
26
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
29
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -26,13 +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_VVPSLVOR_exports = {};
30
- __export(chunk_VVPSLVOR_exports, {
31
- require_function_bind: () => require_function_bind,
32
- resolve: () => resolve,
29
+ var chunk_67I7CEQJ_exports = {};
30
+ __export(chunk_67I7CEQJ_exports, {
31
+ require_is_core_module: () => require_is_core_module,
33
32
  resolvePkg: () => resolvePkg
34
33
  });
35
- module.exports = __toCommonJS(chunk_VVPSLVOR_exports);
34
+ module.exports = __toCommonJS(chunk_67I7CEQJ_exports);
36
35
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
37
36
  var import_path = __toESM(require("path"));
38
37
  var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
@@ -1180,7 +1179,7 @@ var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
1180
1179
  }
1181
1180
  });
1182
1181
  var import_resolve = (0, import_chunk_4VNS5WPM.__toESM)(require_resolve());
1183
- async function resolve(id, options) {
1182
+ async function resolveOrUndefined(id, options) {
1184
1183
  const _options = { preserveSymlinks: false, ...options };
1185
1184
  return new Promise((res) => {
1186
1185
  (0, import_resolve.default)(id, _options, (e, v) => {
@@ -1190,6 +1189,6 @@ async function resolve(id, options) {
1190
1189
  });
1191
1190
  }
1192
1191
  async function resolvePkg(id, options) {
1193
- const resolvedPath = await resolve(`${id}/package.json`, options);
1192
+ const resolvedPath = await resolveOrUndefined(`${id}/package.json`, options);
1194
1193
  return resolvedPath && import_path.default.dirname(resolvedPath);
1195
1194
  }
@@ -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_OGCUCDZ7_exports = {};
20
- __export(chunk_OGCUCDZ7_exports, {
19
+ var chunk_6WQVUWQM_exports = {};
20
+ __export(chunk_6WQVUWQM_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_OGCUCDZ7_exports);
24
- var import_chunk_2CR67TJT = require("./chunk-2CR67TJT.js");
25
- var packageJson = (0, import_chunk_2CR67TJT.require_package)();
23
+ module.exports = __toCommonJS(chunk_6WQVUWQM_exports);
24
+ var import_chunk_A6IRWWSZ = require("./chunk-A6IRWWSZ.js");
25
+ var packageJson = (0, import_chunk_A6IRWWSZ.require_package)();
26
26
  var version = packageJson.version;
@@ -26,17 +26,17 @@ 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_2CMKZNGP_exports = {};
30
- __export(chunk_2CMKZNGP_exports, {
29
+ var chunk_A5O5JLW5_exports = {};
30
+ __export(chunk_A5O5JLW5_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_2CMKZNGP_exports);
34
+ module.exports = __toCommonJS(chunk_A5O5JLW5_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_WVNFXG35 = require("./chunk-WVNFXG35.js");
39
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
38
+ var import_chunk_TRF2UWX2 = require("./chunk-TRF2UWX2.js");
39
+ var import_chunk_NWAAPGFA = require("./chunk-NWAAPGFA.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_WVNFXG35.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_TRF2UWX2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
@@ -71,13 +71,13 @@ function validate(options) {
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_GA3QUNF6.prismaSchemaWasm.debug_panic();
74
+ import_chunk_NWAAPGFA.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_GA3QUNF6.prismaSchemaWasm.validate(params);
80
+ import_chunk_NWAAPGFA.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -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_2CR67TJT_exports = {};
20
- __export(chunk_2CR67TJT_exports, {
19
+ var chunk_A6IRWWSZ_exports = {};
20
+ __export(chunk_A6IRWWSZ_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_2CR67TJT_exports);
23
+ module.exports = __toCommonJS(chunk_A6IRWWSZ_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) {
@@ -53,7 +53,6 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
53
53
  "scripts"
54
54
  ],
55
55
  devDependencies: {
56
- "@antfu/ni": "0.21.12",
57
56
  "@babel/helper-validator-identifier": "7.25.9",
58
57
  "@opentelemetry/api": "1.9.0",
59
58
  "@swc/core": "1.11.5",
@@ -113,7 +112,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
113
112
  "@prisma/generator": "workspace:*",
114
113
  "@prisma/generator-helper": "workspace:*",
115
114
  "@prisma/get-platform": "workspace:*",
116
- "@prisma/prisma-schema-wasm": "6.6.0-27.ff4e67a11a395e489261256f882adb6d6a7eea11",
115
+ "@prisma/prisma-schema-wasm": "6.6.0-30.baa69bfeca2f318076d19b6ce650fd8c9b4cb452",
117
116
  "@prisma/schema-files-loader": "workspace:*",
118
117
  arg: "5.0.2",
119
118
  prompts: "2.4.2"
@@ -16,34 +16,31 @@ 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_DYVL6P7F_exports = {};
20
- __export(chunk_DYVL6P7F_exports, {
21
- Generator: () => Generator
19
+ var chunk_BPDMLM32_exports = {};
20
+ __export(chunk_BPDMLM32_exports, {
21
+ Generator: () => Generator,
22
+ InProcessGenerator: () => InProcessGenerator,
23
+ JsonRpcGenerator: () => JsonRpcGenerator
22
24
  });
23
- module.exports = __toCommonJS(chunk_DYVL6P7F_exports);
25
+ module.exports = __toCommonJS(chunk_BPDMLM32_exports);
24
26
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
25
27
  var import_generator_helper = require("@prisma/generator-helper");
26
28
  var Generator = class {
27
- generatorProcess;
28
29
  manifest = null;
29
30
  config;
30
31
  options;
31
- constructor(executablePath, config, isNode) {
32
+ constructor(config) {
32
33
  this.config = config;
33
- this.generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
34
34
  }
35
35
  async init() {
36
- await this.generatorProcess.init();
37
- this.manifest = await this.generatorProcess.getManifest(this.config);
38
- }
39
- stop() {
40
- this.generatorProcess.stop();
36
+ await this.initImpl();
37
+ this.manifest = await this.getManifest();
41
38
  }
42
39
  generate() {
43
40
  if (!this.options) {
44
41
  throw new Error(`Please first run .setOptions() on the Generator to initialize the options`);
45
42
  }
46
- return this.generatorProcess.generate(this.options);
43
+ return this.generateImpl(this.options);
47
44
  }
48
45
  setOptions(options) {
49
46
  this.options = options;
@@ -70,3 +67,39 @@ var Generator = class {
70
67
  return (0, import_chunk_IOIAK7V7.parseEnvValue)(this.config.provider);
71
68
  }
72
69
  };
70
+ var JsonRpcGenerator = class extends Generator {
71
+ #generatorProcess;
72
+ constructor(executablePath, config, isNode) {
73
+ super(config);
74
+ this.#generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
75
+ }
76
+ async initImpl() {
77
+ await this.#generatorProcess.init();
78
+ }
79
+ async getManifest() {
80
+ return await this.#generatorProcess.getManifest(this.config);
81
+ }
82
+ async generateImpl(options) {
83
+ await this.#generatorProcess.generate(options);
84
+ }
85
+ stop() {
86
+ this.#generatorProcess.stop();
87
+ }
88
+ };
89
+ var InProcessGenerator = class extends Generator {
90
+ #generator;
91
+ constructor(config, generator) {
92
+ super(config);
93
+ this.#generator = generator;
94
+ }
95
+ async initImpl() {
96
+ }
97
+ async getManifest() {
98
+ return await this.#generator.getManifest(this.config);
99
+ }
100
+ async generateImpl(options) {
101
+ await this.#generator.generate(options);
102
+ }
103
+ stop() {
104
+ }
105
+ };
@@ -26,20 +26,20 @@ 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_OGXOI4RU_exports = {};
30
- __export(chunk_OGXOI4RU_exports, {
29
+ var chunk_CQQIMP6N_exports = {};
30
+ __export(chunk_CQQIMP6N_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_OGXOI4RU_exports);
37
+ module.exports = __toCommonJS(chunk_CQQIMP6N_exports);
38
38
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
39
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_MTTVYCXS = require("./chunk-MTTVYCXS.js");
42
- var import_chunk_QKMCPXKL = require("./chunk-QKMCPXKL.js");
41
+ var import_chunk_TRF2UWX2 = require("./chunk-TRF2UWX2.js");
42
+ var import_chunk_NWAAPGFA = require("./chunk-NWAAPGFA.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_MTTVYCXS.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_TRF2UWX2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_QKMCPXKL.prismaSchemaWasm.debug_panic();
92
+ import_chunk_NWAAPGFA.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_QKMCPXKL.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_NWAAPGFA.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -26,20 +26,20 @@ 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_J72OZOSE_exports = {};
30
- __export(chunk_J72OZOSE_exports, {
29
+ var chunk_CW6KQ3VH_exports = {};
30
+ __export(chunk_CW6KQ3VH_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_J72OZOSE_exports);
37
+ module.exports = __toCommonJS(chunk_CW6KQ3VH_exports);
38
38
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
39
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_WVNFXG35 = require("./chunk-WVNFXG35.js");
42
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
41
+ var import_chunk_JETLVL4E = require("./chunk-JETLVL4E.js");
42
+ var import_chunk_T5MMBF2S = require("./chunk-T5MMBF2S.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_WVNFXG35.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_JETLVL4E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_GA3QUNF6.prismaSchemaWasm.debug_panic();
92
+ import_chunk_T5MMBF2S.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_GA3QUNF6.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_T5MMBF2S.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -26,17 +26,17 @@ 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_QWMXGEHC_exports = {};
30
- __export(chunk_QWMXGEHC_exports, {
29
+ var chunk_DB3Y5NDC_exports = {};
30
+ __export(chunk_DB3Y5NDC_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_QWMXGEHC_exports);
34
+ module.exports = __toCommonJS(chunk_DB3Y5NDC_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_MTTVYCXS = require("./chunk-MTTVYCXS.js");
39
- var import_chunk_QKMCPXKL = require("./chunk-QKMCPXKL.js");
38
+ var import_chunk_TRF2UWX2 = require("./chunk-TRF2UWX2.js");
39
+ var import_chunk_NWAAPGFA = require("./chunk-NWAAPGFA.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_MTTVYCXS.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_TRF2UWX2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_QKMCPXKL.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_NWAAPGFA.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -16,20 +16,20 @@ 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_TOHL7KMJ_exports = {};
20
- __export(chunk_TOHL7KMJ_exports, {
19
+ var chunk_GNKWZC7O_exports = {};
20
+ __export(chunk_GNKWZC7O_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_TOHL7KMJ_exports);
28
- var import_chunk_QKMCPXKL = require("./chunk-QKMCPXKL.js");
27
+ module.exports = __toCommonJS(chunk_GNKWZC7O_exports);
28
+ var import_chunk_T5MMBF2S = require("./chunk-T5MMBF2S.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_QKMCPXKL.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_T5MMBF2S.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_BD7L3WI4_exports = {};
30
- __export(chunk_BD7L3WI4_exports, {
29
+ var chunk_GQD56R42_exports = {};
30
+ __export(chunk_GQD56R42_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_BD7L3WI4_exports);
34
+ module.exports = __toCommonJS(chunk_GQD56R42_exports);
35
35
  var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_WVNFXG35 = require("./chunk-WVNFXG35.js");
38
- var import_chunk_GA3QUNF6 = require("./chunk-GA3QUNF6.js");
37
+ var import_chunk_TRF2UWX2 = require("./chunk-TRF2UWX2.js");
38
+ var import_chunk_NWAAPGFA = require("./chunk-NWAAPGFA.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_WVNFXG35.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_TRF2UWX2.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_GA3QUNF6.prismaSchemaWasm.debug_panic();
73
+ import_chunk_NWAAPGFA.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_GA3QUNF6.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_NWAAPGFA.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({