@prisma/internals 6.19.0-integration-next.13 → 6.19.0-integration-feat-remove-library-engine.2
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.
- package/dist/{chunk-FC6CQUSK.js → chunk-22HIO2UL.js} +7 -7
- package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
- package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
- package/dist/{chunk-AX5N26KG.js → chunk-33K2EQQZ.js} +10 -10
- package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
- package/dist/{chunk-MURRA56K.js → chunk-5CBDEFHE.js} +5 -5
- package/dist/{chunk-B22EOFPW.js → chunk-5I4ERIIY.js} +3 -6
- package/dist/{chunk-5XFNC2RY.js → chunk-5MHUYAV3.js} +9 -9
- package/dist/{chunk-HQAD5FY2.js → chunk-7NFX7KFI.js} +5 -5
- package/dist/{chunk-JD6JN3KX.js → chunk-AOJ2N25Z.js} +8 -8
- package/dist/{chunk-M63PXCZW.js → chunk-BUB5LU5N.js} +5 -5
- package/dist/{chunk-GSH4BXBI.js → chunk-BUQN4WLU.js} +6 -6
- package/dist/{chunk-NSWABV42.js → chunk-BZV6PVWV.js} +8 -8
- package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
- package/dist/{chunk-HZ6U2UGL.js → chunk-D7L3VT6R.js} +8 -8
- package/dist/chunk-DYV47NUW.js +796 -0
- package/dist/{chunk-JWIV6YDD.js → chunk-EBJBIVXN.js} +5 -5
- package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
- package/dist/{chunk-RCQOUZB5.js → chunk-GDTMDZJA.js} +5 -5
- package/dist/{chunk-VRGMXDRD.js → chunk-GJSFP4V4.js} +3 -6
- package/dist/{chunk-SRZLJFU4.js → chunk-H5STSTVK.js} +7 -16
- package/dist/{chunk-7QC5VORA.js → chunk-H6PPJ5PX.js} +7 -7
- package/dist/{chunk-FYZCPL2Z.js → chunk-HNRMSI3R.js} +5 -8
- package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
- package/dist/{chunk-KIFFN3IT.js → chunk-IU77SCOB.js} +9 -9
- package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
- package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
- package/dist/{chunk-S553BGWR.js → chunk-MUZJUPDX.js} +4 -4
- package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
- package/dist/{chunk-BJUIZZOW.js → chunk-N2IUVVYJ.js} +32 -47
- package/dist/{chunk-VIEJEAGW.js → chunk-NNYJV66S.js} +5 -5
- package/dist/{chunk-CAYOFOK7.js → chunk-NPMHIQNM.js} +8 -8
- package/dist/{chunk-6ASAML6M.js → chunk-NPSVUZBN.js} +5 -5
- package/dist/{chunk-XTWFEQXH.js → chunk-NVSVTFPX.js} +5 -5
- package/dist/{chunk-HD2CUQO5.js → chunk-OENCCIMK.js} +7 -7
- package/dist/{chunk-EGJS32NP.js → chunk-PTRXLDT7.js} +8 -8
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-ZVZOKBG4.js → chunk-RXERQWBD.js} +8 -8
- package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
- package/dist/{chunk-EL4E3FQN.js → chunk-UMB3Y33W.js} +7 -7
- package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
- package/dist/{chunk-UHI6VYFX.js → chunk-WJKBKH3Y.js} +5 -5
- package/dist/{chunk-H7KAU5SR.js → chunk-Z2IPE4NA.js} +32 -47
- package/dist/{chunk-VPVHYF3V.js → chunk-ZVTQSH5K.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +47 -49
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +47 -49
- package/dist/cli/schemaContext.js +47 -49
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +46 -48
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +6 -9
- package/dist/engine-commands/getEnginesInfo.js +7 -9
- package/dist/engine-commands/index.js +58 -60
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/getGenerators.js +49 -51
- package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
- package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
- package/dist/getPackedPackage.js +4 -3
- package/dist/highlight/highlight.js +5 -5
- package/dist/index.d.ts +1 -4
- package/dist/index.js +88 -95
- package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
- package/dist/resolveBinary.js +8 -7
- package/dist/schemaEngineCommands.js +9 -8
- package/dist/sendPanic.js +4 -4
- package/dist/utils/canPrompt.js +3 -3
- package/dist/utils/cloudflareD1.js +3 -3
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +8 -8
- package/dist/utils/link.js +2 -2
- package/dist/utils/missingDatasource.js +5 -5
- package/dist/utils/missingGeneratorMessage.js +7 -7
- package/dist/wasm.js +5 -5
- package/package.json +12 -12
- package/dist/chunk-6TTRTZXU.js +0 -37
- package/dist/chunk-DZYINYAA.js +0 -68
- package/dist/chunk-FUYRCYVL.js +0 -53
- package/dist/client/getClientEngineType.d.ts +0 -6
- package/dist/client/getClientEngineType.js +0 -26
- package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
- package/dist/utils/handleEngineLoadingErrors.js +0 -27
- package/dist/utils/load.d.ts +0 -6
- package/dist/utils/load.js +0 -28
|
@@ -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: () =>
|
|
22
|
-
missingModelMessage: () =>
|
|
23
|
-
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
|
|
27
|
-
var
|
|
28
|
-
var
|
|
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");
|
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: () =>
|
|
22
|
-
prismaSchemaWasmVersion: () =>
|
|
23
|
-
schemaEngineWasmVersion: () =>
|
|
21
|
+
prismaSchemaWasm: () => import_chunk_7NFX7KFI.prismaSchemaWasm,
|
|
22
|
+
prismaSchemaWasmVersion: () => import_chunk_7NFX7KFI.prismaSchemaWasmVersion,
|
|
23
|
+
schemaEngineWasmVersion: () => import_chunk_7NFX7KFI.schemaEngineWasmVersion
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(wasm_exports);
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
|
|
27
|
+
var import_chunk_GDTMDZJA = require("./chunk-GDTMDZJA.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-
|
|
3
|
+
"version": "6.19.0-integration-feat-remove-library-engine.2",
|
|
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": "~20.19.
|
|
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",
|
|
@@ -72,16 +72,16 @@
|
|
|
72
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-
|
|
76
|
-
"@prisma/
|
|
77
|
-
"@prisma/
|
|
78
|
-
"@prisma/
|
|
79
|
-
"@prisma/
|
|
80
|
-
"@prisma/
|
|
81
|
-
"@prisma/generator
|
|
82
|
-
"@prisma/
|
|
83
|
-
"@prisma/get-platform": "6.19.0-integration-
|
|
84
|
-
"@prisma/schema-files-loader": "6.19.0-integration-
|
|
75
|
+
"@prisma/config": "6.19.0-integration-feat-remove-library-engine.2",
|
|
76
|
+
"@prisma/debug": "6.19.0-integration-feat-remove-library-engine.2",
|
|
77
|
+
"@prisma/dmmf": "6.19.0-integration-feat-remove-library-engine.2",
|
|
78
|
+
"@prisma/driver-adapter-utils": "6.19.0-integration-feat-remove-library-engine.2",
|
|
79
|
+
"@prisma/engines": "6.19.0-integration-feat-remove-library-engine.2",
|
|
80
|
+
"@prisma/fetch-engine": "6.19.0-integration-feat-remove-library-engine.2",
|
|
81
|
+
"@prisma/generator": "6.19.0-integration-feat-remove-library-engine.2",
|
|
82
|
+
"@prisma/generator-helper": "6.19.0-integration-feat-remove-library-engine.2",
|
|
83
|
+
"@prisma/get-platform": "6.19.0-integration-feat-remove-library-engine.2",
|
|
84
|
+
"@prisma/schema-files-loader": "6.19.0-integration-feat-remove-library-engine.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"typescript": ">=5.4.0"
|
package/dist/chunk-6TTRTZXU.js
DELETED
|
@@ -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
|
-
}
|
package/dist/chunk-DZYINYAA.js
DELETED
|
@@ -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
|
-
}
|
package/dist/chunk-FUYRCYVL.js
DELETED
|
@@ -1,53 +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_FUYRCYVL_exports = {};
|
|
20
|
-
__export(chunk_FUYRCYVL_exports, {
|
|
21
|
-
ClientEngineType: () => ClientEngineType,
|
|
22
|
-
getClientEngineType: () => getClientEngineType
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(chunk_FUYRCYVL_exports);
|
|
25
|
-
var ClientEngineType = /* @__PURE__ */ ((ClientEngineType2) => {
|
|
26
|
-
ClientEngineType2["Library"] = "library";
|
|
27
|
-
ClientEngineType2["Client"] = "client";
|
|
28
|
-
return ClientEngineType2;
|
|
29
|
-
})(ClientEngineType || {});
|
|
30
|
-
function getClientEngineType(generatorConfig) {
|
|
31
|
-
const engineTypeFromEnvVar = getEngineTypeFromEnvVar();
|
|
32
|
-
if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
|
|
33
|
-
if (generatorConfig?.config.engineType === "library") {
|
|
34
|
-
return "library";
|
|
35
|
-
} else if (generatorConfig?.config.engineType === "client") {
|
|
36
|
-
return "client";
|
|
37
|
-
} else {
|
|
38
|
-
return getDefaultEngineType();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function getEngineTypeFromEnvVar() {
|
|
42
|
-
const engineType = process.env.PRISMA_CLIENT_ENGINE_TYPE;
|
|
43
|
-
if (engineType === "library") {
|
|
44
|
-
return "library";
|
|
45
|
-
} else if (engineType === "client") {
|
|
46
|
-
return "client";
|
|
47
|
-
} else {
|
|
48
|
-
return void 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function getDefaultEngineType() {
|
|
52
|
-
return "library";
|
|
53
|
-
}
|
|
@@ -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_FUYRCYVL.ClientEngineType,
|
|
22
|
-
getClientEngineType: () => import_chunk_FUYRCYVL.getClientEngineType
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(getClientEngineType_exports);
|
|
25
|
-
var import_chunk_FUYRCYVL = require("../chunk-FUYRCYVL.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");
|
package/dist/utils/load.d.ts
DELETED
|
@@ -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;
|
package/dist/utils/load.js
DELETED
|
@@ -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");
|