@prisma/internals 6.6.0-dev.7 → 6.6.0-dev.70
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 +23 -5
- package/dist/Generator.js +5 -3
- package/dist/WasmPanicRegistry.js +3 -3
- package/dist/{chunk-VPICIMIC.js → chunk-27MPGE4M.js} +9 -9
- package/dist/{chunk-PIPE5DSU.js → chunk-2H6XXXKO.js} +18 -21
- package/dist/chunk-2QTAK7KO.js +101 -0
- package/dist/{chunk-NSZ7JLAL.js → chunk-2RCOALCG.js} +12 -11
- package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
- package/dist/{chunk-ICXPZGKG.js → chunk-47RBLZOV.js} +46 -79
- package/dist/{chunk-IE7EKT3K.js → chunk-4HZAZ4ZG.js} +46 -79
- 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-TZCE3PWZ.js → chunk-5VQNKCKW.js} +7 -7
- package/dist/{chunk-YXD4CJDK.js → chunk-67I7CEQJ.js} +30 -31
- package/dist/{chunk-I7IEEULS.js → chunk-6TTRTZXU.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
- package/dist/{chunk-BWBRC7XS.js → chunk-7FSQCMAL.js} +9 -9
- package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
- package/dist/{chunk-YEF2M3FP.js → chunk-B53WYCZ5.js} +5 -5
- package/dist/{chunk-ZYW3HGSH.js → chunk-BPDMLM32.js} +49 -17
- 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-Q22BLLK3.js → chunk-D4VZUY3O.js} +6 -6
- package/dist/{chunk-KTBNIQ7N.js → chunk-DKSUHQGA.js} +8 -8
- package/dist/{chunk-EUTJYQDW.js → chunk-DODIJPCS.js} +13 -25
- package/dist/{chunk-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
- package/dist/{chunk-UCHV3Z5R.js → chunk-EGWWYNXT.js} +11 -10
- package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
- package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
- package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
- package/dist/{chunk-JQPAMLKP.js → chunk-GSTADWNA.js} +11 -15
- 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-NNL52KLF.js → chunk-J3NJAD52.js} +23 -27
- package/dist/{chunk-53LS3WUO.js → chunk-JOIIWB3U.js} +116 -116
- package/dist/{chunk-CZL7DCL2.js → chunk-JYMY3OAI.js} +6 -6
- package/dist/{chunk-TATYN3T2.js → chunk-KB5DKCI4.js} +29 -29
- package/dist/{chunk-LKTTJWFT.js → chunk-KDP6C3CB.js} +5 -5
- package/dist/{chunk-WN6T47EZ.js → chunk-KKINDVXS.js} +5 -5
- 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-PTI7XYY6.js → chunk-MIBXRKXS.js} +11 -15
- package/dist/{chunk-C2WD2XUT.js → chunk-MJIP3FY5.js} +968 -1220
- package/dist/{chunk-4E7A3GDU.js → chunk-MM4ARWWY.js} +5 -5
- package/dist/{chunk-ITMPPY57.js → chunk-NODZMPDD.js} +30 -34
- package/dist/{chunk-V2ZF7ETH.js → chunk-NVNI2SRU.js} +66 -68
- package/dist/{chunk-6UAZG22P.js → chunk-O6UNEW7D.js} +23 -27
- package/dist/chunk-O7NOSQHE.js +900 -0
- package/dist/{chunk-JHQHVXIR.js → chunk-OSHZ4P3G.js} +6 -7
- package/dist/{chunk-IPKE37QC.js → chunk-PFYALFCY.js} +6 -5
- package/dist/{chunk-ZHANTJDT.js → chunk-Q3J5KVR5.js} +22 -26
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
- package/dist/{chunk-MVFJNP56.js → chunk-SVIXR7ZZ.js} +5 -5
- package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
- package/dist/{chunk-63J6Y3F6.js → chunk-UFH4R7BJ.js} +22 -26
- package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
- package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
- package/dist/{chunk-5NV5K6XV.js → chunk-W4KRL5NV.js} +30 -34
- package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
- package/dist/chunk-WWIJWCAI.js +900 -0
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
- 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/{chunk-AXTVKRXP.js → chunk-ZUFTPXBD.js} +5 -5
- package/dist/cli/Help.js +1 -1
- package/dist/cli/checkUnsupportedDataProxy.d.ts +12 -17
- package/dist/cli/checkUnsupportedDataProxy.js +75 -78
- package/dist/cli/directoryConfig.d.ts +7 -0
- package/dist/cli/directoryConfig.js +25 -0
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.d.ts +3 -28
- package/dist/cli/getSchema.js +78 -82
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +75 -78
- package/dist/cli/schemaContext.d.ts +59 -0
- package/dist/cli/schemaContext.js +133 -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 +74 -77
- 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 +85 -88
- 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/getGenerators.d.ts +22 -9
- package/dist/get-generators/getGenerators.js +77 -80
- 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 +7 -7
- package/dist/index.js +141 -145
- 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/resolvePkg.d.ts +7 -0
- package/dist/{get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js → resolvePkg.js} +6 -6
- 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 +74 -77
- 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 +74 -77
- 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 -13
- package/dist/chunk-77IC3DNO.js +0 -35
- package/dist/chunk-AOQIUJT4.js +0 -41
- package/dist/chunk-DVI4GWRD.js +0 -15631
- package/dist/chunk-MGZOEY6N.js +0 -28
- package/dist/chunk-MUDGDTP6.js +0 -15631
- package/dist/chunk-S57RMXZW.js +0 -28
- package/dist/chunk-VRT7T6MF.js +0 -4959
- package/dist/chunk-YRBRUREX.js +0 -57
- package/dist/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +0 -135
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +0 -29
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +0 -135
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +0 -26
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.d.ts +0 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +0 -17
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +0 -136
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
package/dist/Generator.d.ts
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
import type { BinaryPaths, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator
|
2
|
-
export declare class Generator {
|
3
|
-
private generatorProcess;
|
1
|
+
import type { BinaryPaths, Generator as IGenerator, GeneratorConfig, GeneratorManifest, GeneratorOptions } from '@prisma/generator';
|
2
|
+
export declare abstract class Generator {
|
4
3
|
manifest: GeneratorManifest | null;
|
5
4
|
config: GeneratorConfig;
|
6
5
|
options?: GeneratorOptions;
|
7
|
-
constructor(
|
6
|
+
constructor(config: GeneratorConfig);
|
8
7
|
init(): Promise<void>;
|
9
|
-
|
8
|
+
protected abstract initImpl(): Promise<void>;
|
9
|
+
protected abstract getManifest(): Promise<GeneratorManifest | null>;
|
10
|
+
abstract stop(): void;
|
10
11
|
generate(): Promise<void>;
|
12
|
+
protected abstract generateImpl(options: GeneratorOptions): Promise<void>;
|
11
13
|
setOptions(options: GeneratorOptions): void;
|
12
14
|
setBinaryPaths(binaryPaths: BinaryPaths): void;
|
13
15
|
/**
|
@@ -22,3 +24,19 @@ export declare class Generator {
|
|
22
24
|
*/
|
23
25
|
getProvider(): string;
|
24
26
|
}
|
27
|
+
export declare class JsonRpcGenerator extends Generator {
|
28
|
+
#private;
|
29
|
+
constructor(executablePath: string, config: GeneratorConfig, isNode?: boolean);
|
30
|
+
protected initImpl(): Promise<void>;
|
31
|
+
protected getManifest(): Promise<GeneratorManifest | null>;
|
32
|
+
protected generateImpl(options: GeneratorOptions): Promise<void>;
|
33
|
+
stop(): void;
|
34
|
+
}
|
35
|
+
export declare class InProcessGenerator extends Generator {
|
36
|
+
#private;
|
37
|
+
constructor(config: GeneratorConfig, generator: IGenerator);
|
38
|
+
protected initImpl(): Promise<void>;
|
39
|
+
protected getManifest(): Promise<GeneratorManifest | null>;
|
40
|
+
protected generateImpl(options: GeneratorOptions): Promise<void>;
|
41
|
+
stop(): void;
|
42
|
+
}
|
package/dist/Generator.js
CHANGED
@@ -18,10 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var Generator_exports = {};
|
20
20
|
__export(Generator_exports, {
|
21
|
-
Generator: () =>
|
21
|
+
Generator: () => import_chunk_BPDMLM32.Generator,
|
22
|
+
InProcessGenerator: () => import_chunk_BPDMLM32.InProcessGenerator,
|
23
|
+
JsonRpcGenerator: () => import_chunk_BPDMLM32.JsonRpcGenerator
|
22
24
|
});
|
23
25
|
module.exports = __toCommonJS(Generator_exports);
|
24
|
-
var
|
26
|
+
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
25
27
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
26
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
27
|
-
var
|
29
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var WasmPanicRegistry_exports = {};
|
20
20
|
__export(WasmPanicRegistry_exports, {
|
21
|
-
WasmPanicRegistry: () =>
|
21
|
+
WasmPanicRegistry: () => import_chunk_WXRVYSYN.WasmPanicRegistry
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(WasmPanicRegistry_exports);
|
24
|
-
var
|
25
|
-
var
|
24
|
+
var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
|
25
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
@@ -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_27MPGE4M_exports = {};
|
30
|
+
__export(chunk_27MPGE4M_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_27MPGE4M_exports);
|
36
|
+
var import_chunk_2RCOALCG = require("./chunk-2RCOALCG.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_2RCOALCG.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,27 +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(
|
31
|
-
|
29
|
+
var chunk_2H6XXXKO_exports = {};
|
30
|
+
__export(chunk_2H6XXXKO_exports, {
|
31
|
+
inferDirectoryConfig: () => inferDirectoryConfig
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
34
|
-
var import_chunk_YXD4CJDK = require("./chunk-YXD4CJDK.js");
|
35
|
-
var import_debug = __toESM(require("@prisma/debug"));
|
36
|
-
var import_fs = __toESM(require("fs"));
|
33
|
+
module.exports = __toCommonJS(chunk_2H6XXXKO_exports);
|
37
34
|
var import_path = __toESM(require("path"));
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
35
|
+
function inferDirectoryConfig(schemaContext, cwd = process.cwd()) {
|
36
|
+
const baseDir = (
|
37
|
+
// All default paths are relative to the `schema.prisma` file that contains the primary datasource.
|
38
|
+
// That schema file should usually be the users "root" aka main schema file.
|
39
|
+
schemaContext?.primaryDatasourceDirectory ?? // If no primary datasource exists we use the schemaRootDir.
|
40
|
+
// `schemaRootDir` is either the directory the user supplied as schemaPath or the directory the single schema file is in.
|
41
|
+
schemaContext?.schemaRootDir ?? // Should also that not be defined because there is no schema yet we fallback to CWD + `/prisma`.
|
42
|
+
import_path.default.join(cwd, "prisma")
|
43
|
+
);
|
44
|
+
return {
|
45
|
+
viewsDirPath: import_path.default.join(baseDir, "views"),
|
46
|
+
typedSqlDirPath: import_path.default.join(baseDir, "sql"),
|
47
|
+
migrationsDirPath: import_path.default.join(baseDir, "migrations")
|
48
|
+
};
|
52
49
|
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __export = (target, all) => {
|
9
|
+
for (var name in all)
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
+
};
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
+
for (let key of __getOwnPropNames(from))
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
+
}
|
18
|
+
return to;
|
19
|
+
};
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
+
mod
|
27
|
+
));
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
+
var chunk_2QTAK7KO_exports = {};
|
30
|
+
__export(chunk_2QTAK7KO_exports, {
|
31
|
+
handlePanic: () => handlePanic
|
32
|
+
});
|
33
|
+
module.exports = __toCommonJS(chunk_2QTAK7KO_exports);
|
34
|
+
var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
|
35
|
+
var import_chunk_FXMGS3L5 = require("./chunk-FXMGS3L5.js");
|
36
|
+
var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
|
37
|
+
var import_chunk_YR5KNFKN = require("./chunk-YR5KNFKN.js");
|
38
|
+
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
39
|
+
var import_prompts = __toESM(require("prompts"));
|
40
|
+
async function handlePanic(args) {
|
41
|
+
if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
|
42
|
+
throw args.error;
|
43
|
+
}
|
44
|
+
await panicDialog(args);
|
45
|
+
}
|
46
|
+
async function panicDialog({
|
47
|
+
error,
|
48
|
+
cliVersion,
|
49
|
+
enginesVersion,
|
50
|
+
command,
|
51
|
+
getDatabaseVersionSafe
|
52
|
+
}) {
|
53
|
+
const errorMessage = error.message.split("\n").slice(0, Math.max(20, process.stdout.rows)).join("\n");
|
54
|
+
console.log(`${(0, import_chunk_PG5FDKSF.red)("Oops, an unexpected error occurred!")}
|
55
|
+
${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
|
56
|
+
|
57
|
+
${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
|
58
|
+
${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
|
59
|
+
${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_HAGJ64PM.link)("https://pris.ly/d/telemetry")}`)}
|
60
|
+
`);
|
61
|
+
const { value: shouldSubmitReport } = await (0, import_prompts.default)({
|
62
|
+
type: "select",
|
63
|
+
name: "value",
|
64
|
+
message: "Submit error report",
|
65
|
+
initial: 0,
|
66
|
+
choices: [
|
67
|
+
{
|
68
|
+
title: "Yes",
|
69
|
+
value: true,
|
70
|
+
description: `Send error report once`
|
71
|
+
},
|
72
|
+
{
|
73
|
+
title: "No",
|
74
|
+
value: false,
|
75
|
+
description: `Don't send error report`
|
76
|
+
}
|
77
|
+
]
|
78
|
+
});
|
79
|
+
if (shouldSubmitReport) {
|
80
|
+
try {
|
81
|
+
console.log("Submitting...");
|
82
|
+
const reportId = await (0, import_chunk_YR5KNFKN.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
|
83
|
+
console.log(`
|
84
|
+
${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
|
85
|
+
console.log(`
|
86
|
+
${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
|
87
|
+
} catch (error2) {
|
88
|
+
const reportFailedMessage = `${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.red)("Oops. We could not send the error report."))}`;
|
89
|
+
console.log(reportFailedMessage);
|
90
|
+
console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
await (0, import_chunk_FXMGS3L5.wouldYouLikeToCreateANewIssue)({
|
94
|
+
prompt: !shouldSubmitReport,
|
95
|
+
error,
|
96
|
+
cliVersion,
|
97
|
+
enginesVersion,
|
98
|
+
command
|
99
|
+
});
|
100
|
+
process.exit(1);
|
101
|
+
}
|
@@ -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_2RCOALCG_exports = {};
|
20
|
+
__export(chunk_2RCOALCG_exports, {
|
21
21
|
require_package: () => require_package
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var require_package = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_2RCOALCG_exports);
|
24
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
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.6.0-dev.
|
29
|
+
version: "6.6.0-dev.70",
|
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",
|
@@ -53,7 +53,6 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
53
53
|
"scripts"
|
54
54
|
],
|
55
55
|
devDependencies: {
|
56
|
-
"@antfu/ni": "0.21.12",
|
57
56
|
"@babel/helper-validator-identifier": "7.25.9",
|
58
57
|
"@opentelemetry/api": "1.9.0",
|
59
58
|
"@swc/core": "1.11.5",
|
@@ -66,8 +65,8 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
66
65
|
"checkpoint-client": "1.1.33",
|
67
66
|
"cli-truncate": "4.0.0",
|
68
67
|
dotenv: "16.4.7",
|
69
|
-
esbuild: "0.
|
70
|
-
"escape-string-regexp": "
|
68
|
+
esbuild: "0.25.1",
|
69
|
+
"escape-string-regexp": "5.0.0",
|
71
70
|
execa: "5.1.1",
|
72
71
|
"fast-glob": "3.3.3",
|
73
72
|
"find-up": "7.0.0",
|
@@ -96,7 +95,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
96
95
|
"strip-indent": "4.0.0",
|
97
96
|
"temp-dir": "2.0.0",
|
98
97
|
tempy: "1.0.1",
|
99
|
-
"terminal-link": "
|
98
|
+
"terminal-link": "3.0.0",
|
100
99
|
tmp: "0.2.3",
|
101
100
|
"ts-node": "10.9.2",
|
102
101
|
"ts-pattern": "5.6.2",
|
@@ -107,11 +106,13 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
107
106
|
dependencies: {
|
108
107
|
"@prisma/config": "workspace:*",
|
109
108
|
"@prisma/debug": "workspace:*",
|
109
|
+
"@prisma/dmmf": "workspace:*",
|
110
110
|
"@prisma/engines": "workspace:*",
|
111
111
|
"@prisma/fetch-engine": "workspace:*",
|
112
|
+
"@prisma/generator": "workspace:*",
|
112
113
|
"@prisma/generator-helper": "workspace:*",
|
113
114
|
"@prisma/get-platform": "workspace:*",
|
114
|
-
"@prisma/prisma-schema-wasm": "6.6.0-
|
115
|
+
"@prisma/prisma-schema-wasm": "6.6.0-33.0eefa92d78f934d97fcd8175aac91cf3ca9ee0fc",
|
115
116
|
"@prisma/schema-files-loader": "workspace:*",
|
116
117
|
arg: "5.0.2",
|
117
118
|
prompts: "2.4.2"
|
@@ -16,30 +16,30 @@ 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_3DQANJMY_exports = {};
|
20
|
+
__export(chunk_3DQANJMY_exports, {
|
21
21
|
getEngineVersion: () => getEngineVersion,
|
22
22
|
safeGetEngineVersion: () => safeGetEngineVersion
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
25
|
-
var
|
26
|
-
var
|
27
|
-
var
|
28
|
-
var
|
29
|
-
var
|
24
|
+
module.exports = __toCommonJS(chunk_3DQANJMY_exports);
|
25
|
+
var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
|
26
|
+
var import_chunk_ETYWYJBX = require("./chunk-ETYWYJBX.js");
|
27
|
+
var import_chunk_HG3YOAAE = require("./chunk-HG3YOAAE.js");
|
28
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
29
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
30
30
|
var import_engines = require("@prisma/engines");
|
31
31
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
32
32
|
var import_get_platform = require("@prisma/get-platform");
|
33
|
-
var import_execa = (0,
|
33
|
+
var import_execa = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ETYWYJBX.require_execa)());
|
34
34
|
async function getEngineVersion(enginePath, binaryName) {
|
35
35
|
if (!binaryName) {
|
36
36
|
binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
|
37
37
|
}
|
38
|
-
enginePath = await (0,
|
38
|
+
enginePath = await (0, import_chunk_HG3YOAAE.resolveBinary)(binaryName, enginePath);
|
39
39
|
const platformInfo = await (0, import_get_platform.getPlatformInfo)();
|
40
40
|
if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
|
41
41
|
(0, import_get_platform.assertNodeAPISupported)();
|
42
|
-
const QE = (0,
|
42
|
+
const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
|
43
43
|
return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
|
44
44
|
} else {
|
45
45
|
const { stdout } = await (0, import_execa.default)(enginePath, ["--version"]);
|
@@ -47,7 +47,7 @@ async function getEngineVersion(enginePath, binaryName) {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
function safeGetEngineVersion(enginePath, binaryName) {
|
50
|
-
return (0,
|
50
|
+
return (0, import_chunk_5DBOS77Y.tryCatch2)(
|
51
51
|
() => getEngineVersion(enginePath, binaryName),
|
52
52
|
(error) => error
|
53
53
|
);
|
@@ -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_47RBLZOV_exports = {};
|
30
|
+
__export(chunk_47RBLZOV_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_47RBLZOV_exports);
|
35
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
+
var import_chunk_B53WYCZ5 = require("./chunk-B53WYCZ5.js");
|
38
|
+
var import_chunk_7FSQCMAL = require("./chunk-7FSQCMAL.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_B53WYCZ5.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_7FSQCMAL.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_7FSQCMAL.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_VPICIMIC.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_VPICIMIC.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 });
|