@prisma/internals 6.20.0-integration-oidc-truster-publishers.2 → 6.20.0-integration-next.4
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-GMW36QQF.js → chunk-22HIO2UL.js} +7 -7
- package/dist/{chunk-LDIKPRUK.js → chunk-2Z7PH5WX.js} +5 -5
- package/dist/{chunk-2GUGGLPK.js → chunk-3D4RRUYX.js} +56 -129
- package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
- package/dist/{chunk-HFFWZTVM.js → chunk-4B7YT7EE.js} +8 -18
- package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
- package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
- package/dist/{chunk-2LTOB7XT.js → chunk-65KNJHQS.js} +13 -13
- package/dist/{chunk-WYQJ4JWO.js → chunk-6WBK35XU.js} +13 -13
- package/dist/{chunk-7QC5VORA.js → chunk-7SF6QSKE.js} +7 -8
- package/dist/{chunk-QGZ3T7S2.js → chunk-7VXI23OO.js} +5 -5
- package/dist/{chunk-PUJIRZKL.js → chunk-7X4RB4O5.js} +5 -5
- package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
- package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
- package/dist/{chunk-AX5N26KG.js → chunk-CIGXHXCG.js} +18 -13
- package/dist/{chunk-FHZ5QJLR.js → chunk-D4EKBLXK.js} +5 -5
- package/dist/chunk-DYV47NUW.js +796 -0
- package/dist/{chunk-TBR6SNKL.js → chunk-E4PYP2ZV.js} +5 -5
- package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
- package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
- package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
- package/dist/{chunk-LV27YCGC.js → chunk-H4QG5ONG.js} +12 -12
- package/dist/{chunk-OAT7ZJED.js → chunk-H5STSTVK.js} +7 -20
- package/dist/{chunk-FYZCPL2Z.js → chunk-HNRMSI3R.js} +5 -8
- package/dist/{chunk-CCLAMTCA.js → chunk-HQDG2BBX.js} +7 -9
- package/dist/{chunk-GKSCV45S.js → chunk-J757IEPK.js} +56 -129
- package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
- package/dist/{chunk-UQUWZJVN.js → chunk-LHTJCI5U.js} +7 -7
- package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
- package/dist/{chunk-TQFONRJP.js → chunk-MLFKBBDL.js} +5 -5
- package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
- package/dist/{chunk-Z3QPUB3M.js → chunk-OSMLJTQN.js} +8 -10
- package/dist/{chunk-UQSXVIKS.js → chunk-OV3PWX3C.js} +11 -11
- package/dist/{chunk-RHBNAQZ2.js → chunk-Q5EKGHVB.js} +5 -5
- package/dist/{chunk-JOIIWB3U.js → chunk-QOZ7USPD.js} +193 -159
- package/dist/{chunk-BVJP43JS.js → chunk-QSVWJ2S2.js} +13 -784
- package/dist/{chunk-QJ3QPUM5.js → chunk-QWXKO4HW.js} +5 -5
- package/dist/{chunk-BJ65AEOA.js → chunk-R7L5ID34.js} +12 -12
- package/dist/{chunk-75BIJ5PX.js → chunk-SMJRM3EM.js} +9 -9
- package/dist/{chunk-JTS4UPHJ.js → chunk-TQZ7VRPF.js} +5 -5
- package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
- package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
- package/dist/{chunk-E4H6V3Z4.js → chunk-X6TWTGK6.js} +11 -11
- package/dist/{chunk-7BJXXGEH.js → chunk-XHZ4TZUD.js} +16 -38
- package/dist/{chunk-UHI6VYFX.js → chunk-XIYRAW5R.js} +15 -11
- package/dist/{chunk-SOKSKSEX.js → chunk-YJSJK7EC.js} +16 -38
- package/dist/cli/checkUnsupportedDataProxy.d.ts +3 -4
- package/dist/cli/checkUnsupportedDataProxy.js +56 -65
- package/dist/cli/getGeneratorSuccessMessage.js +2 -3
- package/dist/cli/getSchema.d.ts +1 -15
- package/dist/cli/getSchema.js +4 -5
- package/dist/cli/hashes.js +4 -4
- package/dist/cli/schemaContext.d.ts +3 -12
- package/dist/cli/schemaContext.js +57 -65
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +55 -64
- package/dist/engine-commands/getConfig.d.ts +1 -5
- package/dist/engine-commands/getConfig.js +10 -13
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEngineVersion.js +6 -9
- package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
- package/dist/engine-commands/getEnginesInfo.js +7 -9
- package/dist/engine-commands/index.d.ts +1 -1
- package/dist/engine-commands/index.js +65 -76
- package/dist/engine-commands/lintSchema.js +9 -9
- package/dist/engine-commands/mergeSchemas.js +10 -10
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +10 -10
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/getGenerators.d.ts +0 -2
- package/dist/get-generators/getGenerators.js +58 -67
- package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
- package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
- package/dist/getPackedPackage.js +4 -3
- package/dist/highlight/highlight.js +5 -5
- package/dist/index.d.ts +2 -14
- package/dist/index.js +98 -121
- package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
- package/dist/resolveBinary.js +8 -7
- package/dist/schemaEngineCommands.js +9 -8
- package/dist/sendPanic.js +4 -5
- package/dist/utils/drawBox.js +2 -2
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +6 -7
- package/dist/utils/link.js +2 -2
- package/dist/utils/missingDatasource.js +5 -5
- package/dist/utils/missingGeneratorMessage.js +7 -7
- package/dist/wasm.js +5 -5
- package/package.json +15 -17
- package/dist/chunk-3FP46GUV.js +0 -471
- package/dist/chunk-46ABODUM.js +0 -186
- package/dist/chunk-6TTRTZXU.js +0 -37
- package/dist/chunk-D4VDA2TZ.js +0 -66
- package/dist/chunk-DZYINYAA.js +0 -68
- package/dist/chunk-ERSH2BQA.js +0 -58
- package/dist/chunk-HO5HRHFZ.js +0 -30
- package/dist/chunk-KDHESRKE.js +0 -49
- package/dist/chunk-PZMRR772.js +0 -41
- package/dist/chunk-T2PM5TKT.js +0 -55
- package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +0 -22
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +0 -135
- package/dist/client/getClientEngineType.d.ts +0 -7
- package/dist/client/getClientEngineType.js +0 -26
- package/dist/dotenvExpand.d.ts +0 -35
- package/dist/dotenvExpand.js +0 -25
- package/dist/utils/__tests__/maskSchema.test.js +0 -23
- package/dist/utils/cloudflareD1.d.ts +0 -5
- package/dist/utils/cloudflareD1.js +0 -27
- package/dist/utils/getEnvPaths.d.ts +0 -14
- package/dist/utils/getEnvPaths.js +0 -29
- package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
- package/dist/utils/handleEngineLoadingErrors.js +0 -27
- package/dist/utils/load.d.ts +0 -6
- package/dist/utils/load.js +0 -28
- package/dist/utils/loadEnvFile.d.ts +0 -10
- package/dist/utils/loadEnvFile.js +0 -30
- package/dist/utils/maskSchema.d.ts +0 -4
- package/dist/utils/maskSchema.js +0 -27
- package/dist/utils/serializeQueryEngineName.d.ts +0 -4
- package/dist/utils/serializeQueryEngineName.js +0 -25
- package/dist/utils/tryLoadEnvs.d.ts +0 -25
- package/dist/utils/tryLoadEnvs.js +0 -30
package/dist/chunk-46ABODUM.js
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
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_46ABODUM_exports = {};
|
|
30
|
-
__export(chunk_46ABODUM_exports, {
|
|
31
|
-
getEnvPaths: () => getEnvPaths
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(chunk_46ABODUM_exports);
|
|
34
|
-
var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
|
|
35
|
-
var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
|
|
36
|
-
var import_debug = __toESM(require("@prisma/debug"));
|
|
37
|
-
var import_node_path = __toESM(require("node:path"));
|
|
38
|
-
var import_node_process = __toESM(require("node:process"));
|
|
39
|
-
var import_node_path2 = __toESM(require("node:path"));
|
|
40
|
-
var import_node_fs = __toESM(require("node:fs"));
|
|
41
|
-
var import_node_url = require("node:url");
|
|
42
|
-
var import_node_url2 = 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 toPath = (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 = toPath(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 toPath2(urlOrPath) {
|
|
82
|
-
return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
83
|
-
}
|
|
84
|
-
function pathExistsSync(path4) {
|
|
85
|
-
try {
|
|
86
|
-
import_node_fs2.default.accessSync(path4);
|
|
87
|
-
return true;
|
|
88
|
-
} catch {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
var findUpStop = Symbol("findUpStop");
|
|
93
|
-
function findUpMultipleSync(name, options = {}) {
|
|
94
|
-
let directory = import_node_path.default.resolve(toPath2(options.cwd) ?? "");
|
|
95
|
-
const { root } = import_node_path.default.parse(directory);
|
|
96
|
-
const stopAt = import_node_path.default.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
97
|
-
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
98
|
-
const paths = [name].flat();
|
|
99
|
-
const runMatcher = (locateOptions) => {
|
|
100
|
-
if (typeof name !== "function") {
|
|
101
|
-
return locatePathSync(paths, locateOptions);
|
|
102
|
-
}
|
|
103
|
-
const foundPath = name(locateOptions.cwd);
|
|
104
|
-
if (typeof foundPath === "string") {
|
|
105
|
-
return locatePathSync([foundPath], locateOptions);
|
|
106
|
-
}
|
|
107
|
-
return foundPath;
|
|
108
|
-
};
|
|
109
|
-
const matches = [];
|
|
110
|
-
while (true) {
|
|
111
|
-
const foundPath = runMatcher({ ...options, cwd: directory });
|
|
112
|
-
if (foundPath === findUpStop) {
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
if (foundPath) {
|
|
116
|
-
matches.push(import_node_path.default.resolve(directory, foundPath));
|
|
117
|
-
}
|
|
118
|
-
if (directory === stopAt || matches.length >= limit) {
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
directory = import_node_path.default.dirname(directory);
|
|
122
|
-
}
|
|
123
|
-
return matches;
|
|
124
|
-
}
|
|
125
|
-
function findUpSync(name, options = {}) {
|
|
126
|
-
const matches = findUpMultipleSync(name, { ...options, limit: 1 });
|
|
127
|
-
return matches[0];
|
|
128
|
-
}
|
|
129
|
-
var debug = (0, import_debug.default)("prisma:loadEnv");
|
|
130
|
-
async function getEnvPaths(schemaPath, opts = { cwd: process.cwd() }) {
|
|
131
|
-
const rootEnvPath = getProjectRootEnvPath({ cwd: opts.cwd }) ?? null;
|
|
132
|
-
const schemaEnvPathFromArgs = schemaPathToEnvPath(schemaPath);
|
|
133
|
-
const schemaEnvPathFromPkgJson = schemaPathToEnvPath(await readSchemaPathFromPkgJson());
|
|
134
|
-
const schemaEnvPaths = [
|
|
135
|
-
schemaEnvPathFromArgs,
|
|
136
|
-
// 1 - Check --schema directory for .env
|
|
137
|
-
schemaEnvPathFromPkgJson,
|
|
138
|
-
// 2 - Check package.json schema directory for .env
|
|
139
|
-
"./prisma/.env",
|
|
140
|
-
// 3 - Check ./prisma directory for .env
|
|
141
|
-
"./.env"
|
|
142
|
-
// 4 - Check cwd for .env
|
|
143
|
-
];
|
|
144
|
-
const schemaEnvPath = schemaEnvPaths.find(import_chunk_3FP46GUV.exists);
|
|
145
|
-
return { rootEnvPath, schemaEnvPath };
|
|
146
|
-
}
|
|
147
|
-
async function readSchemaPathFromPkgJson() {
|
|
148
|
-
try {
|
|
149
|
-
const pkgJsonSchema = await (0, import_chunk_EYVG6XQS.getSchemaFromPackageJson)(process.cwd());
|
|
150
|
-
if (pkgJsonSchema.ok) {
|
|
151
|
-
pkgJsonSchema.schema.schemaPath;
|
|
152
|
-
}
|
|
153
|
-
return null;
|
|
154
|
-
} catch {
|
|
155
|
-
return null;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function getProjectRootEnvPath(opts) {
|
|
159
|
-
const pkgJsonPath = findUpSync((dir) => {
|
|
160
|
-
const pkgPath = import_path.default.join(dir, "package.json");
|
|
161
|
-
if (pathExistsSync(pkgPath)) {
|
|
162
|
-
try {
|
|
163
|
-
const pkg = JSON.parse(import_fs.default.readFileSync(pkgPath, "utf8"));
|
|
164
|
-
if (pkg["name"] !== ".prisma/client") {
|
|
165
|
-
debug(`project root found at ${pkgPath}`);
|
|
166
|
-
return pkgPath;
|
|
167
|
-
}
|
|
168
|
-
} catch (e) {
|
|
169
|
-
debug(`skipping package.json at ${pkgPath}`);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return void 0;
|
|
173
|
-
}, opts);
|
|
174
|
-
if (!pkgJsonPath) {
|
|
175
|
-
return null;
|
|
176
|
-
}
|
|
177
|
-
const candidate = import_path.default.join(import_path.default.dirname(pkgJsonPath), ".env");
|
|
178
|
-
if (!import_fs.default.existsSync(candidate)) {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
return candidate;
|
|
182
|
-
}
|
|
183
|
-
function schemaPathToEnvPath(schemaPath) {
|
|
184
|
-
if (!schemaPath) return null;
|
|
185
|
-
return import_path.default.join(import_path.default.dirname(schemaPath), ".env");
|
|
186
|
-
}
|
package/dist/chunk-6TTRTZXU.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_6TTRTZXU_exports = {};
|
|
20
|
-
__export(chunk_6TTRTZXU_exports, {
|
|
21
|
-
loadLibrary: () => loadLibrary
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(chunk_6TTRTZXU_exports);
|
|
24
|
-
var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
|
|
25
|
-
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
26
|
-
function loadLibrary(id, platformInfo) {
|
|
27
|
-
try {
|
|
28
|
-
return (0, import_chunk_4VNS5WPM.__require)(id);
|
|
29
|
-
} catch (e) {
|
|
30
|
-
const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
|
|
31
|
-
e,
|
|
32
|
-
platformInfo,
|
|
33
|
-
id
|
|
34
|
-
});
|
|
35
|
-
throw new Error(errorMessage);
|
|
36
|
-
}
|
|
37
|
-
}
|
package/dist/chunk-D4VDA2TZ.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
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_D4VDA2TZ_exports = {};
|
|
30
|
-
__export(chunk_D4VDA2TZ_exports, {
|
|
31
|
-
locateLocalCloudflareD1: () => locateLocalCloudflareD1
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(chunk_D4VDA2TZ_exports);
|
|
34
|
-
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
35
|
-
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
|
36
|
-
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
37
|
-
var import_node_path = __toESM(require("node:path"));
|
|
38
|
-
var import_node_process = __toESM(require("node:process"));
|
|
39
|
-
var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_out)());
|
|
40
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
|
|
41
|
-
var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
|
|
42
|
-
async function locateLocalCloudflareD1({ arg }) {
|
|
43
|
-
const cwd = import_node_process.default.cwd();
|
|
44
|
-
const d1DirPath = import_node_path.default.posix.join(cwd, defaultD1DirPath);
|
|
45
|
-
const pathConverted = (0, import_fast_glob.convertPathToPattern)(d1DirPath);
|
|
46
|
-
const d1Databases = await (0, import_globby.default)(import_node_path.default.posix.join(pathConverted, "*.sqlite"), {});
|
|
47
|
-
if (d1Databases.length === 0) {
|
|
48
|
-
throw new Error(
|
|
49
|
-
`No Cloudflare D1 databases found in ${defaultD1DirPath}. Did you run \`wrangler d1 create <DATABASE_NAME>\` and \`wrangler dev\`?`
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
if (d1Databases.length > 1) {
|
|
53
|
-
const { originalArg, recommendedArg } = (0, import_chunk_XKZ6CBLA.z)(arg).with("--to-local-d1", (originalArg2) => ({
|
|
54
|
-
originalArg: originalArg2,
|
|
55
|
-
recommendedArg: "--to-url file:"
|
|
56
|
-
})).with("--from-local-d1", (originalArg2) => ({
|
|
57
|
-
originalArg: originalArg2,
|
|
58
|
-
recommendedArg: "--from-url file:"
|
|
59
|
-
})).exhaustive();
|
|
60
|
-
throw new Error(
|
|
61
|
-
`Multiple Cloudflare D1 databases found in ${defaultD1DirPath}. Please manually specify the local D1 database with \`${recommendedArg}\`, without using the \`${originalArg}\` flag.`
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
const d1Database = d1Databases[0];
|
|
65
|
-
return d1Database;
|
|
66
|
-
}
|
package/dist/chunk-DZYINYAA.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_DZYINYAA_exports = {};
|
|
20
|
-
__export(chunk_DZYINYAA_exports, {
|
|
21
|
-
handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(chunk_DZYINYAA_exports);
|
|
24
|
-
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
25
|
-
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
26
|
-
var import_get_platform = require("@prisma/get-platform");
|
|
27
|
-
function handleLibraryLoadingErrors(args) {
|
|
28
|
-
const error = args.e;
|
|
29
|
-
const systemLibraryNotFound = (library) => `Prisma cannot find the required \`${library}\` system library in your system`;
|
|
30
|
-
const hasLinkingProblem = error.message.includes("cannot open shared object file");
|
|
31
|
-
const referToSystemRequirementsDocs = `Please refer to the documentation about Prisma's system requirements: ${(0, import_get_platform.link)(
|
|
32
|
-
"https://pris.ly/d/system-requirements"
|
|
33
|
-
)}`;
|
|
34
|
-
const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
|
|
35
|
-
const potentialReasonMessage = (0, import_chunk_XKZ6CBLA.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
|
|
36
|
-
({ message }) => hasLinkingProblem && message.includes("libz"),
|
|
37
|
-
() => {
|
|
38
|
-
return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
|
|
39
|
-
}
|
|
40
|
-
).when(
|
|
41
|
-
({ message }) => hasLinkingProblem && message.includes("libgcc_s"),
|
|
42
|
-
() => {
|
|
43
|
-
return `${systemLibraryNotFound("libgcc_s")}. Please install it and try again.`;
|
|
44
|
-
}
|
|
45
|
-
).when(
|
|
46
|
-
({ message }) => hasLinkingProblem && message.includes("libssl"),
|
|
47
|
-
() => {
|
|
48
|
-
const libsslVersion = args.platformInfo.libssl ? `openssl-${args.platformInfo.libssl}` : "openssl";
|
|
49
|
-
return `${systemLibraryNotFound("libssl")}. Please install ${libsslVersion} and try again.`;
|
|
50
|
-
}
|
|
51
|
-
).when(
|
|
52
|
-
({ message }) => message.includes("GLIBC"),
|
|
53
|
-
() => {
|
|
54
|
-
return `Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${referToSystemRequirementsDocs}`;
|
|
55
|
-
}
|
|
56
|
-
).when(
|
|
57
|
-
({ message }) => args.platformInfo.platform === "linux" && message.includes("symbol not found"),
|
|
58
|
-
() => {
|
|
59
|
-
return `The Prisma engines are not compatible with your system ${args.platformInfo.originalDistro} on (${args.platformInfo.archFromUname}) which uses the \`${args.platformInfo.binaryTarget}\` binaryTarget by default. ${referToSystemRequirementsDocs}`;
|
|
60
|
-
}
|
|
61
|
-
).otherwise(() => {
|
|
62
|
-
return `The Prisma engines do not seem to be compatible with your system. ${referToSystemRequirementsDocs}`;
|
|
63
|
-
});
|
|
64
|
-
return `${errorTitle}
|
|
65
|
-
${potentialReasonMessage}
|
|
66
|
-
|
|
67
|
-
Details: ${error.message}`;
|
|
68
|
-
}
|
package/dist/chunk-ERSH2BQA.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_ERSH2BQA_exports = {};
|
|
20
|
-
__export(chunk_ERSH2BQA_exports, {
|
|
21
|
-
ClientEngineType: () => ClientEngineType,
|
|
22
|
-
getClientEngineType: () => getClientEngineType
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(chunk_ERSH2BQA_exports);
|
|
25
|
-
var ClientEngineType = /* @__PURE__ */ ((ClientEngineType2) => {
|
|
26
|
-
ClientEngineType2["Library"] = "library";
|
|
27
|
-
ClientEngineType2["Binary"] = "binary";
|
|
28
|
-
ClientEngineType2["Client"] = "client";
|
|
29
|
-
return ClientEngineType2;
|
|
30
|
-
})(ClientEngineType || {});
|
|
31
|
-
function getClientEngineType(generatorConfig) {
|
|
32
|
-
const engineTypeFromEnvVar = getEngineTypeFromEnvVar();
|
|
33
|
-
if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
|
|
34
|
-
if (generatorConfig?.config.engineType === "library") {
|
|
35
|
-
return "library";
|
|
36
|
-
} else if (generatorConfig?.config.engineType === "binary") {
|
|
37
|
-
return "binary";
|
|
38
|
-
} else if (generatorConfig?.config.engineType === "client") {
|
|
39
|
-
return "client";
|
|
40
|
-
} else {
|
|
41
|
-
return getDefaultEngineType();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function getEngineTypeFromEnvVar() {
|
|
45
|
-
const engineType = process.env.PRISMA_CLIENT_ENGINE_TYPE;
|
|
46
|
-
if (engineType === "library") {
|
|
47
|
-
return "library";
|
|
48
|
-
} else if (engineType === "binary") {
|
|
49
|
-
return "binary";
|
|
50
|
-
} else if (engineType === "client") {
|
|
51
|
-
return "client";
|
|
52
|
-
} else {
|
|
53
|
-
return void 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function getDefaultEngineType() {
|
|
57
|
-
return "library";
|
|
58
|
-
}
|
package/dist/chunk-HO5HRHFZ.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_HO5HRHFZ_exports = {};
|
|
20
|
-
__export(chunk_HO5HRHFZ_exports, {
|
|
21
|
-
serializeQueryEngineName: () => serializeQueryEngineName
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(chunk_HO5HRHFZ_exports);
|
|
24
|
-
function serializeQueryEngineName(message) {
|
|
25
|
-
const normalizedName = "query-engine-NORMALIZED";
|
|
26
|
-
if (process.env.PRISMA_CLI_QUERY_ENGINE_TYPE === "binary") {
|
|
27
|
-
return message.replace(/query-engine binary/g, normalizedName);
|
|
28
|
-
}
|
|
29
|
-
return message.replace(/query-engine-node-api library/g, normalizedName);
|
|
30
|
-
}
|
package/dist/chunk-KDHESRKE.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_KDHESRKE_exports = {};
|
|
20
|
-
__export(chunk_KDHESRKE_exports, {
|
|
21
|
-
mapScalarValues: () => mapScalarValues,
|
|
22
|
-
maskSchema: () => maskSchema,
|
|
23
|
-
maskSchemas: () => maskSchemas
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(chunk_KDHESRKE_exports);
|
|
26
|
-
function maskSchemas(schemas) {
|
|
27
|
-
return schemas.map(([path, content]) => [path, maskSchema(content)]);
|
|
28
|
-
}
|
|
29
|
-
function maskSchema(schema) {
|
|
30
|
-
const regex = /url\s*=\s*.+/;
|
|
31
|
-
return schema.split("\n").map((line) => {
|
|
32
|
-
const match = regex.exec(line);
|
|
33
|
-
if (match) {
|
|
34
|
-
return `${line.slice(0, match.index)}url = "***"`;
|
|
35
|
-
}
|
|
36
|
-
return line;
|
|
37
|
-
}).join("\n");
|
|
38
|
-
}
|
|
39
|
-
function mapScalarValues(obj, mapper) {
|
|
40
|
-
const result = {};
|
|
41
|
-
for (const key in obj) {
|
|
42
|
-
if (typeof obj[key] === "object") {
|
|
43
|
-
result[key] = mapScalarValues(obj[key], mapper);
|
|
44
|
-
} else {
|
|
45
|
-
result[key] = mapper(obj[key]);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return result;
|
|
49
|
-
}
|
package/dist/chunk-PZMRR772.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_PZMRR772_exports = {};
|
|
20
|
-
__export(chunk_PZMRR772_exports, {
|
|
21
|
-
loadEnvFile: () => loadEnvFile
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(chunk_PZMRR772_exports);
|
|
24
|
-
var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
|
|
25
|
-
var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
|
|
26
|
-
async function loadEnvFile({
|
|
27
|
-
schemaPath,
|
|
28
|
-
config,
|
|
29
|
-
printMessage = false
|
|
30
|
-
}) {
|
|
31
|
-
if (config.loadedFromFile) {
|
|
32
|
-
process.stderr.write(`Prisma config detected, skipping environment variable loading.
|
|
33
|
-
`);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaPath);
|
|
37
|
-
const envData = (0, import_chunk_3FP46GUV.tryLoadEnvs)(envPaths, { conflictCheck: "error" });
|
|
38
|
-
if (printMessage && envData && envData.message) {
|
|
39
|
-
process.stderr.write(envData.message + "\n");
|
|
40
|
-
}
|
|
41
|
-
}
|
package/dist/chunk-T2PM5TKT.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_T2PM5TKT_exports = {};
|
|
20
|
-
__export(chunk_T2PM5TKT_exports, {
|
|
21
|
-
dotenvExpand: () => dotenvExpand
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(chunk_T2PM5TKT_exports);
|
|
24
|
-
function dotenvExpand(config) {
|
|
25
|
-
const environment = config.ignoreProcessEnv ? {} : process.env;
|
|
26
|
-
const interpolate = (envValue) => {
|
|
27
|
-
const matches = envValue.match(/(.?\${(?:[a-zA-Z0-9_]+)?})/g);
|
|
28
|
-
return matches?.reduce(function(newEnv, match) {
|
|
29
|
-
const parts = /(.?)\${([a-zA-Z0-9_]+)?}/g.exec(match);
|
|
30
|
-
if (!parts) {
|
|
31
|
-
return newEnv;
|
|
32
|
-
}
|
|
33
|
-
const prefix = parts[1];
|
|
34
|
-
let value, replacePart;
|
|
35
|
-
if (prefix === "\\") {
|
|
36
|
-
replacePart = parts[0];
|
|
37
|
-
value = replacePart.replace("\\$", "$");
|
|
38
|
-
} else {
|
|
39
|
-
const key = parts[2];
|
|
40
|
-
replacePart = parts[0].substring(prefix.length);
|
|
41
|
-
value = Object.hasOwnProperty.call(environment, key) ? environment[key] : config.parsed[key] || "";
|
|
42
|
-
value = interpolate(value);
|
|
43
|
-
}
|
|
44
|
-
return newEnv.replace(replacePart, value);
|
|
45
|
-
}, envValue) ?? envValue;
|
|
46
|
-
};
|
|
47
|
-
for (const configKey in config.parsed) {
|
|
48
|
-
const value = Object.hasOwnProperty.call(environment, configKey) ? environment[configKey] : config.parsed[configKey];
|
|
49
|
-
config.parsed[configKey] = interpolate(value);
|
|
50
|
-
}
|
|
51
|
-
for (const processKey in config.parsed) {
|
|
52
|
-
environment[processKey] = config.parsed[processKey];
|
|
53
|
-
}
|
|
54
|
-
return config;
|
|
55
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PrismaConfigInternal } from '@prisma/config';
|
|
2
|
-
/**
|
|
3
|
-
* Get the message to display when a command is forbidden with a data proxy flag
|
|
4
|
-
* @param command the cli command (eg. db push)
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare const forbiddenCmdFlagWithSchemaEngineWasm: ({ cmd, flag }: {
|
|
8
|
-
cmd: string;
|
|
9
|
-
flag: string;
|
|
10
|
-
}) => string;
|
|
11
|
-
/**
|
|
12
|
-
* Check that the data proxy cannot be used through the given urls and schema contexts
|
|
13
|
-
* @param command the cli command (eg. db push)
|
|
14
|
-
* @param urls list of urls to check
|
|
15
|
-
* @param schemaContexts list of schema contexts to check
|
|
16
|
-
*/
|
|
17
|
-
export declare function checkUnsupportedSchemaEngineWasm({ cmd, config, args, flags, }: {
|
|
18
|
-
cmd: string;
|
|
19
|
-
config: PrismaConfigInternal;
|
|
20
|
-
args: Record<string, unknown>;
|
|
21
|
-
flags: Array<string>;
|
|
22
|
-
}): void;
|