@prisma/client-generator-js 7.5.0-dev.12 → 7.5.0-dev.14
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 +12 -7
- package/dist/index.mjs +12 -7
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -2482,7 +2482,7 @@ var package_default = {
|
|
|
2482
2482
|
"@prisma/dmmf": "workspace:*",
|
|
2483
2483
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
2484
2484
|
"@prisma/engines": "workspace:*",
|
|
2485
|
-
"@prisma/engines-version": "7.5.0-
|
|
2485
|
+
"@prisma/engines-version": "7.5.0-4.55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
|
2486
2486
|
"@prisma/fetch-engine": "workspace:*",
|
|
2487
2487
|
"@prisma/generator": "workspace:*",
|
|
2488
2488
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -2494,7 +2494,7 @@ var package_default = {
|
|
|
2494
2494
|
"@prisma/migrate": "workspace:*",
|
|
2495
2495
|
"@prisma/param-graph": "workspace:*",
|
|
2496
2496
|
"@prisma/param-graph-builder": "workspace:*",
|
|
2497
|
-
"@prisma/query-compiler-wasm": "7.5.0-
|
|
2497
|
+
"@prisma/query-compiler-wasm": "7.5.0-4.55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
|
2498
2498
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2499
2499
|
"@prisma/sqlcommenter": "workspace:*",
|
|
2500
2500
|
"@prisma/sqlcommenter-trace-context": "workspace:*",
|
|
@@ -5431,12 +5431,16 @@ function interactiveTransactionDefinition(context) {
|
|
|
5431
5431
|
options.add(isolationLevel);
|
|
5432
5432
|
}
|
|
5433
5433
|
const returnType = promise(ts11.namedType("R"));
|
|
5434
|
-
const callbackType = ts11.functionType().addParameter(
|
|
5435
|
-
ts11.parameter("prisma", ts11.omit(ts11.namedType("PrismaClient"), ts11.namedType("runtime.ITXClientDenyList")))
|
|
5436
|
-
).setReturnType(returnType);
|
|
5434
|
+
const callbackType = ts11.functionType().addParameter(ts11.parameter("prisma", ts11.omit(ts11.namedType("PrismaClient"), itxTransactionClientDenyList(context)))).setReturnType(returnType);
|
|
5437
5435
|
const method3 = ts11.method("$transaction").addGenericParameter(ts11.genericParameter("R")).addParameter(ts11.parameter("fn", callbackType)).addParameter(ts11.parameter("options", options).optional()).setReturnType(returnType);
|
|
5438
5436
|
return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
5439
5437
|
}
|
|
5438
|
+
function itxTransactionClientDenyList(context) {
|
|
5439
|
+
if (context.provider === "mongodb") {
|
|
5440
|
+
return ts11.unionType([ts11.namedType("runtime.ITXClientDenyList"), ts11.stringLiteral("$transaction")]);
|
|
5441
|
+
}
|
|
5442
|
+
return ts11.namedType("runtime.ITXClientDenyList");
|
|
5443
|
+
}
|
|
5440
5444
|
function queryRawDefinition(context) {
|
|
5441
5445
|
if (!context.dmmf.mappings.otherOperations.write.includes("queryRaw")) {
|
|
5442
5446
|
return "";
|
|
@@ -5630,6 +5634,7 @@ get ${methodName}(): Prisma.${m.model}Delegate<${generics.join(", ")}>;`;
|
|
|
5630
5634
|
}
|
|
5631
5635
|
toTS() {
|
|
5632
5636
|
const clientOptions = this.buildClientOptions();
|
|
5637
|
+
const transactionClientDenyList = this.context.provider === "mongodb" ? "runtime.ITXClientDenyList | '$transaction'" : "runtime.ITXClientDenyList";
|
|
5633
5638
|
return `${clientExtensionsDefinitions(this.context)}
|
|
5634
5639
|
export type DefaultPrismaClient = PrismaClient
|
|
5635
5640
|
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
|
@@ -5698,7 +5703,7 @@ export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | un
|
|
|
5698
5703
|
/**
|
|
5699
5704
|
* \`PrismaClient\` proxy available in interactive transactions.
|
|
5700
5705
|
*/
|
|
5701
|
-
export type TransactionClient = Omit<Prisma.DefaultPrismaClient,
|
|
5706
|
+
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, ${transactionClientDenyList}>
|
|
5702
5707
|
`;
|
|
5703
5708
|
}
|
|
5704
5709
|
buildClientOptions() {
|
|
@@ -6825,7 +6830,7 @@ var import_engines_version = require("@prisma/engines-version");
|
|
|
6825
6830
|
var import_internals9 = require("@prisma/internals");
|
|
6826
6831
|
|
|
6827
6832
|
// package.json
|
|
6828
|
-
var version = "7.5.0-dev.
|
|
6833
|
+
var version = "7.5.0-dev.14";
|
|
6829
6834
|
|
|
6830
6835
|
// src/resolvePrismaClient.ts
|
|
6831
6836
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -2471,7 +2471,7 @@ var package_default = {
|
|
|
2471
2471
|
"@prisma/dmmf": "workspace:*",
|
|
2472
2472
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
2473
2473
|
"@prisma/engines": "workspace:*",
|
|
2474
|
-
"@prisma/engines-version": "7.5.0-
|
|
2474
|
+
"@prisma/engines-version": "7.5.0-4.55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
|
2475
2475
|
"@prisma/fetch-engine": "workspace:*",
|
|
2476
2476
|
"@prisma/generator": "workspace:*",
|
|
2477
2477
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -2483,7 +2483,7 @@ var package_default = {
|
|
|
2483
2483
|
"@prisma/migrate": "workspace:*",
|
|
2484
2484
|
"@prisma/param-graph": "workspace:*",
|
|
2485
2485
|
"@prisma/param-graph-builder": "workspace:*",
|
|
2486
|
-
"@prisma/query-compiler-wasm": "7.5.0-
|
|
2486
|
+
"@prisma/query-compiler-wasm": "7.5.0-4.55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
|
2487
2487
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2488
2488
|
"@prisma/sqlcommenter": "workspace:*",
|
|
2489
2489
|
"@prisma/sqlcommenter-trace-context": "workspace:*",
|
|
@@ -5423,12 +5423,16 @@ function interactiveTransactionDefinition(context) {
|
|
|
5423
5423
|
options.add(isolationLevel);
|
|
5424
5424
|
}
|
|
5425
5425
|
const returnType = promise(ts11.namedType("R"));
|
|
5426
|
-
const callbackType = ts11.functionType().addParameter(
|
|
5427
|
-
ts11.parameter("prisma", ts11.omit(ts11.namedType("PrismaClient"), ts11.namedType("runtime.ITXClientDenyList")))
|
|
5428
|
-
).setReturnType(returnType);
|
|
5426
|
+
const callbackType = ts11.functionType().addParameter(ts11.parameter("prisma", ts11.omit(ts11.namedType("PrismaClient"), itxTransactionClientDenyList(context)))).setReturnType(returnType);
|
|
5429
5427
|
const method3 = ts11.method("$transaction").addGenericParameter(ts11.genericParameter("R")).addParameter(ts11.parameter("fn", callbackType)).addParameter(ts11.parameter("options", options).optional()).setReturnType(returnType);
|
|
5430
5428
|
return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
5431
5429
|
}
|
|
5430
|
+
function itxTransactionClientDenyList(context) {
|
|
5431
|
+
if (context.provider === "mongodb") {
|
|
5432
|
+
return ts11.unionType([ts11.namedType("runtime.ITXClientDenyList"), ts11.stringLiteral("$transaction")]);
|
|
5433
|
+
}
|
|
5434
|
+
return ts11.namedType("runtime.ITXClientDenyList");
|
|
5435
|
+
}
|
|
5432
5436
|
function queryRawDefinition(context) {
|
|
5433
5437
|
if (!context.dmmf.mappings.otherOperations.write.includes("queryRaw")) {
|
|
5434
5438
|
return "";
|
|
@@ -5622,6 +5626,7 @@ get ${methodName}(): Prisma.${m.model}Delegate<${generics.join(", ")}>;`;
|
|
|
5622
5626
|
}
|
|
5623
5627
|
toTS() {
|
|
5624
5628
|
const clientOptions = this.buildClientOptions();
|
|
5629
|
+
const transactionClientDenyList = this.context.provider === "mongodb" ? "runtime.ITXClientDenyList | '$transaction'" : "runtime.ITXClientDenyList";
|
|
5625
5630
|
return `${clientExtensionsDefinitions(this.context)}
|
|
5626
5631
|
export type DefaultPrismaClient = PrismaClient
|
|
5627
5632
|
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
|
@@ -5690,7 +5695,7 @@ export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | un
|
|
|
5690
5695
|
/**
|
|
5691
5696
|
* \`PrismaClient\` proxy available in interactive transactions.
|
|
5692
5697
|
*/
|
|
5693
|
-
export type TransactionClient = Omit<Prisma.DefaultPrismaClient,
|
|
5698
|
+
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, ${transactionClientDenyList}>
|
|
5694
5699
|
`;
|
|
5695
5700
|
}
|
|
5696
5701
|
buildClientOptions() {
|
|
@@ -6817,7 +6822,7 @@ import { enginesVersion } from "@prisma/engines-version";
|
|
|
6817
6822
|
import { parseEnvValue } from "@prisma/internals";
|
|
6818
6823
|
|
|
6819
6824
|
// package.json
|
|
6820
|
-
var version = "7.5.0-dev.
|
|
6825
|
+
var version = "7.5.0-dev.14";
|
|
6821
6826
|
|
|
6822
6827
|
// src/resolvePrismaClient.ts
|
|
6823
6828
|
import fs2 from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "7.5.0-dev.
|
|
3
|
+
"version": "7.5.0-dev.14",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "7.5.0-
|
|
28
|
+
"@prisma/engines-version": "7.5.0-4.55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
|
29
29
|
"env-paths": "2.2.1",
|
|
30
30
|
"indent-string": "4.0.0",
|
|
31
31
|
"klona": "2.0.6",
|
|
32
32
|
"package-up": "5.0.0",
|
|
33
33
|
"pluralize": "8.0.0",
|
|
34
34
|
"ts-pattern": "5.6.2",
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/internals": "7.5.0-dev.
|
|
42
|
-
"@prisma/param-graph-builder": "7.5.0-dev.
|
|
43
|
-
"@prisma/ts-builders": "7.5.0-dev.
|
|
35
|
+
"@prisma/debug": "7.5.0-dev.14",
|
|
36
|
+
"@prisma/client-common": "7.5.0-dev.14",
|
|
37
|
+
"@prisma/fetch-engine": "7.5.0-dev.14",
|
|
38
|
+
"@prisma/generator": "7.5.0-dev.14",
|
|
39
|
+
"@prisma/get-platform": "7.5.0-dev.14",
|
|
40
|
+
"@prisma/dmmf": "7.5.0-dev.14",
|
|
41
|
+
"@prisma/internals": "7.5.0-dev.14",
|
|
42
|
+
"@prisma/param-graph-builder": "7.5.0-dev.14",
|
|
43
|
+
"@prisma/ts-builders": "7.5.0-dev.14"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|