@prisma/internals 6.6.0-dev.5 → 6.6.0-dev.52
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/Generator.d.ts +1 -1
- package/dist/Generator.js +3 -3
- package/dist/WasmPanicRegistry.js +3 -3
- package/dist/chunk-2H6XXXKO.js +49 -0
- package/dist/chunk-2QTAK7KO.js +101 -0
- package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
- package/dist/{chunk-RK6MQ2H5.js → chunk-3MYWFV37.js} +12 -10
- package/dist/chunk-3TSSYJO2.js +1015 -0
- package/dist/{chunk-YG7D272D.js → chunk-3XKWZXAS.js} +11 -15
- package/dist/{chunk-WWAWV7DQ.js → chunk-4VNS5WPM.js} +3 -33
- package/dist/{chunk-KQOJB3ZW.js → chunk-5AI4FIZ3.js} +10 -10
- package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
- package/dist/{chunk-L3462R5V.js → chunk-5TZTJ2FI.js} +22 -26
- package/dist/{chunk-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
- package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
- package/dist/{chunk-MGZOEY6N.js → chunk-72UZXEBG.js} +6 -6
- package/dist/{chunk-CIH2HX7R.js → chunk-75AJJ2SV.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
- package/dist/{chunk-U2L42IOL.js → chunk-7FFZ4QHX.js} +23 -27
- package/dist/{chunk-CW5MRSDF.js → chunk-7Z57N75H.js} +30 -34
- package/dist/{chunk-LG5IW4IV.js → chunk-ABTIXQDX.js} +11 -9
- package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
- package/dist/{chunk-U6LD37KW.js → chunk-BTWAF3S4.js} +22 -26
- package/dist/{chunk-VRT7T6MF.js → chunk-BWGDP6B5.js} +94 -105
- package/dist/{chunk-5MCWLJSR.js → chunk-CR3XKUEA.js} +10 -10
- package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
- package/dist/{chunk-SHJNE6T7.js → chunk-D4VDA2TZ.js} +7 -7
- package/dist/{chunk-MUPZUVSI.js → chunk-D4VZUY3O.js} +14 -20
- package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
- package/dist/chunk-DODIJPCS.js +34 -0
- package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
- package/dist/{chunk-ZYW3HGSH.js → chunk-DYVL6P7F.js} +7 -8
- package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
- package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
- package/dist/{chunk-PIPE5DSU.js → chunk-EWWOTVR3.js} +6 -6
- package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
- package/dist/{chunk-S57RMXZW.js → chunk-GHHABGYW.js} +5 -5
- package/dist/{chunk-XGDTIBRB.js → chunk-GIOVJ5SL.js} +46 -79
- package/dist/{chunk-L6GBFCXG.js → chunk-HAGJ64PM.js} +142 -155
- package/dist/{chunk-3ERIN7PH.js → chunk-HG3YOAAE.js} +10 -10
- package/dist/{chunk-GXDYIY4M.js → chunk-IDINCQMN.js} +56 -57
- package/dist/chunk-IQR3YIKI.js +1015 -0
- package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
- package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
- package/dist/{chunk-C2WD2XUT.js → chunk-K5W6WZ6E.js} +971 -991
- package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
- package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
- package/dist/{chunk-EOWYER24.js → chunk-LHESHKC2.js} +9 -9
- package/dist/{chunk-ATFQZVBS.js → chunk-LMVSIVKQ.js} +9 -14
- package/dist/{chunk-ZKAW5JSN.js → chunk-LRJ4X43J.js} +5 -5
- package/dist/{chunk-ONHKZPSV.js → chunk-LRU47BGE.js} +6 -6
- package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
- package/dist/{chunk-SC7OJHGV.js → chunk-MSQTODVE.js} +30 -34
- package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
- package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
- package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
- package/dist/{chunk-SNY3IPJ5.js → chunk-PQE76XRR.js} +5 -5
- package/dist/{chunk-77IC3DNO.js → chunk-QGJH4P4N.js} +8 -8
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
- package/dist/{chunk-EM3Z5VR6.js → chunk-RFYYFIX7.js} +46 -79
- package/dist/{chunk-DARNQRUA.js → chunk-RR55FNCU.js} +9 -9
- package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
- package/dist/{chunk-X5YSMVVH.js → chunk-URCHUFR3.js} +5 -5
- package/dist/{chunk-SNL3TWM6.js → chunk-URWUAYEL.js} +5 -5
- package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
- package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
- package/dist/{chunk-YXD4CJDK.js → chunk-VVPSLVOR.js} +27 -27
- package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-TPIOJZAZ.js → chunk-XKIMYV5V.js} +11 -15
- package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
- package/dist/{chunk-AOEDMVV5.js → chunk-XQSHUIJ5.js} +23 -27
- package/dist/chunk-YR5KNFKN.js +1834 -0
- package/dist/{chunk-AZNLB67U.js → chunk-ZJWZK45Z.js} +5 -5
- package/dist/chunk-ZSINRHD4.js +43 -0
- package/dist/cli/Help.js +1 -1
- package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
- package/dist/cli/checkUnsupportedDataProxy.js +77 -74
- package/dist/cli/directoryConfig.d.ts +7 -0
- package/dist/{get-generators/utils/check-feature-flags/checkFeatureFlags.js → cli/directoryConfig.js} +6 -6
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.d.ts +3 -28
- package/dist/cli/getSchema.js +80 -78
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +77 -74
- package/dist/cli/schemaContext.d.ts +59 -0
- package/dist/cli/schemaContext.js +139 -0
- package/dist/cli/utils.js +5 -5
- package/dist/client/getClientEngineType.d.ts +1 -1
- package/dist/client/getClientEngineType.js +1 -1
- package/dist/convertCredentials.d.ts +1 -1
- package/dist/convertCredentials.js +1 -1
- package/dist/dotenvExpand.js +1 -1
- package/dist/engine-commands/errorHelpers.js +5 -5
- package/dist/engine-commands/formatSchema.js +76 -73
- package/dist/engine-commands/getConfig.d.ts +1 -5
- package/dist/engine-commands/getConfig.js +16 -17
- package/dist/engine-commands/getDmmf.d.ts +3 -6
- package/dist/engine-commands/getDmmf.js +13 -14
- package/dist/engine-commands/getEngineVersion.js +12 -12
- package/dist/engine-commands/getEnginesMetaInfo.js +15 -15
- package/dist/engine-commands/index.js +87 -84
- package/dist/engine-commands/lintSchema.d.ts +1 -1
- package/dist/engine-commands/lintSchema.js +11 -12
- package/dist/engine-commands/mergeSchemas.js +13 -14
- package/dist/engine-commands/queryEngineCommons.js +8 -8
- package/dist/engine-commands/relativizePathInPSLError.js +1 -1
- package/dist/engine-commands/validate.js +13 -14
- package/dist/errorReporting.d.ts +0 -1
- package/dist/errorReporting.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +76 -73
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +7 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +76 -73
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js +1 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +1 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +77 -74
- package/dist/get-generators/getGenerators.d.ts +8 -4
- package/dist/get-generators/getGenerators.js +79 -76
- package/dist/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
- package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.d.ts +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
- package/dist/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.d.ts +1 -1
- package/dist/get-generators/utils/printGeneratorConfig.js +7 -7
- package/dist/getPackedPackage.js +9 -9
- package/dist/highlight/highlight.js +1 -1
- package/dist/highlight/languages/dml.js +1 -1
- package/dist/highlight/languages/sql.js +1 -1
- package/dist/highlight/prism.js +1 -1
- package/dist/highlight/theme.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +143 -141
- package/dist/logger.js +9 -9
- package/dist/migrateTypes.d.ts +63 -0
- package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3AFJFP6K.js} +7 -7
- package/dist/panic.d.ts +1 -4
- package/dist/panic.js +7 -7
- package/dist/resolveBinary.js +10 -10
- package/dist/resolveOutput.js +1 -1
- package/dist/schemaEngineCommands.js +13 -13
- package/dist/sendPanic.js +7 -111
- package/dist/types.d.ts +1 -1
- package/dist/utils/__tests__/isCi.test.js +1 -1
- package/dist/utils/__tests__/isInteractive.test.js +1 -1
- package/dist/utils/__tests__/maskSchema.test.js +1 -1
- package/dist/utils/assertAlways.js +1 -1
- package/dist/utils/assertNever.js +1 -1
- package/dist/utils/binaryTargetRegex.js +3 -3
- package/dist/utils/byline.js +1 -1
- package/dist/utils/callOnce.js +1 -1
- package/dist/utils/callOnce.test.js +1 -1
- package/dist/utils/canPrompt.js +4 -4
- package/dist/utils/chmodPlusX.js +1 -1
- package/dist/utils/cloudflareD1.js +4 -4
- package/dist/utils/drawBox.js +1 -1
- package/dist/utils/extractPreviewFeatures.d.ts +2 -2
- package/dist/utils/extractPreviewFeatures.js +3 -3
- package/dist/utils/formatTable.js +1 -1
- package/dist/utils/formatms.js +1 -1
- package/dist/utils/fs-functional.js +12 -12
- package/dist/utils/fs-utils.js +9 -9
- package/dist/utils/getCommandWithExecutor.js +4 -4
- package/dist/utils/getEnvPaths.d.ts +1 -1
- package/dist/utils/getEnvPaths.js +76 -73
- package/dist/utils/getGitHubIssueUrl.js +5 -4
- package/dist/utils/getMigrateConfigDir.js +1 -1
- package/dist/utils/getVersionFromPackageJson.js +4 -4
- package/dist/utils/handleEngineLoadingErrors.js +1 -1
- package/dist/utils/handlePanic.js +13 -110
- package/dist/utils/hasOwnProperty.js +1 -1
- package/dist/utils/isCi.js +1 -1
- package/dist/utils/isCurrentBinInstalledGlobally.js +3 -3
- package/dist/utils/isInContainer.js +1 -1
- package/dist/utils/isInNpmLifecycleHook.js +1 -1
- package/dist/utils/isInteractive.js +1 -1
- package/dist/utils/isPromiseLike.js +1 -1
- package/dist/utils/isValidJsIdentifier.js +4 -4
- package/dist/utils/keyBy.js +1 -1
- package/dist/utils/link.js +3 -3
- package/dist/utils/load.js +3 -3
- package/dist/utils/loadEnvFile.js +76 -73
- package/dist/utils/mapKeys.js +1 -1
- package/dist/utils/mapObjectValues.js +1 -1
- package/dist/utils/maskSchema.js +1 -1
- package/dist/utils/max.js +1 -1
- package/dist/utils/max.test.js +1 -1
- package/dist/utils/maybeInGitHook.js +1 -1
- package/dist/utils/missingDatasource.js +4 -4
- package/dist/utils/missingGeneratorMessage.js +6 -6
- package/dist/utils/now.js +1 -1
- package/dist/utils/omit.js +1 -1
- package/dist/utils/parseAWSNodejsRuntimeEnvVarVersion.js +1 -1
- package/dist/utils/parseEnvValue.d.ts +1 -1
- package/dist/utils/parseEnvValue.js +1 -1
- package/dist/utils/path.js +1 -1
- package/dist/utils/path.test.js +1 -1
- package/dist/utils/pick.js +1 -1
- package/dist/utils/printConfigWarnings.js +1 -1
- package/dist/utils/prismaPostgres.js +1 -1
- package/dist/utils/prismaPostgres.test.js +1 -1
- package/dist/utils/schemaFileInput.d.ts +0 -4
- package/dist/utils/schemaFileInput.js +3 -7
- package/dist/utils/serializeQueryEngineName.js +1 -1
- package/dist/utils/setClassName.js +1 -1
- package/dist/utils/toSchemasContainer.d.ts +2 -3
- package/dist/utils/toSchemasContainer.js +4 -5
- package/dist/utils/tryLoadEnvs.js +6 -6
- package/dist/utils/unique.js +1 -1
- package/dist/utils/vercelPkgPathRegex.js +1 -1
- package/dist/warnOnce.js +4 -4
- package/dist/wasm.js +6 -6
- package/package.json +14 -12
- package/dist/chunk-AOQIUJT4.js +0 -41
- package/dist/chunk-EPUNJXBL.js +0 -15631
- package/dist/chunk-IPWA5XTA.js +0 -15631
- package/dist/chunk-YRBRUREX.js +0 -57
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
@@ -26,25 +26,23 @@ 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_RFYYFIX7_exports = {};
|
30
|
+
__export(chunk_RFYYFIX7_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var
|
36
|
-
var
|
37
|
-
var
|
38
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_RFYYFIX7_exports);
|
35
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
+
var import_chunk_URWUAYEL = require("./chunk-URWUAYEL.js");
|
38
|
+
var import_chunk_RR55FNCU = require("./chunk-RR55FNCU.js");
|
39
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
39
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
41
|
-
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
42
|
-
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
41
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
43
42
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
44
|
-
var
|
43
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
45
44
|
var import_debug = __toESM(require("@prisma/debug"));
|
46
|
-
var
|
47
|
-
var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
|
45
|
+
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
48
46
|
var debug = (0, import_debug.default)("prisma:getDMMF");
|
49
47
|
var GetDmmfError = class extends Error {
|
50
48
|
constructor(params) {
|
@@ -60,104 +58,73 @@ ${detailsHeader} ${message}`;
|
|
60
58
|
}).exhaustive();
|
61
59
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
60
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
61
|
+
super((0, import_chunk_URWUAYEL.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
62
|
this.name = "GetDmmfError";
|
65
63
|
}
|
66
64
|
};
|
67
65
|
async function getDMMF(options) {
|
68
|
-
const debugErrorType = (0,
|
66
|
+
const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "getDmmfWasm");
|
69
67
|
debug(`Using getDmmf Wasm`);
|
70
68
|
const dmmfPipeline = (0, import_function.pipe)(
|
71
|
-
(0,
|
69
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
72
70
|
() => {
|
73
|
-
if (
|
74
|
-
debug("
|
75
|
-
|
71
|
+
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
72
|
+
debug("Triggering a Rust panic...");
|
73
|
+
import_chunk_RR55FNCU.prismaSchemaWasm.debug_panic();
|
76
74
|
}
|
77
|
-
|
78
|
-
|
75
|
+
const params = JSON.stringify({
|
76
|
+
prismaSchema: options.datamodel,
|
77
|
+
noColor: Boolean(process.env.NO_COLOR)
|
78
|
+
});
|
79
|
+
const data = import_chunk_RR55FNCU.prismaSchemaWasm.get_dmmf(params);
|
80
|
+
return data;
|
79
81
|
},
|
80
82
|
(e) => ({
|
81
|
-
type: "
|
82
|
-
reason: "
|
83
|
-
error: e
|
84
|
-
datamodelPath: options.datamodelPath
|
83
|
+
type: "wasm-error",
|
84
|
+
reason: "(get-dmmf wasm)",
|
85
|
+
error: e
|
85
86
|
})
|
86
87
|
),
|
87
|
-
(0,
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
import_chunk_EOWYER24.prismaSchemaWasm.debug_panic();
|
94
|
-
}
|
95
|
-
const params = JSON.stringify({
|
96
|
-
prismaSchema: datamodel,
|
97
|
-
noColor: Boolean(process.env.NO_COLOR)
|
98
|
-
});
|
99
|
-
const data = import_chunk_EOWYER24.prismaSchemaWasm.get_dmmf(params);
|
100
|
-
return data;
|
101
|
-
},
|
88
|
+
(0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
|
89
|
+
(0, import_chunk_5DBOS77Y.chainW)(
|
90
|
+
({ result }) => (
|
91
|
+
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
92
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
93
|
+
() => JSON.parse(result),
|
102
94
|
(e) => ({
|
103
|
-
type: "
|
104
|
-
reason: "
|
95
|
+
type: "parse-json",
|
96
|
+
reason: "Unable to parse JSON",
|
105
97
|
error: e
|
106
98
|
})
|
107
|
-
)
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
// NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
|
112
|
-
(0, import_chunk_7MD6344A.tryCatch)(
|
113
|
-
() => JSON.parse(result),
|
114
|
-
(e) => ({
|
115
|
-
type: "parse-json",
|
116
|
-
reason: "Unable to parse JSON",
|
117
|
-
error: e
|
118
|
-
})
|
119
|
-
)
|
120
|
-
)
|
121
|
-
),
|
122
|
-
import_chunk_7MD6344A.fromEither
|
123
|
-
);
|
124
|
-
})
|
99
|
+
)
|
100
|
+
)
|
101
|
+
),
|
102
|
+
import_chunk_5DBOS77Y.fromEither
|
125
103
|
);
|
126
104
|
const dmmfEither = await dmmfPipeline();
|
127
|
-
if ((0,
|
105
|
+
if ((0, import_chunk_5DBOS77Y.isRight)(dmmfEither)) {
|
128
106
|
debug("dmmf data retrieved without errors in getDmmf Wasm");
|
129
107
|
const { right: data } = dmmfEither;
|
130
108
|
return Promise.resolve(data);
|
131
109
|
}
|
132
|
-
const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "
|
133
|
-
debugErrorType(e);
|
134
|
-
return new GetDmmfError({
|
135
|
-
_tag: "unparsed",
|
136
|
-
message: `${e.error.message}
|
137
|
-
Datamodel path: "${e.datamodelPath}"`,
|
138
|
-
reason: e.reason
|
139
|
-
});
|
140
|
-
}).with({ type: "wasm-error" }, (e) => {
|
110
|
+
const error = (0, import_chunk_XKZ6CBLA.z)(dmmfEither.left).with({ type: "wasm-error" }, (e) => {
|
141
111
|
debugErrorType(e);
|
142
|
-
if ((0,
|
143
|
-
const { message, stack } = (0,
|
144
|
-
const panic = new
|
112
|
+
if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
|
113
|
+
const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
|
114
|
+
const panic = new import_chunk_LMVSIVKQ.RustPanic(
|
145
115
|
/* message */
|
146
116
|
message,
|
147
117
|
/* rustStack */
|
148
118
|
stack,
|
149
119
|
/* request */
|
150
120
|
"@prisma/prisma-schema-wasm get_dmmf",
|
151
|
-
"FMT_CLI"
|
152
|
-
/*
|
153
|
-
options.prismaPath,
|
154
|
-
/* schema */
|
155
|
-
(0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
|
121
|
+
"FMT_CLI"
|
122
|
+
/* FMT_CLI */
|
156
123
|
);
|
157
124
|
return panic;
|
158
125
|
}
|
159
126
|
const errorOutput = e.error.message;
|
160
|
-
return new GetDmmfError((0,
|
127
|
+
return new GetDmmfError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
161
128
|
}).with({ type: "parse-json" }, (e) => {
|
162
129
|
debugErrorType(e);
|
163
130
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
@@ -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_RR55FNCU_exports = {};
|
30
|
+
__export(chunk_RR55FNCU_exports, {
|
31
31
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
32
32
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
|
33
33
|
wasm_exports: () => wasm_exports
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
37
|
-
var
|
38
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_RR55FNCU_exports);
|
36
|
+
var import_chunk_3MYWFV37 = require("./chunk-3MYWFV37.js");
|
37
|
+
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
38
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
39
39
|
var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
|
40
40
|
var wasm_exports = {};
|
41
|
-
(0,
|
41
|
+
(0, import_chunk_4VNS5WPM.__export)(wasm_exports, {
|
42
42
|
prismaSchemaWasm: () => import_prisma_schema_wasm.default,
|
43
43
|
prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
|
44
44
|
});
|
45
|
-
var { dependencies } = (0,
|
45
|
+
var { dependencies } = (0, import_chunk_3MYWFV37.require_package)();
|
46
46
|
var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
|
47
|
-
globalThis.PRISMA_WASM_PANIC_REGISTRY = new
|
47
|
+
globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
|
@@ -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_TQFONRJP_exports = {};
|
30
|
+
__export(chunk_TQFONRJP_exports, {
|
31
31
|
createDirIfNotExists: () => createDirIfNotExists,
|
32
32
|
fs_utils_exports: () => fs_utils_exports,
|
33
33
|
getFilesInDir: () => getFilesInDir,
|
@@ -36,14 +36,14 @@ __export(chunk_Y3OWT3K2_exports, {
|
|
36
36
|
removeEmptyDirs: () => removeEmptyDirs,
|
37
37
|
writeFile: () => writeFile
|
38
38
|
});
|
39
|
-
module.exports = __toCommonJS(
|
39
|
+
module.exports = __toCommonJS(chunk_TQFONRJP_exports);
|
40
40
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
|
42
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
43
43
|
var import_promises = __toESM(require("fs/promises"));
|
44
44
|
var import_path = __toESM(require("path"));
|
45
45
|
var fs_utils_exports = {};
|
46
|
-
(0,
|
46
|
+
(0, import_chunk_4VNS5WPM.__export)(fs_utils_exports, {
|
47
47
|
createDirIfNotExists: () => createDirIfNotExists,
|
48
48
|
getFilesInDir: () => getFilesInDir,
|
49
49
|
getNestedFoldersInDir: () => getNestedFoldersInDir,
|
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
|
|
51
51
|
removeEmptyDirs: () => removeEmptyDirs,
|
52
52
|
writeFile: () => writeFile
|
53
53
|
});
|
54
|
-
var import_globby = (0,
|
54
|
+
var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
|
55
55
|
function createDirIfNotExists(dir) {
|
56
56
|
return import_promises.default.mkdir(dir, { recursive: true });
|
57
57
|
}
|
@@ -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_URCHUFR3_exports = {};
|
20
|
+
__export(chunk_URCHUFR3_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_URCHUFR3_exports);
|
24
|
+
var import_chunk_3MYWFV37 = require("./chunk-3MYWFV37.js");
|
25
|
+
var packageJson = (0, import_chunk_3MYWFV37.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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_URWUAYEL_exports = {};
|
20
|
+
__export(chunk_URWUAYEL_exports, {
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
23
|
+
module.exports = __toCommonJS(chunk_URWUAYEL_exports);
|
24
|
+
var import_chunk_URCHUFR3 = require("./chunk-URCHUFR3.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_URCHUFR3.version]];
|
28
28
|
return `${message}
|
29
29
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
@@ -26,21 +26,21 @@ 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_UTJGRVMG_exports = {};
|
30
|
+
__export(chunk_UTJGRVMG_exports, {
|
31
31
|
exists: () => exists,
|
32
32
|
loadEnv: () => loadEnv,
|
33
33
|
pathsEqual: () => pathsEqual,
|
34
34
|
tryLoadEnvs: () => tryLoadEnvs
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
36
|
+
module.exports = __toCommonJS(chunk_UTJGRVMG_exports);
|
37
37
|
var import_chunk_T2PM5TKT = require("./chunk-T2PM5TKT.js");
|
38
38
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
39
|
-
var
|
39
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
40
40
|
var import_debug = __toESM(require("@prisma/debug"));
|
41
41
|
var import_fs = __toESM(require("fs"));
|
42
42
|
var import_path = __toESM(require("path"));
|
43
|
-
var require_package = (0,
|
43
|
+
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
44
44
|
"../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json"(exports, module2) {
|
45
45
|
module2.exports = {
|
46
46
|
name: "dotenv",
|
@@ -105,13 +105,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
105
105
|
};
|
106
106
|
}
|
107
107
|
});
|
108
|
-
var require_main = (0,
|
108
|
+
var require_main = (0, import_chunk_4VNS5WPM.__commonJS)({
|
109
109
|
"../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js"(exports, module2) {
|
110
110
|
"use strict";
|
111
|
-
var fs2 = (0,
|
112
|
-
var path2 = (0,
|
113
|
-
var os = (0,
|
114
|
-
var crypto = (0,
|
111
|
+
var fs2 = (0, import_chunk_4VNS5WPM.__require)("fs");
|
112
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
113
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
114
|
+
var crypto = (0, import_chunk_4VNS5WPM.__require)("crypto");
|
115
115
|
var packageJson = require_package();
|
116
116
|
var version = packageJson.version;
|
117
117
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
@@ -371,7 +371,7 @@ var require_main = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
371
371
|
module2.exports = DotenvModule;
|
372
372
|
}
|
373
373
|
});
|
374
|
-
var import_dotenv = (0,
|
374
|
+
var import_dotenv = (0, import_chunk_4VNS5WPM.__toESM)(require_main());
|
375
375
|
var debug = (0, import_debug.default)("prisma:tryLoadEnv");
|
376
376
|
function tryLoadEnvs({
|
377
377
|
rootEnvPath,
|
@@ -16,13 +16,13 @@ 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_UZTXEBTM_exports = {};
|
20
|
+
__export(chunk_UZTXEBTM_exports, {
|
21
21
|
require_lib: () => require_lib
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var require_identifier = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_UZTXEBTM_exports);
|
24
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
|
+
var require_identifier = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
26
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
27
27
|
"use strict";
|
28
28
|
Object.defineProperty(exports, "__esModule", {
|
@@ -93,7 +93,7 @@ var require_identifier = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
93
93
|
}
|
94
94
|
}
|
95
95
|
});
|
96
|
-
var require_keyword = (0,
|
96
|
+
var require_keyword = (0, import_chunk_4VNS5WPM.__commonJS)({
|
97
97
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
98
98
|
"use strict";
|
99
99
|
Object.defineProperty(exports, "__esModule", {
|
@@ -129,7 +129,7 @@ var require_keyword = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
129
129
|
}
|
130
130
|
}
|
131
131
|
});
|
132
|
-
var require_lib = (0,
|
132
|
+
var require_lib = (0, import_chunk_4VNS5WPM.__commonJS)({
|
133
133
|
"../../node_modules/.pnpm/@babel+helper-validator-identifier@7.25.9/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
134
134
|
"use strict";
|
135
135
|
Object.defineProperty(exports, "__esModule", {
|
@@ -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_VVPSLVOR_exports = {};
|
30
|
+
__export(chunk_VVPSLVOR_exports, {
|
31
31
|
require_function_bind: () => require_function_bind,
|
32
32
|
resolve: () => resolve,
|
33
33
|
resolvePkg: () => resolvePkg
|
34
34
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
35
|
+
module.exports = __toCommonJS(chunk_VVPSLVOR_exports);
|
36
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
37
37
|
var import_path = __toESM(require("path"));
|
38
|
-
var require_homedir = (0,
|
38
|
+
var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
|
39
39
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/homedir.js"(exports, module2) {
|
40
40
|
"use strict";
|
41
|
-
var os = (0,
|
41
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
42
42
|
module2.exports = os.homedir || function homedir() {
|
43
43
|
var home = process.env.HOME;
|
44
44
|
var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
|
@@ -55,7 +55,7 @@ var require_homedir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
55
55
|
};
|
56
56
|
}
|
57
57
|
});
|
58
|
-
var require_caller = (0,
|
58
|
+
var require_caller = (0, import_chunk_4VNS5WPM.__commonJS)({
|
59
59
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/caller.js"(exports, module2) {
|
60
60
|
"use strict";
|
61
61
|
module2.exports = function() {
|
@@ -69,7 +69,7 @@ var require_caller = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
69
69
|
};
|
70
70
|
}
|
71
71
|
});
|
72
|
-
var require_path_parse = (0,
|
72
|
+
var require_path_parse = (0, import_chunk_4VNS5WPM.__commonJS)({
|
73
73
|
"../../node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js"(exports, module2) {
|
74
74
|
"use strict";
|
75
75
|
var isWindows = process.platform === "win32";
|
@@ -127,10 +127,10 @@ var require_path_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
127
127
|
module2.exports.win32 = win32.parse;
|
128
128
|
}
|
129
129
|
});
|
130
|
-
var require_node_modules_paths = (0,
|
130
|
+
var require_node_modules_paths = (0, import_chunk_4VNS5WPM.__commonJS)({
|
131
131
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/node-modules-paths.js"(exports, module2) {
|
132
132
|
"use strict";
|
133
|
-
var path2 = (0,
|
133
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
134
134
|
var parse = path2.parse || require_path_parse();
|
135
135
|
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
136
136
|
var prefix = "/";
|
@@ -168,7 +168,7 @@ var require_node_modules_paths = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
168
168
|
};
|
169
169
|
}
|
170
170
|
});
|
171
|
-
var require_normalize_options = (0,
|
171
|
+
var require_normalize_options = (0, import_chunk_4VNS5WPM.__commonJS)({
|
172
172
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/normalize-options.js"(exports, module2) {
|
173
173
|
"use strict";
|
174
174
|
module2.exports = function(x, opts) {
|
@@ -176,7 +176,7 @@ var require_normalize_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
176
176
|
};
|
177
177
|
}
|
178
178
|
});
|
179
|
-
var require_implementation = (0,
|
179
|
+
var require_implementation = (0, import_chunk_4VNS5WPM.__commonJS)({
|
180
180
|
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
181
181
|
"use strict";
|
182
182
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
@@ -250,14 +250,14 @@ var require_implementation = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
250
250
|
};
|
251
251
|
}
|
252
252
|
});
|
253
|
-
var require_function_bind = (0,
|
253
|
+
var require_function_bind = (0, import_chunk_4VNS5WPM.__commonJS)({
|
254
254
|
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
255
255
|
"use strict";
|
256
256
|
var implementation = require_implementation();
|
257
257
|
module2.exports = Function.prototype.bind || implementation;
|
258
258
|
}
|
259
259
|
});
|
260
|
-
var require_hasown = (0,
|
260
|
+
var require_hasown = (0, import_chunk_4VNS5WPM.__commonJS)({
|
261
261
|
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
|
262
262
|
"use strict";
|
263
263
|
var call = Function.prototype.call;
|
@@ -266,7 +266,7 @@ var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
266
266
|
module2.exports = bind.call(call, $hasOwn);
|
267
267
|
}
|
268
268
|
});
|
269
|
-
var require_core = (0,
|
269
|
+
var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
270
270
|
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports, module2) {
|
271
271
|
module2.exports = {
|
272
272
|
assert: true,
|
@@ -432,7 +432,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
432
432
|
};
|
433
433
|
}
|
434
434
|
});
|
435
|
-
var require_is_core_module = (0,
|
435
|
+
var require_is_core_module = (0, import_chunk_4VNS5WPM.__commonJS)({
|
436
436
|
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(exports, module2) {
|
437
437
|
"use strict";
|
438
438
|
var hasOwn = require_hasown();
|
@@ -493,12 +493,12 @@ var require_is_core_module = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
493
493
|
};
|
494
494
|
}
|
495
495
|
});
|
496
|
-
var require_async = (0,
|
496
|
+
var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
|
497
497
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/async.js"(exports, module2) {
|
498
498
|
"use strict";
|
499
|
-
var fs = (0,
|
499
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
500
500
|
var getHomedir = require_homedir();
|
501
|
-
var path2 = (0,
|
501
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
502
502
|
var caller = require_caller();
|
503
503
|
var nodeModulesPaths = require_node_modules_paths();
|
504
504
|
var normalizeOptions = require_normalize_options();
|
@@ -787,7 +787,7 @@ var require_async = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
787
787
|
};
|
788
788
|
}
|
789
789
|
});
|
790
|
-
var require_core2 = (0,
|
790
|
+
var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
791
791
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(exports, module2) {
|
792
792
|
module2.exports = {
|
793
793
|
assert: true,
|
@@ -953,7 +953,7 @@ var require_core2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
953
953
|
};
|
954
954
|
}
|
955
955
|
});
|
956
|
-
var require_core3 = (0,
|
956
|
+
var require_core3 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
957
957
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(exports, module2) {
|
958
958
|
"use strict";
|
959
959
|
var isCoreModule = require_is_core_module();
|
@@ -968,7 +968,7 @@ var require_core3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
968
968
|
module2.exports = core;
|
969
969
|
}
|
970
970
|
});
|
971
|
-
var require_is_core = (0,
|
971
|
+
var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
972
972
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(exports, module2) {
|
973
973
|
"use strict";
|
974
974
|
var isCoreModule = require_is_core_module();
|
@@ -977,12 +977,12 @@ var require_is_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
977
977
|
};
|
978
978
|
}
|
979
979
|
});
|
980
|
-
var require_sync = (0,
|
980
|
+
var require_sync = (0, import_chunk_4VNS5WPM.__commonJS)({
|
981
981
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/sync.js"(exports, module2) {
|
982
982
|
"use strict";
|
983
983
|
var isCore = require_is_core_module();
|
984
|
-
var fs = (0,
|
985
|
-
var path2 = (0,
|
984
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
985
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
986
986
|
var getHomedir = require_homedir();
|
987
987
|
var caller = require_caller();
|
988
988
|
var nodeModulesPaths = require_node_modules_paths();
|
@@ -1169,7 +1169,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1169
1169
|
};
|
1170
1170
|
}
|
1171
1171
|
});
|
1172
|
-
var require_resolve = (0,
|
1172
|
+
var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
|
1173
1173
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(exports, module2) {
|
1174
1174
|
"use strict";
|
1175
1175
|
var async = require_async();
|
@@ -1179,7 +1179,7 @@ var require_resolve = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1179
1179
|
module2.exports = async;
|
1180
1180
|
}
|
1181
1181
|
});
|
1182
|
-
var import_resolve = (0,
|
1182
|
+
var import_resolve = (0, import_chunk_4VNS5WPM.__toESM)(require_resolve());
|
1183
1183
|
async function resolve(id, options) {
|
1184
1184
|
const _options = { preserveSymlinks: false, ...options };
|
1185
1185
|
return new Promise((res) => {
|
@@ -26,24 +26,24 @@ 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_WSZXPLJQ_exports = {};
|
30
|
+
__export(chunk_WSZXPLJQ_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_WSZXPLJQ_exports);
|
37
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
38
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
39
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
39
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
41
41
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
42
|
-
var
|
42
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
43
43
|
var import_fs = __toESM(require("fs"));
|
44
|
-
var import_function = (0,
|
44
|
+
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
45
45
|
function unlinkTempDatamodelPath(options, tempDatamodelPath) {
|
46
|
-
return (0,
|
46
|
+
return (0, import_chunk_5DBOS77Y.tryCatch2)(
|
47
47
|
() => {
|
48
48
|
if (!options.datamodelPath && tempDatamodelPath) {
|
49
49
|
return import_fs.default.promises.unlink(tempDatamodelPath);
|
@@ -66,11 +66,11 @@ function createSchemaValidationError(reason) {
|
|
66
66
|
}
|
67
67
|
function parseQueryEngineError({ errorOutput, reason }) {
|
68
68
|
const actualError = (0, import_function.pipe)(
|
69
|
-
(0,
|
69
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
70
70
|
() => JSON.parse(errorOutput),
|
71
71
|
() => ({ _tag: "unparsed", message: errorOutput, reason })
|
72
72
|
),
|
73
|
-
(0,
|
73
|
+
(0, import_chunk_5DBOS77Y.map)((errorOutputAsJSON) => {
|
74
74
|
const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
|
75
75
|
const getConfigErrorInit = (0, import_chunk_XKZ6CBLA.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
|
76
76
|
return {
|
@@ -89,7 +89,7 @@ function parseQueryEngineError({ errorOutput, reason }) {
|
|
89
89
|
});
|
90
90
|
return { _tag: "parsed", message: defaultMessage, ...getConfigErrorInit };
|
91
91
|
}),
|
92
|
-
(0,
|
92
|
+
(0, import_chunk_5DBOS77Y.getOrElseW)(import_function.identity)
|
93
93
|
);
|
94
94
|
return actualError;
|
95
95
|
}
|
@@ -16,16 +16,13 @@ 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_WXRVYSYN_exports = {};
|
20
|
+
__export(chunk_WXRVYSYN_exports, {
|
21
21
|
WasmPanicRegistry: () => WasmPanicRegistry
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
23
|
+
module.exports = __toCommonJS(chunk_WXRVYSYN_exports);
|
25
24
|
var WasmPanicRegistry = class {
|
26
|
-
|
27
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "message", "");
|
28
|
-
}
|
25
|
+
message = "";
|
29
26
|
get() {
|
30
27
|
return `${this.message}`;
|
31
28
|
}
|