@prisma/internals 6.20.0-integration-merge-release-workflows2.1 → 6.20.0-integration-next.5

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 (125) hide show
  1. package/dist/{chunk-GMW36QQF.js → chunk-22HIO2UL.js} +7 -7
  2. package/dist/{chunk-TBR6SNKL.js → chunk-2Z7PH5WX.js} +5 -5
  3. package/dist/{chunk-T4UGPDF4.js → chunk-37QUSVZU.js} +8 -10
  4. package/dist/{chunk-JYBUBKFO.js → chunk-3Q44BUMJ.js} +16 -38
  5. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  6. package/dist/{chunk-HFFWZTVM.js → chunk-4B7YT7EE.js} +8 -18
  7. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  8. package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
  9. package/dist/{chunk-FRE4ZWRR.js → chunk-6WBK35XU.js} +13 -13
  10. package/dist/{chunk-7QC5VORA.js → chunk-7SF6QSKE.js} +7 -8
  11. package/dist/{chunk-TH33KD3E.js → chunk-7VXI23OO.js} +5 -5
  12. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  13. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  14. package/dist/{chunk-AX5N26KG.js → chunk-CIGXHXCG.js} +18 -13
  15. package/dist/{chunk-DVRZSMZ2.js → chunk-D2VJ7AHY.js} +5 -5
  16. package/dist/{chunk-FHZ5QJLR.js → chunk-D4EKBLXK.js} +5 -5
  17. package/dist/{chunk-E4H6V3Z4.js → chunk-DAQEKDOT.js} +11 -11
  18. package/dist/chunk-DYV47NUW.js +796 -0
  19. package/dist/{chunk-E7DQNMQJ.js → chunk-ES4SWOUX.js} +5 -5
  20. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  21. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  22. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  23. package/dist/{chunk-OAT7ZJED.js → chunk-H5STSTVK.js} +7 -20
  24. package/dist/{chunk-FYZCPL2Z.js → chunk-HNRMSI3R.js} +5 -8
  25. package/dist/{chunk-CCLAMTCA.js → chunk-HQDG2BBX.js} +7 -9
  26. package/dist/{chunk-2GUGGLPK.js → chunk-J757IEPK.js} +56 -129
  27. package/dist/{chunk-JTS4UPHJ.js → chunk-K255FKNG.js} +5 -5
  28. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  29. package/dist/{chunk-UQUWZJVN.js → chunk-LHTJCI5U.js} +7 -7
  30. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  31. package/dist/{chunk-TQFONRJP.js → chunk-MLFKBBDL.js} +5 -5
  32. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  33. package/dist/{chunk-UQK76B5E.js → chunk-OV3PWX3C.js} +11 -11
  34. package/dist/{chunk-W26QS5OG.js → chunk-PQBHK5IY.js} +56 -129
  35. package/dist/{chunk-JOIIWB3U.js → chunk-QOZ7USPD.js} +193 -159
  36. package/dist/{chunk-BVJP43JS.js → chunk-QSVWJ2S2.js} +13 -784
  37. package/dist/{chunk-QJ3QPUM5.js → chunk-QWXKO4HW.js} +5 -5
  38. package/dist/{chunk-LV27YCGC.js → chunk-R4FAVDNZ.js} +12 -12
  39. package/dist/{chunk-J32M37NY.js → chunk-R7L5ID34.js} +12 -12
  40. package/dist/{chunk-75BIJ5PX.js → chunk-SMJRM3EM.js} +9 -9
  41. package/dist/{chunk-DYM2NTAG.js → chunk-STE4IPGC.js} +5 -5
  42. package/dist/{chunk-WYQJ4JWO.js → chunk-TOIO2VZW.js} +13 -13
  43. package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
  44. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  45. package/dist/{chunk-SOKSKSEX.js → chunk-XHZ4TZUD.js} +16 -38
  46. package/dist/{chunk-UHI6VYFX.js → chunk-XIYRAW5R.js} +15 -11
  47. package/dist/cli/checkUnsupportedDataProxy.d.ts +3 -4
  48. package/dist/cli/checkUnsupportedDataProxy.js +56 -65
  49. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  50. package/dist/cli/getSchema.d.ts +1 -15
  51. package/dist/cli/getSchema.js +4 -5
  52. package/dist/cli/hashes.js +4 -4
  53. package/dist/cli/schemaContext.d.ts +3 -12
  54. package/dist/cli/schemaContext.js +57 -65
  55. package/dist/engine-commands/errorHelpers.js +4 -4
  56. package/dist/engine-commands/formatSchema.js +55 -64
  57. package/dist/engine-commands/getConfig.d.ts +1 -5
  58. package/dist/engine-commands/getConfig.js +10 -13
  59. package/dist/engine-commands/getDmmf.js +10 -10
  60. package/dist/engine-commands/getEngineVersion.js +6 -9
  61. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  62. package/dist/engine-commands/getEnginesInfo.js +7 -9
  63. package/dist/engine-commands/index.d.ts +1 -1
  64. package/dist/engine-commands/index.js +65 -76
  65. package/dist/engine-commands/lintSchema.js +9 -9
  66. package/dist/engine-commands/mergeSchemas.js +10 -10
  67. package/dist/engine-commands/queryEngineCommons.js +6 -6
  68. package/dist/engine-commands/validate.js +10 -10
  69. package/dist/errorReporting.js +6 -6
  70. package/dist/get-generators/getGenerators.d.ts +0 -2
  71. package/dist/get-generators/getGenerators.js +58 -67
  72. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  73. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  74. package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
  75. package/dist/getPackedPackage.js +4 -3
  76. package/dist/highlight/highlight.js +5 -5
  77. package/dist/index.d.ts +2 -14
  78. package/dist/index.js +98 -121
  79. package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
  80. package/dist/resolveBinary.js +8 -7
  81. package/dist/schemaEngineCommands.js +9 -8
  82. package/dist/sendPanic.js +4 -5
  83. package/dist/utils/drawBox.js +2 -2
  84. package/dist/utils/fs-functional.js +10 -10
  85. package/dist/utils/fs-utils.js +8 -8
  86. package/dist/utils/getVersionFromPackageJson.js +3 -3
  87. package/dist/utils/handlePanic.js +6 -7
  88. package/dist/utils/link.js +2 -2
  89. package/dist/utils/missingDatasource.js +5 -5
  90. package/dist/utils/missingGeneratorMessage.js +7 -7
  91. package/dist/wasm.js +5 -5
  92. package/package.json +15 -17
  93. package/dist/chunk-3FP46GUV.js +0 -471
  94. package/dist/chunk-46ABODUM.js +0 -186
  95. package/dist/chunk-6TTRTZXU.js +0 -37
  96. package/dist/chunk-D4VDA2TZ.js +0 -66
  97. package/dist/chunk-DZYINYAA.js +0 -68
  98. package/dist/chunk-ERSH2BQA.js +0 -58
  99. package/dist/chunk-HO5HRHFZ.js +0 -30
  100. package/dist/chunk-KDHESRKE.js +0 -49
  101. package/dist/chunk-PZMRR772.js +0 -41
  102. package/dist/chunk-T2PM5TKT.js +0 -55
  103. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
  104. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -135
  105. package/dist/client/getClientEngineType.d.ts +0 -7
  106. package/dist/client/getClientEngineType.js +0 -26
  107. package/dist/dotenvExpand.d.ts +0 -35
  108. package/dist/dotenvExpand.js +0 -25
  109. package/dist/utils/__tests__/maskSchema.test.js +0 -23
  110. package/dist/utils/cloudflareD1.d.ts +0 -5
  111. package/dist/utils/cloudflareD1.js +0 -27
  112. package/dist/utils/getEnvPaths.d.ts +0 -14
  113. package/dist/utils/getEnvPaths.js +0 -29
  114. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  115. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  116. package/dist/utils/load.d.ts +0 -6
  117. package/dist/utils/load.js +0 -28
  118. package/dist/utils/loadEnvFile.d.ts +0 -10
  119. package/dist/utils/loadEnvFile.js +0 -30
  120. package/dist/utils/maskSchema.d.ts +0 -4
  121. package/dist/utils/maskSchema.js +0 -27
  122. package/dist/utils/serializeQueryEngineName.d.ts +0 -4
  123. package/dist/utils/serializeQueryEngineName.js +0 -25
  124. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  125. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -26,15 +26,15 @@ 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_GMW36QQF_exports = {};
30
- __export(chunk_GMW36QQF_exports, {
29
+ var chunk_22HIO2UL_exports = {};
30
+ __export(chunk_22HIO2UL_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  resolveEngine: () => resolveEngine
33
33
  });
34
- module.exports = __toCommonJS(chunk_GMW36QQF_exports);
35
- var import_chunk_OAT7ZJED = require("./chunk-OAT7ZJED.js");
34
+ module.exports = __toCommonJS(chunk_22HIO2UL_exports);
35
+ var import_chunk_H5STSTVK = require("./chunk-H5STSTVK.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
37
+ var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
38
38
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
40
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -131,7 +131,7 @@ async function resolveEngine(binaryName) {
131
131
  const enginePathEither = await (0, import_function2.pipe)(
132
132
  pathFromEnvOption,
133
133
  fold(
134
- () => (0, import_chunk_FYZCPL2Z.safeResolveBinary)(binaryName),
134
+ () => (0, import_chunk_HNRMSI3R.safeResolveBinary)(binaryName),
135
135
  (pathFromEnv) => (0, import_chunk_5DBOS77Y.right2)(pathFromEnv.path)
136
136
  )
137
137
  )();
@@ -139,7 +139,7 @@ async function resolveEngine(binaryName) {
139
139
  enginePathEither,
140
140
  import_chunk_5DBOS77Y.fromEither,
141
141
  (0, import_chunk_5DBOS77Y.chain)((enginePath) => {
142
- return (0, import_chunk_OAT7ZJED.safeGetEngineVersion)(enginePath, binaryName);
142
+ return (0, import_chunk_H5STSTVK.safeGetEngineVersion)(enginePath, binaryName);
143
143
  })
144
144
  )();
145
145
  const engineInfo = {
@@ -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_TBR6SNKL_exports = {};
20
- __export(chunk_TBR6SNKL_exports, {
19
+ var chunk_2Z7PH5WX_exports = {};
20
+ __export(chunk_2Z7PH5WX_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_TBR6SNKL_exports);
28
- var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.js");
27
+ module.exports = __toCommonJS(chunk_2Z7PH5WX_exports);
28
+ var import_chunk_D4EKBLXK = require("./chunk-D4EKBLXK.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_FHZ5QJLR.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_D4EKBLXK.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -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_T4UGPDF4_exports = {};
20
- __export(chunk_T4UGPDF4_exports, {
19
+ var chunk_37QUSVZU_exports = {};
20
+ __export(chunk_37QUSVZU_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_T4UGPDF4_exports);
23
+ module.exports = __toCommonJS(chunk_37QUSVZU_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) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.20.0-integration-merge-release-workflows2.1",
29
+ version: "6.20.0-integration-next.5",
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",
@@ -48,7 +48,6 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
48
48
  files: [
49
49
  "README.md",
50
50
  "dist",
51
- "!**/libquery_engine*",
52
51
  "!dist/get-generators/engines/*",
53
52
  "scripts"
54
53
  ],
@@ -59,12 +58,11 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
58
  "@swc/jest": "0.2.37",
60
59
  "@types/babel__helper-validator-identifier": "7.15.2",
61
60
  "@types/jest": "29.5.14",
62
- "@types/node": "18.19.76",
61
+ "@types/node": "~20.19.24",
63
62
  "@types/resolve": "1.20.6",
64
63
  archiver: "6.0.2",
65
64
  "checkpoint-client": "1.1.33",
66
65
  "cli-truncate": "4.0.0",
67
- dotenv: "16.5.0",
68
66
  empathic: "2.0.0",
69
67
  "escape-string-regexp": "5.0.0",
70
68
  execa: "8.0.1",
@@ -109,14 +107,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
109
107
  "@prisma/generator": "workspace:*",
110
108
  "@prisma/generator-helper": "workspace:*",
111
109
  "@prisma/get-platform": "workspace:*",
112
- "@prisma/prisma-schema-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
113
- "@prisma/schema-engine-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
110
+ "@prisma/prisma-schema-wasm": "6.20.0-11.next-80ee0a44bf5668992b0c909c946a755b86b56c95",
111
+ "@prisma/schema-engine-wasm": "6.20.0-11.next-80ee0a44bf5668992b0c909c946a755b86b56c95",
114
112
  "@prisma/schema-files-loader": "workspace:*",
115
113
  arg: "5.0.2",
116
114
  prompts: "2.4.2"
117
115
  },
118
116
  peerDependencies: {
119
- typescript: ">=5.1.0"
117
+ typescript: ">=5.4.0"
120
118
  },
121
119
  peerDependenciesMeta: {
122
120
  typescript: {
@@ -26,20 +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_JYBUBKFO_exports = {};
30
- __export(chunk_JYBUBKFO_exports, {
29
+ var chunk_3Q44BUMJ_exports = {};
30
+ __export(chunk_3Q44BUMJ_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
- getConfig: () => getConfig,
33
- getDirectUrl: () => getDirectUrl,
34
- getEffectiveUrl: () => getEffectiveUrl,
35
- resolveUrl: () => resolveUrl
32
+ getConfig: () => getConfig
36
33
  });
37
- module.exports = __toCommonJS(chunk_JYBUBKFO_exports);
38
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_3Q44BUMJ_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
40
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_TH33KD3E = require("./chunk-TH33KD3E.js");
42
- var import_chunk_DYM2NTAG = require("./chunk-DYM2NTAG.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_K255FKNG = require("./chunk-K255FKNG.js");
39
+ var import_chunk_STE4IPGC = require("./chunk-STE4IPGC.js");
43
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,41 +61,22 @@ ${detailsHeader} ${message}`;
64
61
  }).exhaustive();
65
62
  const errorMessageWithContext = `${constructedErrorMessage}
66
63
  [Context: getConfig]`;
67
- super((0, import_chunk_TH33KD3E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
+ super((0, import_chunk_K255FKNG.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
65
  this.name = "GetConfigError";
69
66
  }
70
67
  };
71
- function getEffectiveUrl(ds) {
72
- if (ds.directUrl !== void 0) return ds.directUrl;
73
- return ds.url;
74
- }
75
- function getDirectUrl(ds) {
76
- return ds.directUrl;
77
- }
78
- function resolveUrl(envValue) {
79
- const urlFromValue = envValue?.value;
80
- const urlEnvVarName = envValue?.fromEnvVar;
81
- const urlEnvVarValue = urlEnvVarName ? process.env[urlEnvVarName] : void 0;
82
- return urlFromValue ?? urlEnvVarValue;
83
- }
84
68
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
69
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
86
70
  debug(`Using getConfig Wasm`);
87
71
  const configEither = (0, import_function.pipe)(
88
72
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
73
  () => {
90
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
74
+ if (process.env.FORCE_PANIC_GET_CONFIG) {
91
75
  debug("Triggering a Rust panic...");
92
- import_chunk_DYM2NTAG.prismaSchemaWasm.debug_panic();
76
+ import_chunk_STE4IPGC.prismaSchemaWasm.debug_panic();
93
77
  }
94
- const params = JSON.stringify({
95
- prismaSchema: options.datamodel,
96
- datasourceOverrides: {},
97
- ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
- env: process.env
99
- });
100
- const data = import_chunk_DYM2NTAG.prismaSchemaWasm.get_config(params);
101
- return data;
78
+ const params = JSON.stringify({ prismaSchema: options.datamodel });
79
+ return import_chunk_STE4IPGC.prismaSchemaWasm.get_config(params);
102
80
  },
103
81
  (e) => ({
104
82
  type: "wasm-error",
@@ -156,12 +134,12 @@ async function getConfig(options) {
156
134
  return panic;
157
135
  }
158
136
  const errorOutput = e.error.message;
159
- return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
137
+ return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
160
138
  }).with({ type: "validation-error" }, (e) => {
161
139
  return new GetConfigError({
162
140
  _tag: "parsed",
163
141
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
164
- reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
142
+ reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
165
143
  message: formatErrors(e.error)
166
144
  });
167
145
  }).otherwise((e) => {
@@ -26,11 +26,11 @@ 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_I6WLABB2_exports = {};
30
- __export(chunk_I6WLABB2_exports, {
29
+ var chunk_3WXUQZS7_exports = {};
30
+ __export(chunk_3WXUQZS7_exports, {
31
31
  link: () => link2
32
32
  });
33
- module.exports = __toCommonJS(chunk_I6WLABB2_exports);
33
+ module.exports = __toCommonJS(chunk_3WXUQZS7_exports);
34
34
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
35
35
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
36
36
  var import_node_process = __toESM(require("node:process"));
@@ -245,9 +245,11 @@ var require_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__commonJS)({
245
245
  });
246
246
  var base_exports = {};
247
247
  (0, import_chunk_4VNS5WPM.__export)(base_exports, {
248
+ ConEmu: () => ConEmu,
248
249
  beep: () => beep,
249
250
  clearScreen: () => clearScreen,
250
251
  clearTerminal: () => clearTerminal,
252
+ clearViewport: () => clearViewport,
251
253
  cursorBackward: () => cursorBackward,
252
254
  cursorDown: () => cursorDown,
253
255
  cursorForward: () => cursorForward,
@@ -275,7 +277,8 @@ var base_exports = {};
275
277
  image: () => image,
276
278
  link: () => link,
277
279
  scrollDown: () => scrollDown,
278
- scrollUp: () => scrollUp
280
+ scrollUp: () => scrollUp,
281
+ setCwd: () => setCwd
279
282
  });
280
283
  var isBrowser = globalThis.window?.document !== void 0;
281
284
  var isNode = globalThis.process?.versions?.node !== void 0;
@@ -359,6 +362,7 @@ var eraseScreen = ESC + "2J";
359
362
  var scrollUp = ESC + "S";
360
363
  var scrollDown = ESC + "T";
361
364
  var clearScreen = "\x1Bc";
365
+ var clearViewport = `${eraseScreen}${ESC}H`;
362
366
  var clearTerminal = isWindows2 ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
363
367
  var enterAlternativeScreen = ESC + "?1049h";
364
368
  var exitAlternativeScreen = ESC + "?1049l";
@@ -388,7 +392,8 @@ var image = (data, options = {}) => {
388
392
  if (options.preserveAspectRatio === false) {
389
393
  returnValue += ";preserveAspectRatio=0";
390
394
  }
391
- return returnValue + ":" + Buffer.from(data).toString("base64") + BEL;
395
+ const imageBuffer = Buffer.from(data);
396
+ return returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL;
392
397
  };
393
398
  var iTerm = {
394
399
  setCwd: (cwd = cwdFunction()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
@@ -409,6 +414,10 @@ var iTerm = {
409
414
  return returnValue + BEL;
410
415
  }
411
416
  };
417
+ var ConEmu = {
418
+ setCwd: (cwd = cwdFunction()) => `${OSC}9;9;${cwd}${BEL}`
419
+ };
420
+ var setCwd = (cwd = cwdFunction()) => iTerm.setCwd(cwd) + ConEmu.setCwd(cwd);
412
421
  var import_supports_hyperlinks = (0, import_chunk_4VNS5WPM.__toESM)(require_supports_hyperlinks(), 1);
413
422
  function terminalLink(text, url, { target = "stdout", ...options } = {}) {
414
423
  if (!import_supports_hyperlinks.default[target]) {
@@ -26,14 +26,13 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_HFFWZTVM_exports = {};
30
- __export(chunk_HFFWZTVM_exports, {
29
+ var chunk_4B7YT7EE_exports = {};
30
+ __export(chunk_4B7YT7EE_exports, {
31
31
  sendPanic: () => sendPanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_HFFWZTVM_exports);
34
- var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
33
+ module.exports = __toCommonJS(chunk_4B7YT7EE_exports);
35
34
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
36
- var import_chunk_5AI4FIZ3 = require("./chunk-5AI4FIZ3.js");
35
+ var import_chunk_MEOOYUIZ = require("./chunk-MEOOYUIZ.js");
37
36
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
38
37
  var import_node_util = require("node:util");
39
38
  var import_get_platform = require("@prisma/get-platform");
@@ -1785,14 +1784,7 @@ async function sendPanic({
1785
1784
  }).otherwise(() => void 0);
1786
1785
  dbVersion = await getDatabaseVersionSafe(getDatabaseVersionParams);
1787
1786
  }
1788
- const migrateRequest = error.request ? JSON.stringify(
1789
- (0, import_chunk_KDHESRKE.mapScalarValues)(error.request, (value) => {
1790
- if (typeof value === "string") {
1791
- return (0, import_chunk_KDHESRKE.maskSchema)(value);
1792
- }
1793
- return value;
1794
- })
1795
- ) : void 0;
1787
+ const migrateRequest = error.request ? JSON.stringify(error.request) : void 0;
1796
1788
  const params = {
1797
1789
  area: error.area,
1798
1790
  kind: "RUST_PANIC",
@@ -1808,14 +1800,12 @@ async function sendPanic({
1808
1800
  sqlDump: void 0,
1809
1801
  dbVersion
1810
1802
  };
1811
- const signedUrl = await (0, import_chunk_5AI4FIZ3.createErrorReport)(params);
1812
- const id = await (0, import_chunk_5AI4FIZ3.makeErrorReportCompleted)(signedUrl);
1803
+ const signedUrl = await (0, import_chunk_MEOOYUIZ.createErrorReport)(params);
1804
+ const id = await (0, import_chunk_MEOOYUIZ.makeErrorReportCompleted)(signedUrl);
1813
1805
  return id;
1814
1806
  }
1815
1807
  function getCommand() {
1816
- if (process.argv[2] === "introspect") {
1817
- return "introspect";
1818
- } else if (process.argv[2] === "db" && process.argv[3] === "pull") {
1808
+ if (process.argv[2] === "db" && process.argv[3] === "pull") {
1819
1809
  return "db pull";
1820
1810
  }
1821
1811
  return process.argv.slice(2).join(" ");
@@ -16,21 +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_RS2R7COT_exports = {};
20
- __export(chunk_RS2R7COT_exports, {
19
+ var chunk_5I4ERIIY_exports = {};
20
+ __export(chunk_5I4ERIIY_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_RS2R7COT_exports);
23
+ module.exports = __toCommonJS(chunk_5I4ERIIY_exports);
24
24
  var import_fetch_engine = require("@prisma/fetch-engine");
25
25
  function binaryTypeToEngineType(binaryType) {
26
26
  if (binaryType === import_fetch_engine.BinaryType.SchemaEngineBinary) {
27
27
  return "schemaEngine";
28
28
  }
29
- if (binaryType === import_fetch_engine.BinaryType.QueryEngineLibrary) {
30
- return "libqueryEngine";
31
- }
32
- if (binaryType === import_fetch_engine.BinaryType.QueryEngineBinary) {
33
- return "queryEngine";
34
- }
35
29
  throw new Error(`Could not convert binary type ${binaryType}`);
36
30
  }
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_F2OZV76L_exports = {};
30
- __export(chunk_F2OZV76L_exports, {
29
+ var chunk_5MHUYAV3_exports = {};
30
+ __export(chunk_5MHUYAV3_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_F2OZV76L_exports);
34
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
- var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
33
+ module.exports = __toCommonJS(chunk_5MHUYAV3_exports);
34
+ var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
35
+ var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
- var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
38
+ var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_engines = require("@prisma/engines");
41
41
  var import_fetch_engine = require("@prisma/fetch-engine");
42
42
  var import_path = __toESM2(require("path"));
43
- var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
43
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_FF7OLLBP.require_lib)());
44
44
  async function getBinaryPathsByVersion({
45
45
  neededVersions,
46
46
  detectBinaryTarget,
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
91
91
  }
92
92
  const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
93
93
  if (!binaryPathsOverride?.[curr]) {
94
- acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
94
+ acc[(0, import_chunk_GJSFP4V4.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
95
95
  }
96
96
  return acc;
97
97
  }, /* @__PURE__ */ Object.create(null));
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
107
107
  skipDownload
108
108
  };
109
109
  const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
110
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
110
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_5I4ERIIY.binaryTypeToEngineType);
111
111
  binaryPathsByVersion[currentVersion] = binaryPaths;
112
112
  }
113
113
  if (binaryPathsOverride) {
@@ -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_FRE4ZWRR_exports = {};
30
- __export(chunk_FRE4ZWRR_exports, {
29
+ var chunk_6WBK35XU_exports = {};
30
+ __export(chunk_6WBK35XU_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_FRE4ZWRR_exports);
35
- var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
34
+ module.exports = __toCommonJS(chunk_6WBK35XU_exports);
35
+ var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
37
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_TH33KD3E = require("./chunk-TH33KD3E.js");
39
- var import_chunk_DYM2NTAG = require("./chunk-DYM2NTAG.js");
37
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_7VXI23OO = require("./chunk-7VXI23OO.js");
39
+ var import_chunk_D4EKBLXK = require("./chunk-D4EKBLXK.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,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_TH33KD3E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_7VXI23OO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "validateWasm");
68
68
  debug(`Using validate Wasm`);
69
69
  const validateEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
71
71
  () => {
72
- if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
+ if (process.env.FORCE_PANIC_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_DYM2NTAG.prismaSchemaWasm.debug_panic();
74
+ import_chunk_D4EKBLXK.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_DYM2NTAG.prismaSchemaWasm.validate(params);
80
+ import_chunk_D4EKBLXK.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -109,7 +109,7 @@ function validate(options) {
109
109
  return panic;
110
110
  }
111
111
  const errorOutput = e.error.message;
112
- return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }
@@ -16,25 +16,24 @@ 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_7QC5VORA_exports = {};
20
- __export(chunk_7QC5VORA_exports, {
19
+ var chunk_7SF6QSKE_exports = {};
20
+ __export(chunk_7SF6QSKE_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_7QC5VORA_exports);
24
- var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
- var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
23
+ module.exports = __toCommonJS(chunk_7SF6QSKE_exports);
24
+ var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
25
+ var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
28
28
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("datasource")} defined in your ${(0, import_chunk_PG5FDKSF.bold)("schema.prisma")}.
29
29
  You can define a datasource like this:
30
30
 
31
31
  ${(0, import_chunk_PG5FDKSF.bold)(
32
- (0, import_chunk_TQCLUNM2.highlightDatamodel)(`datasource db {
32
+ (0, import_chunk_VNIE2AZB.highlightDatamodel)(`datasource db {
33
33
  provider = "postgresql"
34
- url = env("DB_URL")
35
34
  }`)
36
35
  )}
37
36
 
38
37
  More information in our documentation:
39
- ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
38
+ ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
40
39
  `;
@@ -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_TH33KD3E_exports = {};
20
- __export(chunk_TH33KD3E_exports, {
19
+ var chunk_7VXI23OO_exports = {};
20
+ __export(chunk_7VXI23OO_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_TH33KD3E_exports);
24
- var import_chunk_E7DQNMQJ = require("./chunk-E7DQNMQJ.js");
23
+ module.exports = __toCommonJS(chunk_7VXI23OO_exports);
25
24
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
+ var import_chunk_QWXKO4HW = require("./chunk-QWXKO4HW.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_E7DQNMQJ.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_QWXKO4HW.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_WFNB7VRA_exports = {};
30
- __export(chunk_WFNB7VRA_exports, {
29
+ var chunk_ARC7TW3L_exports = {};
30
+ __export(chunk_ARC7TW3L_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
33
+ module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
- var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
36
35
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
37
36
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
37
  var import_path = __toESM(require("path"));
@@ -45,16 +44,7 @@ function getGeneratorSuccessMessage(generator, time) {
45
44
  function formatVersion(generator) {
46
45
  const version = generator.manifest?.version;
47
46
  if (generator.getProvider() === "prisma-client-js") {
48
- const engineType = (0, import_chunk_ERSH2BQA.getClientEngineType)(generator.config);
49
- let engineHint = "";
50
- if (generator.options?.noEngine) {
51
- engineHint = ", engine=none";
52
- } else if (engineType === "binary") {
53
- engineHint = ", engine=binary";
54
- } else if (engineType === "library") {
55
- engineHint = "";
56
- }
57
- return `v${version ?? "?.?.?"}${engineHint}`;
47
+ return `v${version ?? "?.?.?"}`;
58
48
  }
59
49
  return version;
60
50
  }