@prisma/internals 6.6.0-integration-engines-6-6-0-17-refactor-migrate-to-new-interface-a65ab979bf81a122861f2a68231321419d7fb303.1 → 6.6.0-integration-push-xmzqvqxpztks.1
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-PIPE5DSU.js → chunk-2H6XXXKO.js} +18 -21
- package/dist/chunk-2QTAK7KO.js +101 -0
- package/dist/{chunk-ZYW3HGSH.js → chunk-2ZSTFH6K.js} +49 -17
- package/dist/{chunk-XLGODPZH.js → chunk-3DQANJMY.js} +12 -12
- package/dist/{chunk-KOMGNJLE.js → chunk-3R43ZQD7.js} +9 -8
- 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-TYIHFBAY.js → chunk-6YPRKPWR.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-75BIJ5PX.js} +57 -57
- package/dist/{chunk-DL7YQI4D.js → chunk-76QFLC66.js} +23 -27
- package/dist/{chunk-SQM6DJFL.js → chunk-7JDKTQ7P.js} +22 -26
- package/dist/chunk-AADL5UHK.js +897 -0
- package/dist/{chunk-BGFWFIPR.js → chunk-AZV6HVKA.js} +5 -5
- package/dist/{chunk-VLCHHD5W.js → chunk-BL6JTZ5B.js} +10 -9
- package/dist/{chunk-HRNPS5ND.js → chunk-C73SLFIL.js} +5 -5
- 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-UNUCCAXA.js → chunk-DTPFRZWV.js} +5 -5
- package/dist/{chunk-NJQWZ447.js → chunk-EPXBOIA5.js} +6 -6
- package/dist/{chunk-K463GPQP.js → chunk-ETVM6IV5.js} +30 -34
- package/dist/{chunk-7XNZDY2V.js → chunk-ETYWYJBX.js} +60 -60
- package/dist/{chunk-5SN5JBT2.js → chunk-FXMGS3L5.js} +21 -40
- 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-PJTR7UPQ.js → chunk-IMOWQZSF.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-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-ABGGXGOC.js → chunk-LS2NTQLX.js} +9 -9
- package/dist/{chunk-WCEODSXD.js → chunk-LVUBW3T7.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-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-N4FY6SYP.js → chunk-PUKEXBI4.js} +46 -79
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-PFLLVWZX.js → chunk-R6QH57HZ.js} +5 -5
- package/dist/{chunk-U2VNMXTK.js → chunk-RN2HKPE6.js} +46 -79
- package/dist/{chunk-KKVB4S3E.js → chunk-S2R7ACYL.js} +30 -34
- package/dist/chunk-SZD3E6G4.js +897 -0
- package/dist/{chunk-FAILNIEQ.js → chunk-TAP5I7K3.js} +5 -5
- package/dist/{chunk-PJHAB6NL.js → chunk-TGNGIHD7.js} +5 -5
- package/dist/{chunk-Y3OWT3K2.js → chunk-TQFONRJP.js} +7 -7
- package/dist/{chunk-ARTAC6EG.js → chunk-UPQKNKIW.js} +9 -9
- package/dist/{chunk-3BND5XB4.js → chunk-UTJGRVMG.js} +11 -11
- package/dist/{chunk-XARAHSDW.js → chunk-UZI5CEWB.js} +22 -26
- package/dist/{chunk-CHMJ5V7I.js → chunk-UZTXEBTM.js} +7 -7
- package/dist/{chunk-6TXVGFQA.js → chunk-WSZXPLJQ.js} +11 -11
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-2MWIMEFK.js → chunk-XLTQGAI2.js} +6 -6
- package/dist/{chunk-BGYLXBAN.js → chunk-XNFIABGN.js} +11 -15
- 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 +74 -77
- 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 -23
- package/dist/cli/getSchema.js +78 -81
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.d.ts +1 -2
- package/dist/cli/hashes.js +74 -77
- 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 +73 -76
- 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 +84 -87
- 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 +14 -10
- package/dist/get-generators/getGenerators.js +76 -79
- 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 +140 -143
- 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 +1 -1
- 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 +73 -76
- 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 +73 -76
- 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 +12 -11
- package/dist/chunk-77IC3DNO.js +0 -35
- package/dist/chunk-EUTJYQDW.js +0 -46
- package/dist/chunk-MGZOEY6N.js +0 -28
- package/dist/chunk-PCBIQV5K.js +0 -15631
- package/dist/chunk-RBPRJFZN.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
@@ -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_TAP5I7K3_exports = {};
|
20
|
+
__export(chunk_TAP5I7K3_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_TAP5I7K3_exports);
|
24
|
+
var import_chunk_BL6JTZ5B = require("./chunk-BL6JTZ5B.js");
|
25
|
+
var packageJson = (0, import_chunk_BL6JTZ5B.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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_TGNGIHD7_exports = {};
|
20
|
+
__export(chunk_TGNGIHD7_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_TGNGIHD7_exports);
|
24
|
+
var import_chunk_3R43ZQD7 = require("./chunk-3R43ZQD7.js");
|
25
|
+
var packageJson = (0, import_chunk_3R43ZQD7.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -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
|
}
|
@@ -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_UPQKNKIW_exports = {};
|
30
|
+
__export(chunk_UPQKNKIW_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_UPQKNKIW_exports);
|
36
|
+
var import_chunk_3R43ZQD7 = require("./chunk-3R43ZQD7.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_3R43ZQD7.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,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,
|
@@ -26,25 +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_UZI5CEWB_exports = {};
|
30
|
+
__export(chunk_UZI5CEWB_exports, {
|
31
31
|
MergeSchemasError: () => MergeSchemasError,
|
32
32
|
mergeSchemas: () => mergeSchemas
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var
|
36
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_UZI5CEWB_exports);
|
35
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
39
|
-
var
|
38
|
+
var import_chunk_6YPRKPWR = require("./chunk-6YPRKPWR.js");
|
39
|
+
var import_chunk_LS2NTQLX = require("./chunk-LS2NTQLX.js");
|
40
|
+
var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
|
40
41
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
42
|
-
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
43
|
-
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
42
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
44
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
45
|
-
var
|
44
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
46
45
|
var import_debug = __toESM(require("@prisma/debug"));
|
47
|
-
var import_function = (0,
|
46
|
+
var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
|
48
47
|
var debug = (0, import_debug.default)("prisma:mergeSchemas");
|
49
48
|
var MergeSchemasError = class extends Error {
|
50
49
|
constructor(params) {
|
@@ -60,20 +59,20 @@ ${detailsHeader} ${message}`;
|
|
60
59
|
}).exhaustive();
|
61
60
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
61
|
[Context: mergeSchemas]`;
|
63
|
-
super((0,
|
62
|
+
super((0, import_chunk_6YPRKPWR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
63
|
this.name = "MergeSchemasError";
|
65
64
|
}
|
66
65
|
};
|
67
66
|
function mergeSchemas(options) {
|
68
|
-
const debugErrorType = (0,
|
67
|
+
const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "mergeSchemasWasm");
|
69
68
|
debug(`Using mergeSchemas Wasm`);
|
70
69
|
const mergeSchemasEither = (0, import_function.pipe)(
|
71
|
-
(0,
|
70
|
+
(0, import_chunk_5DBOS77Y.tryCatch)(
|
72
71
|
() => {
|
73
72
|
const params = JSON.stringify({
|
74
73
|
schema: options.schemas
|
75
74
|
});
|
76
|
-
return
|
75
|
+
return import_chunk_LS2NTQLX.prismaSchemaWasm.merge_schemas(params);
|
77
76
|
},
|
78
77
|
(e) => ({
|
79
78
|
type: "wasm-error",
|
@@ -82,33 +81,30 @@ function mergeSchemas(options) {
|
|
82
81
|
})
|
83
82
|
)
|
84
83
|
);
|
85
|
-
if ((0,
|
84
|
+
if ((0, import_chunk_5DBOS77Y.isRight)(mergeSchemasEither)) {
|
86
85
|
return mergeSchemasEither.right;
|
87
86
|
}
|
88
87
|
const error = (0, import_chunk_XKZ6CBLA.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
|
89
88
|
debugErrorType(e);
|
90
89
|
console.error("");
|
91
|
-
if ((0,
|
92
|
-
const { message, stack } = (0,
|
90
|
+
if ((0, import_chunk_LMVSIVKQ.isWasmPanic)(e.error)) {
|
91
|
+
const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e.error);
|
93
92
|
debug(`Error merging schemas: ${message}`);
|
94
93
|
debug(stack);
|
95
|
-
const panic = new
|
94
|
+
const panic = new import_chunk_LMVSIVKQ.RustPanic(
|
96
95
|
/* message */
|
97
96
|
message,
|
98
97
|
/* rustStack */
|
99
98
|
stack,
|
100
99
|
/* request */
|
101
100
|
"@prisma/prisma-schema-wasm merge_schemas",
|
102
|
-
"FMT_CLI"
|
103
|
-
/*
|
104
|
-
(0, import_chunk_YRBRUREX.debugMultipleSchemaPaths)(options.schemas),
|
105
|
-
/* schema */
|
106
|
-
options.schemas
|
101
|
+
"FMT_CLI"
|
102
|
+
/* FMT_CLI */
|
107
103
|
);
|
108
104
|
return panic;
|
109
105
|
}
|
110
106
|
const errorOutput = e.error.message;
|
111
|
-
return new MergeSchemasError((0,
|
107
|
+
return new MergeSchemasError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
112
108
|
}).exhaustive();
|
113
109
|
throw error;
|
114
110
|
}
|
@@ -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,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
|
}
|
@@ -16,14 +16,14 @@ 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_XLTQGAI2_exports = {};
|
20
|
+
__export(chunk_XLTQGAI2_exports, {
|
21
21
|
missingGeneratorMessage: () => missingGeneratorMessage,
|
22
22
|
missingModelMessage: () => missingModelMessage,
|
23
23
|
missingModelMessageMongoDB: () => missingModelMessageMongoDB
|
24
24
|
});
|
25
|
-
module.exports = __toCommonJS(
|
26
|
-
var
|
25
|
+
module.exports = __toCommonJS(chunk_XLTQGAI2_exports);
|
26
|
+
var import_chunk_HAGJ64PM = require("./chunk-HAGJ64PM.js");
|
27
27
|
var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
|
28
28
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
29
29
|
var missingGeneratorMessage = `
|
@@ -52,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
52
52
|
)}
|
53
53
|
|
54
54
|
More information in our documentation:
|
55
|
-
${(0,
|
55
|
+
${(0, import_chunk_HAGJ64PM.link)("https://pris.ly/d/prisma-schema")}
|
56
56
|
`;
|
57
57
|
var missingModelMessageMongoDB = `
|
58
58
|
You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
|
@@ -69,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
|
|
69
69
|
)}
|
70
70
|
|
71
71
|
More information in our documentation:
|
72
|
-
${(0,
|
72
|
+
${(0, import_chunk_HAGJ64PM.link)("https://pris.ly/d/prisma-schema")}
|
73
73
|
`;
|
@@ -16,41 +16,37 @@ 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_XNFIABGN_exports = {};
|
20
|
+
__export(chunk_XNFIABGN_exports, {
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
24
24
|
lintSchema: () => lintSchema,
|
25
25
|
warningToString: () => warningToString
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var
|
29
|
-
var
|
30
|
-
var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
|
27
|
+
module.exports = __toCommonJS(chunk_XNFIABGN_exports);
|
28
|
+
var import_chunk_UPQKNKIW = require("./chunk-UPQKNKIW.js");
|
29
|
+
var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
31
30
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
31
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
32
|
+
const lintResult = import_chunk_UPQKNKIW.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
33
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
34
|
return lintDiagnostics;
|
36
35
|
}
|
37
|
-
function handleLintPanic(tryCb
|
36
|
+
function handleLintPanic(tryCb) {
|
38
37
|
try {
|
39
38
|
return tryCb();
|
40
39
|
} catch (e) {
|
41
|
-
const { message, stack } = (0,
|
42
|
-
const panic = new
|
40
|
+
const { message, stack } = (0, import_chunk_LMVSIVKQ.getWasmError)(e);
|
41
|
+
const panic = new import_chunk_LMVSIVKQ.RustPanic(
|
43
42
|
/* message */
|
44
43
|
message,
|
45
44
|
/* rustStack */
|
46
45
|
stack,
|
47
46
|
/* request */
|
48
47
|
"@prisma/prisma-schema-wasm lint",
|
49
|
-
"FMT_CLI"
|
50
|
-
/*
|
51
|
-
(0, import_chunk_YRBRUREX.debugMultipleSchemaPaths)(schemas),
|
52
|
-
/* schema */
|
53
|
-
schemas
|
48
|
+
"FMT_CLI"
|
49
|
+
/* FMT_CLI */
|
54
50
|
);
|
55
51
|
throw panic;
|
56
52
|
}
|