@prisma/client-generator-ts 6.14.0-dev.3 → 6.14.0-dev.4
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/index.js +26 -56
- package/dist/index.mjs +26 -56
- package/dist/utils/wasm.d.ts +2 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -494,11 +494,11 @@ var require_graceful_fs = __commonJS({
|
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var debug2 = noop;
|
|
498
498
|
if (util.debuglog)
|
|
499
|
-
|
|
499
|
+
debug2 = util.debuglog("gfs4");
|
|
500
500
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
501
|
-
|
|
501
|
+
debug2 = function() {
|
|
502
502
|
var m = util.format.apply(util, arguments);
|
|
503
503
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
504
504
|
console.error(m);
|
|
@@ -533,7 +533,7 @@ var require_graceful_fs = __commonJS({
|
|
|
533
533
|
}(fs3.closeSync);
|
|
534
534
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
535
535
|
process.on("exit", function() {
|
|
536
|
-
|
|
536
|
+
debug2(fs3[gracefulQueue]);
|
|
537
537
|
require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
538
538
|
});
|
|
539
539
|
}
|
|
@@ -786,7 +786,7 @@ var require_graceful_fs = __commonJS({
|
|
|
786
786
|
return fs4;
|
|
787
787
|
}
|
|
788
788
|
function enqueue(elem) {
|
|
789
|
-
|
|
789
|
+
debug2("ENQUEUE", elem[0].name, elem[1]);
|
|
790
790
|
fs3[gracefulQueue].push(elem);
|
|
791
791
|
retry();
|
|
792
792
|
}
|
|
@@ -813,10 +813,10 @@ var require_graceful_fs = __commonJS({
|
|
|
813
813
|
var startTime = elem[3];
|
|
814
814
|
var lastTime = elem[4];
|
|
815
815
|
if (startTime === void 0) {
|
|
816
|
-
|
|
816
|
+
debug2("RETRY", fn.name, args);
|
|
817
817
|
fn.apply(null, args);
|
|
818
818
|
} else if (Date.now() - startTime >= 6e4) {
|
|
819
|
-
|
|
819
|
+
debug2("TIMEOUT", fn.name, args);
|
|
820
820
|
var cb = args.pop();
|
|
821
821
|
if (typeof cb === "function")
|
|
822
822
|
cb.call(null, err);
|
|
@@ -825,7 +825,7 @@ var require_graceful_fs = __commonJS({
|
|
|
825
825
|
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
826
826
|
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
827
827
|
if (sinceAttempt >= desiredDelay) {
|
|
828
|
-
|
|
828
|
+
debug2("RETRY", fn.name, args);
|
|
829
829
|
fn.apply(null, args.concat([startTime]));
|
|
830
830
|
} else {
|
|
831
831
|
fs3[gracefulQueue].push(elem);
|
|
@@ -3444,9 +3444,7 @@ function buildInlineDatasource(ds) {
|
|
|
3444
3444
|
var import_node_fs = __toESM(require("node:fs"));
|
|
3445
3445
|
var import_node_path = __toESM(require("node:path"));
|
|
3446
3446
|
var import_client_common11 = require("@prisma/client-common");
|
|
3447
|
-
var import_debug = require("@prisma/debug");
|
|
3448
3447
|
var import_ts_pattern = require("ts-pattern");
|
|
3449
|
-
var debug = (0, import_debug.Debug)("prisma:client-generator-ts:wasm");
|
|
3450
3448
|
function buildDynamicRequireFn() {
|
|
3451
3449
|
return `const dynamicRequireFn = async <const T extends string>(name: T) =>
|
|
3452
3450
|
typeof globalThis.__non_webpack_require__ === 'function'
|
|
@@ -3465,41 +3463,20 @@ function buildGetWasmModule({
|
|
|
3465
3463
|
moduleFormat
|
|
3466
3464
|
}) {
|
|
3467
3465
|
const capitalizedComponent = (0, import_client_common11.capitalize)(component);
|
|
3468
|
-
const buildNonEdgeLoader = (0, import_ts_pattern.match)(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
|
|
3469
|
-
const buildNodeJsLoader = (0, import_ts_pattern.match)({ runtimeName, target }).with({ target: "nodejs" }, () => buildNonEdgeLoader).otherwise(() => false);
|
|
3470
3466
|
const buildEdgeLoader = usesEdgeWasmRuntime(component, runtimeName);
|
|
3471
|
-
let wasmPathBase;
|
|
3472
3467
|
let wasmBindingsPath;
|
|
3473
3468
|
let wasmModulePath;
|
|
3474
3469
|
if (buildEdgeLoader) {
|
|
3475
|
-
wasmPathBase = `./query_${component}_bg`;
|
|
3470
|
+
const wasmPathBase = `./query_${component}_bg`;
|
|
3476
3471
|
wasmBindingsPath = `${wasmPathBase}.js`;
|
|
3477
3472
|
wasmModulePath = `${wasmPathBase}.wasm`;
|
|
3478
3473
|
} else {
|
|
3479
|
-
wasmPathBase = `${runtimeBase}/query_${component}_bg.${activeProvider}`;
|
|
3474
|
+
const wasmPathBase = `${runtimeBase}/query_${component}_bg.${activeProvider}`;
|
|
3480
3475
|
wasmBindingsPath = `${wasmPathBase}.mjs`;
|
|
3481
3476
|
wasmModulePath = `${wasmPathBase}.wasm`;
|
|
3482
3477
|
}
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
return `
|
|
3486
|
-
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
3487
|
-
const { Buffer } = await import('node:buffer')
|
|
3488
|
-
const base64Data = wasmBase64.replace('data:application/wasm;base64,', '')
|
|
3489
|
-
const wasmArray = new Uint8Array(Buffer.from(base64Data, 'base64'))
|
|
3490
|
-
return new WebAssembly.Module(wasmArray)
|
|
3491
|
-
}
|
|
3492
|
-
|
|
3493
|
-
config.${component}Wasm = {
|
|
3494
|
-
getRuntime: async () => await import(${JSON.stringify(wasmBindingsPath)}),
|
|
3495
|
-
|
|
3496
|
-
getQuery${capitalizedComponent}WasmModule: async () => {
|
|
3497
|
-
const { wasm } = await import(${JSON.stringify(wasmModulePath)})
|
|
3498
|
-
return await decodeBase64AsWasm(wasm)
|
|
3499
|
-
}
|
|
3500
|
-
}`;
|
|
3501
|
-
}
|
|
3502
|
-
if (buildNonEdgeLoader) {
|
|
3478
|
+
const buildNodeLoader = (0, import_ts_pattern.match)(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
|
|
3479
|
+
if (buildNodeLoader) {
|
|
3503
3480
|
return `config.${component}Wasm = {
|
|
3504
3481
|
getRuntime: async () => await import(${JSON.stringify(wasmBindingsPath)}),
|
|
3505
3482
|
|
|
@@ -3537,25 +3514,10 @@ function buildRequire(moduleFormat) {
|
|
|
3537
3514
|
const _require = createRequire(import.meta.url)
|
|
3538
3515
|
`;
|
|
3539
3516
|
}
|
|
3540
|
-
function
|
|
3541
|
-
const bundledLocation = import_node_path.default.join(__dirname, sourceFile);
|
|
3542
|
-
const sourceLocation = import_node_path.default.join(__dirname, "..", "..", "..", "client", "runtime", sourceFile);
|
|
3543
|
-
if (import_node_fs.default.existsSync(bundledLocation)) {
|
|
3544
|
-
debug("We are in the bundled Prisma CLI");
|
|
3545
|
-
return import_node_fs.default.readFileSync(bundledLocation);
|
|
3546
|
-
} else if (import_node_fs.default.existsSync(sourceLocation)) {
|
|
3547
|
-
debug("We are in a dev/test environment");
|
|
3548
|
-
return import_node_fs.default.readFileSync(sourceLocation);
|
|
3549
|
-
} else {
|
|
3550
|
-
throw new Error(`Could not find ${sourceFile} in ${bundledLocation} or ${sourceLocation}`);
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
function buildWasmFileMap({ activeProvider, runtimeName }) {
|
|
3517
|
+
function buildWasmFileMap({ runtimeName, activeProvider }) {
|
|
3554
3518
|
const fileMap = {};
|
|
3555
|
-
debug("buildWasmFileMap with", { runtimeName });
|
|
3556
3519
|
for (const component of ["engine", "compiler"]) {
|
|
3557
3520
|
if (!usesEdgeWasmRuntime(component, runtimeName)) {
|
|
3558
|
-
debug("Skipping component", component, "for runtime", runtimeName);
|
|
3559
3521
|
continue;
|
|
3560
3522
|
}
|
|
3561
3523
|
const fileNameBase = `query_${component}_bg.${activeProvider}`;
|
|
@@ -3564,7 +3526,15 @@ function buildWasmFileMap({ activeProvider, runtimeName }) {
|
|
|
3564
3526
|
[`query_${component}_bg.js`]: `${fileNameBase}.mjs`
|
|
3565
3527
|
};
|
|
3566
3528
|
for (const [targetFile, sourceFile] of Object.entries(files)) {
|
|
3567
|
-
|
|
3529
|
+
const bundledLocation = import_node_path.default.join(__dirname, sourceFile);
|
|
3530
|
+
const sourceLocation = import_node_path.default.join(__dirname, "..", "..", "..", "client", "runtime", sourceFile);
|
|
3531
|
+
if (import_node_fs.default.existsSync(bundledLocation)) {
|
|
3532
|
+
fileMap[targetFile] = import_node_fs.default.readFileSync(bundledLocation);
|
|
3533
|
+
} else if (import_node_fs.default.existsSync(sourceLocation)) {
|
|
3534
|
+
fileMap[targetFile] = import_node_fs.default.readFileSync(sourceLocation);
|
|
3535
|
+
} else {
|
|
3536
|
+
throw new Error(`Could not find ${sourceFile} in ${bundledLocation} or ${sourceLocation}`);
|
|
3537
|
+
}
|
|
3568
3538
|
}
|
|
3569
3539
|
}
|
|
3570
3540
|
return fileMap;
|
|
@@ -6610,14 +6580,14 @@ async function deleteOutputDir(outputDir) {
|
|
|
6610
6580
|
}
|
|
6611
6581
|
|
|
6612
6582
|
// src/generator.ts
|
|
6613
|
-
var
|
|
6583
|
+
var import_debug = require("@prisma/debug");
|
|
6614
6584
|
var import_engines_version = require("@prisma/engines-version");
|
|
6615
6585
|
var import_internals10 = require("@prisma/internals");
|
|
6616
6586
|
var import_get_tsconfig = require("get-tsconfig");
|
|
6617
6587
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6618
6588
|
|
|
6619
6589
|
// package.json
|
|
6620
|
-
var version = "6.14.0-dev.
|
|
6590
|
+
var version = "6.14.0-dev.4";
|
|
6621
6591
|
|
|
6622
6592
|
// src/module-format.ts
|
|
6623
6593
|
function parseModuleFormat(format) {
|
|
@@ -6694,7 +6664,7 @@ function parseRuntimeTargetFromUnknown(target) {
|
|
|
6694
6664
|
}
|
|
6695
6665
|
|
|
6696
6666
|
// src/generator.ts
|
|
6697
|
-
var
|
|
6667
|
+
var debug = (0, import_debug.Debug)("prisma:client:generator");
|
|
6698
6668
|
var missingOutputErrorMessage = `An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
6699
6669
|
|
|
6700
6670
|
${dim(`generator client {
|
|
@@ -6714,7 +6684,7 @@ var PrismaClientTsGenerator = class {
|
|
|
6714
6684
|
name = "prisma-client-ts";
|
|
6715
6685
|
getManifest(config) {
|
|
6716
6686
|
const requiresEngines = (0, import_ts_pattern2.match)((0, import_internals10.getClientEngineType)(config)).with(import_internals10.ClientEngineType.Library, () => ["libqueryEngine"]).with(import_internals10.ClientEngineType.Binary, () => ["queryEngine"]).with(import_internals10.ClientEngineType.Client, () => []).exhaustive();
|
|
6717
|
-
|
|
6687
|
+
debug("requiresEngines", requiresEngines);
|
|
6718
6688
|
return Promise.resolve({
|
|
6719
6689
|
defaultOutput: getOutputPath(config),
|
|
6720
6690
|
prettyName: "Prisma Client",
|
package/dist/index.mjs
CHANGED
|
@@ -494,11 +494,11 @@ var require_graceful_fs = __commonJS({
|
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var debug2 = noop;
|
|
498
498
|
if (util.debuglog)
|
|
499
|
-
|
|
499
|
+
debug2 = util.debuglog("gfs4");
|
|
500
500
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
501
|
-
|
|
501
|
+
debug2 = function() {
|
|
502
502
|
var m = util.format.apply(util, arguments);
|
|
503
503
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
504
504
|
console.error(m);
|
|
@@ -533,7 +533,7 @@ var require_graceful_fs = __commonJS({
|
|
|
533
533
|
}(fs3.closeSync);
|
|
534
534
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
535
535
|
process.on("exit", function() {
|
|
536
|
-
|
|
536
|
+
debug2(fs3[gracefulQueue]);
|
|
537
537
|
__require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
538
538
|
});
|
|
539
539
|
}
|
|
@@ -786,7 +786,7 @@ var require_graceful_fs = __commonJS({
|
|
|
786
786
|
return fs4;
|
|
787
787
|
}
|
|
788
788
|
function enqueue(elem) {
|
|
789
|
-
|
|
789
|
+
debug2("ENQUEUE", elem[0].name, elem[1]);
|
|
790
790
|
fs3[gracefulQueue].push(elem);
|
|
791
791
|
retry();
|
|
792
792
|
}
|
|
@@ -813,10 +813,10 @@ var require_graceful_fs = __commonJS({
|
|
|
813
813
|
var startTime = elem[3];
|
|
814
814
|
var lastTime = elem[4];
|
|
815
815
|
if (startTime === void 0) {
|
|
816
|
-
|
|
816
|
+
debug2("RETRY", fn.name, args);
|
|
817
817
|
fn.apply(null, args);
|
|
818
818
|
} else if (Date.now() - startTime >= 6e4) {
|
|
819
|
-
|
|
819
|
+
debug2("TIMEOUT", fn.name, args);
|
|
820
820
|
var cb = args.pop();
|
|
821
821
|
if (typeof cb === "function")
|
|
822
822
|
cb.call(null, err);
|
|
@@ -825,7 +825,7 @@ var require_graceful_fs = __commonJS({
|
|
|
825
825
|
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
826
826
|
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
827
827
|
if (sinceAttempt >= desiredDelay) {
|
|
828
|
-
|
|
828
|
+
debug2("RETRY", fn.name, args);
|
|
829
829
|
fn.apply(null, args.concat([startTime]));
|
|
830
830
|
} else {
|
|
831
831
|
fs3[gracefulQueue].push(elem);
|
|
@@ -3443,9 +3443,7 @@ function buildInlineDatasource(ds) {
|
|
|
3443
3443
|
import fs from "node:fs";
|
|
3444
3444
|
import path from "node:path";
|
|
3445
3445
|
import { capitalize as capitalize6 } from "@prisma/client-common";
|
|
3446
|
-
import { Debug } from "@prisma/debug";
|
|
3447
3446
|
import { match } from "ts-pattern";
|
|
3448
|
-
var debug = Debug("prisma:client-generator-ts:wasm");
|
|
3449
3447
|
function buildDynamicRequireFn() {
|
|
3450
3448
|
return `const dynamicRequireFn = async <const T extends string>(name: T) =>
|
|
3451
3449
|
typeof globalThis.__non_webpack_require__ === 'function'
|
|
@@ -3464,41 +3462,20 @@ function buildGetWasmModule({
|
|
|
3464
3462
|
moduleFormat
|
|
3465
3463
|
}) {
|
|
3466
3464
|
const capitalizedComponent = capitalize6(component);
|
|
3467
|
-
const buildNonEdgeLoader = match(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
|
|
3468
|
-
const buildNodeJsLoader = match({ runtimeName, target }).with({ target: "nodejs" }, () => buildNonEdgeLoader).otherwise(() => false);
|
|
3469
3465
|
const buildEdgeLoader = usesEdgeWasmRuntime(component, runtimeName);
|
|
3470
|
-
let wasmPathBase;
|
|
3471
3466
|
let wasmBindingsPath;
|
|
3472
3467
|
let wasmModulePath;
|
|
3473
3468
|
if (buildEdgeLoader) {
|
|
3474
|
-
wasmPathBase = `./query_${component}_bg`;
|
|
3469
|
+
const wasmPathBase = `./query_${component}_bg`;
|
|
3475
3470
|
wasmBindingsPath = `${wasmPathBase}.js`;
|
|
3476
3471
|
wasmModulePath = `${wasmPathBase}.wasm`;
|
|
3477
3472
|
} else {
|
|
3478
|
-
wasmPathBase = `${runtimeBase}/query_${component}_bg.${activeProvider}`;
|
|
3473
|
+
const wasmPathBase = `${runtimeBase}/query_${component}_bg.${activeProvider}`;
|
|
3479
3474
|
wasmBindingsPath = `${wasmPathBase}.mjs`;
|
|
3480
3475
|
wasmModulePath = `${wasmPathBase}.wasm`;
|
|
3481
3476
|
}
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
return `
|
|
3485
|
-
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
3486
|
-
const { Buffer } = await import('node:buffer')
|
|
3487
|
-
const base64Data = wasmBase64.replace('data:application/wasm;base64,', '')
|
|
3488
|
-
const wasmArray = new Uint8Array(Buffer.from(base64Data, 'base64'))
|
|
3489
|
-
return new WebAssembly.Module(wasmArray)
|
|
3490
|
-
}
|
|
3491
|
-
|
|
3492
|
-
config.${component}Wasm = {
|
|
3493
|
-
getRuntime: async () => await import(${JSON.stringify(wasmBindingsPath)}),
|
|
3494
|
-
|
|
3495
|
-
getQuery${capitalizedComponent}WasmModule: async () => {
|
|
3496
|
-
const { wasm } = await import(${JSON.stringify(wasmModulePath)})
|
|
3497
|
-
return await decodeBase64AsWasm(wasm)
|
|
3498
|
-
}
|
|
3499
|
-
}`;
|
|
3500
|
-
}
|
|
3501
|
-
if (buildNonEdgeLoader) {
|
|
3477
|
+
const buildNodeLoader = match(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
|
|
3478
|
+
if (buildNodeLoader) {
|
|
3502
3479
|
return `config.${component}Wasm = {
|
|
3503
3480
|
getRuntime: async () => await import(${JSON.stringify(wasmBindingsPath)}),
|
|
3504
3481
|
|
|
@@ -3536,25 +3513,10 @@ function buildRequire(moduleFormat) {
|
|
|
3536
3513
|
const _require = createRequire(import.meta.url)
|
|
3537
3514
|
`;
|
|
3538
3515
|
}
|
|
3539
|
-
function
|
|
3540
|
-
const bundledLocation = path.join(__dirname, sourceFile);
|
|
3541
|
-
const sourceLocation = path.join(__dirname, "..", "..", "..", "client", "runtime", sourceFile);
|
|
3542
|
-
if (fs.existsSync(bundledLocation)) {
|
|
3543
|
-
debug("We are in the bundled Prisma CLI");
|
|
3544
|
-
return fs.readFileSync(bundledLocation);
|
|
3545
|
-
} else if (fs.existsSync(sourceLocation)) {
|
|
3546
|
-
debug("We are in a dev/test environment");
|
|
3547
|
-
return fs.readFileSync(sourceLocation);
|
|
3548
|
-
} else {
|
|
3549
|
-
throw new Error(`Could not find ${sourceFile} in ${bundledLocation} or ${sourceLocation}`);
|
|
3550
|
-
}
|
|
3551
|
-
}
|
|
3552
|
-
function buildWasmFileMap({ activeProvider, runtimeName }) {
|
|
3516
|
+
function buildWasmFileMap({ runtimeName, activeProvider }) {
|
|
3553
3517
|
const fileMap = {};
|
|
3554
|
-
debug("buildWasmFileMap with", { runtimeName });
|
|
3555
3518
|
for (const component of ["engine", "compiler"]) {
|
|
3556
3519
|
if (!usesEdgeWasmRuntime(component, runtimeName)) {
|
|
3557
|
-
debug("Skipping component", component, "for runtime", runtimeName);
|
|
3558
3520
|
continue;
|
|
3559
3521
|
}
|
|
3560
3522
|
const fileNameBase = `query_${component}_bg.${activeProvider}`;
|
|
@@ -3563,7 +3525,15 @@ function buildWasmFileMap({ activeProvider, runtimeName }) {
|
|
|
3563
3525
|
[`query_${component}_bg.js`]: `${fileNameBase}.mjs`
|
|
3564
3526
|
};
|
|
3565
3527
|
for (const [targetFile, sourceFile] of Object.entries(files)) {
|
|
3566
|
-
|
|
3528
|
+
const bundledLocation = path.join(__dirname, sourceFile);
|
|
3529
|
+
const sourceLocation = path.join(__dirname, "..", "..", "..", "client", "runtime", sourceFile);
|
|
3530
|
+
if (fs.existsSync(bundledLocation)) {
|
|
3531
|
+
fileMap[targetFile] = fs.readFileSync(bundledLocation);
|
|
3532
|
+
} else if (fs.existsSync(sourceLocation)) {
|
|
3533
|
+
fileMap[targetFile] = fs.readFileSync(sourceLocation);
|
|
3534
|
+
} else {
|
|
3535
|
+
throw new Error(`Could not find ${sourceFile} in ${bundledLocation} or ${sourceLocation}`);
|
|
3536
|
+
}
|
|
3567
3537
|
}
|
|
3568
3538
|
}
|
|
3569
3539
|
return fileMap;
|
|
@@ -6609,14 +6579,14 @@ async function deleteOutputDir(outputDir) {
|
|
|
6609
6579
|
}
|
|
6610
6580
|
|
|
6611
6581
|
// src/generator.ts
|
|
6612
|
-
import { Debug
|
|
6582
|
+
import { Debug } from "@prisma/debug";
|
|
6613
6583
|
import { enginesVersion } from "@prisma/engines-version";
|
|
6614
6584
|
import { ClientEngineType as ClientEngineType4, getClientEngineType as getClientEngineType4, parseEnvValue } from "@prisma/internals";
|
|
6615
6585
|
import { getTsconfig } from "get-tsconfig";
|
|
6616
6586
|
import { match as match2 } from "ts-pattern";
|
|
6617
6587
|
|
|
6618
6588
|
// package.json
|
|
6619
|
-
var version = "6.14.0-dev.
|
|
6589
|
+
var version = "6.14.0-dev.4";
|
|
6620
6590
|
|
|
6621
6591
|
// src/module-format.ts
|
|
6622
6592
|
function parseModuleFormat(format) {
|
|
@@ -6693,7 +6663,7 @@ function parseRuntimeTargetFromUnknown(target) {
|
|
|
6693
6663
|
}
|
|
6694
6664
|
|
|
6695
6665
|
// src/generator.ts
|
|
6696
|
-
var
|
|
6666
|
+
var debug = Debug("prisma:client:generator");
|
|
6697
6667
|
var missingOutputErrorMessage = `An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
6698
6668
|
|
|
6699
6669
|
${dim(`generator client {
|
|
@@ -6713,7 +6683,7 @@ var PrismaClientTsGenerator = class {
|
|
|
6713
6683
|
name = "prisma-client-ts";
|
|
6714
6684
|
getManifest(config) {
|
|
6715
6685
|
const requiresEngines = match2(getClientEngineType4(config)).with(ClientEngineType4.Library, () => ["libqueryEngine"]).with(ClientEngineType4.Binary, () => ["queryEngine"]).with(ClientEngineType4.Client, () => []).exhaustive();
|
|
6716
|
-
|
|
6686
|
+
debug("requiresEngines", requiresEngines);
|
|
6717
6687
|
return Promise.resolve({
|
|
6718
6688
|
defaultOutput: getOutputPath(config),
|
|
6719
6689
|
prettyName: "Prisma Client",
|
package/dist/utils/wasm.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type BuildWasmModuleOptions = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare function buildGetWasmModule({ component, runtimeName, runtimeBase, target, activeProvider, moduleFormat, }: BuildWasmModuleOptions): string;
|
|
15
15
|
export type BuildWasmFileMapOptions = {
|
|
16
|
-
activeProvider: ActiveConnectorType;
|
|
17
16
|
runtimeName: RuntimeName;
|
|
17
|
+
activeProvider: ActiveConnectorType;
|
|
18
18
|
};
|
|
19
|
-
export declare function buildWasmFileMap({
|
|
19
|
+
export declare function buildWasmFileMap({ runtimeName, activeProvider }: BuildWasmFileMapOptions): FileMap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "6.14.0-dev.
|
|
3
|
+
"version": "6.14.0-dev.4",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"pkg-up": "3.1.0",
|
|
35
35
|
"pluralize": "8.0.0",
|
|
36
36
|
"ts-pattern": "5.6.2",
|
|
37
|
-
"@prisma/client-common": "6.14.0-dev.
|
|
38
|
-
"@prisma/debug": "6.14.0-dev.
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/generator": "6.14.0-dev.
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/
|
|
37
|
+
"@prisma/client-common": "6.14.0-dev.4",
|
|
38
|
+
"@prisma/debug": "6.14.0-dev.4",
|
|
39
|
+
"@prisma/dmmf": "6.14.0-dev.4",
|
|
40
|
+
"@prisma/fetch-engine": "6.14.0-dev.4",
|
|
41
|
+
"@prisma/generator": "6.14.0-dev.4",
|
|
42
|
+
"@prisma/get-platform": "6.14.0-dev.4",
|
|
43
|
+
"@prisma/internals": "6.14.0-dev.4",
|
|
44
|
+
"@prisma/ts-builders": "6.14.0-dev.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|