@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
@@ -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_4HZAZ4ZG_exports = {};
|
30
|
+
__export(chunk_4HZAZ4ZG_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_4HZAZ4ZG_exports);
|
35
|
+
var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
|
36
|
+
var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
|
37
|
+
var import_chunk_ZUFTPXBD = require("./chunk-ZUFTPXBD.js");
|
38
|
+
var import_chunk_27MPGE4M = require("./chunk-27MPGE4M.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_ZUFTPXBD.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_27MPGE4M.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_27MPGE4M.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_BWBRC7XS.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_BWBRC7XS.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 });
|
@@ -16,41 +16,26 @@ 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_4VNS5WPM_exports = {};
|
20
|
+
__export(chunk_4VNS5WPM_exports, {
|
21
21
|
__commonJS: () => __commonJS,
|
22
|
-
__esm: () => __esm,
|
23
22
|
__export: () => __export2,
|
24
|
-
__privateAdd: () => __privateAdd,
|
25
|
-
__privateGet: () => __privateGet,
|
26
|
-
__privateMethod: () => __privateMethod,
|
27
|
-
__privateSet: () => __privateSet,
|
28
|
-
__privateWrapper: () => __privateWrapper,
|
29
|
-
__publicField: () => __publicField,
|
30
23
|
__require: () => __require,
|
31
|
-
__toCommonJS: () => __toCommonJS2,
|
32
24
|
__toESM: () => __toESM
|
33
25
|
});
|
34
|
-
module.exports = __toCommonJS(
|
26
|
+
module.exports = __toCommonJS(chunk_4VNS5WPM_exports);
|
35
27
|
var __create = Object.create;
|
36
28
|
var __defProp2 = Object.defineProperty;
|
37
29
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
38
30
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
39
31
|
var __getProtoOf = Object.getPrototypeOf;
|
40
32
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
41
|
-
var __typeError = (msg) => {
|
42
|
-
throw TypeError(msg);
|
43
|
-
};
|
44
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
45
33
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
46
34
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
47
35
|
}) : x)(function(x) {
|
48
36
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
49
37
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
50
38
|
});
|
51
|
-
var __esm = (fn, res) => function __init() {
|
52
|
-
return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
|
53
|
-
};
|
54
39
|
var __commonJS = (cb, mod) => function __require2() {
|
55
40
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
56
41
|
};
|
@@ -74,18 +59,3 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
74
59
|
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
75
60
|
mod
|
76
61
|
));
|
77
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
78
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
79
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
80
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
81
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
82
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
83
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
84
|
-
var __privateWrapper = (obj, member, setter, getter) => ({
|
85
|
-
set _(value) {
|
86
|
-
__privateSet(obj, member, value, setter);
|
87
|
-
},
|
88
|
-
get _() {
|
89
|
-
return __privateGet(obj, member, getter);
|
90
|
-
}
|
91
|
-
});
|
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_5AI4FIZ3_exports = {};
|
30
|
+
__export(chunk_5AI4FIZ3_exports, {
|
31
31
|
ErrorKind: () => ErrorKind,
|
32
32
|
createErrorReport: () => createErrorReport,
|
33
33
|
makeErrorReportCompleted: () => makeErrorReportCompleted,
|
34
34
|
uploadZip: () => uploadZip
|
35
35
|
});
|
36
|
-
module.exports = __toCommonJS(
|
37
|
-
var
|
36
|
+
module.exports = __toCommonJS(chunk_5AI4FIZ3_exports);
|
37
|
+
var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
|
38
38
|
var import_fetch_engine = require("@prisma/fetch-engine");
|
39
39
|
var import_node_http = __toESM(require("node:http"));
|
40
40
|
var import_node_https = __toESM(require("node:https"));
|
@@ -151,8 +151,8 @@ var Body = class {
|
|
151
151
|
} else if (ArrayBuffer.isView(body)) {
|
152
152
|
body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
153
153
|
} else if (body instanceof import_node_stream2.default) {
|
154
|
-
} else if (body instanceof
|
155
|
-
body = (0,
|
154
|
+
} else if (body instanceof import_chunk_NVNI2SRU.FormData) {
|
155
|
+
body = (0, import_chunk_NVNI2SRU.formDataToBlob)(body);
|
156
156
|
boundary = body.type.split("=")[1];
|
157
157
|
} else {
|
158
158
|
body = import_node_buffer2.Buffer.from(String(body));
|
@@ -196,14 +196,14 @@ var Body = class {
|
|
196
196
|
async formData() {
|
197
197
|
const ct = this.headers.get("content-type");
|
198
198
|
if (ct.startsWith("application/x-www-form-urlencoded")) {
|
199
|
-
const formData = new
|
199
|
+
const formData = new import_chunk_NVNI2SRU.FormData();
|
200
200
|
const parameters = new URLSearchParams(await this.text());
|
201
201
|
for (const [name, value] of parameters) {
|
202
202
|
formData.append(name, value);
|
203
203
|
}
|
204
204
|
return formData;
|
205
205
|
}
|
206
|
-
const { toFormData } = await import("./multipart-parser-
|
206
|
+
const { toFormData } = await import("./multipart-parser-3AFJFP6K.js");
|
207
207
|
return toFormData(this.body, ct);
|
208
208
|
}
|
209
209
|
/**
|
@@ -214,7 +214,7 @@ var Body = class {
|
|
214
214
|
async blob() {
|
215
215
|
const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
|
216
216
|
const buf = await this.arrayBuffer();
|
217
|
-
return new
|
217
|
+
return new import_chunk_NVNI2SRU.fetch_blob_default([buf], {
|
218
218
|
type: ct
|
219
219
|
});
|
220
220
|
}
|
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
|
|
342
342
|
if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
343
343
|
return null;
|
344
344
|
}
|
345
|
-
if (body instanceof
|
345
|
+
if (body instanceof import_chunk_NVNI2SRU.FormData) {
|
346
346
|
return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
|
347
347
|
}
|
348
348
|
if (body && typeof body.getBoundary === "function") {
|
@@ -16,13 +16,12 @@ 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_5DBOS77Y_exports = {};
|
20
|
+
__export(chunk_5DBOS77Y_exports, {
|
21
21
|
as: () => as,
|
22
22
|
asUnit: () => asUnit,
|
23
23
|
chain: () => chain,
|
24
24
|
chainW: () => chainW,
|
25
|
-
chainW2: () => chainW2,
|
26
25
|
dual: () => dual,
|
27
26
|
fromEither: () => fromEither,
|
28
27
|
getOrElseW: () => getOrElseW,
|
@@ -41,7 +40,7 @@ __export(chunk_7MD6344A_exports, {
|
|
41
40
|
tryCatch: () => tryCatch,
|
42
41
|
tryCatch2: () => tryCatch2
|
43
42
|
});
|
44
|
-
module.exports = __toCommonJS(
|
43
|
+
module.exports = __toCommonJS(chunk_5DBOS77Y_exports);
|
45
44
|
var __spreadArray = function(to, from, pack) {
|
46
45
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
47
46
|
if (ar || !(i in from)) {
|
@@ -608,4 +607,3 @@ var _FromIO2 = {
|
|
608
607
|
fromIO: FromIO2.fromIO
|
609
608
|
};
|
610
609
|
var chain = flatMap4;
|
611
|
-
var chainW2 = flatMap4;
|
@@ -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_5VQNKCKW_exports = {};
|
20
|
+
__export(chunk_5VQNKCKW_exports, {
|
21
21
|
require_temp_dir: () => require_temp_dir
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var require_temp_dir = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_5VQNKCKW_exports);
|
24
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
|
+
var require_temp_dir = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
26
|
"../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(exports, module2) {
|
27
27
|
"use strict";
|
28
|
-
var fs = (0,
|
29
|
-
var os = (0,
|
28
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
29
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
30
30
|
var tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__");
|
31
31
|
if (!global[tempDirectorySymbol]) {
|
32
32
|
Object.defineProperty(global, tempDirectorySymbol, {
|
@@ -26,19 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
31
|
-
|
32
|
-
resolve: () => resolve,
|
29
|
+
var chunk_67I7CEQJ_exports = {};
|
30
|
+
__export(chunk_67I7CEQJ_exports, {
|
31
|
+
require_is_core_module: () => require_is_core_module,
|
33
32
|
resolvePkg: () => resolvePkg
|
34
33
|
});
|
35
|
-
module.exports = __toCommonJS(
|
36
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_67I7CEQJ_exports);
|
35
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
37
36
|
var import_path = __toESM(require("path"));
|
38
|
-
var require_homedir = (0,
|
37
|
+
var require_homedir = (0, import_chunk_4VNS5WPM.__commonJS)({
|
39
38
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/homedir.js"(exports, module2) {
|
40
39
|
"use strict";
|
41
|
-
var os = (0,
|
40
|
+
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
42
41
|
module2.exports = os.homedir || function homedir() {
|
43
42
|
var home = process.env.HOME;
|
44
43
|
var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
|
@@ -55,7 +54,7 @@ var require_homedir = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
55
54
|
};
|
56
55
|
}
|
57
56
|
});
|
58
|
-
var require_caller = (0,
|
57
|
+
var require_caller = (0, import_chunk_4VNS5WPM.__commonJS)({
|
59
58
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/caller.js"(exports, module2) {
|
60
59
|
"use strict";
|
61
60
|
module2.exports = function() {
|
@@ -69,7 +68,7 @@ var require_caller = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
69
68
|
};
|
70
69
|
}
|
71
70
|
});
|
72
|
-
var require_path_parse = (0,
|
71
|
+
var require_path_parse = (0, import_chunk_4VNS5WPM.__commonJS)({
|
73
72
|
"../../node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js"(exports, module2) {
|
74
73
|
"use strict";
|
75
74
|
var isWindows = process.platform === "win32";
|
@@ -127,10 +126,10 @@ var require_path_parse = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
127
126
|
module2.exports.win32 = win32.parse;
|
128
127
|
}
|
129
128
|
});
|
130
|
-
var require_node_modules_paths = (0,
|
129
|
+
var require_node_modules_paths = (0, import_chunk_4VNS5WPM.__commonJS)({
|
131
130
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/node-modules-paths.js"(exports, module2) {
|
132
131
|
"use strict";
|
133
|
-
var path2 = (0,
|
132
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
134
133
|
var parse = path2.parse || require_path_parse();
|
135
134
|
var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
|
136
135
|
var prefix = "/";
|
@@ -168,7 +167,7 @@ var require_node_modules_paths = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
168
167
|
};
|
169
168
|
}
|
170
169
|
});
|
171
|
-
var require_normalize_options = (0,
|
170
|
+
var require_normalize_options = (0, import_chunk_4VNS5WPM.__commonJS)({
|
172
171
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/normalize-options.js"(exports, module2) {
|
173
172
|
"use strict";
|
174
173
|
module2.exports = function(x, opts) {
|
@@ -176,7 +175,7 @@ var require_normalize_options = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
176
175
|
};
|
177
176
|
}
|
178
177
|
});
|
179
|
-
var require_implementation = (0,
|
178
|
+
var require_implementation = (0, import_chunk_4VNS5WPM.__commonJS)({
|
180
179
|
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module2) {
|
181
180
|
"use strict";
|
182
181
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
@@ -250,14 +249,14 @@ var require_implementation = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
250
249
|
};
|
251
250
|
}
|
252
251
|
});
|
253
|
-
var require_function_bind = (0,
|
252
|
+
var require_function_bind = (0, import_chunk_4VNS5WPM.__commonJS)({
|
254
253
|
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module2) {
|
255
254
|
"use strict";
|
256
255
|
var implementation = require_implementation();
|
257
256
|
module2.exports = Function.prototype.bind || implementation;
|
258
257
|
}
|
259
258
|
});
|
260
|
-
var require_hasown = (0,
|
259
|
+
var require_hasown = (0, import_chunk_4VNS5WPM.__commonJS)({
|
261
260
|
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module2) {
|
262
261
|
"use strict";
|
263
262
|
var call = Function.prototype.call;
|
@@ -266,7 +265,7 @@ var require_hasown = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
266
265
|
module2.exports = bind.call(call, $hasOwn);
|
267
266
|
}
|
268
267
|
});
|
269
|
-
var require_core = (0,
|
268
|
+
var require_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
270
269
|
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json"(exports, module2) {
|
271
270
|
module2.exports = {
|
272
271
|
assert: true,
|
@@ -432,7 +431,7 @@ var require_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
432
431
|
};
|
433
432
|
}
|
434
433
|
});
|
435
|
-
var require_is_core_module = (0,
|
434
|
+
var require_is_core_module = (0, import_chunk_4VNS5WPM.__commonJS)({
|
436
435
|
"../../node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js"(exports, module2) {
|
437
436
|
"use strict";
|
438
437
|
var hasOwn = require_hasown();
|
@@ -493,12 +492,12 @@ var require_is_core_module = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
493
492
|
};
|
494
493
|
}
|
495
494
|
});
|
496
|
-
var require_async = (0,
|
495
|
+
var require_async = (0, import_chunk_4VNS5WPM.__commonJS)({
|
497
496
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/async.js"(exports, module2) {
|
498
497
|
"use strict";
|
499
|
-
var fs = (0,
|
498
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
500
499
|
var getHomedir = require_homedir();
|
501
|
-
var path2 = (0,
|
500
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
502
501
|
var caller = require_caller();
|
503
502
|
var nodeModulesPaths = require_node_modules_paths();
|
504
503
|
var normalizeOptions = require_normalize_options();
|
@@ -787,7 +786,7 @@ var require_async = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
787
786
|
};
|
788
787
|
}
|
789
788
|
});
|
790
|
-
var require_core2 = (0,
|
789
|
+
var require_core2 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
791
790
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.json"(exports, module2) {
|
792
791
|
module2.exports = {
|
793
792
|
assert: true,
|
@@ -953,7 +952,7 @@ var require_core2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
953
952
|
};
|
954
953
|
}
|
955
954
|
});
|
956
|
-
var require_core3 = (0,
|
955
|
+
var require_core3 = (0, import_chunk_4VNS5WPM.__commonJS)({
|
957
956
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/core.js"(exports, module2) {
|
958
957
|
"use strict";
|
959
958
|
var isCoreModule = require_is_core_module();
|
@@ -968,7 +967,7 @@ var require_core3 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
968
967
|
module2.exports = core;
|
969
968
|
}
|
970
969
|
});
|
971
|
-
var require_is_core = (0,
|
970
|
+
var require_is_core = (0, import_chunk_4VNS5WPM.__commonJS)({
|
972
971
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/is-core.js"(exports, module2) {
|
973
972
|
"use strict";
|
974
973
|
var isCoreModule = require_is_core_module();
|
@@ -977,12 +976,12 @@ var require_is_core = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
977
976
|
};
|
978
977
|
}
|
979
978
|
});
|
980
|
-
var require_sync = (0,
|
979
|
+
var require_sync = (0, import_chunk_4VNS5WPM.__commonJS)({
|
981
980
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/lib/sync.js"(exports, module2) {
|
982
981
|
"use strict";
|
983
982
|
var isCore = require_is_core_module();
|
984
|
-
var fs = (0,
|
985
|
-
var path2 = (0,
|
983
|
+
var fs = (0, import_chunk_4VNS5WPM.__require)("fs");
|
984
|
+
var path2 = (0, import_chunk_4VNS5WPM.__require)("path");
|
986
985
|
var getHomedir = require_homedir();
|
987
986
|
var caller = require_caller();
|
988
987
|
var nodeModulesPaths = require_node_modules_paths();
|
@@ -1169,7 +1168,7 @@ var require_sync = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1169
1168
|
};
|
1170
1169
|
}
|
1171
1170
|
});
|
1172
|
-
var require_resolve = (0,
|
1171
|
+
var require_resolve = (0, import_chunk_4VNS5WPM.__commonJS)({
|
1173
1172
|
"../../node_modules/.pnpm/resolve@1.22.10/node_modules/resolve/index.js"(exports, module2) {
|
1174
1173
|
"use strict";
|
1175
1174
|
var async = require_async();
|
@@ -1179,8 +1178,8 @@ var require_resolve = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
1179
1178
|
module2.exports = async;
|
1180
1179
|
}
|
1181
1180
|
});
|
1182
|
-
var import_resolve = (0,
|
1183
|
-
async function
|
1181
|
+
var import_resolve = (0, import_chunk_4VNS5WPM.__toESM)(require_resolve());
|
1182
|
+
async function resolveOrUndefined(id, options) {
|
1184
1183
|
const _options = { preserveSymlinks: false, ...options };
|
1185
1184
|
return new Promise((res) => {
|
1186
1185
|
(0, import_resolve.default)(id, _options, (e, v) => {
|
@@ -1190,6 +1189,6 @@ async function resolve(id, options) {
|
|
1190
1189
|
});
|
1191
1190
|
}
|
1192
1191
|
async function resolvePkg(id, options) {
|
1193
|
-
const resolvedPath = await
|
1192
|
+
const resolvedPath = await resolveOrUndefined(`${id}/package.json`, options);
|
1194
1193
|
return resolvedPath && import_path.default.dirname(resolvedPath);
|
1195
1194
|
}
|
@@ -16,16 +16,16 @@ 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_6TTRTZXU_exports = {};
|
20
|
+
__export(chunk_6TTRTZXU_exports, {
|
21
21
|
loadLibrary: () => loadLibrary
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_6TTRTZXU_exports);
|
24
24
|
var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
|
25
|
-
var
|
25
|
+
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
26
26
|
function loadLibrary(id, platformInfo) {
|
27
27
|
try {
|
28
|
-
return (0,
|
28
|
+
return (0, import_chunk_4VNS5WPM.__require)(id);
|
29
29
|
} catch (e) {
|
30
30
|
const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
|
31
31
|
e,
|