@prisma/internals 6.20.0-integration-feat-prisma-7-config.3 → 6.20.0-integration-oidc-truster-publishers.1

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 (116) hide show
  1. package/dist/{chunk-VFZCLI5X.js → chunk-26ZV6OR7.js} +5 -5
  2. package/dist/{chunk-5FTKVAG5.js → chunk-2GUGGLPK.js} +97 -40
  3. package/dist/chunk-3FP46GUV.js +471 -0
  4. package/dist/chunk-46ABODUM.js +186 -0
  5. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  6. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  7. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  8. package/dist/{chunk-LS2GZ6B3.js → chunk-5VHPFZRR.js} +11 -11
  9. package/dist/{chunk-73HXEN2A.js → chunk-6LDZU7KZ.js} +5 -5
  10. package/dist/{chunk-VHE2A7YV.js → chunk-6MO7MVPQ.js} +11 -11
  11. package/dist/chunk-6TTRTZXU.js +37 -0
  12. package/dist/{chunk-SMJRM3EM.js → chunk-75BIJ5PX.js} +9 -9
  13. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  14. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  15. package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
  16. package/dist/{chunk-B2BNIZB2.js → chunk-CCLAMTCA.js} +8 -7
  17. package/dist/{chunk-3ZWEK4N6.js → chunk-CPCSIALL.js} +5 -5
  18. package/dist/chunk-D4VDA2TZ.js +66 -0
  19. package/dist/chunk-DZYINYAA.js +68 -0
  20. package/dist/{chunk-E355HAZP.js → chunk-E4H6V3Z4.js} +11 -11
  21. package/dist/chunk-ERSH2BQA.js +58 -0
  22. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  23. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  24. package/dist/{chunk-O4JHL7XP.js → chunk-FHZ5QJLR.js} +5 -5
  25. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  26. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  27. package/dist/{chunk-LD5PU7J5.js → chunk-GVZIPRAQ.js} +97 -40
  28. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  29. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  30. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  31. package/dist/{chunk-SDDES4ZN.js → chunk-HTUTYKBP.js} +12 -12
  32. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  33. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  34. package/dist/{chunk-LA5QBRTU.js → chunk-IUXRC7ZP.js} +20 -14
  35. package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
  36. package/dist/{chunk-UGVSG4YK.js → chunk-JTS4UPHJ.js} +5 -5
  37. package/dist/{chunk-24ZPBDBI.js → chunk-LV27YCGC.js} +11 -11
  38. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  39. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  40. package/dist/chunk-PZMRR772.js +41 -0
  41. package/dist/{chunk-SLV6CI6L.js → chunk-QJ3QPUM5.js} +5 -5
  42. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  43. package/dist/{chunk-Z2RQHZ3W.js → chunk-SOKSKSEX.js} +20 -14
  44. package/dist/chunk-T2PM5TKT.js +55 -0
  45. package/dist/{chunk-GVDRC4TL.js → chunk-TBR6SNKL.js} +5 -5
  46. package/dist/{chunk-FNXXQZUZ.js → chunk-TEOXRLQU.js} +9 -8
  47. package/dist/{chunk-MLFKBBDL.js → chunk-TQFONRJP.js} +5 -5
  48. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  49. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  50. package/dist/{chunk-BM3JIFQT.js → chunk-UQUWZJVN.js} +7 -7
  51. package/dist/{chunk-2Q43C56O.js → chunk-WEU72JRD.js} +5 -5
  52. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  53. package/dist/{chunk-C5YUUOQW.js → chunk-WYQJ4JWO.js} +12 -12
  54. package/dist/cli/checkUnsupportedDataProxy.js +60 -53
  55. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +135 -0
  57. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  58. package/dist/cli/getSchema.d.ts +15 -1
  59. package/dist/cli/getSchema.js +5 -4
  60. package/dist/cli/hashes.js +4 -4
  61. package/dist/cli/schemaContext.d.ts +11 -2
  62. package/dist/cli/schemaContext.js +60 -53
  63. package/dist/client/getClientEngineType.d.ts +7 -0
  64. package/dist/client/getClientEngineType.js +26 -0
  65. package/dist/dotenvExpand.d.ts +35 -0
  66. package/dist/dotenvExpand.js +25 -0
  67. package/dist/engine-commands/errorHelpers.js +4 -4
  68. package/dist/engine-commands/formatSchema.js +59 -52
  69. package/dist/engine-commands/getConfig.d.ts +1 -0
  70. package/dist/engine-commands/getConfig.js +13 -13
  71. package/dist/engine-commands/getDmmf.js +10 -10
  72. package/dist/engine-commands/getEngineVersion.js +9 -6
  73. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  74. package/dist/engine-commands/getEnginesInfo.js +9 -7
  75. package/dist/engine-commands/index.js +71 -64
  76. package/dist/engine-commands/lintSchema.js +9 -9
  77. package/dist/engine-commands/mergeSchemas.js +10 -10
  78. package/dist/engine-commands/queryEngineCommons.js +6 -6
  79. package/dist/engine-commands/validate.js +10 -10
  80. package/dist/errorReporting.js +6 -6
  81. package/dist/get-generators/getGenerators.d.ts +1 -0
  82. package/dist/get-generators/getGenerators.js +62 -55
  83. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  84. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  85. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  86. package/dist/getPackedPackage.js +3 -4
  87. package/dist/index.d.ts +10 -1
  88. package/dist/index.js +112 -95
  89. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  90. package/dist/resolveBinary.js +7 -8
  91. package/dist/schemaEngineCommands.js +8 -9
  92. package/dist/sendPanic.js +4 -4
  93. package/dist/utils/cloudflareD1.d.ts +5 -0
  94. package/dist/utils/cloudflareD1.js +27 -0
  95. package/dist/utils/drawBox.js +2 -2
  96. package/dist/utils/fs-functional.js +10 -10
  97. package/dist/utils/fs-utils.js +8 -8
  98. package/dist/utils/getEnvPaths.d.ts +14 -0
  99. package/dist/utils/getEnvPaths.js +29 -0
  100. package/dist/utils/getVersionFromPackageJson.js +3 -3
  101. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  102. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  103. package/dist/utils/handlePanic.js +6 -6
  104. package/dist/utils/link.js +2 -2
  105. package/dist/utils/load.d.ts +6 -0
  106. package/dist/utils/load.js +28 -0
  107. package/dist/utils/loadEnvFile.d.ts +10 -0
  108. package/dist/utils/loadEnvFile.js +30 -0
  109. package/dist/utils/missingDatasource.js +3 -3
  110. package/dist/utils/missingGeneratorMessage.js +5 -5
  111. package/dist/utils/serializeQueryEngineName.js +2 -2
  112. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  113. package/dist/utils/tryLoadEnvs.js +30 -0
  114. package/dist/wasm.js +5 -5
  115. package/package.json +16 -15
  116. package/dist/chunk-DYV47NUW.js +0 -796
@@ -16,20 +16,33 @@ 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_H5STSTVK_exports = {};
20
- __export(chunk_H5STSTVK_exports, {
19
+ var chunk_OAT7ZJED_exports = {};
20
+ __export(chunk_OAT7ZJED_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_H5STSTVK_exports);
24
+ module.exports = __toCommonJS(chunk_OAT7ZJED_exports);
25
+ var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
25
26
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
26
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
27
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
27
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
+ var import_engines = require("@prisma/engines");
28
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
+ var import_get_platform = require("@prisma/get-platform");
29
32
  async function getEngineVersion(enginePath, binaryName) {
30
- enginePath = await (0, import_chunk_HNRMSI3R.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
31
- const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
32
- return stdout;
33
+ if (!binaryName) {
34
+ binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
35
+ }
36
+ enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName, enginePath);
37
+ const platformInfo = await (0, import_get_platform.getPlatformInfo)();
38
+ if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
39
+ (0, import_get_platform.assertNodeAPISupported)();
40
+ const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
41
+ return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
42
+ } else {
43
+ const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
44
+ return stdout;
45
+ }
33
46
  }
34
47
  function safeGetEngineVersion(enginePath, binaryName) {
35
48
  return (0, import_chunk_5DBOS77Y.tryCatch2)(
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_PZMRR772_exports = {};
20
+ __export(chunk_PZMRR772_exports, {
21
+ loadEnvFile: () => loadEnvFile
22
+ });
23
+ module.exports = __toCommonJS(chunk_PZMRR772_exports);
24
+ var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
25
+ var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
26
+ async function loadEnvFile({
27
+ schemaPath,
28
+ config,
29
+ printMessage = false
30
+ }) {
31
+ if (config.loadedFromFile) {
32
+ process.stderr.write(`Prisma config detected, skipping environment variable loading.
33
+ `);
34
+ return;
35
+ }
36
+ const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaPath);
37
+ const envData = (0, import_chunk_3FP46GUV.tryLoadEnvs)(envPaths, { conflictCheck: "error" });
38
+ if (printMessage && envData && envData.message) {
39
+ process.stderr.write(envData.message + "\n");
40
+ }
41
+ }
@@ -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_SLV6CI6L_exports = {};
20
- __export(chunk_SLV6CI6L_exports, {
19
+ var chunk_QJ3QPUM5_exports = {};
20
+ __export(chunk_QJ3QPUM5_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_SLV6CI6L_exports);
24
- var import_chunk_FNXXQZUZ = require("./chunk-FNXXQZUZ.js");
25
- var packageJson = (0, import_chunk_FNXXQZUZ.require_package)();
23
+ module.exports = __toCommonJS(chunk_QJ3QPUM5_exports);
24
+ var import_chunk_CCLAMTCA = require("./chunk-CCLAMTCA.js");
25
+ var packageJson = (0, import_chunk_CCLAMTCA.require_package)();
26
26
  var version = packageJson.version;
@@ -16,15 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_5I4ERIIY_exports = {};
20
- __export(chunk_5I4ERIIY_exports, {
19
+ var chunk_RS2R7COT_exports = {};
20
+ __export(chunk_RS2R7COT_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_5I4ERIIY_exports);
23
+ module.exports = __toCommonJS(chunk_RS2R7COT_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
+ }
29
35
  throw new Error(`Could not convert binary type ${binaryType}`);
30
36
  }
@@ -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_Z2RQHZ3W_exports = {};
30
- __export(chunk_Z2RQHZ3W_exports, {
29
+ var chunk_SOKSKSEX_exports = {};
30
+ __export(chunk_SOKSKSEX_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_Z2RQHZ3W_exports);
38
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
39
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
+ module.exports = __toCommonJS(chunk_SOKSKSEX_exports);
38
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
40
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_UGVSG4YK = require("./chunk-UGVSG4YK.js");
42
- var import_chunk_O4JHL7XP = require("./chunk-O4JHL7XP.js");
40
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
+ var import_chunk_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
42
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.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_UGVSG4YK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_JTS4UPHJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -82,17 +82,23 @@ function resolveUrl(envValue) {
82
82
  return urlFromValue ?? urlEnvVarValue;
83
83
  }
84
84
  async function getConfig(options) {
85
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getConfigWasm");
85
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "getConfigWasm");
86
86
  debug(`Using getConfig Wasm`);
87
87
  const configEither = (0, import_function.pipe)(
88
88
  (0, import_chunk_5DBOS77Y.tryCatch)(
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_O4JHL7XP.prismaSchemaWasm.debug_panic();
92
+ import_chunk_FHZ5QJLR.prismaSchemaWasm.debug_panic();
93
93
  }
94
- const params = JSON.stringify({ prismaSchema: options.datamodel });
95
- return import_chunk_O4JHL7XP.prismaSchemaWasm.get_config(params);
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_FHZ5QJLR.prismaSchemaWasm.get_config(params);
101
+ return data;
96
102
  },
97
103
  (e) => ({
98
104
  type: "wasm-error",
@@ -150,12 +156,12 @@ async function getConfig(options) {
150
156
  return panic;
151
157
  }
152
158
  const errorOutput = e.error.message;
153
- return new GetConfigError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
159
+ return new GetConfigError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
154
160
  }).with({ type: "validation-error" }, (e) => {
155
161
  return new GetConfigError({
156
162
  _tag: "parsed",
157
163
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
158
- reason: (0, import_chunk_WSZXPLJQ.createSchemaValidationError)(e.reason),
164
+ reason: (0, import_chunk_TZJROXB3.createSchemaValidationError)(e.reason),
159
165
  message: formatErrors(e.error)
160
166
  });
161
167
  }).otherwise((e) => {
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_T2PM5TKT_exports = {};
20
+ __export(chunk_T2PM5TKT_exports, {
21
+ dotenvExpand: () => dotenvExpand
22
+ });
23
+ module.exports = __toCommonJS(chunk_T2PM5TKT_exports);
24
+ function dotenvExpand(config) {
25
+ const environment = config.ignoreProcessEnv ? {} : process.env;
26
+ const interpolate = (envValue) => {
27
+ const matches = envValue.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g);
28
+ return matches?.reduce(function(newEnv, match) {
29
+ const parts = /(.?)\${([a-zA-Z0-9_]+)?}/g.exec(match);
30
+ if (!parts) {
31
+ return newEnv;
32
+ }
33
+ const prefix = parts[1];
34
+ let value, replacePart;
35
+ if (prefix === "\\") {
36
+ replacePart = parts[0];
37
+ value = replacePart.replace("\\$", "$");
38
+ } else {
39
+ const key = parts[2];
40
+ replacePart = parts[0].substring(prefix.length);
41
+ value = Object.hasOwnProperty.call(environment, key) ? environment[key] : config.parsed[key] || "";
42
+ value = interpolate(value);
43
+ }
44
+ return newEnv.replace(replacePart, value);
45
+ }, envValue) ?? envValue;
46
+ };
47
+ for (const configKey in config.parsed) {
48
+ const value = Object.hasOwnProperty.call(environment, configKey) ? environment[configKey] : config.parsed[configKey];
49
+ config.parsed[configKey] = interpolate(value);
50
+ }
51
+ for (const processKey in config.parsed) {
52
+ environment[processKey] = config.parsed[processKey];
53
+ }
54
+ return config;
55
+ }
@@ -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_GVDRC4TL_exports = {};
20
- __export(chunk_GVDRC4TL_exports, {
19
+ var chunk_TBR6SNKL_exports = {};
20
+ __export(chunk_TBR6SNKL_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_GVDRC4TL_exports);
28
- var import_chunk_O4JHL7XP = require("./chunk-O4JHL7XP.js");
27
+ module.exports = __toCommonJS(chunk_TBR6SNKL_exports);
28
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.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_O4JHL7XP.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_FHZ5QJLR.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_FNXXQZUZ_exports = {};
20
- __export(chunk_FNXXQZUZ_exports, {
19
+ var chunk_TEOXRLQU_exports = {};
20
+ __export(chunk_TEOXRLQU_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_FNXXQZUZ_exports);
23
+ module.exports = __toCommonJS(chunk_TEOXRLQU_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-feat-prisma-7-config.3",
29
+ version: "6.20.0-integration-oidc-truster-publishers.1",
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",
@@ -59,11 +59,12 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "~20.19.24",
62
+ "@types/node": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
66
66
  "cli-truncate": "4.0.0",
67
+ dotenv: "16.5.0",
67
68
  empathic: "2.0.0",
68
69
  "escape-string-regexp": "5.0.0",
69
70
  execa: "8.0.1",
@@ -108,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
108
109
  "@prisma/generator": "workspace:*",
109
110
  "@prisma/generator-helper": "workspace:*",
110
111
  "@prisma/get-platform": "workspace:*",
111
- "@prisma/prisma-schema-wasm": "6.19.0-33.next-fca7ed8aa5fe6347594ad793adb59b37f021379a",
112
- "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
113
+ "@prisma/schema-engine-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
113
114
  "@prisma/schema-files-loader": "workspace:*",
114
115
  arg: "5.0.2",
115
116
  prompts: "2.4.2"
116
117
  },
117
118
  peerDependencies: {
118
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
119
120
  },
120
121
  peerDependenciesMeta: {
121
122
  typescript: {
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MLFKBBDL_exports = {};
30
- __export(chunk_MLFKBBDL_exports, {
29
+ var chunk_TQFONRJP_exports = {};
30
+ __export(chunk_TQFONRJP_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_MLFKBBDL_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_MLFKBBDL_exports);
39
+ module.exports = __toCommonJS(chunk_TQFONRJP_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_QOZ7USPD = require("./chunk-QOZ7USPD.js");
41
+ var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_QOZ7USPD.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -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_WSZXPLJQ_exports = {};
30
- __export(chunk_WSZXPLJQ_exports, {
29
+ var chunk_TZJROXB3_exports = {};
30
+ __export(chunk_TZJROXB3_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_WSZXPLJQ_exports);
37
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
36
+ module.exports = __toCommonJS(chunk_TZJROXB3_exports);
38
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.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_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -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_WJKBKH3Y_exports = {};
20
- __export(chunk_WJKBKH3Y_exports, {
19
+ var chunk_UHI6VYFX_exports = {};
20
+ __export(chunk_UHI6VYFX_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_WJKBKH3Y_exports);
27
+ module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
29
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -139,7 +139,7 @@ async function execaCommand({
139
139
  schemaEnginePath,
140
140
  engineCommandName
141
141
  }) {
142
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_HNRMSI3R.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
143
143
  try {
144
144
  return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
145
145
  cwd,
@@ -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_BM3JIFQT_exports = {};
30
- __export(chunk_BM3JIFQT_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_BM3JIFQT_exports);
34
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
36
  var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
- var import_chunk_BUQN4WLU = require("./chunk-BUQN4WLU.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
@@ -56,7 +56,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
56
56
 
57
57
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
58
58
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
59
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/telemetry")}`)}
59
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/telemetry")}`)}
60
60
  `);
61
61
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
62
62
  type: "select",
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_BUQN4WLU.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -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_2Q43C56O_exports = {};
20
- __export(chunk_2Q43C56O_exports, {
19
+ var chunk_WEU72JRD_exports = {};
20
+ __export(chunk_WEU72JRD_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_2Q43C56O_exports);
23
+ module.exports = __toCommonJS(chunk_WEU72JRD_exports);
24
+ var import_chunk_26ZV6OR7 = require("./chunk-26ZV6OR7.js");
24
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
25
- var import_chunk_VFZCLI5X = require("./chunk-VFZCLI5X.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_VFZCLI5X.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_26ZV6OR7.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,12 +26,13 @@ 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_ARC7TW3L_exports = {};
30
- __export(chunk_ARC7TW3L_exports, {
29
+ var chunk_WFNB7VRA_exports = {};
30
+ __export(chunk_WFNB7VRA_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
33
+ module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
+ var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
35
36
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
37
38
  var import_path = __toESM(require("path"));
@@ -44,7 +45,16 @@ function getGeneratorSuccessMessage(generator, time) {
44
45
  function formatVersion(generator) {
45
46
  const version = generator.manifest?.version;
46
47
  if (generator.getProvider() === "prisma-client-js") {
47
- return `v${version ?? "?.?.?"}`;
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}`;
48
58
  }
49
59
  return version;
50
60
  }
@@ -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_C5YUUOQW_exports = {};
30
- __export(chunk_C5YUUOQW_exports, {
29
+ var chunk_WYQJ4JWO_exports = {};
30
+ __export(chunk_WYQJ4JWO_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_C5YUUOQW_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_WYQJ4JWO_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
39
- var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_JTS4UPHJ = require("./chunk-JTS4UPHJ.js");
39
+ var import_chunk_FHZ5QJLR = require("./chunk-FHZ5QJLR.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_2Q43C56O.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_JTS4UPHJ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.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
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_3ZWEK4N6.prismaSchemaWasm.debug_panic();
74
+ import_chunk_FHZ5QJLR.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_3ZWEK4N6.prismaSchemaWasm.validate(params);
80
+ import_chunk_FHZ5QJLR.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_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }