@prisma/internals 6.19.0-integration-next.22 → 6.19.0

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-W6ZWX546.js → chunk-2GUGGLPK.js} +71 -38
  2. package/dist/chunk-3FP46GUV.js +471 -0
  3. package/dist/chunk-46ABODUM.js +186 -0
  4. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  5. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  6. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  7. package/dist/{chunk-EK3NXGEC.js → chunk-5IQ5L5E4.js} +71 -38
  8. package/dist/chunk-6TTRTZXU.js +37 -0
  9. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  10. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  11. package/dist/{chunk-6QTJ35DP.js → chunk-AP3F7M3T.js} +12 -12
  12. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  13. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  14. package/dist/{chunk-G4R3KIUK.js → chunk-C7SAKLK2.js} +11 -11
  15. package/dist/{chunk-5B5U2HVK.js → chunk-CCLAMTCA.js} +8 -7
  16. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  17. package/dist/{chunk-SU3YFXA4.js → chunk-D7OTFXCP.js} +5 -5
  18. package/dist/chunk-DZYINYAA.js +68 -0
  19. package/dist/{chunk-HQE53CGA.js → chunk-E4H6V3Z4.js} +11 -11
  20. package/dist/{chunk-6FP5PMMX.js → chunk-E6MOBIU5.js} +5 -5
  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-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  25. package/dist/{chunk-BKHAMV6G.js → chunk-FGU7IK4W.js} +9 -8
  26. package/dist/{chunk-STBFWZNS.js → chunk-FHZ5QJLR.js} +5 -5
  27. package/dist/{chunk-3CAPLXKF.js → chunk-FYZCPL2Z.js} +8 -5
  28. package/dist/{chunk-DOO45FN6.js → chunk-GMW36QQF.js} +7 -7
  29. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  30. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  31. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  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-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  35. package/dist/{chunk-2KREE2OX.js → chunk-JTS4UPHJ.js} +5 -5
  36. package/dist/{chunk-33FYCEWF.js → chunk-LFFCR67R.js} +20 -14
  37. package/dist/{chunk-AZFHZFLX.js → chunk-LU7NT333.js} +11 -11
  38. package/dist/{chunk-HBU4ZVCA.js → chunk-LV27YCGC.js} +11 -11
  39. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  40. package/dist/{chunk-4YDN7W7B.js → chunk-OAT7ZJED.js} +20 -7
  41. package/dist/{chunk-25ON3V6C.js → chunk-PHFQSMQF.js} +5 -5
  42. package/dist/chunk-PZMRR772.js +41 -0
  43. package/dist/{chunk-KZ5SMOBR.js → chunk-QJ3QPUM5.js} +5 -5
  44. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  45. package/dist/{chunk-A547MKQQ.js → chunk-SOKSKSEX.js} +20 -14
  46. package/dist/chunk-T2PM5TKT.js +55 -0
  47. package/dist/{chunk-UCO5QBOS.js → chunk-TBR6SNKL.js} +5 -5
  48. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  49. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  50. package/dist/{chunk-IHC4ZVPQ.js → chunk-UHI6VYFX.js} +5 -5
  51. package/dist/{chunk-IU77SCOB.js → chunk-UQUWZJVN.js} +9 -9
  52. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  53. package/dist/{chunk-TU4SG3WD.js → chunk-WYQJ4JWO.js} +12 -12
  54. package/dist/{chunk-MEBZK5AR.js → chunk-Y7XBA7JY.js} +5 -5
  55. package/dist/cli/checkUnsupportedDataProxy.js +62 -56
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +62 -56
  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 +3 -1
  62. package/dist/cli/schemaContext.js +62 -56
  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 +61 -55
  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 +73 -67
  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 +64 -58
  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 +8 -1
  88. package/dist/index.js +115 -101
  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/canPrompt.js +3 -3
  94. package/dist/utils/cloudflareD1.js +3 -3
  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 +8 -8
  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
@@ -0,0 +1,29 @@
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 getEnvPaths_exports = {};
20
+ __export(getEnvPaths_exports, {
21
+ getEnvPaths: () => import_chunk_46ABODUM.getEnvPaths
22
+ });
23
+ module.exports = __toCommonJS(getEnvPaths_exports);
24
+ var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
25
+ var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
26
+ var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
27
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
28
+ var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
29
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getVersionFromPackageJson_exports = {};
20
20
  __export(getVersionFromPackageJson_exports, {
21
- version: () => import_chunk_25ON3V6C.version
21
+ version: () => import_chunk_PHFQSMQF.version
22
22
  });
23
23
  module.exports = __toCommonJS(getVersionFromPackageJson_exports);
24
- var import_chunk_25ON3V6C = require("../chunk-25ON3V6C.js");
25
- var import_chunk_BKHAMV6G = require("../chunk-BKHAMV6G.js");
24
+ var import_chunk_PHFQSMQF = require("../chunk-PHFQSMQF.js");
25
+ var import_chunk_FGU7IK4W = require("../chunk-FGU7IK4W.js");
26
26
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,8 @@
1
+ import { type PlatformInfo } from '@prisma/get-platform';
2
+ type HandleLibraryLoadingErrorsInput = {
3
+ e: Error;
4
+ platformInfo: PlatformInfo;
5
+ id: string;
6
+ };
7
+ export declare function handleLibraryLoadingErrors(args: HandleLibraryLoadingErrorsInput): string;
8
+ export {};
@@ -0,0 +1,27 @@
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 handleEngineLoadingErrors_exports = {};
20
+ __export(handleEngineLoadingErrors_exports, {
21
+ handleLibraryLoadingErrors: () => import_chunk_DZYINYAA.handleLibraryLoadingErrors
22
+ });
23
+ module.exports = __toCommonJS(handleEngineLoadingErrors_exports);
24
+ var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
25
+ var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
26
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
27
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,20 +18,20 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var handlePanic_exports = {};
20
20
  __export(handlePanic_exports, {
21
- handlePanic: () => import_chunk_IU77SCOB.handlePanic
21
+ handlePanic: () => import_chunk_UQUWZJVN.handlePanic
22
22
  });
23
23
  module.exports = __toCommonJS(handlePanic_exports);
24
- var import_chunk_IU77SCOB = require("../chunk-IU77SCOB.js");
25
- var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
24
+ var import_chunk_UQUWZJVN = require("../chunk-UQUWZJVN.js");
25
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
26
26
  var import_chunk_7IKUTPWQ = require("../chunk-7IKUTPWQ.js");
27
- var import_chunk_R3J2O23S = require("../chunk-R3J2O23S.js");
28
- var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
27
+ var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
29
28
  var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
30
- var import_chunk_BUQN4WLU = require("../chunk-BUQN4WLU.js");
29
+ var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
30
+ var import_chunk_HFFWZTVM = require("../chunk-HFFWZTVM.js");
31
31
  var import_chunk_KDHESRKE = require("../chunk-KDHESRKE.js");
32
32
  var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
33
33
  var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
34
- var import_chunk_MEOOYUIZ = require("../chunk-MEOOYUIZ.js");
35
- var import_chunk_KNNTV7IN = require("../chunk-KNNTV7IN.js");
36
34
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
35
+ var import_chunk_5AI4FIZ3 = require("../chunk-5AI4FIZ3.js");
36
+ var import_chunk_NVNI2SRU = require("../chunk-NVNI2SRU.js");
37
37
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var link_exports = {};
20
20
  __export(link_exports, {
21
- link: () => import_chunk_3WXUQZS7.link
21
+ link: () => import_chunk_I6WLABB2.link
22
22
  });
23
23
  module.exports = __toCommonJS(link_exports);
24
- var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
24
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
25
25
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
26
26
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,6 @@
1
+ import type { PlatformInfo } from '@prisma/get-platform';
2
+ /**
3
+ * This is a wrapper around `require` for loading a Node-API library.
4
+ * This is to avoid eval and hide require away from bundlers
5
+ */
6
+ export declare function loadLibrary<T>(id: string, platformInfo: PlatformInfo): T;
@@ -0,0 +1,28 @@
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 load_exports = {};
20
+ __export(load_exports, {
21
+ loadLibrary: () => import_chunk_6TTRTZXU.loadLibrary
22
+ });
23
+ module.exports = __toCommonJS(load_exports);
24
+ var import_chunk_6TTRTZXU = require("../chunk-6TTRTZXU.js");
25
+ var import_chunk_DZYINYAA = require("../chunk-DZYINYAA.js");
26
+ var import_chunk_XKZ6CBLA = require("../chunk-XKZ6CBLA.js");
27
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
28
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,10 @@
1
+ import type { PrismaConfigInternal } from '@prisma/config';
2
+ /**
3
+ * Read .env file only if next to schema.prisma
4
+ * .env found: print to console its relative path
5
+ */
6
+ export declare function loadEnvFile({ schemaPath, config, printMessage, }: {
7
+ schemaPath?: string;
8
+ printMessage?: boolean;
9
+ config: PrismaConfigInternal;
10
+ }): Promise<void>;
@@ -0,0 +1,30 @@
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 loadEnvFile_exports = {};
20
+ __export(loadEnvFile_exports, {
21
+ loadEnvFile: () => import_chunk_PZMRR772.loadEnvFile
22
+ });
23
+ module.exports = __toCommonJS(loadEnvFile_exports);
24
+ var import_chunk_PZMRR772 = require("../chunk-PZMRR772.js");
25
+ var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
26
+ var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
27
+ var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
28
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
+ var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
30
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var missingDatasource_exports = {};
20
20
  __export(missingDatasource_exports, {
21
- missingDatasource: () => import_chunk_MYLPCGTT.missingDatasource
21
+ missingDatasource: () => import_chunk_7QC5VORA.missingDatasource
22
22
  });
23
23
  module.exports = __toCommonJS(missingDatasource_exports);
24
- var import_chunk_MYLPCGTT = require("../chunk-MYLPCGTT.js");
25
- var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
24
+ var import_chunk_7QC5VORA = require("../chunk-7QC5VORA.js");
25
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
26
26
  var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
27
27
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
28
28
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var missingGeneratorMessage_exports = {};
20
20
  __export(missingGeneratorMessage_exports, {
21
- missingGeneratorMessage: () => import_chunk_TGA7DC5A.missingGeneratorMessage,
22
- missingModelMessage: () => import_chunk_TGA7DC5A.missingModelMessage,
23
- missingModelMessageMongoDB: () => import_chunk_TGA7DC5A.missingModelMessageMongoDB
21
+ missingGeneratorMessage: () => import_chunk_AX5N26KG.missingGeneratorMessage,
22
+ missingModelMessage: () => import_chunk_AX5N26KG.missingModelMessage,
23
+ missingModelMessageMongoDB: () => import_chunk_AX5N26KG.missingModelMessageMongoDB
24
24
  });
25
25
  module.exports = __toCommonJS(missingGeneratorMessage_exports);
26
- var import_chunk_TGA7DC5A = require("../chunk-TGA7DC5A.js");
27
- var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
26
+ var import_chunk_AX5N26KG = require("../chunk-AX5N26KG.js");
27
+ var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
28
28
  var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
29
29
  var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
30
30
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var serializeQueryEngineName_exports = {};
20
20
  __export(serializeQueryEngineName_exports, {
21
- serializeQueryEngineName: () => import_chunk_5W3BSMTH.serializeQueryEngineName
21
+ serializeQueryEngineName: () => import_chunk_HO5HRHFZ.serializeQueryEngineName
22
22
  });
23
23
  module.exports = __toCommonJS(serializeQueryEngineName_exports);
24
- var import_chunk_5W3BSMTH = require("../chunk-5W3BSMTH.js");
24
+ var import_chunk_HO5HRHFZ = require("../chunk-HO5HRHFZ.js");
25
25
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -0,0 +1,25 @@
1
+ import dotenv from 'dotenv';
2
+ type DotenvResult = dotenv.DotenvConfigOutput & {
3
+ ignoreProcessEnv?: boolean | undefined;
4
+ };
5
+ interface DotenvLoadEnvResult {
6
+ message: string;
7
+ path: string;
8
+ dotenvResult: DotenvResult;
9
+ }
10
+ export type LoadedEnv = {
11
+ message?: string;
12
+ parsed: {
13
+ [x: string]: string;
14
+ };
15
+ } | undefined;
16
+ export declare function tryLoadEnvs({ rootEnvPath, schemaEnvPath, }: {
17
+ rootEnvPath: string | null | undefined;
18
+ schemaEnvPath: string | null | undefined;
19
+ }, opts?: {
20
+ conflictCheck: 'warn' | 'error' | 'none';
21
+ }): LoadedEnv;
22
+ export declare function loadEnv(envPath: string | null | undefined): DotenvLoadEnvResult | null;
23
+ export declare function pathsEqual(path1: string | null | undefined, path2: string | null | undefined): boolean | "" | null | undefined;
24
+ export declare function exists(p: string | null | undefined): p is string;
25
+ export {};
@@ -0,0 +1,30 @@
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 tryLoadEnvs_exports = {};
20
+ __export(tryLoadEnvs_exports, {
21
+ exists: () => import_chunk_3FP46GUV.exists,
22
+ loadEnv: () => import_chunk_3FP46GUV.loadEnv,
23
+ pathsEqual: () => import_chunk_3FP46GUV.pathsEqual,
24
+ tryLoadEnvs: () => import_chunk_3FP46GUV.tryLoadEnvs
25
+ });
26
+ module.exports = __toCommonJS(tryLoadEnvs_exports);
27
+ var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
28
+ var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
+ var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
30
+ var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
package/dist/wasm.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var wasm_exports = {};
20
20
  __export(wasm_exports, {
21
- prismaSchemaWasm: () => import_chunk_STBFWZNS.prismaSchemaWasm,
22
- prismaSchemaWasmVersion: () => import_chunk_STBFWZNS.prismaSchemaWasmVersion,
23
- schemaEngineWasmVersion: () => import_chunk_STBFWZNS.schemaEngineWasmVersion
21
+ prismaSchemaWasm: () => import_chunk_Y7XBA7JY.prismaSchemaWasm,
22
+ prismaSchemaWasmVersion: () => import_chunk_Y7XBA7JY.prismaSchemaWasmVersion,
23
+ schemaEngineWasmVersion: () => import_chunk_Y7XBA7JY.schemaEngineWasmVersion
24
24
  });
25
25
  module.exports = __toCommonJS(wasm_exports);
26
- var import_chunk_STBFWZNS = require("./chunk-STBFWZNS.js");
27
- var import_chunk_BKHAMV6G = require("./chunk-BKHAMV6G.js");
26
+ var import_chunk_Y7XBA7JY = require("./chunk-Y7XBA7JY.js");
27
+ var import_chunk_FGU7IK4W = require("./chunk-FGU7IK4W.js");
28
28
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
29
29
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/internals",
3
- "version": "6.19.0-integration-next.22",
3
+ "version": "6.19.0",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,11 +27,12 @@
27
27
  "@swc/jest": "0.2.37",
28
28
  "@types/babel__helper-validator-identifier": "7.15.2",
29
29
  "@types/jest": "29.5.14",
30
- "@types/node": "~20.19.24",
30
+ "@types/node": "18.19.76",
31
31
  "@types/resolve": "1.20.6",
32
32
  "archiver": "6.0.2",
33
33
  "checkpoint-client": "1.1.33",
34
34
  "cli-truncate": "4.0.0",
35
+ "dotenv": "16.5.0",
35
36
  "empathic": "2.0.0",
36
37
  "escape-string-regexp": "5.0.0",
37
38
  "execa": "8.0.1",
@@ -67,23 +68,23 @@
67
68
  "yarn": "1.22.22"
68
69
  },
69
70
  "dependencies": {
70
- "@prisma/prisma-schema-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
71
- "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
71
+ "@prisma/prisma-schema-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
72
+ "@prisma/schema-engine-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
72
73
  "arg": "5.0.2",
73
74
  "prompts": "2.4.2",
74
- "@prisma/config": "6.19.0-integration-next.22",
75
- "@prisma/debug": "6.19.0-integration-next.22",
76
- "@prisma/driver-adapter-utils": "6.19.0-integration-next.22",
77
- "@prisma/dmmf": "6.19.0-integration-next.22",
78
- "@prisma/engines": "6.19.0-integration-next.22",
79
- "@prisma/fetch-engine": "6.19.0-integration-next.22",
80
- "@prisma/generator-helper": "6.19.0-integration-next.22",
81
- "@prisma/generator": "6.19.0-integration-next.22",
82
- "@prisma/get-platform": "6.19.0-integration-next.22",
83
- "@prisma/schema-files-loader": "6.19.0-integration-next.22"
75
+ "@prisma/config": "6.19.0",
76
+ "@prisma/debug": "6.19.0",
77
+ "@prisma/driver-adapter-utils": "6.19.0",
78
+ "@prisma/engines": "6.19.0",
79
+ "@prisma/dmmf": "6.19.0",
80
+ "@prisma/fetch-engine": "6.19.0",
81
+ "@prisma/generator": "6.19.0",
82
+ "@prisma/generator-helper": "6.19.0",
83
+ "@prisma/get-platform": "6.19.0",
84
+ "@prisma/schema-files-loader": "6.19.0"
84
85
  },
85
86
  "peerDependencies": {
86
- "typescript": ">=5.4.0"
87
+ "typescript": ">=5.1.0"
87
88
  },
88
89
  "peerDependenciesMeta": {
89
90
  "typescript": {