@prisma/internals 6.5.0-dev.8 → 6.5.0-dev.80
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/Generator.js +2 -2
- package/dist/WasmPanicRegistry.js +2 -2
- package/dist/{chunk-2SWS7ZGF.js → chunk-3AIIELLW.js} +7 -7
- package/dist/{chunk-NXIWDQBF.js → chunk-3ERIN7PH.js} +5 -5
- package/dist/{chunk-CCLACYA6.js → chunk-3WYXBDAT.js} +11 -11
- package/dist/{chunk-XOWBYDC2.js → chunk-6EY425PC.js} +12 -12
- package/dist/{chunk-A4QWQE3W.js → chunk-ATFQZVBS.js} +11 -4
- package/dist/{chunk-3MFI4O7A.js → chunk-AXTLBHF6.js} +309 -529
- package/dist/{chunk-6YN6HZLA.js → chunk-BICBHOFV.js} +11 -11
- package/dist/{chunk-HOZFIXMD.js → chunk-BPZFDGKN.js} +5 -4
- package/dist/{chunk-RL3K4V2J.js → chunk-C2WD2XUT.js} +980 -113
- package/dist/{chunk-T5RACBRF.js → chunk-CHMJ5V7I.js} +10 -10
- package/dist/{chunk-FHXAG4A2.js → chunk-CZL7DCL2.js} +5 -5
- package/dist/{chunk-3WTVUMXL.js → chunk-EMOBFROK.js} +12 -12
- package/dist/{chunk-54KM4LPR.js → chunk-EQ3LP5OP.js} +309 -529
- package/dist/{chunk-QIVUAERL.js → chunk-GXDYIY4M.js} +1653 -1762
- package/dist/{chunk-6HAMFH75.js → chunk-IF453IGN.js} +8 -8
- package/dist/{chunk-CKLMOOZY.js → chunk-JKSKSL27.js} +5 -5
- package/dist/chunk-KKGIKPIK.js +573 -0
- package/dist/{chunk-G4BGJ6IP.js → chunk-KTBNIQ7N.js} +5 -5
- package/dist/{chunk-UUQ4S65T.js → chunk-M5RTEYAS.js} +10 -11
- package/dist/{chunk-5XRQ7ONW.js → chunk-NJQWZ447.js} +5 -5
- package/dist/{chunk-NDBGA4UH.js → chunk-PHR6BD4C.js} +5 -5
- package/dist/{chunk-VXSQZXSR.js → chunk-PRXCQXPA.js} +5 -5
- package/dist/{chunk-VQX3AXS3.js → chunk-Q4F5XQEO.js} +12 -12
- package/dist/{chunk-XC2UX56M.js → chunk-QQQJTSEH.js} +12 -12
- package/dist/{chunk-WHHQZHZW.js → chunk-RG3KUBMQ.js} +8 -8
- package/dist/{chunk-ZLQSEX7S.js → chunk-SIE7JUHZ.js} +7 -7
- package/dist/{chunk-OYLZC5OV.js → chunk-TATYN3T2.js} +7 -7
- package/dist/{chunk-PN2CAU7D.js → chunk-TCZIM3NJ.js} +12 -12
- package/dist/{chunk-VESI4NCT.js → chunk-TDZT42DL.js} +11 -12
- package/dist/{chunk-IFSZX2CY.js → chunk-TNMIW5RV.js} +5 -5
- package/dist/{chunk-IWJ2BUYF.js → chunk-XLGODPZH.js} +5 -5
- package/dist/{chunk-Z3HEQNNY.js → chunk-YR5SAA2G.js} +12 -12
- package/dist/{chunk-635TMBAP.js → chunk-ZYW3HGSH.js} +8 -4
- package/dist/cli/checkUnsupportedDataProxy.js +25 -26
- package/dist/cli/getSchema.js +29 -30
- package/dist/cli/hashes.js +25 -26
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +24 -25
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +5 -6
- package/dist/engine-commands/getEnginesMetaInfo.js +7 -8
- package/dist/engine-commands/index.js +35 -36
- package/dist/engine-commands/lintSchema.js +10 -10
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/validate.js +9 -9
- package/dist/errorReporting.d.ts +1 -0
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -25
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -26
- package/dist/get-generators/getGenerators.js +27 -28
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -4
- package/dist/getPackedPackage.js +3 -4
- package/dist/index.js +68 -69
- package/dist/panic.js +6 -6
- package/dist/resolveBinary.js +7 -8
- package/dist/schemaEngineCommands.js +8 -9
- package/dist/sendPanic.js +24 -25
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/getEnvPaths.js +24 -25
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +24 -25
- package/dist/utils/isValidJsIdentifier.js +3 -3
- package/dist/utils/loadEnvFile.js +24 -25
- package/dist/wasm.js +5 -5
- package/package.json +15 -16
- package/dist/chunk-F3SIWK3J.js +0 -1404
- package/dist/chunk-H4J2FN2W.js +0 -796
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_M5RTEYAS_exports = {};
|
20
|
+
__export(chunk_M5RTEYAS_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_M5RTEYAS_exports);
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
@@ -54,25 +54,25 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
54
54
|
],
|
55
55
|
devDependencies: {
|
56
56
|
"@antfu/ni": "0.21.12",
|
57
|
-
"@babel/helper-validator-identifier": "7.
|
57
|
+
"@babel/helper-validator-identifier": "7.25.9",
|
58
58
|
"@opentelemetry/api": "1.9.0",
|
59
|
-
"@swc/core": "1.
|
59
|
+
"@swc/core": "1.11.5",
|
60
60
|
"@swc/jest": "0.2.37",
|
61
61
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
62
62
|
"@types/jest": "29.5.14",
|
63
|
-
"@types/node": "18.19.
|
63
|
+
"@types/node": "18.19.76",
|
64
64
|
"@types/resolve": "1.20.6",
|
65
65
|
archiver: "6.0.2",
|
66
66
|
"checkpoint-client": "1.1.33",
|
67
|
-
"cli-truncate": "
|
67
|
+
"cli-truncate": "4.0.0",
|
68
68
|
dotenv: "16.4.7",
|
69
69
|
esbuild: "0.24.2",
|
70
70
|
"escape-string-regexp": "4.0.0",
|
71
71
|
execa: "5.1.1",
|
72
72
|
"fast-glob": "3.3.3",
|
73
|
-
"find-up": "
|
73
|
+
"find-up": "7.0.0",
|
74
74
|
"fp-ts": "2.16.9",
|
75
|
-
"fs-extra": "11.
|
75
|
+
"fs-extra": "11.3.0",
|
76
76
|
"fs-jetpack": "5.1.0",
|
77
77
|
"global-dirs": "4.0.0",
|
78
78
|
globby: "11.1.0",
|
@@ -90,7 +90,6 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
90
90
|
open: "7.4.2",
|
91
91
|
"p-map": "4.0.0",
|
92
92
|
"read-package-up": "11.0.0",
|
93
|
-
"replace-string": "3.1.0",
|
94
93
|
resolve: "1.22.10",
|
95
94
|
"string-width": "4.2.3",
|
96
95
|
"strip-ansi": "6.0.1",
|
@@ -112,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
112
111
|
"@prisma/fetch-engine": "workspace:*",
|
113
112
|
"@prisma/generator-helper": "workspace:*",
|
114
113
|
"@prisma/get-platform": "workspace:*",
|
115
|
-
"@prisma/prisma-schema-wasm": "6.
|
114
|
+
"@prisma/prisma-schema-wasm": "6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d",
|
116
115
|
"@prisma/schema-files-loader": "workspace:*",
|
117
116
|
arg: "5.0.2",
|
118
117
|
prompts: "2.4.2"
|
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_NJQWZ447_exports = {};
|
30
|
+
__export(chunk_NJQWZ447_exports, {
|
31
31
|
getBinaryPathsByVersion: () => getBinaryPathsByVersion
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_NJQWZ447_exports);
|
34
34
|
var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
|
35
35
|
var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
|
36
36
|
var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
|
37
37
|
var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
|
38
|
-
var
|
38
|
+
var import_chunk_GXDYIY4M = require("./chunk-GXDYIY4M.js");
|
39
39
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
40
40
|
var import_engines = require("@prisma/engines");
|
41
41
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
42
42
|
var import_path = __toESM2(require("path"));
|
43
|
-
var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
43
|
+
var import_fs_extra = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_GXDYIY4M.require_lib)());
|
44
44
|
async function getBinaryPathsByVersion({
|
45
45
|
neededVersions,
|
46
46
|
binaryTarget,
|
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_PHR6BD4C_exports = {};
|
20
|
+
__export(chunk_PHR6BD4C_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_PHR6BD4C_exports);
|
24
|
+
var import_chunk_JKSKSL27 = require("./chunk-JKSKSL27.js");
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
27
|
-
const rows = [["Prisma CLI Version",
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_JKSKSL27.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_PRXCQXPA_exports = {};
|
20
|
+
__export(chunk_PRXCQXPA_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_PRXCQXPA_exports);
|
24
|
+
var import_chunk_M5RTEYAS = require("./chunk-M5RTEYAS.js");
|
25
|
+
var packageJson = (0, import_chunk_M5RTEYAS.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -26,23 +26,23 @@ 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
|
30
|
-
__export(
|
29
|
+
var chunk_Q4F5XQEO_exports = {};
|
30
|
+
__export(chunk_Q4F5XQEO_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(
|
37
|
+
module.exports = __toCommonJS(chunk_Q4F5XQEO_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
39
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_TNMIW5RV = require("./chunk-TNMIW5RV.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
45
|
-
var
|
44
|
+
var import_chunk_SIE7JUHZ = require("./chunk-SIE7JUHZ.js");
|
45
|
+
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
48
48
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
65
65
|
}).exhaustive();
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
67
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
68
|
+
super((0, import_chunk_TNMIW5RV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_SIE7JUHZ.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: options.datamodel,
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
99
|
env: process.env
|
100
100
|
});
|
101
|
-
const data =
|
101
|
+
const data = import_chunk_SIE7JUHZ.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -142,9 +142,9 @@ async function getConfig(options) {
|
|
142
142
|
}
|
143
143
|
const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
144
|
debugErrorType(e);
|
145
|
-
if ((0,
|
146
|
-
const { message, stack } = (0,
|
147
|
-
const panic = new
|
145
|
+
if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
|
146
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
|
147
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
148
148
|
/* message */
|
149
149
|
message,
|
150
150
|
/* rustStack */
|
@@ -26,23 +26,23 @@ 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
|
30
|
-
__export(
|
29
|
+
var chunk_QQQJTSEH_exports = {};
|
30
|
+
__export(chunk_QQQJTSEH_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(
|
37
|
+
module.exports = __toCommonJS(chunk_QQQJTSEH_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
39
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_PHR6BD4C = require("./chunk-PHR6BD4C.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
45
|
-
var
|
44
|
+
var import_chunk_3AIIELLW = require("./chunk-3AIIELLW.js");
|
45
|
+
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
48
48
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
65
65
|
}).exhaustive();
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
67
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
68
|
+
super((0, import_chunk_PHR6BD4C.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_3AIIELLW.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: options.datamodel,
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
99
|
env: process.env
|
100
100
|
});
|
101
|
-
const data =
|
101
|
+
const data = import_chunk_3AIIELLW.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -142,9 +142,9 @@ async function getConfig(options) {
|
|
142
142
|
}
|
143
143
|
const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
144
|
debugErrorType(e);
|
145
|
-
if ((0,
|
146
|
-
const { message, stack } = (0,
|
147
|
-
const panic = new
|
145
|
+
if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
|
146
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
|
147
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
148
148
|
/* message */
|
149
149
|
message,
|
150
150
|
/* rustStack */
|
@@ -16,21 +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
|
20
|
-
__export(
|
19
|
+
var chunk_RG3KUBMQ_exports = {};
|
20
|
+
__export(chunk_RG3KUBMQ_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(
|
27
|
+
module.exports = __toCommonJS(chunk_RG3KUBMQ_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
30
|
-
var
|
29
|
+
var import_chunk_SIE7JUHZ = require("./chunk-SIE7JUHZ.js");
|
30
|
+
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_SIE7JUHZ.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -38,8 +38,8 @@ function handleLintPanic(tryCb, { schemas }) {
|
|
38
38
|
try {
|
39
39
|
return tryCb();
|
40
40
|
} catch (e) {
|
41
|
-
const { message, stack } = (0,
|
42
|
-
const panic = new
|
41
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e);
|
42
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
43
43
|
/* message */
|
44
44
|
message,
|
45
45
|
/* rustStack */
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_SIE7JUHZ_exports = {};
|
30
|
+
__export(chunk_SIE7JUHZ_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
wasm_exports: () => wasm_exports
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
37
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_SIE7JUHZ_exports);
|
36
|
+
var import_chunk_M5RTEYAS = require("./chunk-M5RTEYAS.js");
|
37
|
+
var import_chunk_BPZFDGKN = require("./chunk-BPZFDGKN.js");
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
40
40
|
var wasm_exports = {};
|
@@ -42,6 +42,6 @@ var wasm_exports = {};
|
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
44
44
|
});
|
45
|
-
var { dependencies } = (0,
|
45
|
+
var { dependencies } = (0, import_chunk_M5RTEYAS.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
|
-
globalThis.PRISMA_WASM_PANIC_REGISTRY = new
|
47
|
+
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_BPZFDGKN.WasmPanicRegistry();
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_TATYN3T2_exports = {};
|
30
|
+
__export(chunk_TATYN3T2_exports, {
|
31
31
|
getEnginesInfo: () => getEnginesInfo,
|
32
32
|
getEnginesMetaInfo: () => getEnginesMetaInfo,
|
33
33
|
resolveEngine: () => resolveEngine
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
35
|
+
module.exports = __toCommonJS(chunk_TATYN3T2_exports);
|
36
36
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
37
|
-
var
|
37
|
+
var import_chunk_XLGODPZH = require("./chunk-XLGODPZH.js");
|
38
38
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
39
|
-
var
|
39
|
+
var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
|
40
40
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
41
41
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
42
42
|
var import_engines = require("@prisma/engines");
|
@@ -157,7 +157,7 @@ async function resolveEngine(binaryName) {
|
|
157
157
|
const enginePathEither = await (0, import_function2.pipe)(
|
158
158
|
pathFromEnvOption,
|
159
159
|
fold(
|
160
|
-
() => (0,
|
160
|
+
() => (0, import_chunk_3ERIN7PH.safeResolveBinary)(binaryName),
|
161
161
|
(pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
|
162
162
|
)
|
163
163
|
)();
|
@@ -165,7 +165,7 @@ async function resolveEngine(binaryName) {
|
|
165
165
|
enginePathEither,
|
166
166
|
import_chunk_7MD6344A.fromEither,
|
167
167
|
(0, import_chunk_7MD6344A.chain)((enginePath) => {
|
168
|
-
return (0,
|
168
|
+
return (0, import_chunk_XLGODPZH.safeGetEngineVersion)(enginePath, binaryName);
|
169
169
|
})
|
170
170
|
)();
|
171
171
|
const engineInfo = {
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_TCZIM3NJ_exports = {};
|
30
|
+
__export(chunk_TCZIM3NJ_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_TCZIM3NJ_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_PHR6BD4C = require("./chunk-PHR6BD4C.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_3AIIELLW = require("./chunk-3AIIELLW.js");
|
42
|
+
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
45
45
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: validate]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_PHR6BD4C.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "ValidateError";
|
65
65
|
}
|
66
66
|
};
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
72
72
|
() => {
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
74
74
|
debug("Triggering a Rust panic...");
|
75
|
-
|
75
|
+
import_chunk_3AIIELLW.prismaSchemaWasm.debug_panic();
|
76
76
|
}
|
77
77
|
const params = JSON.stringify({
|
78
78
|
prismaSchema: options.schemas,
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
80
80
|
});
|
81
|
-
|
81
|
+
import_chunk_3AIIELLW.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -93,11 +93,11 @@ function validate(options) {
|
|
93
93
|
const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
94
94
|
debugErrorType(e);
|
95
95
|
console.error("");
|
96
|
-
if ((0,
|
97
|
-
const { message, stack } = (0,
|
96
|
+
if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
|
97
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
|
98
98
|
debug(`Error validating schema: ${message}`);
|
99
99
|
debug(stack);
|
100
|
-
const panic = new
|
100
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
101
101
|
/* message */
|
102
102
|
message,
|
103
103
|
/* rustStack */
|
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_TDZT42DL_exports = {};
|
20
|
+
__export(chunk_TDZT42DL_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_TDZT42DL_exports);
|
24
24
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
25
25
|
var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
26
26
|
"package.json"(exports, module2) {
|
27
27
|
module2.exports = {
|
28
28
|
name: "@prisma/internals",
|
29
|
-
version: "6.5.0-dev.
|
29
|
+
version: "6.5.0-dev.80",
|
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",
|
@@ -54,25 +54,25 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
54
54
|
],
|
55
55
|
devDependencies: {
|
56
56
|
"@antfu/ni": "0.21.12",
|
57
|
-
"@babel/helper-validator-identifier": "7.
|
57
|
+
"@babel/helper-validator-identifier": "7.25.9",
|
58
58
|
"@opentelemetry/api": "1.9.0",
|
59
|
-
"@swc/core": "1.
|
59
|
+
"@swc/core": "1.11.5",
|
60
60
|
"@swc/jest": "0.2.37",
|
61
61
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
62
62
|
"@types/jest": "29.5.14",
|
63
|
-
"@types/node": "18.19.
|
63
|
+
"@types/node": "18.19.76",
|
64
64
|
"@types/resolve": "1.20.6",
|
65
65
|
archiver: "6.0.2",
|
66
66
|
"checkpoint-client": "1.1.33",
|
67
|
-
"cli-truncate": "
|
67
|
+
"cli-truncate": "4.0.0",
|
68
68
|
dotenv: "16.4.7",
|
69
69
|
esbuild: "0.24.2",
|
70
70
|
"escape-string-regexp": "4.0.0",
|
71
71
|
execa: "5.1.1",
|
72
72
|
"fast-glob": "3.3.3",
|
73
|
-
"find-up": "
|
73
|
+
"find-up": "7.0.0",
|
74
74
|
"fp-ts": "2.16.9",
|
75
|
-
"fs-extra": "11.
|
75
|
+
"fs-extra": "11.3.0",
|
76
76
|
"fs-jetpack": "5.1.0",
|
77
77
|
"global-dirs": "4.0.0",
|
78
78
|
globby: "11.1.0",
|
@@ -90,7 +90,6 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
90
90
|
open: "7.4.2",
|
91
91
|
"p-map": "4.0.0",
|
92
92
|
"read-package-up": "11.0.0",
|
93
|
-
"replace-string": "3.1.0",
|
94
93
|
resolve: "1.22.10",
|
95
94
|
"string-width": "4.2.3",
|
96
95
|
"strip-ansi": "6.0.1",
|
@@ -112,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
112
111
|
"@prisma/fetch-engine": "workspace:*",
|
113
112
|
"@prisma/generator-helper": "workspace:*",
|
114
113
|
"@prisma/get-platform": "workspace:*",
|
115
|
-
"@prisma/prisma-schema-wasm": "6.
|
114
|
+
"@prisma/prisma-schema-wasm": "6.5.0-70.d3fd11690486b166608fd9d9091a0e94f299a99d",
|
116
115
|
"@prisma/schema-files-loader": "workspace:*",
|
117
116
|
arg: "5.0.2",
|
118
117
|
prompts: "2.4.2"
|
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_TNMIW5RV_exports = {};
|
20
|
+
__export(chunk_TNMIW5RV_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_TNMIW5RV_exports);
|
24
|
+
var import_chunk_PRXCQXPA = require("./chunk-PRXCQXPA.js");
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
27
|
-
const rows = [["Prisma CLI Version",
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_PRXCQXPA.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -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
|
20
|
-
__export(
|
19
|
+
var chunk_XLGODPZH_exports = {};
|
20
|
+
__export(chunk_XLGODPZH_exports, {
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
24
|
+
module.exports = __toCommonJS(chunk_XLGODPZH_exports);
|
25
25
|
var import_chunk_I7IEEULS = require("./chunk-I7IEEULS.js");
|
26
26
|
var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
|
27
|
-
var
|
27
|
+
var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
|
28
28
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
29
29
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
30
30
|
var import_engines = require("@prisma/engines");
|
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
|
|
35
35
|
if (!binaryName) {
|
36
36
|
binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
|
37
37
|
}
|
38
|
-
enginePath = await (0,
|
38
|
+
enginePath = await (0, import_chunk_3ERIN7PH.resolveBinary)(binaryName, enginePath);
|
39
39
|
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
40
40
|
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
41
41
|
(0, import_get_platform.assertNodeAPISupported)();
|
@@ -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
|
30
|
-
__export(
|
29
|
+
var chunk_YR5SAA2G_exports = {};
|
30
|
+
__export(chunk_YR5SAA2G_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_YR5SAA2G_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_TNMIW5RV = require("./chunk-TNMIW5RV.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_SIE7JUHZ = require("./chunk-SIE7JUHZ.js");
|
42
|
+
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
45
45
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: validate]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_TNMIW5RV.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "ValidateError";
|
65
65
|
}
|
66
66
|
};
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
72
72
|
() => {
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
74
74
|
debug("Triggering a Rust panic...");
|
75
|
-
|
75
|
+
import_chunk_SIE7JUHZ.prismaSchemaWasm.debug_panic();
|
76
76
|
}
|
77
77
|
const params = JSON.stringify({
|
78
78
|
prismaSchema: options.schemas,
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
80
80
|
});
|
81
|
-
|
81
|
+
import_chunk_SIE7JUHZ.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -93,11 +93,11 @@ function validate(options) {
|
|
93
93
|
const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
94
94
|
debugErrorType(e);
|
95
95
|
console.error("");
|
96
|
-
if ((0,
|
97
|
-
const { message, stack } = (0,
|
96
|
+
if ((0, import_chunk_ATFQZVBS.isWasmPanic)(e.error)) {
|
97
|
+
const { message, stack } = (0, import_chunk_ATFQZVBS.getWasmError)(e.error);
|
98
98
|
debug(`Error validating schema: ${message}`);
|
99
99
|
debug(stack);
|
100
|
-
const panic = new
|
100
|
+
const panic = new import_chunk_ATFQZVBS.RustPanic(
|
101
101
|
/* message */
|
102
102
|
message,
|
103
103
|
/* rustStack */
|