@prisma/internals 6.7.0-integration-push-sunrovnkrkpv.1 → 6.7.0
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-DCWEKWHT.js → chunk-3DQPB7T3.js} +39 -433
- package/dist/{chunk-QE7SAMQR.js → chunk-4NFKDFT4.js} +5 -5
- package/dist/{chunk-M3NEJQPR.js → chunk-7TOTW56M.js} +5 -5
- package/dist/{chunk-2JBXOLXL.js → chunk-ALMBYTYD.js} +8 -8
- package/dist/{chunk-UZFWYQZJ.js → chunk-AUWTBQ7B.js} +5 -5
- package/dist/{chunk-TZ7QN7B5.js → chunk-BCHR2OFA.js} +5 -5
- package/dist/chunk-CHOXBASF.js +44 -0
- package/dist/{chunk-DSO2BAJY.js → chunk-CO6L3PWM.js} +7 -7
- package/dist/{chunk-OVBMOYYX.js → chunk-HCCOIFW5.js} +5 -5
- package/dist/{chunk-LCLULWYP.js → chunk-JNWOBVG4.js} +6 -6
- package/dist/{chunk-XO424ERB.js → chunk-MKGT35J3.js} +8 -8
- package/dist/{chunk-67I7CEQJ.js → chunk-MY5KA4VU.js} +12 -329
- package/dist/{chunk-XRNBEUVE.js → chunk-OTFF2GFU.js} +5 -5
- 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-WBHEU7JO.js → chunk-SWW4KMF5.js} +39 -433
- package/dist/{chunk-U3GVUCFC.js → chunk-U2ZCQFKU.js} +5 -5
- package/dist/{chunk-JUDZ6KF4.js → chunk-UYAWHJI3.js} +8 -8
- package/dist/{chunk-QVVSDACW.js → chunk-WANK3LVF.js} +5 -5
- package/dist/chunk-WCPUXXL2.js +183 -0
- package/dist/{chunk-WT5GDB7K.js → chunk-XA2IINM7.js} +7 -7
- package/dist/{chunk-BQX4MJXF.js → chunk-XBQVGIHJ.js} +5 -5
- package/dist/{chunk-Z2XPAJIB.js → chunk-XQS25DYR.js} +8 -8
- package/dist/{chunk-IVF23TIK.js → chunk-Y4FY36L7.js} +8 -8
- package/dist/{chunk-7LPMJRUK.js → chunk-YLWXHZMQ.js} +8 -8
- package/dist/{chunk-RMLLA4MJ.js → chunk-Z7DTC25G.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
@@ -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_UYAWHJI3_exports = {};
|
30
|
+
__export(chunk_UYAWHJI3_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_UYAWHJI3_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_7TOTW56M = require("./chunk-7TOTW56M.js");
|
39
|
+
var import_chunk_4NFKDFT4 = require("./chunk-4NFKDFT4.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_7TOTW56M.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_4NFKDFT4.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_4NFKDFT4.prismaSchemaWasm.validate(params);
|
81
81
|
},
|
82
82
|
(e) => ({
|
83
83
|
type: "wasm-error",
|
@@ -26,13 +26,13 @@ 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_WANK3LVF_exports = {};
|
30
|
+
__export(chunk_WANK3LVF_exports, {
|
31
31
|
getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_WANK3LVF_exports);
|
34
34
|
var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
|
35
|
-
var
|
35
|
+
var import_chunk_QA4OGZAI = require("./chunk-QA4OGZAI.js");
|
36
36
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
37
37
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
38
38
|
var import_path = __toESM(require("path"));
|
@@ -45,7 +45,7 @@ function getGeneratorSuccessMessage(generator, time) {
|
|
45
45
|
function formatVersion(generator) {
|
46
46
|
const version = generator.manifest?.version;
|
47
47
|
if (generator.getProvider() === "prisma-client-js") {
|
48
|
-
const engineType = (0,
|
48
|
+
const engineType = (0, import_chunk_QA4OGZAI.getClientEngineType)(generator.config);
|
49
49
|
let engineHint = "";
|
50
50
|
if (generator.options?.noEngine) {
|
51
51
|
engineHint = ", engine=none";
|
@@ -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_XA2IINM7_exports = {};
|
30
|
+
__export(chunk_XA2IINM7_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_XA2IINM7_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_HCCOIFW5 = require("./chunk-HCCOIFW5.js");
|
39
|
+
var import_chunk_Z7DTC25G = require("./chunk-Z7DTC25G.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_HCCOIFW5.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_Z7DTC25G.prismaSchemaWasm.merge_schemas(params);
|
76
76
|
},
|
77
77
|
(e) => ({
|
78
78
|
type: "wasm-error",
|
@@ -16,20 +16,20 @@ 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_XBQVGIHJ_exports = {};
|
20
|
+
__export(chunk_XBQVGIHJ_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(
|
28
|
-
var
|
27
|
+
module.exports = __toCommonJS(chunk_XBQVGIHJ_exports);
|
28
|
+
var import_chunk_4NFKDFT4 = require("./chunk-4NFKDFT4.js");
|
29
29
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
30
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
31
31
|
function lintSchema({ schemas }) {
|
32
|
-
const lintResult =
|
32
|
+
const lintResult = import_chunk_4NFKDFT4.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
33
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
34
34
|
return lintDiagnostics;
|
35
35
|
}
|
@@ -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_XQS25DYR_exports = {};
|
30
|
+
__export(chunk_XQS25DYR_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_XQS25DYR_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_HCCOIFW5 = require("./chunk-HCCOIFW5.js");
|
42
|
+
var import_chunk_Z7DTC25G = require("./chunk-Z7DTC25G.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_HCCOIFW5.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_Z7DTC25G.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_Z7DTC25G.prismaSchemaWasm.get_config(params);
|
101
101
|
return data;
|
102
102
|
},
|
103
103
|
(e) => ({
|
@@ -26,16 +26,16 @@ 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_Y4FY36L7_exports = {};
|
30
|
+
__export(chunk_Y4FY36L7_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_Y4FY36L7_exports);
|
35
35
|
var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
|
36
36
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
-
var
|
38
|
-
var
|
37
|
+
var import_chunk_7TOTW56M = require("./chunk-7TOTW56M.js");
|
38
|
+
var import_chunk_4NFKDFT4 = require("./chunk-4NFKDFT4.js");
|
39
39
|
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
41
|
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
|
|
58
58
|
}).exhaustive();
|
59
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
60
60
|
[Context: getDmmf]`;
|
61
|
-
super((0,
|
61
|
+
super((0, import_chunk_7TOTW56M.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
62
62
|
this.name = "GetDmmfError";
|
63
63
|
}
|
64
64
|
};
|
@@ -70,13 +70,13 @@ async function getDMMF(options) {
|
|
70
70
|
() => {
|
71
71
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
72
72
|
debug("Triggering a Rust panic...");
|
73
|
-
|
73
|
+
import_chunk_4NFKDFT4.prismaSchemaWasm.debug_panic();
|
74
74
|
}
|
75
75
|
const params = JSON.stringify({
|
76
76
|
prismaSchema: options.datamodel,
|
77
77
|
noColor: Boolean(process.env.NO_COLOR)
|
78
78
|
});
|
79
|
-
const data =
|
79
|
+
const data = import_chunk_4NFKDFT4.prismaSchemaWasm.get_dmmf(params);
|
80
80
|
return data;
|
81
81
|
},
|
82
82
|
(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_YLWXHZMQ_exports = {};
|
30
|
+
__export(chunk_YLWXHZMQ_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_YLWXHZMQ_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_HCCOIFW5 = require("./chunk-HCCOIFW5.js");
|
39
|
+
var import_chunk_Z7DTC25G = require("./chunk-Z7DTC25G.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_HCCOIFW5.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_Z7DTC25G.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_Z7DTC25G.prismaSchemaWasm.validate(params);
|
81
81
|
},
|
82
82
|
(e) => ({
|
83
83
|
type: "wasm-error",
|
@@ -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_Z7DTC25G_exports = {};
|
30
|
+
__export(chunk_Z7DTC25G_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
schemaEngineWasmVersion: () => schemaEngineWasmVersion,
|
34
34
|
wasm_exports: () => wasm_exports
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
37
|
-
var
|
36
|
+
module.exports = __toCommonJS(chunk_Z7DTC25G_exports);
|
37
|
+
var import_chunk_JNWOBVG4 = require("./chunk-JNWOBVG4.js");
|
38
38
|
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
40
40
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
@@ -45,6 +45,6 @@ var wasm_exports = {};
|
|
45
45
|
schemaEngineWasmVersion: () => schemaEngineWasmVersion
|
46
46
|
});
|
47
47
|
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
48
|
-
var { dependencies } = (0,
|
48
|
+
var { dependencies } = (0, import_chunk_JNWOBVG4.require_package)();
|
49
49
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
50
50
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|