@prisma/client-generator-js 6.6.0-dev.94 → 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
|
@@ -2578,6 +2578,7 @@ var package_default = {
|
|
|
2578
2578
|
"stacktrace-parser": "0.1.11",
|
|
2579
2579
|
"strip-ansi": "6.0.1",
|
|
2580
2580
|
"strip-indent": "4.0.0",
|
|
2581
|
+
tempy: "3.0.0",
|
|
2581
2582
|
"ts-node": "10.9.2",
|
|
2582
2583
|
"ts-pattern": "5.6.2",
|
|
2583
2584
|
tsd: "0.31.2",
|
|
@@ -4620,22 +4621,22 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
4620
4621
|
function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
4621
4622
|
if (copyCompiler && runtimeNameJs === "client") {
|
|
4622
4623
|
return `config.compilerWasm = {
|
|
4623
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4624
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4624
4625
|
getQueryCompilerWasmModule: async () => {
|
|
4625
4626
|
const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
|
|
4626
4627
|
const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
|
|
4627
|
-
|
|
4628
|
+
|
|
4628
4629
|
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
4629
4630
|
}
|
|
4630
4631
|
}`;
|
|
4631
4632
|
}
|
|
4632
4633
|
if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
|
|
4633
4634
|
return `config.compilerWasm = {
|
|
4634
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4635
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4635
4636
|
getQueryCompilerWasmModule: async () => {
|
|
4636
4637
|
const loader = (await import('#wasm-compiler-loader')).default
|
|
4637
4638
|
const compiler = (await loader).default
|
|
4638
|
-
return compiler
|
|
4639
|
+
return compiler
|
|
4639
4640
|
}
|
|
4640
4641
|
}`;
|
|
4641
4642
|
}
|
|
@@ -4646,22 +4647,22 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
4646
4647
|
function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
4647
4648
|
if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
|
|
4648
4649
|
return `config.engineWasm = {
|
|
4649
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4650
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4650
4651
|
getQueryEngineWasmModule: async () => {
|
|
4651
4652
|
const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')
|
|
4652
4653
|
const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)
|
|
4653
|
-
|
|
4654
|
+
|
|
4654
4655
|
return new WebAssembly.Module(queryEngineWasmFileBytes)
|
|
4655
4656
|
}
|
|
4656
4657
|
}`;
|
|
4657
4658
|
}
|
|
4658
4659
|
if (copyEngine && wasm === true) {
|
|
4659
4660
|
return `config.engineWasm = {
|
|
4660
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4661
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4661
4662
|
getQueryEngineWasmModule: async () => {
|
|
4662
4663
|
const loader = (await import('#wasm-engine-loader')).default
|
|
4663
4664
|
const engine = (await loader).default
|
|
4664
|
-
return engine
|
|
4665
|
+
return engine
|
|
4665
4666
|
}
|
|
4666
4667
|
}`;
|
|
4667
4668
|
}
|
|
@@ -7155,7 +7156,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
7155
7156
|
var import_ts_pattern = require("ts-pattern");
|
|
7156
7157
|
|
|
7157
7158
|
// package.json
|
|
7158
|
-
var version = "6.6.0-dev.
|
|
7159
|
+
var version = "6.6.0-dev.96";
|
|
7159
7160
|
|
|
7160
7161
|
// src/resolvePrismaClient.ts
|
|
7161
7162
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -2573,6 +2573,7 @@ var package_default = {
|
|
|
2573
2573
|
"stacktrace-parser": "0.1.11",
|
|
2574
2574
|
"strip-ansi": "6.0.1",
|
|
2575
2575
|
"strip-indent": "4.0.0",
|
|
2576
|
+
tempy: "3.0.0",
|
|
2576
2577
|
"ts-node": "10.9.2",
|
|
2577
2578
|
"ts-pattern": "5.6.2",
|
|
2578
2579
|
tsd: "0.31.2",
|
|
@@ -4618,22 +4619,22 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
|
|
|
4618
4619
|
function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
4619
4620
|
if (copyCompiler && runtimeNameJs === "client") {
|
|
4620
4621
|
return `config.compilerWasm = {
|
|
4621
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4622
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4622
4623
|
getQueryCompilerWasmModule: async () => {
|
|
4623
4624
|
const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
|
|
4624
4625
|
const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
|
|
4625
|
-
|
|
4626
|
+
|
|
4626
4627
|
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
4627
4628
|
}
|
|
4628
4629
|
}`;
|
|
4629
4630
|
}
|
|
4630
4631
|
if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
|
|
4631
4632
|
return `config.compilerWasm = {
|
|
4632
|
-
getRuntime: () => require('./query_compiler_bg.js'),
|
|
4633
|
+
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
4633
4634
|
getQueryCompilerWasmModule: async () => {
|
|
4634
4635
|
const loader = (await import('#wasm-compiler-loader')).default
|
|
4635
4636
|
const compiler = (await loader).default
|
|
4636
|
-
return compiler
|
|
4637
|
+
return compiler
|
|
4637
4638
|
}
|
|
4638
4639
|
}`;
|
|
4639
4640
|
}
|
|
@@ -4644,22 +4645,22 @@ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
|
|
|
4644
4645
|
function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
|
|
4645
4646
|
if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
|
|
4646
4647
|
return `config.engineWasm = {
|
|
4647
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4648
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4648
4649
|
getQueryEngineWasmModule: async () => {
|
|
4649
4650
|
const queryEngineWasmFilePath = require('path').join(config.dirname, 'query_engine_bg.wasm')
|
|
4650
4651
|
const queryEngineWasmFileBytes = require('fs').readFileSync(queryEngineWasmFilePath)
|
|
4651
|
-
|
|
4652
|
+
|
|
4652
4653
|
return new WebAssembly.Module(queryEngineWasmFileBytes)
|
|
4653
4654
|
}
|
|
4654
4655
|
}`;
|
|
4655
4656
|
}
|
|
4656
4657
|
if (copyEngine && wasm === true) {
|
|
4657
4658
|
return `config.engineWasm = {
|
|
4658
|
-
getRuntime: () => require('./query_engine_bg.js'),
|
|
4659
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
4659
4660
|
getQueryEngineWasmModule: async () => {
|
|
4660
4661
|
const loader = (await import('#wasm-engine-loader')).default
|
|
4661
4662
|
const engine = (await loader).default
|
|
4662
|
-
return engine
|
|
4663
|
+
return engine
|
|
4663
4664
|
}
|
|
4664
4665
|
}`;
|
|
4665
4666
|
}
|
|
@@ -7153,7 +7154,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
7153
7154
|
import { match } from "ts-pattern";
|
|
7154
7155
|
|
|
7155
7156
|
// package.json
|
|
7156
|
-
var version = "6.6.0-dev.
|
|
7157
|
+
var version = "6.6.0-dev.96";
|
|
7157
7158
|
|
|
7158
7159
|
// src/resolvePrismaClient.ts
|
|
7159
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/
|
|
37
|
-
"@prisma/dmmf": "6.6.0-dev.
|
|
38
|
-
"@prisma/debug": "6.6.0-dev.
|
|
39
|
-
"@prisma/generator": "6.6.0-dev.
|
|
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
|
}
|