@prisma/internals 6.18.0-dev.12 → 6.18.0-dev.13
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-N4DV6JOS.js → chunk-3UMNRYYV.js} +8 -8
- package/dist/{chunk-3DLPU2VH.js → chunk-5A73S7W6.js} +8 -8
- package/dist/{chunk-6AHVCG6L.js → chunk-6656PCCL.js} +8 -8
- package/dist/{chunk-FWYVXOHQ.js → chunk-6NIPWMHG.js} +5 -5
- package/dist/{chunk-2GVIBKTA.js → chunk-75BIJ5PX.js} +9 -9
- package/dist/{chunk-CBOVNYMF.js → chunk-A2QETD5Q.js} +37 -37
- package/dist/{chunk-QTSXZES6.js → chunk-AWKM5KUH.js} +7 -7
- package/dist/{chunk-JZYVRGN4.js → chunk-B24WFAOR.js} +5 -5
- package/dist/{chunk-QKVGK3CJ.js → chunk-BGBVSEMY.js} +36 -36
- package/dist/{chunk-YBTHDTT3.js → chunk-BVJP43JS.js} +7 -7
- package/dist/{chunk-7GNJVKMU.js → chunk-CP7DLHK2.js} +5 -5
- package/dist/{chunk-FHYZIOZ4.js → chunk-D4VDA2TZ.js} +6 -6
- package/dist/{chunk-Q4GRJBUD.js → chunk-HZZXGRMN.js} +8 -8
- package/dist/{chunk-RMBRSCMH.js → chunk-IMXXGQBH.js} +5 -5
- package/dist/{chunk-N7LAFYBX.js → chunk-IV5PT5YE.js} +7 -7
- package/dist/{chunk-VHTDEIXR.js → chunk-JOIIWB3U.js} +9 -23
- package/dist/{chunk-LHVODGG2.js → chunk-KB5WUZW4.js} +8 -8
- package/dist/{chunk-S6T6LQBL.js → chunk-LIXUNL2F.js} +5 -5
- package/dist/{chunk-BBXVW7RP.js → chunk-MHUJECKD.js} +5 -5
- package/dist/{chunk-YLZBBEHV.js → chunk-MZ5DWDNU.js} +5 -5
- package/dist/{chunk-UHROHX5U.js → chunk-P3ITCNR6.js} +8 -8
- package/dist/{chunk-AT4O64L5.js → chunk-P5HU6YXH.js} +19 -19
- package/dist/{chunk-T4UWWS6R.js → chunk-TQFONRJP.js} +5 -5
- package/dist/{chunk-D3RD25JA.js → chunk-UDBR6KNF.js} +19 -19
- package/dist/{chunk-LFELUV5W.js → chunk-W22QE4Q4.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +17 -17
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +17 -17
- package/dist/cli/schemaContext.js +17 -17
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +16 -16
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +25 -25
- 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 +19 -19
- package/dist/getPackedPackage.js +3 -3
- package/dist/index.js +40 -40
- package/dist/utils/cloudflareD1.js +3 -3
- 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/wasm.js +5 -5
- package/package.json +11 -11
|
@@ -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_3UMNRYYV_exports = {};
|
|
30
|
+
__export(chunk_3UMNRYYV_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_3UMNRYYV_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_CP7DLHK2 = require("./chunk-CP7DLHK2.js");
|
|
42
|
+
var import_chunk_B24WFAOR = require("./chunk-B24WFAOR.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_CP7DLHK2.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_B24WFAOR.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_B24WFAOR.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_5A73S7W6_exports = {};
|
|
30
|
+
__export(chunk_5A73S7W6_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_5A73S7W6_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_CP7DLHK2 = require("./chunk-CP7DLHK2.js");
|
|
38
|
+
var import_chunk_B24WFAOR = require("./chunk-B24WFAOR.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_CP7DLHK2.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_B24WFAOR.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_B24WFAOR.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|
|
@@ -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_6656PCCL_exports = {};
|
|
30
|
+
__export(chunk_6656PCCL_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_6656PCCL_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_6NIPWMHG = require("./chunk-6NIPWMHG.js");
|
|
42
|
+
var import_chunk_LIXUNL2F = require("./chunk-LIXUNL2F.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_6NIPWMHG.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_LIXUNL2F.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_LIXUNL2F.prismaSchemaWasm.get_config(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(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_6NIPWMHG_exports = {};
|
|
20
|
+
__export(chunk_6NIPWMHG_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_6NIPWMHG_exports);
|
|
24
|
+
var import_chunk_IMXXGQBH = require("./chunk-IMXXGQBH.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_IMXXGQBH.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_75BIJ5PX_exports = {};
|
|
30
|
+
__export(chunk_75BIJ5PX_exports, {
|
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists2,
|
|
32
32
|
fs_functional_exports: () => fs_functional_exports,
|
|
33
33
|
getFilesInDir: () => getFilesInDir2,
|
|
@@ -37,8 +37,8 @@ __export(chunk_2GVIBKTA_exports, {
|
|
|
37
37
|
removeFile: () => removeFile,
|
|
38
38
|
writeFile: () => writeFile2
|
|
39
39
|
});
|
|
40
|
-
module.exports = __toCommonJS(
|
|
41
|
-
var
|
|
40
|
+
module.exports = __toCommonJS(chunk_75BIJ5PX_exports);
|
|
41
|
+
var import_chunk_TQFONRJP = require("./chunk-TQFONRJP.js");
|
|
42
42
|
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
|
43
43
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
44
44
|
var import_promises = __toESM(require("fs/promises"));
|
|
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
|
|
|
3981
3981
|
});
|
|
3982
3982
|
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
|
3983
3983
|
var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
|
|
3984
|
-
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0,
|
|
3985
|
-
var writeFile2 = (params) => TE.tryCatch(() => (0,
|
|
3986
|
-
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0,
|
|
3984
|
+
var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
|
|
3985
|
+
var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.writeFile)(params), createTaggedSystemError("fs-write-file", params));
|
|
3986
|
+
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
|
|
3987
3987
|
var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
|
|
3988
3988
|
var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
|
|
3989
|
-
var getNestedFoldersInDir2 = (dir) => () => (0,
|
|
3990
|
-
var getFilesInDir2 = (dir, pattern = "**") => () => (0,
|
|
3989
|
+
var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_TQFONRJP.getNestedFoldersInDir)(dir);
|
|
3990
|
+
var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_TQFONRJP.getFilesInDir)(dir, pattern);
|
|
3991
3991
|
function createTaggedSystemError(type, meta) {
|
|
3992
3992
|
return (e) => ({
|
|
3993
3993
|
type,
|
|
@@ -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_A2QETD5Q_exports = {};
|
|
20
|
+
__export(chunk_A2QETD5Q_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_A2QETD5Q_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.18.0-dev.
|
|
29
|
+
version: "6.18.0-dev.13",
|
|
30
30
|
description: "This package is intended for Prisma's internal use",
|
|
31
31
|
main: "dist/index.js",
|
|
32
32
|
types: "dist/index.d.ts",
|
|
@@ -54,49 +54,49 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
54
54
|
],
|
|
55
55
|
devDependencies: {
|
|
56
56
|
"@babel/helper-validator-identifier": "7.25.9",
|
|
57
|
-
"@opentelemetry/api": "
|
|
58
|
-
"@swc/core": "
|
|
59
|
-
"@swc/jest": "
|
|
57
|
+
"@opentelemetry/api": "1.9.0",
|
|
58
|
+
"@swc/core": "1.11.5",
|
|
59
|
+
"@swc/jest": "0.2.37",
|
|
60
60
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
|
61
|
-
"@types/jest": "
|
|
62
|
-
"@types/node": "
|
|
63
|
-
"@types/resolve": "
|
|
61
|
+
"@types/jest": "29.5.14",
|
|
62
|
+
"@types/node": "18.19.76",
|
|
63
|
+
"@types/resolve": "1.20.6",
|
|
64
64
|
archiver: "6.0.2",
|
|
65
|
-
"checkpoint-client": "
|
|
65
|
+
"checkpoint-client": "1.1.33",
|
|
66
66
|
"cli-truncate": "4.0.0",
|
|
67
67
|
dotenv: "16.5.0",
|
|
68
|
-
empathic: "
|
|
69
|
-
"escape-string-regexp": "
|
|
70
|
-
execa: "
|
|
71
|
-
"fast-glob": "
|
|
68
|
+
empathic: "2.0.0",
|
|
69
|
+
"escape-string-regexp": "5.0.0",
|
|
70
|
+
execa: "8.0.1",
|
|
71
|
+
"fast-glob": "3.3.3",
|
|
72
72
|
"find-up": "7.0.0",
|
|
73
|
-
"fp-ts": "
|
|
74
|
-
"fs-extra": "
|
|
73
|
+
"fp-ts": "2.16.9",
|
|
74
|
+
"fs-extra": "11.3.0",
|
|
75
75
|
"global-directory": "4.0.0",
|
|
76
|
-
globby: "
|
|
76
|
+
globby: "11.1.0",
|
|
77
77
|
"identifier-regex": "1.0.0",
|
|
78
|
-
"indent-string": "
|
|
78
|
+
"indent-string": "4.0.0",
|
|
79
79
|
"is-windows": "1.0.2",
|
|
80
80
|
"is-wsl": "3.1.0",
|
|
81
|
-
jest: "
|
|
82
|
-
"jest-junit": "
|
|
83
|
-
kleur: "
|
|
84
|
-
"mock-stdin": "
|
|
85
|
-
"new-github-issue-url": "
|
|
86
|
-
"node-fetch": "
|
|
87
|
-
"npm-packlist": "
|
|
88
|
-
open: "
|
|
89
|
-
"p-map": "
|
|
90
|
-
resolve: "
|
|
81
|
+
jest: "29.7.0",
|
|
82
|
+
"jest-junit": "16.0.0",
|
|
83
|
+
kleur: "4.1.5",
|
|
84
|
+
"mock-stdin": "1.0.0",
|
|
85
|
+
"new-github-issue-url": "0.2.1",
|
|
86
|
+
"node-fetch": "3.3.2",
|
|
87
|
+
"npm-packlist": "5.1.3",
|
|
88
|
+
open: "7.4.2",
|
|
89
|
+
"p-map": "4.0.0",
|
|
90
|
+
resolve: "1.22.10",
|
|
91
91
|
"string-width": "7.2.0",
|
|
92
|
-
"strip-indent": "
|
|
93
|
-
"temp-dir": "
|
|
94
|
-
tempy: "
|
|
95
|
-
"terminal-link": "
|
|
92
|
+
"strip-indent": "4.0.0",
|
|
93
|
+
"temp-dir": "2.0.0",
|
|
94
|
+
tempy: "1.0.1",
|
|
95
|
+
"terminal-link": "4.0.0",
|
|
96
96
|
tmp: "0.2.3",
|
|
97
|
-
"ts-pattern": "
|
|
98
|
-
"ts-toolbelt": "
|
|
99
|
-
typescript: "
|
|
97
|
+
"ts-pattern": "5.6.2",
|
|
98
|
+
"ts-toolbelt": "9.6.0",
|
|
99
|
+
typescript: "5.4.5",
|
|
100
100
|
yarn: "1.22.22"
|
|
101
101
|
},
|
|
102
102
|
dependencies: {
|
|
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
112
112
|
"@prisma/prisma-schema-wasm": "6.18.0-2.ba2627112b75424f26505fb83167ce78db40fc57",
|
|
113
113
|
"@prisma/schema-engine-wasm": "6.18.0-2.ba2627112b75424f26505fb83167ce78db40fc57",
|
|
114
114
|
"@prisma/schema-files-loader": "workspace:*",
|
|
115
|
-
arg: "
|
|
115
|
+
arg: "5.0.2",
|
|
116
116
|
prompts: "2.4.2"
|
|
117
117
|
},
|
|
118
118
|
peerDependencies: {
|
|
@@ -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_AWKM5KUH_exports = {};
|
|
30
|
+
__export(chunk_AWKM5KUH_exports, {
|
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
|
32
32
|
mergeSchemas: () => mergeSchemas
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_AWKM5KUH_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_6NIPWMHG = require("./chunk-6NIPWMHG.js");
|
|
39
|
+
var import_chunk_LIXUNL2F = require("./chunk-LIXUNL2F.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_6NIPWMHG.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_LIXUNL2F.prismaSchemaWasm.merge_schemas(params);
|
|
76
76
|
},
|
|
77
77
|
(e) => ({
|
|
78
78
|
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_B24WFAOR_exports = {};
|
|
30
|
+
__export(chunk_B24WFAOR_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_B24WFAOR_exports);
|
|
37
|
+
var import_chunk_BGBVSEMY = require("./chunk-BGBVSEMY.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"));
|
|
@@ -46,6 +46,6 @@ var wasm_exports = {};
|
|
|
46
46
|
});
|
|
47
47
|
var globalWithPanicRegistry = globalThis;
|
|
48
48
|
globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
|
49
|
-
var { dependencies } = (0,
|
|
49
|
+
var { dependencies } = (0, import_chunk_BGBVSEMY.require_package)();
|
|
50
50
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
|
51
51
|
var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
|
|
@@ -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_BGBVSEMY_exports = {};
|
|
20
|
+
__export(chunk_BGBVSEMY_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_BGBVSEMY_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) {
|
|
@@ -54,49 +54,49 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
54
54
|
],
|
|
55
55
|
devDependencies: {
|
|
56
56
|
"@babel/helper-validator-identifier": "7.25.9",
|
|
57
|
-
"@opentelemetry/api": "
|
|
58
|
-
"@swc/core": "
|
|
59
|
-
"@swc/jest": "
|
|
57
|
+
"@opentelemetry/api": "1.9.0",
|
|
58
|
+
"@swc/core": "1.11.5",
|
|
59
|
+
"@swc/jest": "0.2.37",
|
|
60
60
|
"@types/babel__helper-validator-identifier": "7.15.2",
|
|
61
|
-
"@types/jest": "
|
|
62
|
-
"@types/node": "
|
|
63
|
-
"@types/resolve": "
|
|
61
|
+
"@types/jest": "29.5.14",
|
|
62
|
+
"@types/node": "18.19.76",
|
|
63
|
+
"@types/resolve": "1.20.6",
|
|
64
64
|
archiver: "6.0.2",
|
|
65
|
-
"checkpoint-client": "
|
|
65
|
+
"checkpoint-client": "1.1.33",
|
|
66
66
|
"cli-truncate": "4.0.0",
|
|
67
67
|
dotenv: "16.5.0",
|
|
68
|
-
empathic: "
|
|
69
|
-
"escape-string-regexp": "
|
|
70
|
-
execa: "
|
|
71
|
-
"fast-glob": "
|
|
68
|
+
empathic: "2.0.0",
|
|
69
|
+
"escape-string-regexp": "5.0.0",
|
|
70
|
+
execa: "8.0.1",
|
|
71
|
+
"fast-glob": "3.3.3",
|
|
72
72
|
"find-up": "7.0.0",
|
|
73
|
-
"fp-ts": "
|
|
74
|
-
"fs-extra": "
|
|
73
|
+
"fp-ts": "2.16.9",
|
|
74
|
+
"fs-extra": "11.3.0",
|
|
75
75
|
"global-directory": "4.0.0",
|
|
76
|
-
globby: "
|
|
76
|
+
globby: "11.1.0",
|
|
77
77
|
"identifier-regex": "1.0.0",
|
|
78
|
-
"indent-string": "
|
|
78
|
+
"indent-string": "4.0.0",
|
|
79
79
|
"is-windows": "1.0.2",
|
|
80
80
|
"is-wsl": "3.1.0",
|
|
81
|
-
jest: "
|
|
82
|
-
"jest-junit": "
|
|
83
|
-
kleur: "
|
|
84
|
-
"mock-stdin": "
|
|
85
|
-
"new-github-issue-url": "
|
|
86
|
-
"node-fetch": "
|
|
87
|
-
"npm-packlist": "
|
|
88
|
-
open: "
|
|
89
|
-
"p-map": "
|
|
90
|
-
resolve: "
|
|
81
|
+
jest: "29.7.0",
|
|
82
|
+
"jest-junit": "16.0.0",
|
|
83
|
+
kleur: "4.1.5",
|
|
84
|
+
"mock-stdin": "1.0.0",
|
|
85
|
+
"new-github-issue-url": "0.2.1",
|
|
86
|
+
"node-fetch": "3.3.2",
|
|
87
|
+
"npm-packlist": "5.1.3",
|
|
88
|
+
open: "7.4.2",
|
|
89
|
+
"p-map": "4.0.0",
|
|
90
|
+
resolve: "1.22.10",
|
|
91
91
|
"string-width": "7.2.0",
|
|
92
|
-
"strip-indent": "
|
|
93
|
-
"temp-dir": "
|
|
94
|
-
tempy: "
|
|
95
|
-
"terminal-link": "
|
|
92
|
+
"strip-indent": "4.0.0",
|
|
93
|
+
"temp-dir": "2.0.0",
|
|
94
|
+
tempy: "1.0.1",
|
|
95
|
+
"terminal-link": "4.0.0",
|
|
96
96
|
tmp: "0.2.3",
|
|
97
|
-
"ts-pattern": "
|
|
98
|
-
"ts-toolbelt": "
|
|
99
|
-
typescript: "
|
|
97
|
+
"ts-pattern": "5.6.2",
|
|
98
|
+
"ts-toolbelt": "9.6.0",
|
|
99
|
+
typescript: "5.4.5",
|
|
100
100
|
yarn: "1.22.22"
|
|
101
101
|
},
|
|
102
102
|
dependencies: {
|
|
@@ -112,7 +112,7 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
112
112
|
"@prisma/prisma-schema-wasm": "6.18.0-2.ba2627112b75424f26505fb83167ce78db40fc57",
|
|
113
113
|
"@prisma/schema-engine-wasm": "6.18.0-2.ba2627112b75424f26505fb83167ce78db40fc57",
|
|
114
114
|
"@prisma/schema-files-loader": "workspace:*",
|
|
115
|
-
arg: "
|
|
115
|
+
arg: "5.0.2",
|
|
116
116
|
prompts: "2.4.2"
|
|
117
117
|
},
|
|
118
118
|
peerDependencies: {
|
|
@@ -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_BVJP43JS_exports = {};
|
|
30
|
+
__export(chunk_BVJP43JS_exports, {
|
|
31
31
|
getPackedPackage: () => getPackedPackage,
|
|
32
32
|
require_p_map: () => require_p_map
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_BVJP43JS_exports);
|
|
35
35
|
var import_chunk_KDP6C3CB = require("./chunk-KDP6C3CB.js");
|
|
36
|
-
var
|
|
36
|
+
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
|
37
37
|
var import_chunk_UMM35VP5 = require("./chunk-UMM35VP5.js");
|
|
38
38
|
var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
|
|
39
39
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
@@ -6254,9 +6254,9 @@ var require_del = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
6254
6254
|
"use strict";
|
|
6255
6255
|
var { promisify } = (0, import_chunk_4VNS5WPM.__require)("util");
|
|
6256
6256
|
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
|
6257
|
-
var globby = (0,
|
|
6258
|
-
var isGlob = (0,
|
|
6259
|
-
var slash = (0,
|
|
6257
|
+
var globby = (0, import_chunk_JOIIWB3U.require_globby)();
|
|
6258
|
+
var isGlob = (0, import_chunk_JOIIWB3U.require_is_glob)();
|
|
6259
|
+
var slash = (0, import_chunk_JOIIWB3U.require_slash)();
|
|
6260
6260
|
var gracefulFs = require_graceful_fs();
|
|
6261
6261
|
var isPathCwd = require_is_path_cwd();
|
|
6262
6262
|
var isPathInside = require_is_path_inside();
|
|
@@ -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_CP7DLHK2_exports = {};
|
|
20
|
+
__export(chunk_CP7DLHK2_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_CP7DLHK2_exports);
|
|
24
|
+
var import_chunk_MZ5DWDNU = require("./chunk-MZ5DWDNU.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_MZ5DWDNU.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -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_D4VDA2TZ_exports = {};
|
|
30
|
+
__export(chunk_D4VDA2TZ_exports, {
|
|
31
31
|
locateLocalCloudflareD1: () => locateLocalCloudflareD1
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_D4VDA2TZ_exports);
|
|
34
34
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
|
36
36
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
37
37
|
var import_node_path = __toESM(require("node:path"));
|
|
38
38
|
var import_node_process = __toESM(require("node:process"));
|
|
39
|
-
var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
40
|
-
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
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
41
|
var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
|
|
42
42
|
async function locateLocalCloudflareD1({ arg }) {
|
|
43
43
|
const cwd = import_node_process.default.cwd();
|
|
@@ -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_HZZXGRMN_exports = {};
|
|
30
|
+
__export(chunk_HZZXGRMN_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_HZZXGRMN_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_6NIPWMHG = require("./chunk-6NIPWMHG.js");
|
|
38
|
+
var import_chunk_LIXUNL2F = require("./chunk-LIXUNL2F.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_6NIPWMHG.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_LIXUNL2F.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_LIXUNL2F.prismaSchemaWasm.get_dmmf(params);
|
|
80
80
|
return data;
|
|
81
81
|
},
|
|
82
82
|
(e) => ({
|