@prisma/client-generator-js 6.6.0-dev.95 → 6.6.0-dev.96
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.d.mts
CHANGED
|
@@ -24,7 +24,7 @@ export declare function externalToInternalDmmf(document: DMMF.Document): DMMF.Do
|
|
|
24
24
|
|
|
25
25
|
export declare function generateClient(options: GenerateClientOptions): Promise<void>;
|
|
26
26
|
|
|
27
|
-
declare interface GenerateClientOptions {
|
|
27
|
+
export declare interface GenerateClientOptions {
|
|
28
28
|
datamodel: string;
|
|
29
29
|
schemaPath: string;
|
|
30
30
|
/** Runtime path used in runtime/type imports */
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare function externalToInternalDmmf(document: DMMF.Document): DMMF.Do
|
|
|
24
24
|
|
|
25
25
|
export declare function generateClient(options: GenerateClientOptions): Promise<void>;
|
|
26
26
|
|
|
27
|
-
declare interface GenerateClientOptions {
|
|
27
|
+
export declare interface GenerateClientOptions {
|
|
28
28
|
datamodel: string;
|
|
29
29
|
schemaPath: string;
|
|
30
30
|
/** Runtime path used in runtime/type imports */
|
package/dist/index.js
CHANGED
|
@@ -4621,22 +4621,22 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
4621
4621
|
function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
4622
4622
|
if (copyCompiler && runtimeNameJs === "client") {
|
|
4623
4623
|
return `config.compilerWasm = {
|
|
4624
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4624
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4625
4625
|
getQueryCompilerWasmModule: async () => {
|
|
4626
4626
|
const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
|
|
4627
4627
|
const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
|
|
4628
|
-
|
|
4628
|
+
|
|
4629
4629
|
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
4630
4630
|
}
|
|
4631
4631
|
}`;
|
|
4632
4632
|
}
|
|
4633
4633
|
if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
|
|
4634
4634
|
return `config.compilerWasm = {
|
|
4635
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4635
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4636
4636
|
getQueryCompilerWasmModule: async () => {
|
|
4637
4637
|
const loader = (await import('#wasm-compiler-loader')).default
|
|
4638
4638
|
const compiler = (await loader).default
|
|
4639
|
-
return compiler
|
|
4639
|
+
return compiler
|
|
4640
4640
|
}
|
|
4641
4641
|
}`;
|
|
4642
4642
|
}
|
|
@@ -4647,22 +4647,22 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
4647
4647
|
function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
4648
4648
|
if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
|
|
4649
4649
|
return `config.engineWasm = {
|
|
4650
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4650
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4651
4651
|
getQueryEngineWasmModule: async () => {
|
|
4652
4652
|
const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')
|
|
4653
4653
|
const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)
|
|
4654
|
-
|
|
4654
|
+
|
|
4655
4655
|
return new WebAssembly.Module(queryEngineWasmFileBytes)
|
|
4656
4656
|
}
|
|
4657
4657
|
}`;
|
|
4658
4658
|
}
|
|
4659
4659
|
if (copyEngine && wasm === true) {
|
|
4660
4660
|
return `config.engineWasm = {
|
|
4661
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4661
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4662
4662
|
getQueryEngineWasmModule: async () => {
|
|
4663
4663
|
const loader = (await import('#wasm-engine-loader')).default
|
|
4664
4664
|
const engine = (await loader).default
|
|
4665
|
-
return engine
|
|
4665
|
+
return engine
|
|
4666
4666
|
}
|
|
4667
4667
|
}`;
|
|
4668
4668
|
}
|
|
@@ -7156,7 +7156,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
7156
7156
|
var import_ts_pattern = require("ts-pattern");
|
|
7157
7157
|
|
|
7158
7158
|
// package.json
|
|
7159
|
-
var version = "6.6.0-dev.
|
|
7159
|
+
var version = "6.6.0-dev.96";
|
|
7160
7160
|
|
|
7161
7161
|
// src/resolvePrismaClient.ts
|
|
7162
7162
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -4619,22 +4619,22 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
4619
4619
|
function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
4620
4620
|
if (copyCompiler && runtimeNameJs === "client") {
|
|
4621
4621
|
return `config.compilerWasm = {
|
|
4622
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4622
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4623
4623
|
getQueryCompilerWasmModule: async () => {
|
|
4624
4624
|
const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
|
|
4625
4625
|
const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
|
|
4626
|
-
|
|
4626
|
+
|
|
4627
4627
|
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
4628
4628
|
}
|
|
4629
4629
|
}`;
|
|
4630
4630
|
}
|
|
4631
4631
|
if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
|
|
4632
4632
|
return `config.compilerWasm = {
|
|
4633
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4633
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4634
4634
|
getQueryCompilerWasmModule: async () => {
|
|
4635
4635
|
const loader = (await import('#wasm-compiler-loader')).default
|
|
4636
4636
|
const compiler = (await loader).default
|
|
4637
|
-
return compiler
|
|
4637
|
+
return compiler
|
|
4638
4638
|
}
|
|
4639
4639
|
}`;
|
|
4640
4640
|
}
|
|
@@ -4645,22 +4645,22 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
4645
4645
|
function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
4646
4646
|
if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
|
|
4647
4647
|
return `config.engineWasm = {
|
|
4648
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4648
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4649
4649
|
getQueryEngineWasmModule: async () => {
|
|
4650
4650
|
const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')
|
|
4651
4651
|
const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)
|
|
4652
|
-
|
|
4652
|
+
|
|
4653
4653
|
return new WebAssembly.Module(queryEngineWasmFileBytes)
|
|
4654
4654
|
}
|
|
4655
4655
|
}`;
|
|
4656
4656
|
}
|
|
4657
4657
|
if (copyEngine && wasm === true) {
|
|
4658
4658
|
return `config.engineWasm = {
|
|
4659
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4659
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4660
4660
|
getQueryEngineWasmModule: async () => {
|
|
4661
4661
|
const loader = (await import('#wasm-engine-loader')).default
|
|
4662
4662
|
const engine = (await loader).default
|
|
4663
|
-
return engine
|
|
4663
|
+
return engine
|
|
4664
4664
|
}
|
|
4665
4665
|
}`;
|
|
4666
4666
|
}
|
|
@@ -7154,7 +7154,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
7154
7154
|
import { match } from "ts-pattern";
|
|
7155
7155
|
|
|
7156
7156
|
// package.json
|
|
7157
|
-
var version = "6.6.0-dev.
|
|
7157
|
+
var version = "6.6.0-dev.96";
|
|
7158
7158
|
|
|
7159
7159
|
// src/resolvePrismaClient.ts
|
|
7160
7160
|
import fs2 from "node:fs/promises";
|
|
@@ -3,4 +3,4 @@ import { TSClientOptions } from '../TSClient/TSClient';
|
|
|
3
3
|
* Builds the necessary glue code to load the query compiler wasm module.
|
|
4
4
|
* @returns
|
|
5
5
|
*/
|
|
6
|
-
export declare function buildQueryCompilerWasmModule(wasm: boolean, copyCompiler: boolean, runtimeNameJs: TSClientOptions['runtimeNameJs']): "config.compilerWasm = {\n getRuntime: () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')\n const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)\n
|
|
6
|
+
export declare function buildQueryCompilerWasmModule(wasm: boolean, copyCompiler: boolean, runtimeNameJs: TSClientOptions['runtimeNameJs']): "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')\n const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)\n\n return new WebAssembly.Module(queryCompilerWasmFileBytes)\n }\n }" | "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const loader = (await import('#wasm-compiler-loader')).default\n const compiler = (await loader).default\n return compiler\n }\n}" | "config.compilerWasm = undefined";
|
|
@@ -3,4 +3,4 @@ import { TSClientOptions } from '../TSClient/TSClient';
|
|
|
3
3
|
* Builds the necessary glue code to load the query engine wasm module.
|
|
4
4
|
* @returns
|
|
5
5
|
*/
|
|
6
|
-
export declare function buildQueryEngineWasmModule(wasm: boolean, copyEngine: boolean, runtimeNameJs: TSClientOptions['runtimeNameJs']): "config.engineWasm = {\n getRuntime: () => require('./query_engine_bg.js'),\n getQueryEngineWasmModule: async () => {\n const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')\n const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)\n
|
|
6
|
+
export declare function buildQueryEngineWasmModule(wasm: boolean, copyEngine: boolean, runtimeNameJs: TSClientOptions['runtimeNameJs']): "config.engineWasm = {\n getRuntime: async () => require('./query_engine_bg.js'),\n getQueryEngineWasmModule: async () => {\n const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')\n const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)\n\n return new WebAssembly.Module(queryEngineWasmFileBytes)\n }\n }" | "config.engineWasm = {\n getRuntime: async () => require('./query_engine_bg.js'),\n getQueryEngineWasmModule: async () => {\n const loader = (await import('#wasm-engine-loader')).default\n const engine = (await loader).default\n return engine\n }\n}" | "config.engineWasm = undefined";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.96",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"pkg-up": "3.1.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/client-common": "6.6.0-dev.
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
36
|
+
"@prisma/client-common": "6.6.0-dev.96",
|
|
37
|
+
"@prisma/dmmf": "6.6.0-dev.96",
|
|
38
|
+
"@prisma/debug": "6.6.0-dev.96",
|
|
39
|
+
"@prisma/generator": "6.6.0-dev.96",
|
|
40
|
+
"@prisma/fetch-engine": "6.6.0-dev.96",
|
|
41
|
+
"@prisma/get-platform": "6.6.0-dev.96",
|
|
42
|
+
"@prisma/internals": "6.6.0-dev.96",
|
|
43
|
+
"@prisma/ts-builders": "6.6.0-dev.96"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"scripts": {
|
|
55
55
|
"dev": "DEV=true tsx helpers/build.ts",
|
|
56
56
|
"build": "tsx helpers/build.ts",
|
|
57
|
-
"test": "vitest run"
|
|
57
|
+
"test": "vitest run --testTimeout 30000"
|
|
58
58
|
}
|
|
59
59
|
}
|