@prisma/client-generator-ts 6.14.0-dev.3 → 6.14.0-dev.31
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 +4 -28
- package/dist/index.mjs +4 -28
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -3465,6 +3465,7 @@ function buildGetWasmModule({
|
|
|
3465
3465
|
moduleFormat
|
|
3466
3466
|
}) {
|
|
3467
3467
|
const capitalizedComponent = (0, import_client_common11.capitalize)(component);
|
|
3468
|
+
const extension = (0, import_ts_pattern.match)(moduleFormat).with("esm", () => "mjs").with("cjs", () => "js").exhaustive();
|
|
3468
3469
|
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
3470
|
const buildNodeJsLoader = (0, import_ts_pattern.match)({ runtimeName, target }).with({ target: "nodejs" }, () => buildNonEdgeLoader).otherwise(() => false);
|
|
3470
3471
|
const buildEdgeLoader = usesEdgeWasmRuntime(component, runtimeName);
|
|
@@ -3481,7 +3482,8 @@ function buildGetWasmModule({
|
|
|
3481
3482
|
wasmModulePath = `${wasmPathBase}.wasm`;
|
|
3482
3483
|
}
|
|
3483
3484
|
if (buildNodeJsLoader) {
|
|
3484
|
-
|
|
3485
|
+
wasmBindingsPath = `${wasmPathBase}.${extension}`;
|
|
3486
|
+
wasmModulePath = `${wasmPathBase}.wasm-base64.${extension}`;
|
|
3485
3487
|
return `
|
|
3486
3488
|
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
3487
3489
|
const { Buffer } = await import('node:buffer')
|
|
@@ -3833,13 +3835,6 @@ export interface PrismaClient<
|
|
|
3833
3835
|
*/
|
|
3834
3836
|
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
3835
3837
|
|
|
3836
|
-
/**
|
|
3837
|
-
* Add a middleware
|
|
3838
|
-
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
|
|
3839
|
-
* @see https://pris.ly/d/extensions
|
|
3840
|
-
*/
|
|
3841
|
-
$use(cb: Prisma.Middleware): void
|
|
3842
|
-
|
|
3843
3838
|
${[
|
|
3844
3839
|
executeRawDefinition(this.context),
|
|
3845
3840
|
queryRawDefinition(this.context),
|
|
@@ -5840,25 +5835,6 @@ export type PrismaAction =
|
|
|
5840
5835
|
| 'findRaw'
|
|
5841
5836
|
| 'groupBy'
|
|
5842
5837
|
|
|
5843
|
-
/**
|
|
5844
|
-
* These options are being passed into the middleware as "params"
|
|
5845
|
-
*/
|
|
5846
|
-
export type MiddlewareParams = {
|
|
5847
|
-
model?: ModelName
|
|
5848
|
-
action: PrismaAction
|
|
5849
|
-
args: any
|
|
5850
|
-
dataPath: string[]
|
|
5851
|
-
runInTransaction: boolean
|
|
5852
|
-
}
|
|
5853
|
-
|
|
5854
|
-
/**
|
|
5855
|
-
* The \`T\` type makes sure, that the \`return proceed\` is not forgotten in the middleware implementation
|
|
5856
|
-
*/
|
|
5857
|
-
export type Middleware<T = any> = (
|
|
5858
|
-
params: MiddlewareParams,
|
|
5859
|
-
next: (params: MiddlewareParams) => runtime.Types.Utils.JsPromise<T>,
|
|
5860
|
-
) => runtime.Types.Utils.JsPromise<T>
|
|
5861
|
-
|
|
5862
5838
|
/**
|
|
5863
5839
|
* \`PrismaClient\` proxy available in interactive transactions.
|
|
5864
5840
|
*/
|
|
@@ -6617,7 +6593,7 @@ var import_get_tsconfig = require("get-tsconfig");
|
|
|
6617
6593
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6618
6594
|
|
|
6619
6595
|
// package.json
|
|
6620
|
-
var version = "6.14.0-dev.
|
|
6596
|
+
var version = "6.14.0-dev.31";
|
|
6621
6597
|
|
|
6622
6598
|
// src/module-format.ts
|
|
6623
6599
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -3464,6 +3464,7 @@ function buildGetWasmModule({
|
|
|
3464
3464
|
moduleFormat
|
|
3465
3465
|
}) {
|
|
3466
3466
|
const capitalizedComponent = capitalize6(component);
|
|
3467
|
+
const extension = match(moduleFormat).with("esm", () => "mjs").with("cjs", () => "js").exhaustive();
|
|
3467
3468
|
const buildNonEdgeLoader = match(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
|
|
3468
3469
|
const buildNodeJsLoader = match({ runtimeName, target }).with({ target: "nodejs" }, () => buildNonEdgeLoader).otherwise(() => false);
|
|
3469
3470
|
const buildEdgeLoader = usesEdgeWasmRuntime(component, runtimeName);
|
|
@@ -3480,7 +3481,8 @@ function buildGetWasmModule({
|
|
|
3480
3481
|
wasmModulePath = `${wasmPathBase}.wasm`;
|
|
3481
3482
|
}
|
|
3482
3483
|
if (buildNodeJsLoader) {
|
|
3483
|
-
|
|
3484
|
+
wasmBindingsPath = `${wasmPathBase}.${extension}`;
|
|
3485
|
+
wasmModulePath = `${wasmPathBase}.wasm-base64.${extension}`;
|
|
3484
3486
|
return `
|
|
3485
3487
|
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
3486
3488
|
const { Buffer } = await import('node:buffer')
|
|
@@ -3832,13 +3834,6 @@ export interface PrismaClient<
|
|
|
3832
3834
|
*/
|
|
3833
3835
|
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
3834
3836
|
|
|
3835
|
-
/**
|
|
3836
|
-
* Add a middleware
|
|
3837
|
-
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
|
|
3838
|
-
* @see https://pris.ly/d/extensions
|
|
3839
|
-
*/
|
|
3840
|
-
$use(cb: Prisma.Middleware): void
|
|
3841
|
-
|
|
3842
3837
|
${[
|
|
3843
3838
|
executeRawDefinition(this.context),
|
|
3844
3839
|
queryRawDefinition(this.context),
|
|
@@ -5839,25 +5834,6 @@ export type PrismaAction =
|
|
|
5839
5834
|
| 'findRaw'
|
|
5840
5835
|
| 'groupBy'
|
|
5841
5836
|
|
|
5842
|
-
/**
|
|
5843
|
-
* These options are being passed into the middleware as "params"
|
|
5844
|
-
*/
|
|
5845
|
-
export type MiddlewareParams = {
|
|
5846
|
-
model?: ModelName
|
|
5847
|
-
action: PrismaAction
|
|
5848
|
-
args: any
|
|
5849
|
-
dataPath: string[]
|
|
5850
|
-
runInTransaction: boolean
|
|
5851
|
-
}
|
|
5852
|
-
|
|
5853
|
-
/**
|
|
5854
|
-
* The \`T\` type makes sure, that the \`return proceed\` is not forgotten in the middleware implementation
|
|
5855
|
-
*/
|
|
5856
|
-
export type Middleware<T = any> = (
|
|
5857
|
-
params: MiddlewareParams,
|
|
5858
|
-
next: (params: MiddlewareParams) => runtime.Types.Utils.JsPromise<T>,
|
|
5859
|
-
) => runtime.Types.Utils.JsPromise<T>
|
|
5860
|
-
|
|
5861
5837
|
/**
|
|
5862
5838
|
* \`PrismaClient\` proxy available in interactive transactions.
|
|
5863
5839
|
*/
|
|
@@ -6616,7 +6592,7 @@ import { getTsconfig } from "get-tsconfig";
|
|
|
6616
6592
|
import { match as match2 } from "ts-pattern";
|
|
6617
6593
|
|
|
6618
6594
|
// package.json
|
|
6619
|
-
var version = "6.14.0-dev.
|
|
6595
|
+
var version = "6.14.0-dev.31";
|
|
6620
6596
|
|
|
6621
6597
|
// src/module-format.ts
|
|
6622
6598
|
function parseModuleFormat(format) {
|
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.31",
|
|
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,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "6.14.0-
|
|
28
|
+
"@prisma/engines-version": "6.14.0-17.fba13060ef3cfbe5e95af3aaba61eabf2b8a8a20",
|
|
29
29
|
"ci-info": "4.2.0",
|
|
30
30
|
"fast-glob": "3.3.3",
|
|
31
31
|
"get-tsconfig": "4.10.0",
|
|
@@ -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/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/
|
|
37
|
+
"@prisma/client-common": "6.14.0-dev.31",
|
|
38
|
+
"@prisma/debug": "6.14.0-dev.31",
|
|
39
|
+
"@prisma/dmmf": "6.14.0-dev.31",
|
|
40
|
+
"@prisma/generator": "6.14.0-dev.31",
|
|
41
|
+
"@prisma/get-platform": "6.14.0-dev.31",
|
|
42
|
+
"@prisma/fetch-engine": "6.14.0-dev.31",
|
|
43
|
+
"@prisma/internals": "6.14.0-dev.31",
|
|
44
|
+
"@prisma/ts-builders": "6.14.0-dev.31"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|