@prisma/internals 6.7.0-dev.4 → 6.7.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-DVK2KU3X.js → chunk-3N7TKS7Z.js} +7 -7
- package/dist/{chunk-HSCJEEWW.js → chunk-B7SJFZLW.js} +5 -5
- package/dist/chunk-CHOXBASF.js +44 -0
- package/dist/{chunk-4RTSZRIG.js → chunk-DVHKIMLF.js} +38 -432
- package/dist/{chunk-7VLCG6RO.js → chunk-EX5EMXRT.js} +8 -8
- package/dist/{chunk-WFM4E4NF.js → chunk-FIGFZJ62.js} +5 -5
- package/dist/{chunk-5A3TNFY2.js → chunk-H3SKZH65.js} +5 -5
- package/dist/{chunk-VNA6OKM4.js → chunk-HQUMUMVD.js} +5 -5
- package/dist/{chunk-UPJOW7RX.js → chunk-K4ILLA5Q.js} +5 -5
- package/dist/{chunk-RA2FQ5J7.js → chunk-KQGUHK5E.js} +5 -5
- package/dist/{chunk-JGJGCIF6.js → chunk-LB5MLHJJ.js} +5 -5
- package/dist/{chunk-67I7CEQJ.js → chunk-MY5KA4VU.js} +12 -329
- package/dist/{chunk-7JQV6H4U.js → chunk-NK37PKPQ.js} +38 -432
- package/dist/chunk-PSFQKG2Q.js +6291 -0
- package/dist/chunk-Q6ZVYPDB.js +41 -0
- package/dist/{chunk-QSAE23KV.js → chunk-QA4OGZAI.js} +10 -6
- package/dist/chunk-QS3WUGE3.js +341 -0
- package/dist/{chunk-C4TFJ7UD.js → chunk-TJUT3SFL.js} +8 -8
- package/dist/{chunk-ZQB3OZHH.js → chunk-TX5IPI3I.js} +8 -8
- package/dist/{chunk-QVVSDACW.js → chunk-WANK3LVF.js} +5 -5
- package/dist/chunk-WCPUXXL2.js +183 -0
- package/dist/{chunk-WKDVLS4Z.js → chunk-WMU63SQY.js} +8 -8
- package/dist/{chunk-XO3427X5.js → chunk-XH2EVU4O.js} +8 -8
- package/dist/{chunk-UUMPQSS5.js → chunk-YMYL4L54.js} +5 -5
- package/dist/{chunk-O5YTCQ6O.js → chunk-YNBJBUNC.js} +8 -8
- package/dist/{chunk-FN4IMIJF.js → chunk-Z3L4C5IG.js} +7 -7
- package/dist/{chunk-QGOXNZLQ.js → chunk-Z4G7TFRJ.js} +6 -6
- package/dist/{chunk-LWRNGWQ7.js → chunk-ZBHCXOGD.js} +5 -5
- package/dist/chunk-ZCBEMBHR.js +242 -0
- package/dist/chunk-ZIFBTC6Y.js +6440 -0
- package/dist/cli/checkUnsupportedDataProxy.js +24 -18
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +24 -18
- package/dist/cli/getGeneratorSuccessMessage.js +3 -3
- package/dist/cli/getSchema.js +8 -112
- package/dist/cli/hashes.js +6 -109
- package/dist/cli/schemaContext.js +24 -18
- package/dist/client/getClientEngineType.d.ts +0 -1
- package/dist/client/getClientEngineType.js +3 -4
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +23 -17
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +32 -26
- 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/getGenerators.js +26 -20
- package/dist/getPackedPackage.js +6 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -51
- package/dist/resolvePkg.js +3 -2
- package/dist/utils/getEnvPaths.js +5 -106
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/loadEnvFile.js +6 -106
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
- package/dist/chunk-MJIP3FY5.js +0 -12695
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_WCPUXXL2_exports = {};
|
|
30
|
+
__export(chunk_WCPUXXL2_exports, {
|
|
31
|
+
getEnvPaths: () => getEnvPaths
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_WCPUXXL2_exports);
|
|
34
|
+
var import_chunk_2IP7H3BQ = require("./chunk-2IP7H3BQ.js");
|
|
35
|
+
var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
|
|
36
|
+
var import_chunk_PSFQKG2Q = require("./chunk-PSFQKG2Q.js");
|
|
37
|
+
var import_debug = __toESM(require("@prisma/debug"));
|
|
38
|
+
var import_node_path = __toESM(require("node:path"));
|
|
39
|
+
var import_node_process = __toESM(require("node:process"));
|
|
40
|
+
var import_node_path2 = __toESM(require("node:path"));
|
|
41
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
42
|
+
var import_node_url = require("node:url");
|
|
43
|
+
var import_node_fs2 = __toESM(require("node:fs"));
|
|
44
|
+
var import_fs = __toESM(require("fs"));
|
|
45
|
+
var import_path = __toESM(require("path"));
|
|
46
|
+
var typeMappings = {
|
|
47
|
+
directory: "isDirectory",
|
|
48
|
+
file: "isFile"
|
|
49
|
+
};
|
|
50
|
+
function checkType(type) {
|
|
51
|
+
if (Object.hasOwnProperty.call(typeMappings, type)) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
throw new Error(`Invalid type specified: ${type}`);
|
|
55
|
+
}
|
|
56
|
+
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
57
|
+
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
58
|
+
function locatePathSync(paths, {
|
|
59
|
+
cwd = import_node_process.default.cwd(),
|
|
60
|
+
type = "file",
|
|
61
|
+
allowSymlinks = true
|
|
62
|
+
} = {}) {
|
|
63
|
+
checkType(type);
|
|
64
|
+
cwd = toPath2(cwd);
|
|
65
|
+
const statFunction = allowSymlinks ? import_node_fs.default.statSync : import_node_fs.default.lstatSync;
|
|
66
|
+
for (const path_ of paths) {
|
|
67
|
+
try {
|
|
68
|
+
const stat = statFunction(import_node_path2.default.resolve(cwd, path_), {
|
|
69
|
+
throwIfNoEntry: false
|
|
70
|
+
});
|
|
71
|
+
if (!stat) {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (matchType(type, stat)) {
|
|
75
|
+
return path_;
|
|
76
|
+
}
|
|
77
|
+
} catch {
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function pathExistsSync(path4) {
|
|
82
|
+
try {
|
|
83
|
+
import_node_fs2.default.accessSync(path4);
|
|
84
|
+
return true;
|
|
85
|
+
} catch {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
var findUpStop = Symbol("findUpStop");
|
|
90
|
+
function findUpMultipleSync(name, options = {}) {
|
|
91
|
+
let directory = import_node_path.default.resolve((0, import_chunk_PSFQKG2Q.toPath)(options.cwd) ?? "");
|
|
92
|
+
const { root } = import_node_path.default.parse(directory);
|
|
93
|
+
const stopAt = import_node_path.default.resolve(directory, (0, import_chunk_PSFQKG2Q.toPath)(options.stopAt) ?? root);
|
|
94
|
+
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
95
|
+
const paths = [name].flat();
|
|
96
|
+
const runMatcher = (locateOptions) => {
|
|
97
|
+
if (typeof name !== "function") {
|
|
98
|
+
return locatePathSync(paths, locateOptions);
|
|
99
|
+
}
|
|
100
|
+
const foundPath = name(locateOptions.cwd);
|
|
101
|
+
if (typeof foundPath === "string") {
|
|
102
|
+
return locatePathSync([foundPath], locateOptions);
|
|
103
|
+
}
|
|
104
|
+
return foundPath;
|
|
105
|
+
};
|
|
106
|
+
const matches = [];
|
|
107
|
+
while (true) {
|
|
108
|
+
const foundPath = runMatcher({ ...options, cwd: directory });
|
|
109
|
+
if (foundPath === findUpStop) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
if (foundPath) {
|
|
113
|
+
matches.push(import_node_path.default.resolve(directory, foundPath));
|
|
114
|
+
}
|
|
115
|
+
if (directory === stopAt || matches.length >= limit) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
directory = import_node_path.default.dirname(directory);
|
|
119
|
+
}
|
|
120
|
+
return matches;
|
|
121
|
+
}
|
|
122
|
+
function findUpSync(name, options = {}) {
|
|
123
|
+
const matches = findUpMultipleSync(name, { ...options, limit: 1 });
|
|
124
|
+
return matches[0];
|
|
125
|
+
}
|
|
126
|
+
var debug = (0, import_debug.default)("prisma:loadEnv");
|
|
127
|
+
async function getEnvPaths(schemaPath, opts = { cwd: process.cwd() }) {
|
|
128
|
+
const rootEnvPath = getProjectRootEnvPath({ cwd: opts.cwd }) ?? null;
|
|
129
|
+
const schemaEnvPathFromArgs = schemaPathToEnvPath(schemaPath);
|
|
130
|
+
const schemaEnvPathFromPkgJson = schemaPathToEnvPath(await readSchemaPathFromPkgJson());
|
|
131
|
+
const schemaEnvPaths = [
|
|
132
|
+
schemaEnvPathFromArgs,
|
|
133
|
+
// 1 - Check --schema directory for .env
|
|
134
|
+
schemaEnvPathFromPkgJson,
|
|
135
|
+
// 2 - Check package.json schema directory for .env
|
|
136
|
+
"./prisma/.env",
|
|
137
|
+
// 3 - Check ./prisma directory for .env
|
|
138
|
+
"./.env"
|
|
139
|
+
// 4 - Check cwd for .env
|
|
140
|
+
];
|
|
141
|
+
const schemaEnvPath = schemaEnvPaths.find(import_chunk_2IP7H3BQ.exists);
|
|
142
|
+
return { rootEnvPath, schemaEnvPath };
|
|
143
|
+
}
|
|
144
|
+
async function readSchemaPathFromPkgJson() {
|
|
145
|
+
try {
|
|
146
|
+
const pkgJsonSchema = await (0, import_chunk_ZCBEMBHR.getSchemaFromPackageJson)(process.cwd());
|
|
147
|
+
if (pkgJsonSchema.ok) {
|
|
148
|
+
pkgJsonSchema.schema.schemaPath;
|
|
149
|
+
}
|
|
150
|
+
return null;
|
|
151
|
+
} catch {
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function getProjectRootEnvPath(opts) {
|
|
156
|
+
const pkgJsonPath = findUpSync((dir) => {
|
|
157
|
+
const pkgPath = import_path.default.join(dir, "package.json");
|
|
158
|
+
if (pathExistsSync(pkgPath)) {
|
|
159
|
+
try {
|
|
160
|
+
const pkg = JSON.parse(import_fs.default.readFileSync(pkgPath, "utf8"));
|
|
161
|
+
if (pkg["name"] !== ".prisma/client") {
|
|
162
|
+
debug(`project root found at ${pkgPath}`);
|
|
163
|
+
return pkgPath;
|
|
164
|
+
}
|
|
165
|
+
} catch (e) {
|
|
166
|
+
debug(`skipping package.json at ${pkgPath}`);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return void 0;
|
|
170
|
+
}, opts);
|
|
171
|
+
if (!pkgJsonPath) {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
const candidate = import_path.default.join(import_path.default.dirname(pkgJsonPath), ".env");
|
|
175
|
+
if (!import_fs.default.existsSync(candidate)) {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
return candidate;
|
|
179
|
+
}
|
|
180
|
+
function schemaPathToEnvPath(schemaPath) {
|
|
181
|
+
if (!schemaPath) return null;
|
|
182
|
+
return import_path.default.join(import_path.default.dirname(schemaPath), ".env");
|
|
183
|
+
}
|
|
@@ -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_WMU63SQY_exports = {};
|
|
30
|
+
__export(chunk_WMU63SQY_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_WMU63SQY_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_KQGUHK5E = require("./chunk-KQGUHK5E.js");
|
|
39
|
+
var import_chunk_LB5MLHJJ = require("./chunk-LB5MLHJJ.js");
|
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: validate]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_KQGUHK5E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "ValidateError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -71,13 +71,13 @@ function validate(options) {
|
|
|
71
71
|
() => {
|
|
72
72
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
73
73
|
debug("Triggering a Rust panic...");
|
|
74
|
-
|
|
74
|
+
import_chunk_LB5MLHJJ.prismaSchemaWasm.debug_panic();
|
|
75
75
|
}
|
|
76
76
|
const params = JSON.stringify({
|
|
77
77
|
prismaSchema: options.schemas,
|
|
78
78
|
noColor: Boolean(process.env.NO_COLOR)
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
import_chunk_LB5MLHJJ.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_XH2EVU4O_exports = {};
|
|
30
|
+
__export(chunk_XH2EVU4O_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_XH2EVU4O_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_ZBHCXOGD = require("./chunk-ZBHCXOGD.js");
|
|
39
|
+
var import_chunk_HQUMUMVD = require("./chunk-HQUMUMVD.js");
|
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: validate]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_ZBHCXOGD.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "ValidateError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -71,13 +71,13 @@ function validate(options) {
|
|
|
71
71
|
() => {
|
|
72
72
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
73
73
|
debug("Triggering a Rust panic...");
|
|
74
|
-
|
|
74
|
+
import_chunk_HQUMUMVD.prismaSchemaWasm.debug_panic();
|
|
75
75
|
}
|
|
76
76
|
const params = JSON.stringify({
|
|
77
77
|
prismaSchema: options.schemas,
|
|
78
78
|
noColor: Boolean(process.env.NO_COLOR)
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
import_chunk_HQUMUMVD.prismaSchemaWasm.validate(params);
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
83
83
|
type: "wasm-error",
|
|
@@ -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_YMYL4L54_exports = {};
|
|
20
|
+
__export(chunk_YMYL4L54_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_YMYL4L54_exports);
|
|
24
|
+
var import_chunk_B7SJFZLW = require("./chunk-B7SJFZLW.js");
|
|
25
|
+
var packageJson = (0, import_chunk_B7SJFZLW.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -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_YNBJBUNC_exports = {};
|
|
30
|
+
__export(chunk_YNBJBUNC_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_YNBJBUNC_exports);
|
|
38
38
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
39
39
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
40
40
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var import_chunk_KQGUHK5E = require("./chunk-KQGUHK5E.js");
|
|
42
|
+
var import_chunk_LB5MLHJJ = require("./chunk-LB5MLHJJ.js");
|
|
43
43
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
44
44
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
45
45
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
|
|
|
64
64
|
}).exhaustive();
|
|
65
65
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
66
66
|
[Context: getConfig]`;
|
|
67
|
-
super((0,
|
|
67
|
+
super((0, import_chunk_KQGUHK5E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
68
68
|
this.name = "GetConfigError";
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -89,7 +89,7 @@ async function getConfig(options) {
|
|
|
89
89
|
() => {
|
|
90
90
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
91
91
|
debug("Triggering a Rust panic...");
|
|
92
|
-
|
|
92
|
+
import_chunk_LB5MLHJJ.prismaSchemaWasm.debug_panic();
|
|
93
93
|
}
|
|
94
94
|
const params = JSON.stringify({
|
|
95
95
|
prismaSchema: options.datamodel,
|
|
@@ -97,7 +97,7 @@ async function getConfig(options) {
|
|
|
97
97
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
98
98
|
env: process.env
|
|
99
99
|
});
|
|
100
|
-
const data =
|
|
100
|
+
const data = import_chunk_LB5MLHJJ.prismaSchemaWasm.get_config(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(e) => ({
|
|
@@ -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_Z3L4C5IG_exports = {};
|
|
30
|
+
__export(chunk_Z3L4C5IG_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_Z3L4C5IG_exports);
|
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
|
36
36
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
37
37
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var import_chunk_KQGUHK5E = require("./chunk-KQGUHK5E.js");
|
|
39
|
+
var import_chunk_LB5MLHJJ = require("./chunk-LB5MLHJJ.js");
|
|
40
40
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
|
41
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
42
42
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
|
|
|
59
59
|
}).exhaustive();
|
|
60
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
61
61
|
[Context: mergeSchemas]`;
|
|
62
|
-
super((0,
|
|
62
|
+
super((0, import_chunk_KQGUHK5E.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
63
63
|
this.name = "MergeSchemasError";
|
|
64
64
|
}
|
|
65
65
|
};
|
|
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
|
|
|
72
72
|
const params = JSON.stringify({
|
|
73
73
|
schema: options.schemas
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return import_chunk_LB5MLHJJ.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
type: "wasm-error",
|
|
@@ -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_Z4G7TFRJ_exports = {};
|
|
20
|
+
__export(chunk_Z4G7TFRJ_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_Z4G7TFRJ_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
27
27
|
module2.exports = {
|
|
28
28
|
name: "@prisma/internals",
|
|
29
|
-
version: "6.7.0-dev.
|
|
29
|
+
version: "6.7.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",
|
|
@@ -113,8 +113,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
113
113
|
"@prisma/generator": "workspace:*",
|
|
114
114
|
"@prisma/generator-helper": "workspace:*",
|
|
115
115
|
"@prisma/get-platform": "workspace:*",
|
|
116
|
-
"@prisma/prisma-schema-wasm": "6.7.0-
|
|
117
|
-
"@prisma/schema-engine-wasm": "6.7.0-
|
|
116
|
+
"@prisma/prisma-schema-wasm": "6.7.0-30.7f87299229fa36fe4a2adb8ffcfb188953f13c72",
|
|
117
|
+
"@prisma/schema-engine-wasm": "6.7.0-30.7f87299229fa36fe4a2adb8ffcfb188953f13c72",
|
|
118
118
|
"@prisma/schema-files-loader": "workspace:*",
|
|
119
119
|
arg: "5.0.2",
|
|
120
120
|
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_ZBHCXOGD_exports = {};
|
|
20
|
+
__export(chunk_ZBHCXOGD_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_ZBHCXOGD_exports);
|
|
24
|
+
var import_chunk_H3SKZH65 = require("./chunk-H3SKZH65.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_H3SKZH65.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|