@prisma/internals 6.3.0-dev.2 → 6.3.0-dev.21
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-KKMREGHN.js → chunk-53LS3WUO.js} +143 -94
- package/dist/{chunk-67DWPPNQ.js → chunk-57YWYLPS.js} +15 -15
- package/dist/{chunk-S3323RUL.js → chunk-5RV3EMX6.js} +9 -9
- package/dist/{chunk-CXEMRKV4.js → chunk-6TXVGFQA.js} +6 -6
- package/dist/{chunk-SB7SIP32.js → chunk-A3XZFEWL.js} +14 -14
- package/dist/{chunk-QTXYAZFX.js → chunk-AC6EAR56.js} +5 -5
- package/dist/{chunk-CZDIXJEO.js → chunk-B2T5HDW7.js} +257 -11
- package/dist/{chunk-RH5CKOLU.js → chunk-BDL57OKA.js} +5 -5
- package/dist/{chunk-CRE3EPKG.js → chunk-D6L2VGCG.js} +58 -58
- package/dist/{chunk-N6K7M2HZ.js → chunk-DZYINYAA.js} +5 -5
- package/dist/{chunk-PNEBWOHX.js → chunk-EVYM64MP.js} +9 -9
- package/dist/{chunk-TFSZCVKC.js → chunk-G4BGJ6IP.js} +5 -5
- package/dist/chunk-HB2Q7X5H.js +30 -0
- package/dist/{chunk-5FR6MKWI.js → chunk-HN6T64TW.js} +5 -5
- package/dist/{chunk-2XRDQCIA.js → chunk-I7IEEULS.js} +5 -5
- package/dist/{chunk-EKBX4J6O.js → chunk-IWJ2BUYF.js} +7 -7
- package/dist/{chunk-X4U4GLWH.js → chunk-KRWS7JB4.js} +5 -4
- package/dist/{chunk-VFAZLH4I.js → chunk-MLBZJHKF.js} +58 -58
- package/dist/{chunk-QJZIYUVB.js → chunk-NXIWDQBF.js} +4 -4
- package/dist/{chunk-3DMEILBC.js → chunk-OYLZC5OV.js} +13 -13
- package/dist/{chunk-KEBDP2C3.js → chunk-PIPE5DSU.js} +6 -6
- package/dist/{chunk-2S5S7VUW.js → chunk-PNFQOX7G.js} +14 -14
- package/dist/{chunk-6AIPTFLI.js → chunk-QFIF4LKJ.js} +5 -5
- package/dist/{chunk-DUFJPXLC.js → chunk-QJDWAHSF.js} +15 -15
- package/dist/{chunk-CKNTB45N.js → chunk-QSAE23KV.js} +8 -3
- package/dist/{chunk-P6VBFLWR.js → chunk-QVVSDACW.js} +5 -5
- package/dist/{chunk-R5QHTZTB.js → chunk-RWIWXBUV.js} +14 -14
- package/dist/{chunk-UPIULDLZ.js → chunk-SHJNE6T7.js} +8 -8
- package/dist/{chunk-UUUBQU5I.js → chunk-SL55KVO5.js} +14 -14
- package/dist/{chunk-L3GY3UOX.js → chunk-STRYFIGX.js} +5 -5
- package/dist/{chunk-VWPYBYKT.js → chunk-T5DM6TMK.js} +5 -5
- package/dist/{chunk-MNUFE5NC.js → chunk-TA4NXPBZ.js} +13 -13
- package/dist/{chunk-73Y2YJ3O.js → chunk-TP5PIQYZ.js} +5 -5
- package/dist/{chunk-YWEUFYMK.js → chunk-UL4EQP3F.js} +5 -5
- package/dist/{chunk-25RJ7YTB.js → chunk-XKZ6CBLA.js} +3 -3
- package/dist/{chunk-E3APO3ZG.js → chunk-Y3OWT3K2.js} +5 -5
- package/dist/{chunk-QWUCCALD.js → chunk-YMWI3AFO.js} +8 -8
- package/dist/{chunk-CDYTUC4G.js → chunk-YRTWW4FZ.js} +13 -13
- package/dist/{chunk-FUUQ6FJ4.js → chunk-YXD4CJDK.js} +25 -17
- package/dist/{chunk-LOTU43BG.js → chunk-ZFI4TYBN.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +40 -39
- package/dist/cli/getGeneratorSuccessMessage.js +3 -3
- package/dist/cli/getSchema.js +45 -44
- package/dist/cli/hashes.js +40 -39
- package/dist/client/getClientEngineType.d.ts +2 -1
- package/dist/client/getClientEngineType.js +4 -4
- package/dist/convertCredentials.js +5 -4
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +39 -38
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/getEngineVersion.js +8 -8
- package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
- package/dist/engine-commands/index.js +50 -49
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +9 -9
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +39 -38
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +39 -38
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +40 -39
- package/dist/get-generators/getGenerators.js +42 -41
- package/dist/getPackedPackage.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +95 -91
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +39 -38
- package/dist/utils/cloudflareD1.js +4 -4
- package/dist/utils/fs-functional.js +10 -10
- package/dist/utils/fs-utils.js +8 -8
- package/dist/utils/getEnvPaths.js +39 -38
- package/dist/utils/getGitHubIssueUrl.js +4 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handleEngineLoadingErrors.js +3 -3
- package/dist/utils/handlePanic.js +39 -38
- package/dist/utils/load.js +4 -4
- package/dist/utils/loadEnvFile.js +39 -38
- package/dist/utils/prismaPostgres.d.ts +3 -0
- package/dist/utils/prismaPostgres.js +27 -0
- package/dist/utils/prismaPostgres.test.d.ts +1 -0
- package/dist/utils/prismaPostgres.test.js +15 -0
- package/dist/wasm.js +4 -4
- package/package.json +12 -12
@@ -26,22 +26,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_57YWYLPS_exports = {};
|
30
|
+
__export(chunk_57YWYLPS_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_57YWYLPS_exports);
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
39
|
-
var
|
39
|
+
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
41
|
-
var
|
41
|
+
var import_chunk_BDL57OKA = require("./chunk-BDL57OKA.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
|
-
var
|
44
|
-
var
|
43
|
+
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
44
|
+
var import_chunk_HN6T64TW = require("./chunk-HN6T64TW.js");
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -53,7 +53,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
|
|
53
53
|
var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
|
54
54
|
var GetConfigError = class extends Error {
|
55
55
|
constructor(params) {
|
56
|
-
const constructedErrorMessage = (0,
|
56
|
+
const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
57
57
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
58
58
|
return `${reason}
|
59
59
|
${errorCodeMessage}
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
65
65
|
}).exhaustive();
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
67
67
|
[Context: getConfig]`;
|
68
|
-
super((0,
|
68
|
+
super((0, import_chunk_BDL57OKA.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
69
69
|
this.name = "GetConfigError";
|
70
70
|
}
|
71
71
|
};
|
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
|
|
83
83
|
return urlFromValue ?? urlEnvVarValue;
|
84
84
|
}
|
85
85
|
async function getConfig(options) {
|
86
|
-
const debugErrorType = (0,
|
86
|
+
const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getConfigWasm");
|
87
87
|
debug(`Using getConfig Wasm`);
|
88
88
|
const configEither = (0, import_function.pipe)(
|
89
89
|
(0, import_chunk_7MD6344A.tryCatch)(
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_HN6T64TW.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: options.datamodel,
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
99
99
|
env: process.env
|
100
100
|
});
|
101
|
-
const data =
|
101
|
+
const data = import_chunk_HN6T64TW.prismaSchemaWasm.get_config(params);
|
102
102
|
return data;
|
103
103
|
},
|
104
104
|
(e) => ({
|
@@ -140,7 +140,7 @@ async function getConfig(options) {
|
|
140
140
|
}
|
141
141
|
return Promise.resolve(data);
|
142
142
|
}
|
143
|
-
const error = (0,
|
143
|
+
const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
|
144
144
|
debugErrorType(e);
|
145
145
|
if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
|
146
146
|
const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
|
@@ -160,12 +160,12 @@ async function getConfig(options) {
|
|
160
160
|
return panic;
|
161
161
|
}
|
162
162
|
const errorOutput = e.error.message;
|
163
|
-
return new GetConfigError((0,
|
163
|
+
return new GetConfigError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
164
164
|
}).with({ type: "validation-error" }, (e) => {
|
165
165
|
return new GetConfigError({
|
166
166
|
_tag: "parsed",
|
167
167
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
168
|
-
reason: (0,
|
168
|
+
reason: (0, import_chunk_6TXVGFQA.createSchemaValidationError)(e.reason),
|
169
169
|
message: formatErrors(e.error)
|
170
170
|
});
|
171
171
|
}).otherwise((e) => {
|
@@ -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_5RV3EMX6_exports = {};
|
30
|
+
__export(chunk_5RV3EMX6_exports, {
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists2,
|
32
32
|
fs_functional_exports: () => fs_functional_exports,
|
33
33
|
getFilesInDir: () => getFilesInDir2,
|
@@ -37,8 +37,8 @@ __export(chunk_S3323RUL_exports, {
|
|
37
37
|
removeFile: () => removeFile,
|
38
38
|
writeFile: () => writeFile2
|
39
39
|
});
|
40
|
-
module.exports = __toCommonJS(
|
41
|
-
var
|
40
|
+
module.exports = __toCommonJS(chunk_5RV3EMX6_exports);
|
41
|
+
var import_chunk_Y3OWT3K2 = require("./chunk-Y3OWT3K2.js");
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
43
43
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.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_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
3983
3983
|
var TE = (0, import_chunk_WWAWV7DQ.__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_Y3OWT3K2.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
|
3985
|
+
var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_Y3OWT3K2.writeFile)(params), createTaggedSystemError("fs-write-file", params));
|
3986
|
+
var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_Y3OWT3K2.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_Y3OWT3K2.getNestedFoldersInDir)(dir);
|
3990
|
+
var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_Y3OWT3K2.getFilesInDir)(dir, pattern);
|
3991
3991
|
function createTaggedSystemError(type, meta) {
|
3992
3992
|
return (e) => ({
|
3993
3993
|
type,
|
@@ -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_6TXVGFQA_exports = {};
|
30
|
+
__export(chunk_6TXVGFQA_exports, {
|
31
31
|
createDebugErrorType: () => createDebugErrorType,
|
32
32
|
createSchemaValidationError: () => createSchemaValidationError,
|
33
33
|
parseQueryEngineError: () => parseQueryEngineError,
|
34
34
|
unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
36
|
+
module.exports = __toCommonJS(chunk_6TXVGFQA_exports);
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
39
|
-
var
|
39
|
+
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
40
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
41
41
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
42
42
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
@@ -72,12 +72,12 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
72
72
|
),
|
73
73
|
(0, import_chunk_7MD6344A.map)((errorOutputAsJSON) => {
|
74
74
|
const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
|
75
|
-
const getConfigErrorInit = (0,
|
75
|
+
const getConfigErrorInit = (0, import_chunk_XKZ6CBLA.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
76
76
|
return {
|
77
77
|
reason: createSchemaValidationError(reason),
|
78
78
|
errorCode: eJSON.error_code
|
79
79
|
};
|
80
|
-
}).with({ error_code:
|
80
|
+
}).with({ error_code: import_chunk_XKZ6CBLA.N.string }, (eJSON) => {
|
81
81
|
return {
|
82
82
|
reason,
|
83
83
|
errorCode: eJSON.error_code
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_A3XZFEWL_exports = {};
|
30
|
+
__export(chunk_A3XZFEWL_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_A3XZFEWL_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
36
|
+
var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
38
|
+
var import_chunk_T5DM6TMK = require("./chunk-T5DM6TMK.js");
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
40
|
-
var
|
41
|
-
var
|
40
|
+
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
+
var import_chunk_UL4EQP3F = require("./chunk-UL4EQP3F.js");
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
|
|
48
48
|
var debug = (0, import_debug.default)("prisma:validate");
|
49
49
|
var ValidateError = class extends Error {
|
50
50
|
constructor(params) {
|
51
|
-
const constructedErrorMessage = (0,
|
51
|
+
const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
|
52
52
|
const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
|
53
53
|
return `${reason}
|
54
54
|
${errorCodeMessage}
|
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: validate]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_T5DM6TMK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "ValidateError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
function validate(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "validateWasm");
|
69
69
|
debug(`Using validate Wasm`);
|
70
70
|
const validateEither = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch)(
|
72
72
|
() => {
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
74
74
|
debug("Triggering a Rust panic...");
|
75
|
-
|
75
|
+
import_chunk_UL4EQP3F.prismaSchemaWasm.debug_panic();
|
76
76
|
}
|
77
77
|
const params = JSON.stringify({
|
78
78
|
prismaSchema: options.schemas,
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
80
80
|
});
|
81
|
-
|
81
|
+
import_chunk_UL4EQP3F.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -90,7 +90,7 @@ function validate(options) {
|
|
90
90
|
if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
|
91
91
|
return;
|
92
92
|
}
|
93
|
-
const error = (0,
|
93
|
+
const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
94
94
|
debugErrorType(e);
|
95
95
|
console.error("");
|
96
96
|
if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
|
@@ -113,7 +113,7 @@ function validate(options) {
|
|
113
113
|
return panic;
|
114
114
|
}
|
115
115
|
const errorOutput = e.error.message;
|
116
|
-
return new ValidateError((0,
|
116
|
+
return new ValidateError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
117
117
|
}).exhaustive();
|
118
118
|
throw error;
|
119
119
|
}
|
@@ -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_AC6EAR56_exports = {};
|
30
|
+
__export(chunk_AC6EAR56_exports, {
|
31
31
|
getGitHubIssueUrl: () => getGitHubIssueUrl,
|
32
32
|
wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_AC6EAR56_exports);
|
35
35
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
36
|
-
var
|
36
|
+
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
37
37
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
38
38
|
var import_get_platform = require("@prisma/get-platform");
|
39
39
|
var import_node_process = __toESM(require("node:process"));
|
@@ -379,7 +379,7 @@ function getGitHubIssueUrl({
|
|
379
379
|
});
|
380
380
|
}
|
381
381
|
async function wouldYouLikeToCreateANewIssue(options) {
|
382
|
-
const shouldCreateNewIssue = await (0,
|
382
|
+
const shouldCreateNewIssue = await (0, import_chunk_XKZ6CBLA.z)(options.prompt).with(true, async () => {
|
383
383
|
const createNewIssueResponse = await (0, import_prompts.default)({
|
384
384
|
type: "select",
|
385
385
|
name: "value",
|