@prisma/internals 6.6.0-dev.24 → 6.6.0-dev.25
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.js +3 -3
- package/dist/WasmPanicRegistry.js +3 -3
- package/dist/{chunk-YXD4CJDK.js → chunk-23MPYLL6.js} +27 -27
- package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
- package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
- package/dist/{chunk-5SN5JBT2.js → chunk-2T4NJDHK.js} +22 -22
- package/dist/{chunk-7XNZDY2V.js → chunk-2WR3PY2L.js} +60 -60
- package/dist/{chunk-6TXVGFQA.js → chunk-4URMCTG6.js} +6 -6
- package/dist/{chunk-BVCREFE3.js → chunk-5UTAMENR.js} +9 -9
- package/dist/{chunk-OZ67AQ5E.js → chunk-64UA4UOO.js} +8 -8
- package/dist/{chunk-TZCE3PWZ.js → chunk-6TVEFPKE.js} +7 -7
- package/dist/{chunk-MGZOEY6N.js → chunk-72UZXEBG.js} +6 -6
- package/dist/{chunk-VRT7T6MF.js → chunk-BWGDP6B5.js} +94 -105
- package/dist/{chunk-7YOCMGWK.js → chunk-BXF4VTJQ.js} +5 -5
- package/dist/{chunk-ATFQZVBS.js → chunk-CCQRDM7X.js} +10 -11
- package/dist/{chunk-HFN2WZUJ.js → chunk-D6H2JDDL.js} +8 -8
- package/dist/{chunk-4PGRSJWB.js → chunk-DG6E4UCC.js} +18 -18
- package/dist/{chunk-PIPE5DSU.js → chunk-DGZO4GAJ.js} +6 -6
- package/dist/{chunk-ZYW3HGSH.js → chunk-DYVL6P7F.js} +7 -8
- package/dist/{chunk-77BIZNY2.js → chunk-EHJNNRXK.js} +18 -18
- package/dist/{chunk-NJQWZ447.js → chunk-EIERU2IM.js} +6 -6
- package/dist/{chunk-KTBNIQ7N.js → chunk-EORSBI5P.js} +8 -8
- package/dist/{chunk-77IC3DNO.js → chunk-ETNCBIDF.js} +8 -8
- package/dist/{chunk-CZL7DCL2.js → chunk-EWKNNPH2.js} +6 -6
- package/dist/{chunk-SHJNE6T7.js → chunk-F46BPOEO.js} +7 -7
- package/dist/{chunk-M7EVD7PF.js → chunk-FRH7ZI7P.js} +19 -19
- package/dist/{chunk-S57RMXZW.js → chunk-GHHABGYW.js} +5 -5
- package/dist/{chunk-JXWKKKDF.js → chunk-GQACUSUF.js} +319 -319
- package/dist/{chunk-CHMJ5V7I.js → chunk-H5XZKD22.js} +7 -7
- package/dist/{chunk-ONHKZPSV.js → chunk-IKQFIRRX.js} +6 -6
- package/dist/{chunk-AX46XUDV.js → chunk-IMI6TYQ4.js} +18 -18
- package/dist/{chunk-5Q4NYGQV.js → chunk-JFROJGHQ.js} +5 -5
- package/dist/{chunk-4E7A3GDU.js → chunk-KR25OQ6F.js} +5 -5
- package/dist/{chunk-XLGODPZH.js → chunk-KTB2HCCO.js} +10 -10
- package/dist/{chunk-C2WD2XUT.js → chunk-KYMYLH7F.js} +971 -988
- package/dist/{chunk-ZVRFFLZI.js → chunk-LE225BZ5.js} +5 -5
- package/dist/{chunk-I7IEEULS.js → chunk-LSYWDURQ.js} +5 -5
- package/dist/{chunk-AZNLB67U.js → chunk-MBB2KJWX.js} +5 -5
- package/dist/{chunk-3VBZ5DIO.js → chunk-MC6GX7HZ.js} +17 -17
- package/dist/{chunk-TATYN3T2.js → chunk-MM4PIVNT.js} +10 -10
- package/dist/{chunk-KQOJB3ZW.js → chunk-NLYH6XB4.js} +10 -10
- package/dist/{chunk-QKRZQKZ4.js → chunk-NM6AESCR.js} +5 -5
- package/dist/{chunk-5RV3EMX6.js → chunk-ORR3O5RU.js} +57 -57
- package/dist/{chunk-ZSBSOL5F.js → chunk-PG5DWXQ5.js} +319 -319
- package/dist/{chunk-Q22BLLK3.js → chunk-PORKIX5G.js} +6 -6
- package/dist/{chunk-ADLIKZEN.js → chunk-PS4DTKFB.js} +17 -17
- package/dist/{chunk-3LJ3PARU.js → chunk-QY3IYHB3.js} +19 -19
- package/dist/{chunk-FIFK6NVL.js → chunk-R2BUFXGK.js} +9 -9
- package/dist/{chunk-GXDYIY4M.js → chunk-RAYPCPVU.js} +56 -56
- package/dist/{chunk-Z5SL4ZNA.js → chunk-SU4VTBR6.js} +18 -18
- package/dist/{chunk-UNUCCAXA.js → chunk-SYCT2PLK.js} +5 -5
- package/dist/{chunk-Y3OWT3K2.js → chunk-T7EWI7A3.js} +7 -7
- package/dist/{chunk-ZKAW5JSN.js → chunk-UETN3RLH.js} +5 -5
- package/dist/{chunk-BGFWFIPR.js → chunk-UJ725NXW.js} +5 -5
- package/dist/{chunk-53LS3WUO.js → chunk-V37JTUKZ.js} +116 -116
- package/dist/{chunk-V2ZF7ETH.js → chunk-VLGS4WJI.js} +66 -68
- package/dist/{chunk-XLF2J4OH.js → chunk-VV44YB7T.js} +6 -6
- package/dist/{chunk-6HZ4Q3EX.js → chunk-VYDFN4XN.js} +5 -5
- package/dist/{chunk-5MCWLJSR.js → chunk-WEATFJ6G.js} +10 -10
- package/dist/{chunk-BPZFDGKN.js → chunk-WXRVYSYN.js} +4 -7
- package/dist/{chunk-L6GBFCXG.js → chunk-XXDGZSJ4.js} +12 -12
- package/dist/{chunk-3ERIN7PH.js → chunk-YBYBY7QI.js} +8 -8
- package/dist/{chunk-2MWIMEFK.js → chunk-Z4ALPGAK.js} +6 -6
- package/dist/{chunk-3BND5XB4.js → chunk-ZCVVZ6U6.js} +11 -11
- package/dist/{chunk-PFLLVWZX.js → chunk-ZGAIRZ32.js} +5 -5
- package/dist/cli/Help.js +1 -1
- package/dist/cli/checkUnsupportedDataProxy.js +55 -55
- package/dist/cli/getGeneratorSuccessMessage.js +1 -1
- package/dist/cli/getSchema.js +59 -59
- package/dist/cli/getTypescriptVersion.js +1 -1
- package/dist/cli/hashes.js +55 -55
- package/dist/cli/utils.js +5 -5
- package/dist/client/getClientEngineType.js +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 +54 -54
- package/dist/engine-commands/getConfig.js +15 -15
- package/dist/engine-commands/getDmmf.js +12 -12
- package/dist/engine-commands/getEngineVersion.js +10 -10
- package/dist/engine-commands/getEnginesMetaInfo.js +13 -13
- package/dist/engine-commands/index.js +65 -65
- package/dist/engine-commands/lintSchema.js +11 -11
- package/dist/engine-commands/mergeSchemas.js +12 -12
- package/dist/engine-commands/queryEngineCommons.js +7 -7
- package/dist/engine-commands/relativizePathInPSLError.js +1 -1
- package/dist/engine-commands/validate.js +12 -12
- package/dist/errorReporting.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +54 -54
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +7 -7
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +54 -54
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.js +1 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.test.js +1 -1
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +55 -55
- package/dist/get-generators/getGenerators.js +57 -57
- package/dist/get-generators/utils/binaryTypeToEngineType.js +1 -1
- package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +1 -1
- package/dist/get-generators/utils/engineTypeToBinaryType.js +1 -1
- package/dist/get-generators/utils/fixBinaryTargets.js +1 -1
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
- package/dist/get-generators/utils/getEngineVersionForGenerator.js +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.js +113 -113
- package/dist/logger.js +9 -9
- package/dist/{multipart-parser-32AROPTR.js → multipart-parser-3E7JBBYS.js} +7 -7
- package/dist/panic.js +7 -7
- package/dist/resolveBinary.js +9 -9
- package/dist/resolveOutput.js +1 -1
- package/dist/schemaEngineCommands.js +12 -12
- package/dist/sendPanic.js +54 -54
- 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 +1 -1
- 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.js +1 -1
- 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.js +54 -54
- package/dist/utils/getGitHubIssueUrl.js +4 -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 +54 -54
- 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 +54 -54
- 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.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.js +1 -1
- package/dist/utils/serializeQueryEngineName.js +1 -1
- package/dist/utils/setClassName.js +1 -1
- package/dist/utils/toSchemasContainer.js +1 -1
- 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 +8 -8
@@ -26,13 +26,12 @@ 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_BWGDP6B5_exports = {};
|
30
|
+
__export(chunk_BWGDP6B5_exports, {
|
31
31
|
detect: () => detect,
|
32
32
|
getCommand: () => getCommand
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
34
|
+
module.exports = __toCommonJS(chunk_BWGDP6B5_exports);
|
36
35
|
var import_node_fs = __toESM(require("node:fs"));
|
37
36
|
var import_node_path = __toESM(require("node:path"));
|
38
37
|
var import_node_process = __toESM(require("node:process"));
|
@@ -1169,17 +1168,17 @@ var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
1169
1168
|
var global$1 = globalThis;
|
1170
1169
|
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
1171
1170
|
var Emitter = class {
|
1171
|
+
emitted = {
|
1172
|
+
afterExit: false,
|
1173
|
+
exit: false
|
1174
|
+
};
|
1175
|
+
listeners = {
|
1176
|
+
afterExit: [],
|
1177
|
+
exit: []
|
1178
|
+
};
|
1179
|
+
count = 0;
|
1180
|
+
id = Math.random();
|
1172
1181
|
constructor() {
|
1173
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "emitted", {
|
1174
|
-
afterExit: false,
|
1175
|
-
exit: false
|
1176
|
-
});
|
1177
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "listeners", {
|
1178
|
-
afterExit: [],
|
1179
|
-
exit: []
|
1180
|
-
});
|
1181
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "count", 0);
|
1182
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "id", Math.random());
|
1183
1182
|
if (global$1[kExitEmitter]) {
|
1184
1183
|
return global$1[kExitEmitter];
|
1185
1184
|
}
|
@@ -1245,125 +1244,119 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
1245
1244
|
unload() {
|
1246
1245
|
}
|
1247
1246
|
};
|
1248
|
-
var _hupSig, _emitter, _process, _originalProcessEmit, _originalProcessReallyExit, _sigListeners, _loaded, _SignalExit_instances, processReallyExit_fn, processEmit_fn;
|
1249
1247
|
var SignalExit = class extends SignalExitBase {
|
1248
|
+
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
1249
|
+
// so use a supported signal instead
|
1250
|
+
/* c8 ignore start */
|
1251
|
+
#hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
|
1252
|
+
/* c8 ignore stop */
|
1253
|
+
#emitter = new Emitter();
|
1254
|
+
#process;
|
1255
|
+
#originalProcessEmit;
|
1256
|
+
#originalProcessReallyExit;
|
1257
|
+
#sigListeners = {};
|
1258
|
+
#loaded = false;
|
1250
1259
|
constructor(process2) {
|
1251
1260
|
super();
|
1252
|
-
|
1253
|
-
|
1254
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _emitter, new Emitter());
|
1255
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _process);
|
1256
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _originalProcessEmit);
|
1257
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _originalProcessReallyExit);
|
1258
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _sigListeners, {});
|
1259
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _loaded, false);
|
1260
|
-
(0, import_chunk_WWAWV7DQ.__privateSet)(this, _process, process2);
|
1261
|
-
(0, import_chunk_WWAWV7DQ.__privateSet)(this, _sigListeners, {});
|
1261
|
+
this.#process = process2;
|
1262
|
+
this.#sigListeners = {};
|
1262
1263
|
for (const sig of signals) {
|
1263
|
-
|
1264
|
-
const listeners =
|
1265
|
-
let { count } =
|
1264
|
+
this.#sigListeners[sig] = () => {
|
1265
|
+
const listeners = this.#process.listeners(sig);
|
1266
|
+
let { count } = this.#emitter;
|
1266
1267
|
const p = process2;
|
1267
1268
|
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
1268
1269
|
count += p.__signal_exit_emitter__.count;
|
1269
1270
|
}
|
1270
1271
|
if (listeners.length === count) {
|
1271
1272
|
this.unload();
|
1272
|
-
const ret =
|
1273
|
-
const s = sig === "SIGHUP" ?
|
1273
|
+
const ret = this.#emitter.emit("exit", null, sig);
|
1274
|
+
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
1274
1275
|
if (!ret)
|
1275
1276
|
process2.kill(process2.pid, s);
|
1276
1277
|
}
|
1277
1278
|
};
|
1278
1279
|
}
|
1279
|
-
|
1280
|
-
|
1280
|
+
this.#originalProcessReallyExit = process2.reallyExit;
|
1281
|
+
this.#originalProcessEmit = process2.emit;
|
1281
1282
|
}
|
1282
1283
|
onExit(cb, opts) {
|
1283
|
-
if (!processOk(
|
1284
|
+
if (!processOk(this.#process)) {
|
1284
1285
|
return () => {
|
1285
1286
|
};
|
1286
1287
|
}
|
1287
|
-
if (
|
1288
|
+
if (this.#loaded === false) {
|
1288
1289
|
this.load();
|
1289
1290
|
}
|
1290
1291
|
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
1291
|
-
|
1292
|
+
this.#emitter.on(ev, cb);
|
1292
1293
|
return () => {
|
1293
|
-
|
1294
|
-
if (
|
1294
|
+
this.#emitter.removeListener(ev, cb);
|
1295
|
+
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
1295
1296
|
this.unload();
|
1296
1297
|
}
|
1297
1298
|
};
|
1298
1299
|
}
|
1299
1300
|
load() {
|
1300
|
-
if (
|
1301
|
+
if (this.#loaded) {
|
1301
1302
|
return;
|
1302
1303
|
}
|
1303
|
-
|
1304
|
-
|
1304
|
+
this.#loaded = true;
|
1305
|
+
this.#emitter.count += 1;
|
1305
1306
|
for (const sig of signals) {
|
1306
1307
|
try {
|
1307
|
-
const fn =
|
1308
|
+
const fn = this.#sigListeners[sig];
|
1308
1309
|
if (fn)
|
1309
|
-
|
1310
|
+
this.#process.on(sig, fn);
|
1310
1311
|
} catch (_) {
|
1311
1312
|
}
|
1312
1313
|
}
|
1313
|
-
|
1314
|
-
return
|
1314
|
+
this.#process.emit = (ev, ...a) => {
|
1315
|
+
return this.#processEmit(ev, ...a);
|
1315
1316
|
};
|
1316
|
-
|
1317
|
-
return
|
1317
|
+
this.#process.reallyExit = (code) => {
|
1318
|
+
return this.#processReallyExit(code);
|
1318
1319
|
};
|
1319
1320
|
}
|
1320
1321
|
unload() {
|
1321
|
-
if (!
|
1322
|
+
if (!this.#loaded) {
|
1322
1323
|
return;
|
1323
1324
|
}
|
1324
|
-
|
1325
|
+
this.#loaded = false;
|
1325
1326
|
signals.forEach((sig) => {
|
1326
|
-
const listener =
|
1327
|
+
const listener = this.#sigListeners[sig];
|
1327
1328
|
if (!listener) {
|
1328
1329
|
throw new Error("Listener not defined for signal: " + sig);
|
1329
1330
|
}
|
1330
1331
|
try {
|
1331
|
-
|
1332
|
+
this.#process.removeListener(sig, listener);
|
1332
1333
|
} catch (_) {
|
1333
1334
|
}
|
1334
1335
|
});
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
}
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
if (ev === "exit" && processOk((0, import_chunk_WWAWV7DQ.__privateGet)(this, _process))) {
|
1359
|
-
if (typeof args[0] === "number") {
|
1360
|
-
(0, import_chunk_WWAWV7DQ.__privateGet)(this, _process).exitCode = args[0];
|
1336
|
+
this.#process.emit = this.#originalProcessEmit;
|
1337
|
+
this.#process.reallyExit = this.#originalProcessReallyExit;
|
1338
|
+
this.#emitter.count -= 1;
|
1339
|
+
}
|
1340
|
+
#processReallyExit(code) {
|
1341
|
+
if (!processOk(this.#process)) {
|
1342
|
+
return 0;
|
1343
|
+
}
|
1344
|
+
this.#process.exitCode = code || 0;
|
1345
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
1346
|
+
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
1347
|
+
}
|
1348
|
+
#processEmit(ev, ...args) {
|
1349
|
+
const og = this.#originalProcessEmit;
|
1350
|
+
if (ev === "exit" && processOk(this.#process)) {
|
1351
|
+
if (typeof args[0] === "number") {
|
1352
|
+
this.#process.exitCode = args[0];
|
1353
|
+
}
|
1354
|
+
const ret = og.call(this.#process, ev, ...args);
|
1355
|
+
this.#emitter.emit("exit", this.#process.exitCode, null);
|
1356
|
+
return ret;
|
1357
|
+
} else {
|
1358
|
+
return og.call(this.#process, ev, ...args);
|
1361
1359
|
}
|
1362
|
-
const ret = og.call((0, import_chunk_WWAWV7DQ.__privateGet)(this, _process), ev, ...args);
|
1363
|
-
(0, import_chunk_WWAWV7DQ.__privateGet)(this, _emitter).emit("exit", (0, import_chunk_WWAWV7DQ.__privateGet)(this, _process).exitCode, null);
|
1364
|
-
return ret;
|
1365
|
-
} else {
|
1366
|
-
return og.call((0, import_chunk_WWAWV7DQ.__privateGet)(this, _process), ev, ...args);
|
1367
1360
|
}
|
1368
1361
|
};
|
1369
1362
|
var process$1 = globalThis.process;
|
@@ -1569,9 +1562,9 @@ var getChunkType = (chunk) => {
|
|
1569
1562
|
};
|
1570
1563
|
var { toString: objectToString } = Object.prototype;
|
1571
1564
|
var MaxBufferError = class extends Error {
|
1565
|
+
name = "MaxBufferError";
|
1572
1566
|
constructor() {
|
1573
1567
|
super("maxBuffer exceeded");
|
1574
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "name", "MaxBufferError");
|
1575
1568
|
}
|
1576
1569
|
};
|
1577
1570
|
var identity = (value) => value;
|
@@ -1979,59 +1972,55 @@ function execaCommand(command, options2) {
|
|
1979
1972
|
return execa(file, args, options2);
|
1980
1973
|
}
|
1981
1974
|
var Node = class {
|
1975
|
+
value;
|
1976
|
+
next;
|
1982
1977
|
constructor(value) {
|
1983
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "value");
|
1984
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "next");
|
1985
1978
|
this.value = value;
|
1986
1979
|
}
|
1987
1980
|
};
|
1988
|
-
var _head, _tail, _size;
|
1989
1981
|
var Queue = class {
|
1982
|
+
#head;
|
1983
|
+
#tail;
|
1984
|
+
#size;
|
1990
1985
|
constructor() {
|
1991
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _head);
|
1992
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _tail);
|
1993
|
-
(0, import_chunk_WWAWV7DQ.__privateAdd)(this, _size);
|
1994
1986
|
this.clear();
|
1995
1987
|
}
|
1996
1988
|
enqueue(value) {
|
1997
1989
|
const node = new Node(value);
|
1998
|
-
if (
|
1999
|
-
|
2000
|
-
|
1990
|
+
if (this.#head) {
|
1991
|
+
this.#tail.next = node;
|
1992
|
+
this.#tail = node;
|
2001
1993
|
} else {
|
2002
|
-
|
2003
|
-
|
1994
|
+
this.#head = node;
|
1995
|
+
this.#tail = node;
|
2004
1996
|
}
|
2005
|
-
|
1997
|
+
this.#size++;
|
2006
1998
|
}
|
2007
1999
|
dequeue() {
|
2008
|
-
const current =
|
2000
|
+
const current = this.#head;
|
2009
2001
|
if (!current) {
|
2010
2002
|
return;
|
2011
2003
|
}
|
2012
|
-
|
2013
|
-
|
2004
|
+
this.#head = this.#head.next;
|
2005
|
+
this.#size--;
|
2014
2006
|
return current.value;
|
2015
2007
|
}
|
2016
2008
|
clear() {
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2009
|
+
this.#head = void 0;
|
2010
|
+
this.#tail = void 0;
|
2011
|
+
this.#size = 0;
|
2020
2012
|
}
|
2021
2013
|
get size() {
|
2022
|
-
return
|
2014
|
+
return this.#size;
|
2023
2015
|
}
|
2024
2016
|
*[Symbol.iterator]() {
|
2025
|
-
let current =
|
2017
|
+
let current = this.#head;
|
2026
2018
|
while (current) {
|
2027
2019
|
yield current.value;
|
2028
2020
|
current = current.next;
|
2029
2021
|
}
|
2030
2022
|
}
|
2031
2023
|
};
|
2032
|
-
_head = /* @__PURE__ */ new WeakMap();
|
2033
|
-
_tail = /* @__PURE__ */ new WeakMap();
|
2034
|
-
_size = /* @__PURE__ */ new WeakMap();
|
2035
2024
|
function pLimit(concurrency) {
|
2036
2025
|
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
2037
2026
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
@@ -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_BXF4VTJQ_exports = {};
|
20
|
+
__export(chunk_BXF4VTJQ_exports, {
|
21
21
|
version: () => version
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var packageJson = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_BXF4VTJQ_exports);
|
24
|
+
var import_chunk_VV44YB7T = require("./chunk-VV44YB7T.js");
|
25
|
+
var packageJson = (0, import_chunk_VV44YB7T.require_package)();
|
26
26
|
var version = packageJson.version;
|
@@ -16,26 +16,25 @@ 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_CCQRDM7X_exports = {};
|
20
|
+
__export(chunk_CCQRDM7X_exports, {
|
21
21
|
ErrorArea: () => ErrorArea,
|
22
22
|
RustPanic: () => RustPanic,
|
23
23
|
getWasmError: () => getWasmError,
|
24
24
|
isRustPanic: () => isRustPanic,
|
25
25
|
isWasmPanic: () => isWasmPanic
|
26
26
|
});
|
27
|
-
module.exports = __toCommonJS(
|
28
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
27
|
+
module.exports = __toCommonJS(chunk_CCQRDM7X_exports);
|
29
28
|
var RustPanic = class extends Error {
|
29
|
+
__typename = "RustPanic";
|
30
|
+
request;
|
31
|
+
rustStack;
|
32
|
+
area;
|
33
|
+
schemaPath;
|
34
|
+
schema;
|
35
|
+
introspectionUrl;
|
30
36
|
constructor(message, rustStack, request, area, schemaPath, schema, introspectionUrl) {
|
31
37
|
super(message);
|
32
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "__typename", "RustPanic");
|
33
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "request");
|
34
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "rustStack");
|
35
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "area");
|
36
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "schemaPath");
|
37
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "schema");
|
38
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "introspectionUrl");
|
39
38
|
this.name = "RustPanic";
|
40
39
|
this.rustStack = rustStack;
|
41
40
|
this.request = request;
|
@@ -16,21 +16,21 @@ 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_D6H2JDDL_exports = {};
|
20
|
+
__export(chunk_D6H2JDDL_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(
|
27
|
+
module.exports = __toCommonJS(chunk_D6H2JDDL_exports);
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
29
|
-
var
|
30
|
-
var
|
29
|
+
var import_chunk_R2BUFXGK = require("./chunk-R2BUFXGK.js");
|
30
|
+
var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
32
32
|
function lintSchema({ schemas }) {
|
33
|
-
const lintResult =
|
33
|
+
const lintResult = import_chunk_R2BUFXGK.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
35
35
|
return lintDiagnostics;
|
36
36
|
}
|
@@ -38,8 +38,8 @@ function handleLintPanic(tryCb, { schemas }) {
|
|
38
38
|
try {
|
39
39
|
return tryCb();
|
40
40
|
} catch (e) {
|
41
|
-
const { message, stack } = (0,
|
42
|
-
const panic = new
|
41
|
+
const { message, stack } = (0, import_chunk_CCQRDM7X.getWasmError)(e);
|
42
|
+
const panic = new import_chunk_CCQRDM7X.RustPanic(
|
43
43
|
/* message */
|
44
44
|
message,
|
45
45
|
/* rustStack */
|
@@ -26,25 +26,25 @@ 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_DG6E4UCC_exports = {};
|
30
|
+
__export(chunk_DG6E4UCC_exports, {
|
31
31
|
ValidateError: () => ValidateError,
|
32
32
|
validate: () => validate
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_DG6E4UCC_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
36
|
+
var import_chunk_4URMCTG6 = require("./chunk-4URMCTG6.js");
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
38
|
-
var
|
39
|
-
var
|
38
|
+
var import_chunk_NM6AESCR = require("./chunk-NM6AESCR.js");
|
39
|
+
var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
|
40
40
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
41
|
-
var
|
42
|
-
var
|
41
|
+
var import_chunk_5UTAMENR = require("./chunk-5UTAMENR.js");
|
42
|
+
var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
45
|
-
var
|
45
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
46
46
|
var import_debug = __toESM(require("@prisma/debug"));
|
47
|
-
var import_function = (0,
|
47
|
+
var import_function = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_ZGAIRZ32.require_function)());
|
48
48
|
var debug = (0, import_debug.default)("prisma:validate");
|
49
49
|
var ValidateError = class extends Error {
|
50
50
|
constructor(params) {
|
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: validate]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_NM6AESCR.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "ValidateError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
function validate(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_4URMCTG6.createDebugErrorType)(debug, "validateWasm");
|
69
69
|
debug(`Using validate Wasm`);
|
70
70
|
const validateEither = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch)(
|
72
72
|
() => {
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
74
74
|
debug("Triggering a Rust panic...");
|
75
|
-
|
75
|
+
import_chunk_5UTAMENR.prismaSchemaWasm.debug_panic();
|
76
76
|
}
|
77
77
|
const params = JSON.stringify({
|
78
78
|
prismaSchema: options.schemas,
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
80
80
|
});
|
81
|
-
|
81
|
+
import_chunk_5UTAMENR.prismaSchemaWasm.validate(params);
|
82
82
|
},
|
83
83
|
(e) => ({
|
84
84
|
type: "wasm-error",
|
@@ -93,11 +93,11 @@ function validate(options) {
|
|
93
93
|
const error = (0, import_chunk_XKZ6CBLA.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
|
94
94
|
debugErrorType(e);
|
95
95
|
console.error("");
|
96
|
-
if ((0,
|
97
|
-
const { message, stack } = (0,
|
96
|
+
if ((0, import_chunk_CCQRDM7X.isWasmPanic)(e.error)) {
|
97
|
+
const { message, stack } = (0, import_chunk_CCQRDM7X.getWasmError)(e.error);
|
98
98
|
debug(`Error validating schema: ${message}`);
|
99
99
|
debug(stack);
|
100
|
-
const panic = new
|
100
|
+
const panic = new import_chunk_CCQRDM7X.RustPanic(
|
101
101
|
/* message */
|
102
102
|
message,
|
103
103
|
/* rustStack */
|
@@ -113,7 +113,7 @@ function validate(options) {
|
|
113
113
|
return panic;
|
114
114
|
}
|
115
115
|
const errorOutput = e.error.message;
|
116
|
-
return new ValidateError((0,
|
116
|
+
return new ValidateError((0, import_chunk_4URMCTG6.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
117
117
|
}).exhaustive();
|
118
118
|
throw error;
|
119
119
|
}
|
@@ -26,12 +26,12 @@ 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_DGZO4GAJ_exports = {};
|
30
|
+
__export(chunk_DGZO4GAJ_exports, {
|
31
31
|
findPrismaClientDir: () => findPrismaClientDir
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
34
|
-
var
|
33
|
+
module.exports = __toCommonJS(chunk_DGZO4GAJ_exports);
|
34
|
+
var import_chunk_23MPYLL6 = require("./chunk-23MPYLL6.js");
|
35
35
|
var import_debug = __toESM(require("@prisma/debug"));
|
36
36
|
var import_fs = __toESM(require("fs"));
|
37
37
|
var import_path = __toESM(require("path"));
|
@@ -39,8 +39,8 @@ var debug = (0, import_debug.default)("prisma:generator");
|
|
39
39
|
var realPath = import_fs.default.promises.realpath;
|
40
40
|
async function findPrismaClientDir(baseDir) {
|
41
41
|
const resolveOpts = { basedir: baseDir, preserveSymlinks: true };
|
42
|
-
const CLIDir = await (0,
|
43
|
-
const clientDir = await (0,
|
42
|
+
const CLIDir = await (0, import_chunk_23MPYLL6.resolvePkg)("prisma", resolveOpts);
|
43
|
+
const clientDir = await (0, import_chunk_23MPYLL6.resolvePkg)("@prisma/client", resolveOpts);
|
44
44
|
const resolvedClientDir = clientDir && await realPath(clientDir);
|
45
45
|
debug("prismaCLIDir", CLIDir);
|
46
46
|
debug("prismaClientDir", clientDir);
|
@@ -16,20 +16,19 @@ 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_DYVL6P7F_exports = {};
|
20
|
+
__export(chunk_DYVL6P7F_exports, {
|
21
21
|
Generator: () => Generator
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
23
|
+
module.exports = __toCommonJS(chunk_DYVL6P7F_exports);
|
24
24
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
25
|
-
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
26
25
|
var import_generator_helper = require("@prisma/generator-helper");
|
27
26
|
var Generator = class {
|
27
|
+
generatorProcess;
|
28
|
+
manifest = null;
|
29
|
+
config;
|
30
|
+
options;
|
28
31
|
constructor(executablePath, config, isNode) {
|
29
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "generatorProcess");
|
30
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "manifest", null);
|
31
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "config");
|
32
|
-
(0, import_chunk_WWAWV7DQ.__publicField)(this, "options");
|
33
32
|
this.config = config;
|
34
33
|
this.generatorProcess = new import_generator_helper.GeneratorProcess(executablePath, { isNode });
|
35
34
|
}
|
@@ -26,25 +26,25 @@ 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_EHJNNRXK_exports = {};
|
30
|
+
__export(chunk_EHJNNRXK_exports, {
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
32
32
|
getDMMF: () => getDMMF
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_EHJNNRXK_exports);
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
36
|
-
var
|
37
|
-
var
|
38
|
-
var
|
36
|
+
var import_chunk_4URMCTG6 = require("./chunk-4URMCTG6.js");
|
37
|
+
var import_chunk_VYDFN4XN = require("./chunk-VYDFN4XN.js");
|
38
|
+
var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
|
39
39
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
40
|
-
var
|
41
|
-
var
|
40
|
+
var import_chunk_R2BUFXGK = require("./chunk-R2BUFXGK.js");
|
41
|
+
var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
44
|
-
var
|
44
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
45
45
|
var import_debug = __toESM(require("@prisma/debug"));
|
46
46
|
var import_fs = __toESM(require("fs"));
|
47
|
-
var import_function = (0,
|
47
|
+
var import_function = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_ZGAIRZ32.require_function)());
|
48
48
|
var debug = (0, import_debug.default)("prisma:getDMMF");
|
49
49
|
var GetDmmfError = class extends Error {
|
50
50
|
constructor(params) {
|
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
|
|
60
60
|
}).exhaustive();
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
62
62
|
[Context: getDmmf]`;
|
63
|
-
super((0,
|
63
|
+
super((0, import_chunk_VYDFN4XN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
64
64
|
this.name = "GetDmmfError";
|
65
65
|
}
|
66
66
|
};
|
67
67
|
async function getDMMF(options) {
|
68
|
-
const debugErrorType = (0,
|
68
|
+
const debugErrorType = (0, import_chunk_4URMCTG6.createDebugErrorType)(debug, "getDmmfWasm");
|
69
69
|
debug(`Using getDmmf Wasm`);
|
70
70
|
const dmmfPipeline = (0, import_function.pipe)(
|
71
71
|
(0, import_chunk_7MD6344A.tryCatch2)(
|
@@ -90,13 +90,13 @@ async function getDMMF(options) {
|
|
90
90
|
() => {
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
92
92
|
debug("Triggering a Rust panic...");
|
93
|
-
|
93
|
+
import_chunk_R2BUFXGK.prismaSchemaWasm.debug_panic();
|
94
94
|
}
|
95
95
|
const params = JSON.stringify({
|
96
96
|
prismaSchema: datamodel,
|
97
97
|
noColor: Boolean(process.env.NO_COLOR)
|
98
98
|
});
|
99
|
-
const data =
|
99
|
+
const data = import_chunk_R2BUFXGK.prismaSchemaWasm.get_dmmf(params);
|
100
100
|
return data;
|
101
101
|
},
|
102
102
|
(e) => ({
|
@@ -139,9 +139,9 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
139
139
|
});
|
140
140
|
}).with({ type: "wasm-error" }, (e) => {
|
141
141
|
debugErrorType(e);
|
142
|
-
if ((0,
|
143
|
-
const { message, stack } = (0,
|
144
|
-
const panic = new
|
142
|
+
if ((0, import_chunk_CCQRDM7X.isWasmPanic)(e.error)) {
|
143
|
+
const { message, stack } = (0, import_chunk_CCQRDM7X.getWasmError)(e.error);
|
144
|
+
const panic = new import_chunk_CCQRDM7X.RustPanic(
|
145
145
|
/* message */
|
146
146
|
message,
|
147
147
|
/* rustStack */
|
@@ -157,7 +157,7 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
157
157
|
return panic;
|
158
158
|
}
|
159
159
|
const errorOutput = e.error.message;
|
160
|
-
return new GetDmmfError((0,
|
160
|
+
return new GetDmmfError((0, import_chunk_4URMCTG6.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
161
161
|
}).with({ type: "parse-json" }, (e) => {
|
162
162
|
debugErrorType(e);
|
163
163
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|