@prisma/internals 6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1 → 6.19.0-integration-feat-remove-library-engine.3

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 (108) hide show
  1. package/dist/{chunk-GMW36QQF.js → chunk-22HIO2UL.js} +7 -7
  2. package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
  3. package/dist/{chunk-SVOYDVK6.js → chunk-2MJNNWBQ.js} +8 -8
  4. package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
  5. package/dist/{chunk-AX5N26KG.js → chunk-33K2EQQZ.js} +10 -10
  6. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  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-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  10. package/dist/{chunk-46ABODUM.js → chunk-6QTN4DDB.js} +6 -21
  11. package/dist/{chunk-72WT7DK3.js → chunk-7TNL2X5G.js} +5 -5
  12. package/dist/{chunk-YQECHDTJ.js → chunk-AAXLNSYL.js} +5 -5
  13. package/dist/{chunk-6MRKNTJD.js → chunk-AOJ2N25Z.js} +8 -8
  14. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  15. package/dist/{chunk-HFFWZTVM.js → chunk-BUQN4WLU.js} +7 -9
  16. package/dist/{chunk-MEMPRTWR.js → chunk-BZV6PVWV.js} +8 -8
  17. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  18. package/dist/{chunk-47SAWGTD.js → chunk-D7L3VT6R.js} +8 -8
  19. package/dist/chunk-DYV47NUW.js +796 -0
  20. package/dist/{chunk-C4DCOB35.js → chunk-EBJBIVXN.js} +5 -5
  21. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  22. package/dist/{chunk-ECMR3OBL.js → chunk-FSQCVENL.js} +7 -7
  23. package/dist/{chunk-PZMRR772.js → chunk-FURGECAD.js} +6 -6
  24. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  25. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  26. package/dist/{chunk-OAT7ZJED.js → chunk-H5STSTVK.js} +7 -20
  27. package/dist/{chunk-7QC5VORA.js → chunk-H6PPJ5PX.js} +7 -7
  28. package/dist/{chunk-FYZCPL2Z.js → chunk-HNRMSI3R.js} +5 -8
  29. package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
  30. package/dist/{chunk-UQUWZJVN.js → chunk-IU77SCOB.js} +9 -9
  31. package/dist/{chunk-FXUEE7XX.js → chunk-KD7PGGJP.js} +8 -8
  32. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  33. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  34. package/dist/{chunk-L5ZWEYO7.js → chunk-MUZJUPDX.js} +7 -7
  35. package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
  36. package/dist/{chunk-PPB7JLDO.js → chunk-NNYJV66S.js} +5 -5
  37. package/dist/{chunk-ZBUC6PZX.js → chunk-NVSVTFPX.js} +5 -5
  38. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  39. package/dist/{chunk-46MGVXWZ.js → chunk-P4JEYG25.js} +5 -5
  40. package/dist/{chunk-VMKOB234.js → chunk-QQRYY5P4.js} +8 -8
  41. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  42. package/dist/{chunk-4L35EYLD.js → chunk-SFKBYZWG.js} +38 -66
  43. package/dist/{chunk-AMETUICR.js → chunk-TAKL4AGJ.js} +8 -8
  44. package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
  45. package/dist/{chunk-W7LDAWJF.js → chunk-UMB3Y33W.js} +7 -7
  46. package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
  47. package/dist/{chunk-UHI6VYFX.js → chunk-WJKBKH3Y.js} +5 -5
  48. package/dist/{chunk-ZCMRWYQK.js → chunk-Z2IPE4NA.js} +38 -66
  49. package/dist/{chunk-DRMVYKKF.js → chunk-ZEBJSCAV.js} +5 -5
  50. package/dist/{chunk-ZY7BAIKC.js → chunk-ZVTQSH5K.js} +5 -5
  51. package/dist/cli/checkUnsupportedDataProxy.js +52 -54
  52. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +52 -54
  53. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  54. package/dist/cli/getSchema.d.ts +1 -15
  55. package/dist/cli/getSchema.js +4 -5
  56. package/dist/cli/hashes.js +4 -4
  57. package/dist/cli/schemaContext.js +52 -54
  58. package/dist/engine-commands/errorHelpers.js +4 -4
  59. package/dist/engine-commands/formatSchema.js +51 -53
  60. package/dist/engine-commands/getConfig.js +10 -10
  61. package/dist/engine-commands/getDmmf.js +7 -7
  62. package/dist/engine-commands/getEngineVersion.js +6 -9
  63. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  64. package/dist/engine-commands/getEnginesInfo.js +7 -9
  65. package/dist/engine-commands/index.js +63 -65
  66. package/dist/engine-commands/lintSchema.js +8 -8
  67. package/dist/engine-commands/mergeSchemas.js +7 -7
  68. package/dist/engine-commands/validate.js +7 -7
  69. package/dist/errorReporting.js +6 -6
  70. package/dist/get-generators/getGenerators.d.ts +0 -1
  71. package/dist/get-generators/getGenerators.js +54 -56
  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 +1 -4
  78. package/dist/index.js +102 -109
  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 -4
  83. package/dist/utils/canPrompt.js +3 -3
  84. package/dist/utils/cloudflareD1.js +3 -3
  85. package/dist/utils/drawBox.js +2 -2
  86. package/dist/utils/fs-functional.js +10 -10
  87. package/dist/utils/fs-utils.js +8 -8
  88. package/dist/utils/getEnvPaths.d.ts +1 -1
  89. package/dist/utils/getEnvPaths.js +2 -3
  90. package/dist/utils/getVersionFromPackageJson.js +3 -3
  91. package/dist/utils/handlePanic.js +8 -8
  92. package/dist/utils/link.js +2 -2
  93. package/dist/utils/loadEnvFile.d.ts +1 -1
  94. package/dist/utils/loadEnvFile.js +3 -4
  95. package/dist/utils/missingDatasource.js +5 -5
  96. package/dist/utils/missingGeneratorMessage.js +7 -7
  97. package/dist/utils/serializeQueryEngineName.js +2 -2
  98. package/dist/wasm.js +5 -5
  99. package/package.json +15 -15
  100. package/dist/chunk-6TTRTZXU.js +0 -37
  101. package/dist/chunk-DZYINYAA.js +0 -68
  102. package/dist/chunk-ERSH2BQA.js +0 -58
  103. package/dist/client/getClientEngineType.d.ts +0 -7
  104. package/dist/client/getClientEngineType.js +0 -26
  105. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  106. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  107. package/dist/utils/load.d.ts +0 -6
  108. package/dist/utils/load.js +0 -28
@@ -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_I6WLABB2.link
21
+ link: () => import_chunk_3WXUQZS7.link
22
22
  });
23
23
  module.exports = __toCommonJS(link_exports);
24
- var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
24
+ var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
25
25
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
26
26
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -7,4 +7,4 @@ export declare function loadEnvFile({ schemaPath, config, printMessage, }: {
7
7
  schemaPath?: string;
8
8
  printMessage?: boolean;
9
9
  config: PrismaConfigInternal;
10
- }): Promise<void>;
10
+ }): void;
@@ -18,13 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var loadEnvFile_exports = {};
20
20
  __export(loadEnvFile_exports, {
21
- loadEnvFile: () => import_chunk_PZMRR772.loadEnvFile
21
+ loadEnvFile: () => import_chunk_FURGECAD.loadEnvFile
22
22
  });
23
23
  module.exports = __toCommonJS(loadEnvFile_exports);
24
- var import_chunk_PZMRR772 = require("../chunk-PZMRR772.js");
25
- var import_chunk_46ABODUM = require("../chunk-46ABODUM.js");
24
+ var import_chunk_FURGECAD = require("../chunk-FURGECAD.js");
25
+ var import_chunk_6QTN4DDB = require("../chunk-6QTN4DDB.js");
26
26
  var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
27
- var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
28
27
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
28
  var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
30
29
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,14 +18,14 @@ 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_7QC5VORA.missingDatasource
21
+ missingDatasource: () => import_chunk_H6PPJ5PX.missingDatasource
22
22
  });
23
23
  module.exports = __toCommonJS(missingDatasource_exports);
24
- var import_chunk_7QC5VORA = require("../chunk-7QC5VORA.js");
25
- var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
26
- var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
27
- var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
24
+ var import_chunk_H6PPJ5PX = require("../chunk-H6PPJ5PX.js");
25
+ var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
26
+ var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
28
27
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
28
+ var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
29
29
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
30
30
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
31
31
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
@@ -18,16 +18,16 @@ 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_AX5N26KG.missingGeneratorMessage,
22
- missingModelMessage: () => import_chunk_AX5N26KG.missingModelMessage,
23
- missingModelMessageMongoDB: () => import_chunk_AX5N26KG.missingModelMessageMongoDB
21
+ missingGeneratorMessage: () => import_chunk_33K2EQQZ.missingGeneratorMessage,
22
+ missingModelMessage: () => import_chunk_33K2EQQZ.missingModelMessage,
23
+ missingModelMessageMongoDB: () => import_chunk_33K2EQQZ.missingModelMessageMongoDB
24
24
  });
25
25
  module.exports = __toCommonJS(missingGeneratorMessage_exports);
26
- var import_chunk_AX5N26KG = require("../chunk-AX5N26KG.js");
27
- var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
28
- var import_chunk_TQCLUNM2 = require("../chunk-TQCLUNM2.js");
29
- var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
26
+ var import_chunk_33K2EQQZ = require("../chunk-33K2EQQZ.js");
27
+ var import_chunk_3WXUQZS7 = require("../chunk-3WXUQZS7.js");
28
+ var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
30
29
  var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
30
+ var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
31
31
  var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
32
32
  var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
33
33
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.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_HO5HRHFZ.serializeQueryEngineName
21
+ serializeQueryEngineName: () => import_chunk_5W3BSMTH.serializeQueryEngineName
22
22
  });
23
23
  module.exports = __toCommonJS(serializeQueryEngineName_exports);
24
- var import_chunk_HO5HRHFZ = require("../chunk-HO5HRHFZ.js");
24
+ var import_chunk_5W3BSMTH = require("../chunk-5W3BSMTH.js");
25
25
  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_YQECHDTJ.prismaSchemaWasm,
22
- prismaSchemaWasmVersion: () => import_chunk_YQECHDTJ.prismaSchemaWasmVersion,
23
- schemaEngineWasmVersion: () => import_chunk_YQECHDTJ.schemaEngineWasmVersion
21
+ prismaSchemaWasm: () => import_chunk_AAXLNSYL.prismaSchemaWasm,
22
+ prismaSchemaWasmVersion: () => import_chunk_AAXLNSYL.prismaSchemaWasmVersion,
23
+ schemaEngineWasmVersion: () => import_chunk_AAXLNSYL.schemaEngineWasmVersion
24
24
  });
25
25
  module.exports = __toCommonJS(wasm_exports);
26
- var import_chunk_YQECHDTJ = require("./chunk-YQECHDTJ.js");
27
- var import_chunk_VMKOB234 = require("./chunk-VMKOB234.js");
26
+ var import_chunk_AAXLNSYL = require("./chunk-AAXLNSYL.js");
27
+ var import_chunk_QQRYY5P4 = require("./chunk-QQRYY5P4.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-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
3
+ "version": "6.19.0-integration-feat-remove-library-engine.3",
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,7 +27,7 @@
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": "18.19.76",
30
+ "@types/node": "~20.19.24",
31
31
  "@types/resolve": "1.20.6",
32
32
  "archiver": "6.0.2",
33
33
  "checkpoint-client": "1.1.33",
@@ -68,23 +68,23 @@
68
68
  "yarn": "1.22.22"
69
69
  },
70
70
  "dependencies": {
71
- "@prisma/prisma-schema-wasm": "6.19.0-30.push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368",
72
- "@prisma/schema-engine-wasm": "6.19.0-30.push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368",
71
+ "@prisma/prisma-schema-wasm": "6.19.0-29.next-ac95b5893b3c05bf39a2431fc1a748dd46152ab4",
72
+ "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
73
73
  "arg": "5.0.2",
74
74
  "prompts": "2.4.2",
75
- "@prisma/config": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
76
- "@prisma/debug": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
77
- "@prisma/engines": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
78
- "@prisma/fetch-engine": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
79
- "@prisma/dmmf": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
80
- "@prisma/driver-adapter-utils": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
81
- "@prisma/generator": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
82
- "@prisma/generator-helper": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
83
- "@prisma/get-platform": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
84
- "@prisma/schema-files-loader": "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1"
75
+ "@prisma/config": "6.19.0-integration-feat-remove-library-engine.3",
76
+ "@prisma/debug": "6.19.0-integration-feat-remove-library-engine.3",
77
+ "@prisma/dmmf": "6.19.0-integration-feat-remove-library-engine.3",
78
+ "@prisma/driver-adapter-utils": "6.19.0-integration-feat-remove-library-engine.3",
79
+ "@prisma/engines": "6.19.0-integration-feat-remove-library-engine.3",
80
+ "@prisma/fetch-engine": "6.19.0-integration-feat-remove-library-engine.3",
81
+ "@prisma/generator": "6.19.0-integration-feat-remove-library-engine.3",
82
+ "@prisma/generator-helper": "6.19.0-integration-feat-remove-library-engine.3",
83
+ "@prisma/get-platform": "6.19.0-integration-feat-remove-library-engine.3",
84
+ "@prisma/schema-files-loader": "6.19.0-integration-feat-remove-library-engine.3"
85
85
  },
86
86
  "peerDependencies": {
87
- "typescript": ">=5.1.0"
87
+ "typescript": ">=5.4.0"
88
88
  },
89
89
  "peerDependenciesMeta": {
90
90
  "typescript": {
@@ -1,37 +0,0 @@
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_6TTRTZXU_exports = {};
20
- __export(chunk_6TTRTZXU_exports, {
21
- loadLibrary: () => loadLibrary
22
- });
23
- module.exports = __toCommonJS(chunk_6TTRTZXU_exports);
24
- var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
25
- var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
26
- function loadLibrary(id, platformInfo) {
27
- try {
28
- return (0, import_chunk_4VNS5WPM.__require)(id);
29
- } catch (e) {
30
- const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
31
- e,
32
- platformInfo,
33
- id
34
- });
35
- throw new Error(errorMessage);
36
- }
37
- }
@@ -1,68 +0,0 @@
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_DZYINYAA_exports = {};
20
- __export(chunk_DZYINYAA_exports, {
21
- handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
22
- });
23
- module.exports = __toCommonJS(chunk_DZYINYAA_exports);
24
- var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
25
- var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
26
- var import_get_platform = require("@prisma/get-platform");
27
- function handleLibraryLoadingErrors(args) {
28
- const error = args.e;
29
- const systemLibraryNotFound = (library) => `Prisma cannot find the required \`${library}\` system library in your system`;
30
- const hasLinkingProblem = error.message.includes("cannot open shared object file");
31
- const referToSystemRequirementsDocs = `Please refer to the documentation about Prisma's system requirements: ${(0, import_get_platform.link)(
32
- "https://pris.ly/d/system-requirements"
33
- )}`;
34
- const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
35
- const potentialReasonMessage = (0, import_chunk_XKZ6CBLA.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
36
- ({ message }) => hasLinkingProblem && message.includes("libz"),
37
- () => {
38
- return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
39
- }
40
- ).when(
41
- ({ message }) => hasLinkingProblem && message.includes("libgcc_s"),
42
- () => {
43
- return `${systemLibraryNotFound("libgcc_s")}. Please install it and try again.`;
44
- }
45
- ).when(
46
- ({ message }) => hasLinkingProblem && message.includes("libssl"),
47
- () => {
48
- const libsslVersion = args.platformInfo.libssl ? `openssl-${args.platformInfo.libssl}` : "openssl";
49
- return `${systemLibraryNotFound("libssl")}. Please install ${libsslVersion} and try again.`;
50
- }
51
- ).when(
52
- ({ message }) => message.includes("GLIBC"),
53
- () => {
54
- return `Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${referToSystemRequirementsDocs}`;
55
- }
56
- ).when(
57
- ({ message }) => args.platformInfo.platform === "linux" && message.includes("symbol not found"),
58
- () => {
59
- return `The Prisma engines are not compatible with your system ${args.platformInfo.originalDistro} on (${args.platformInfo.archFromUname}) which uses the \`${args.platformInfo.binaryTarget}\` binaryTarget by default. ${referToSystemRequirementsDocs}`;
60
- }
61
- ).otherwise(() => {
62
- return `The Prisma engines do not seem to be compatible with your system. ${referToSystemRequirementsDocs}`;
63
- });
64
- return `${errorTitle}
65
- ${potentialReasonMessage}
66
-
67
- Details: ${error.message}`;
68
- }
@@ -1,58 +0,0 @@
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_ERSH2BQA_exports = {};
20
- __export(chunk_ERSH2BQA_exports, {
21
- ClientEngineType: () => ClientEngineType,
22
- getClientEngineType: () => getClientEngineType
23
- });
24
- module.exports = __toCommonJS(chunk_ERSH2BQA_exports);
25
- var ClientEngineType = /* @__PURE__ */ ((ClientEngineType2) => {
26
- ClientEngineType2["Library"] = "library";
27
- ClientEngineType2["Binary"] = "binary";
28
- ClientEngineType2["Client"] = "client";
29
- return ClientEngineType2;
30
- })(ClientEngineType || {});
31
- function getClientEngineType(generatorConfig) {
32
- const engineTypeFromEnvVar = getEngineTypeFromEnvVar();
33
- if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
34
- if (generatorConfig?.config.engineType === "library") {
35
- return "library";
36
- } else if (generatorConfig?.config.engineType === "binary") {
37
- return "binary";
38
- } else if (generatorConfig?.config.engineType === "client") {
39
- return "client";
40
- } else {
41
- return getDefaultEngineType();
42
- }
43
- }
44
- function getEngineTypeFromEnvVar() {
45
- const engineType = process.env.PRISMA_CLIENT_ENGINE_TYPE;
46
- if (engineType === "library") {
47
- return "library";
48
- } else if (engineType === "binary") {
49
- return "binary";
50
- } else if (engineType === "client") {
51
- return "client";
52
- } else {
53
- return void 0;
54
- }
55
- }
56
- function getDefaultEngineType() {
57
- return "library";
58
- }
@@ -1,7 +0,0 @@
1
- import type { GeneratorConfig } from '@prisma/generator';
2
- export declare enum ClientEngineType {
3
- Library = "library",
4
- Binary = "binary",
5
- Client = "client"
6
- }
7
- export declare function getClientEngineType(generatorConfig?: GeneratorConfig): ClientEngineType;
@@ -1,26 +0,0 @@
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 getClientEngineType_exports = {};
20
- __export(getClientEngineType_exports, {
21
- ClientEngineType: () => import_chunk_ERSH2BQA.ClientEngineType,
22
- getClientEngineType: () => import_chunk_ERSH2BQA.getClientEngineType
23
- });
24
- module.exports = __toCommonJS(getClientEngineType_exports);
25
- var import_chunk_ERSH2BQA = require("../chunk-ERSH2BQA.js");
26
- var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -1,8 +0,0 @@
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 {};
@@ -1,27 +0,0 @@
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");
@@ -1,6 +0,0 @@
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;
@@ -1,28 +0,0 @@
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");