@prisma/internals 6.4.0-dev.4 → 6.4.0-dev.41
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-7QOZBUYA.js → chunk-2ADG6UJJ.js} +7 -7
- package/dist/{chunk-ACB73FFB.js → chunk-37ELOBQX.js} +5 -5
- package/dist/{chunk-FH6C6KAE.js → chunk-42PS7K6M.js} +138 -130
- package/dist/{chunk-TDSCZZXH.js → chunk-43JBGAHL.js} +6 -5
- package/dist/{chunk-CQ4HD2DC.js → chunk-5KGLGGNM.js} +8 -8
- package/dist/{chunk-GQ6TQDAI.js → chunk-AXOQKRTQ.js} +5 -4
- package/dist/{chunk-5XMABH2V.js → chunk-DV5VOJPZ.js} +5 -5
- package/dist/{chunk-ZJ2YJ7WX.js → chunk-ECNBI5CO.js} +5 -5
- package/dist/{chunk-TRQR5NJV.js → chunk-HAETCCYR.js} +7 -7
- package/dist/{chunk-C575HNVV.js → chunk-J2M6MLZ3.js} +5 -5
- package/dist/{chunk-V2FLBATA.js → chunk-M3OE2TWS.js} +8 -8
- package/dist/{chunk-P3E5MHN3.js → chunk-NWHPPDPX.js} +8 -8
- package/dist/{chunk-R2NTKUE3.js → chunk-PSC46WP5.js} +8 -8
- package/dist/{chunk-HZUFVJSQ.js → chunk-PXHLX7UZ.js} +8 -8
- package/dist/{chunk-7TYVSRK6.js → chunk-RIR667TO.js} +5 -5
- package/dist/{chunk-B2T5HDW7.js → chunk-RL3K4V2J.js} +29 -15
- package/dist/{chunk-Q3VW2HAS.js → chunk-SDZ2LNPY.js} +5 -5
- package/dist/{chunk-VO6XIFMF.js → chunk-V6K3CDWE.js} +5 -5
- package/dist/{chunk-WI7UQAME.js → chunk-W2XWIRSX.js} +5 -5
- package/dist/{chunk-AAMOEAGZ.js → chunk-WSXIOEQM.js} +138 -130
- package/dist/{chunk-YZIVTSY4.js → chunk-ZQRI43ID.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +13 -13
- package/dist/cli/getSchema.js +18 -18
- package/dist/cli/hashes.js +13 -13
- package/dist/cli/types.d.ts +2 -1
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +12 -12
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +21 -21
- 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/get-generators/generatorResolvers/generatorResolvers.js +12 -12
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +12 -12
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +13 -13
- package/dist/get-generators/getGenerators.js +15 -15
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.js +41 -41
- package/dist/sendPanic.js +12 -12
- package/dist/utils/getEnvPaths.js +12 -12
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +12 -12
- package/dist/utils/loadEnvFile.d.ts +4 -2
- package/dist/utils/loadEnvFile.js +12 -12
- package/dist/wasm.js +4 -4
- package/package.json +9 -8
@@ -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_43JBGAHL_exports = {};
|
20
|
+
__export(chunk_43JBGAHL_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_43JBGAHL_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.4.0-dev.
|
29
|
+
version: "6.4.0-dev.41",
|
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",
|
@@ -106,12 +106,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
106
106
|
yarn: "1.22.22"
|
107
107
|
},
|
108
108
|
dependencies: {
|
109
|
+
"@prisma/config": "workspace:*",
|
109
110
|
"@prisma/debug": "workspace:*",
|
110
111
|
"@prisma/engines": "workspace:*",
|
111
112
|
"@prisma/fetch-engine": "workspace:*",
|
112
113
|
"@prisma/generator-helper": "workspace:*",
|
113
114
|
"@prisma/get-platform": "workspace:*",
|
114
|
-
"@prisma/prisma-schema-wasm": "6.4.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.4.0-22.6b762f68259116818698cc00c29790aebfc0e55e",
|
115
116
|
"@prisma/schema-files-loader": "workspace:*",
|
116
117
|
arg: "5.0.2",
|
117
118
|
prompts: "2.4.2"
|
@@ -26,18 +26,18 @@ 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_5KGLGGNM_exports = {};
|
30
|
+
__export(chunk_5KGLGGNM_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_5KGLGGNM_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
|
-
var
|
37
|
+
var import_chunk_RIR667TO = require("./chunk-RIR667TO.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
40
|
+
var import_chunk_SDZ2LNPY = require("./chunk-SDZ2LNPY.js");
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_RIR667TO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
@@ -90,13 +90,13 @@ async function getDMMF(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_SDZ2LNPY.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: datamodel,
|
97
97
|
noColor: Boolean(process.env.NO_COLOR)
|
98
98
|
});
|
99
|
-
const data =
|
99
|
+
const data = import_chunk_SDZ2LNPY.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -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_AXOQKRTQ_exports = {};
|
20
|
+
__export(chunk_AXOQKRTQ_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_AXOQKRTQ_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) {
|
@@ -106,12 +106,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
106
106
|
yarn: "1.22.22"
|
107
107
|
},
|
108
108
|
dependencies: {
|
109
|
+
"@prisma/config": "workspace:*",
|
109
110
|
"@prisma/debug": "workspace:*",
|
110
111
|
"@prisma/engines": "workspace:*",
|
111
112
|
"@prisma/fetch-engine": "workspace:*",
|
112
113
|
"@prisma/generator-helper": "workspace:*",
|
113
114
|
"@prisma/get-platform": "workspace:*",
|
114
|
-
"@prisma/prisma-schema-wasm": "6.4.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.4.0-22.6b762f68259116818698cc00c29790aebfc0e55e",
|
115
116
|
"@prisma/schema-files-loader": "workspace:*",
|
116
117
|
arg: "5.0.2",
|
117
118
|
prompts: "2.4.2"
|
@@ -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_DV5VOJPZ_exports = {};
|
20
|
+
__export(chunk_DV5VOJPZ_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_DV5VOJPZ_exports);
|
24
|
+
var import_chunk_43JBGAHL = require("./chunk-43JBGAHL.js");
|
25
|
+
var packageJson = (0, import_chunk_43JBGAHL.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -26,14 +26,14 @@ 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_ECNBI5CO_exports = {};
|
30
|
+
__export(chunk_ECNBI5CO_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
|
35
|
+
module.exports = __toCommonJS(chunk_ECNBI5CO_exports);
|
36
|
+
var import_chunk_43JBGAHL = require("./chunk-43JBGAHL.js");
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -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_43JBGAHL.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -26,19 +26,19 @@ 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_HAETCCYR_exports = {};
|
30
|
+
__export(chunk_HAETCCYR_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_HAETCCYR_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_RIR667TO = require("./chunk-RIR667TO.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
41
|
+
var import_chunk_SDZ2LNPY = require("./chunk-SDZ2LNPY.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: mergeSchemas]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_RIR667TO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "MergeSchemasError";
|
65
65
|
}
|
66
66
|
};
|
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
|
|
73
73
|
const params = JSON.stringify({
|
74
74
|
schema: options.schemas
|
75
75
|
});
|
76
|
-
return
|
76
|
+
return import_chunk_SDZ2LNPY.prismaSchemaWasm.merge_schemas(params);
|
77
77
|
},
|
78
78
|
(e) => ({
|
79
79
|
type: "wasm-error",
|
@@ -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_J2M6MLZ3_exports = {};
|
20
|
+
__export(chunk_J2M6MLZ3_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_J2M6MLZ3_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
29
|
+
var import_chunk_ECNBI5CO = require("./chunk-ECNBI5CO.js");
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_ECNBI5CO.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -26,22 +26,22 @@ 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_M3OE2TWS_exports = {};
|
30
|
+
__export(chunk_M3OE2TWS_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_M3OE2TWS_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_RIR667TO = require("./chunk-RIR667TO.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
-
var
|
44
|
+
var import_chunk_SDZ2LNPY = require("./chunk-SDZ2LNPY.js");
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.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_RIR667TO.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_SDZ2LNPY.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_SDZ2LNPY.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -26,19 +26,19 @@ 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_NWHPPDPX_exports = {};
|
30
|
+
__export(chunk_NWHPPDPX_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_NWHPPDPX_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_RIR667TO = require("./chunk-RIR667TO.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
41
|
+
var import_chunk_SDZ2LNPY = require("./chunk-SDZ2LNPY.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.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_RIR667TO.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_SDZ2LNPY.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_SDZ2LNPY.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -26,19 +26,19 @@ 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_PSC46WP5_exports = {};
|
30
|
+
__export(chunk_PSC46WP5_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_PSC46WP5_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_37ELOBQX = require("./chunk-37ELOBQX.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
41
|
+
var import_chunk_ECNBI5CO = require("./chunk-ECNBI5CO.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.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_37ELOBQX.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_ECNBI5CO.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_ECNBI5CO.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -26,18 +26,18 @@ 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_PXHLX7UZ_exports = {};
|
30
|
+
__export(chunk_PXHLX7UZ_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_PXHLX7UZ_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
36
|
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
|
-
var
|
37
|
+
var import_chunk_37ELOBQX = require("./chunk-37ELOBQX.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
40
|
+
var import_chunk_ECNBI5CO = require("./chunk-ECNBI5CO.js");
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_37ELOBQX.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
@@ -90,13 +90,13 @@ async function getDMMF(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_ECNBI5CO.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: datamodel,
|
97
97
|
noColor: Boolean(process.env.NO_COLOR)
|
98
98
|
});
|
99
|
-
const data =
|
99
|
+
const data = import_chunk_ECNBI5CO.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -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_RIR667TO_exports = {};
|
20
|
+
__export(chunk_RIR667TO_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_RIR667TO_exports);
|
24
|
+
var import_chunk_V6K3CDWE = require("./chunk-V6K3CDWE.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_V6K3CDWE.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_RL3K4V2J_exports = {};
|
30
|
+
__export(chunk_RL3K4V2J_exports, {
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
32
32
|
readPackageUp: () => readPackageUp,
|
33
33
|
require_glob: () => require_glob,
|
@@ -35,7 +35,7 @@ __export(chunk_B2T5HDW7_exports, {
|
|
35
35
|
require_minimatch: () => require_minimatch,
|
36
36
|
require_p_map: () => require_p_map
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_RL3K4V2J_exports);
|
39
39
|
var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
|
40
40
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
41
41
|
var import_chunk_T5RACBRF = require("./chunk-T5RACBRF.js");
|
@@ -5015,7 +5015,7 @@ ${frame}`;
|
|
5015
5015
|
}
|
5016
5016
|
});
|
5017
5017
|
var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5018
|
-
"../../node_modules/.pnpm/semver@7.
|
5018
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/debug.js"(exports, module2) {
|
5019
5019
|
"use strict";
|
5020
5020
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
5021
5021
|
};
|
@@ -5023,7 +5023,7 @@ var require_debug = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5023
5023
|
}
|
5024
5024
|
});
|
5025
5025
|
var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5026
|
-
"../../node_modules/.pnpm/semver@7.
|
5026
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/constants.js"(exports, module2) {
|
5027
5027
|
"use strict";
|
5028
5028
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
5029
5029
|
var MAX_LENGTH = 256;
|
@@ -5053,7 +5053,7 @@ var require_constants = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5053
5053
|
}
|
5054
5054
|
});
|
5055
5055
|
var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5056
|
-
"../../node_modules/.pnpm/semver@7.
|
5056
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/re.js"(exports, module2) {
|
5057
5057
|
"use strict";
|
5058
5058
|
var {
|
5059
5059
|
MAX_SAFE_COMPONENT_LENGTH,
|
@@ -5137,7 +5137,7 @@ var require_re = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5137
5137
|
}
|
5138
5138
|
});
|
5139
5139
|
var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5140
|
-
"../../node_modules/.pnpm/semver@7.
|
5140
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/parse-options.js"(exports, module2) {
|
5141
5141
|
"use strict";
|
5142
5142
|
var looseOption = Object.freeze({ loose: true });
|
5143
5143
|
var emptyOpts = Object.freeze({});
|
@@ -5154,7 +5154,7 @@ var require_parse_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5154
5154
|
}
|
5155
5155
|
});
|
5156
5156
|
var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5157
|
-
"../../node_modules/.pnpm/semver@7.
|
5157
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/internal/identifiers.js"(exports, module2) {
|
5158
5158
|
"use strict";
|
5159
5159
|
var numeric = /^[0-9]+$/;
|
5160
5160
|
var compareIdentifiers = (a, b) => {
|
@@ -5174,7 +5174,7 @@ var require_identifiers = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5174
5174
|
}
|
5175
5175
|
});
|
5176
5176
|
var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5177
|
-
"../../node_modules/.pnpm/semver@7.
|
5177
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/classes/semver.js"(exports, module2) {
|
5178
5178
|
"use strict";
|
5179
5179
|
var debug = require_debug();
|
5180
5180
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
@@ -5318,6 +5318,17 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5318
5318
|
// preminor will bump the version up to the next minor release, and immediately
|
5319
5319
|
// down to pre-release. premajor and prepatch work the same way.
|
5320
5320
|
inc(release, identifier, identifierBase) {
|
5321
|
+
if (release.startsWith("pre")) {
|
5322
|
+
if (!identifier && identifierBase === false) {
|
5323
|
+
throw new Error("invalid increment argument: identifier is empty");
|
5324
|
+
}
|
5325
|
+
if (identifier) {
|
5326
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
5327
|
+
if (!match || match[1] !== identifier) {
|
5328
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
5329
|
+
}
|
5330
|
+
}
|
5331
|
+
}
|
5321
5332
|
switch (release) {
|
5322
5333
|
case "premajor":
|
5323
5334
|
this.prerelease.length = 0;
|
@@ -5345,6 +5356,12 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5345
5356
|
}
|
5346
5357
|
this.inc("pre", identifier, identifierBase);
|
5347
5358
|
break;
|
5359
|
+
case "release":
|
5360
|
+
if (this.prerelease.length === 0) {
|
5361
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
5362
|
+
}
|
5363
|
+
this.prerelease.length = 0;
|
5364
|
+
break;
|
5348
5365
|
case "major":
|
5349
5366
|
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
5350
5367
|
this.major++;
|
@@ -5370,9 +5387,6 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5370
5387
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
5371
5388
|
case "pre": {
|
5372
5389
|
const base = Number(identifierBase) ? 1 : 0;
|
5373
|
-
if (!identifier && identifierBase === false) {
|
5374
|
-
throw new Error("invalid increment argument: identifier is empty");
|
5375
|
-
}
|
5376
5390
|
if (this.prerelease.length === 0) {
|
5377
5391
|
this.prerelease = [base];
|
5378
5392
|
} else {
|
@@ -5419,7 +5433,7 @@ var require_semver = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5419
5433
|
}
|
5420
5434
|
});
|
5421
5435
|
var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5422
|
-
"../../node_modules/.pnpm/semver@7.
|
5436
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/parse.js"(exports, module2) {
|
5423
5437
|
"use strict";
|
5424
5438
|
var SemVer = require_semver();
|
5425
5439
|
var parse = (version, options, throwErrors = false) => {
|
@@ -5439,7 +5453,7 @@ var require_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5439
5453
|
}
|
5440
5454
|
});
|
5441
5455
|
var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5442
|
-
"../../node_modules/.pnpm/semver@7.
|
5456
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/valid.js"(exports, module2) {
|
5443
5457
|
"use strict";
|
5444
5458
|
var parse = require_parse();
|
5445
5459
|
var valid = (version, options) => {
|
@@ -5450,7 +5464,7 @@ var require_valid = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
5450
5464
|
}
|
5451
5465
|
});
|
5452
5466
|
var require_clean = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
5453
|
-
"../../node_modules/.pnpm/semver@7.
|
5467
|
+
"../../node_modules/.pnpm/semver@7.7.0/node_modules/semver/functions/clean.js"(exports, module2) {
|
5454
5468
|
"use strict";
|
5455
5469
|
var parse = require_parse();
|
5456
5470
|
var clean = (version, options) => {
|
@@ -26,14 +26,14 @@ 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_SDZ2LNPY_exports = {};
|
30
|
+
__export(chunk_SDZ2LNPY_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
|
35
|
+
module.exports = __toCommonJS(chunk_SDZ2LNPY_exports);
|
36
|
+
var import_chunk_AXOQKRTQ = require("./chunk-AXOQKRTQ.js");
|
37
37
|
var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
|
38
38
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -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_AXOQKRTQ.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
|
@@ -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_V6K3CDWE_exports = {};
|
20
|
+
__export(chunk_V6K3CDWE_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_V6K3CDWE_exports);
|
24
|
+
var import_chunk_AXOQKRTQ = require("./chunk-AXOQKRTQ.js");
|
25
|
+
var packageJson = (0, import_chunk_AXOQKRTQ.require_package)();
|
26
26
|
var version = packageJson.version;
|