@prisma/client-generator-ts 7.3.0-integration-parameterization.5 → 7.3.0-integration-aqrln-upskmmvouusz.1
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 +9 -3
- package/dist/index.mjs +9 -3
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -3460,8 +3460,12 @@ function buildGetWasmModule({
|
|
|
3460
3460
|
if (buildNonEdgeLoader) {
|
|
3461
3461
|
wasmBindingsPath = `${wasmPathBase}.${extension}`;
|
|
3462
3462
|
wasmModulePath = `${wasmPathBase}.wasm-base64.${extension}`;
|
|
3463
|
-
|
|
3464
|
-
|
|
3463
|
+
const esmPreamble = moduleFormat === "esm" ? `import { createRequire as __createRequire } from 'node:module'
|
|
3464
|
+
const __require = __createRequire(import.meta.url)
|
|
3465
|
+
|
|
3466
|
+
` : "";
|
|
3467
|
+
const resolveCall = moduleFormat === "esm" ? `__require.resolve(${JSON.stringify(wasmBindingsPath)})` : `require.resolve(${JSON.stringify(wasmBindingsPath)})`;
|
|
3468
|
+
return `${esmPreamble}async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
3465
3469
|
const { Buffer } = await import('node:buffer')
|
|
3466
3470
|
const wasmArray = Buffer.from(wasmBase64, 'base64')
|
|
3467
3471
|
return new WebAssembly.Module(wasmArray)
|
|
@@ -3475,6 +3479,8 @@ config.compilerWasm = {
|
|
|
3475
3479
|
return await decodeBase64AsWasm(wasm)
|
|
3476
3480
|
},
|
|
3477
3481
|
|
|
3482
|
+
getRuntimePath: () => ${resolveCall},
|
|
3483
|
+
|
|
3478
3484
|
importName: ${JSON.stringify(`./${artifactName}.js`)}
|
|
3479
3485
|
}`;
|
|
3480
3486
|
}
|
|
@@ -6422,7 +6428,7 @@ var import_internals7 = require("@prisma/internals");
|
|
|
6422
6428
|
var import_get_tsconfig = require("get-tsconfig");
|
|
6423
6429
|
|
|
6424
6430
|
// package.json
|
|
6425
|
-
var version = "7.3.0-integration-
|
|
6431
|
+
var version = "7.3.0-integration-aqrln-upskmmvouusz.1";
|
|
6426
6432
|
|
|
6427
6433
|
// src/module-format.ts
|
|
6428
6434
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -3453,8 +3453,12 @@ function buildGetWasmModule({
|
|
|
3453
3453
|
if (buildNonEdgeLoader) {
|
|
3454
3454
|
wasmBindingsPath = `${wasmPathBase}.${extension}`;
|
|
3455
3455
|
wasmModulePath = `${wasmPathBase}.wasm-base64.${extension}`;
|
|
3456
|
-
|
|
3457
|
-
|
|
3456
|
+
const esmPreamble = moduleFormat === "esm" ? `import { createRequire as __createRequire } from 'node:module'
|
|
3457
|
+
const __require = __createRequire(import.meta.url)
|
|
3458
|
+
|
|
3459
|
+
` : "";
|
|
3460
|
+
const resolveCall = moduleFormat === "esm" ? `__require.resolve(${JSON.stringify(wasmBindingsPath)})` : `require.resolve(${JSON.stringify(wasmBindingsPath)})`;
|
|
3461
|
+
return `${esmPreamble}async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
|
3458
3462
|
const { Buffer } = await import('node:buffer')
|
|
3459
3463
|
const wasmArray = Buffer.from(wasmBase64, 'base64')
|
|
3460
3464
|
return new WebAssembly.Module(wasmArray)
|
|
@@ -3468,6 +3472,8 @@ config.compilerWasm = {
|
|
|
3468
3472
|
return await decodeBase64AsWasm(wasm)
|
|
3469
3473
|
},
|
|
3470
3474
|
|
|
3475
|
+
getRuntimePath: () => ${resolveCall},
|
|
3476
|
+
|
|
3471
3477
|
importName: ${JSON.stringify(`./${artifactName}.js`)}
|
|
3472
3478
|
}`;
|
|
3473
3479
|
}
|
|
@@ -6415,7 +6421,7 @@ import { parseEnvValue } from "@prisma/internals";
|
|
|
6415
6421
|
import { getTsconfig } from "get-tsconfig";
|
|
6416
6422
|
|
|
6417
6423
|
// package.json
|
|
6418
|
-
var version = "7.3.0-integration-
|
|
6424
|
+
var version = "7.3.0-integration-aqrln-upskmmvouusz.1";
|
|
6419
6425
|
|
|
6420
6426
|
// src/module-format.ts
|
|
6421
6427
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "7.3.0-integration-
|
|
3
|
+
"version": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
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,15 +33,15 @@
|
|
|
33
33
|
"package-up": "5.0.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/client-common": "7.3.0-integration-
|
|
37
|
-
"@prisma/debug": "7.3.0-integration-
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/get-platform": "7.3.0-integration-
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/ts-builders": "7.3.0-integration-
|
|
36
|
+
"@prisma/client-common": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
37
|
+
"@prisma/debug": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
38
|
+
"@prisma/dmmf": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
39
|
+
"@prisma/fetch-engine": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
40
|
+
"@prisma/get-platform": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
41
|
+
"@prisma/generator": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
42
|
+
"@prisma/internals": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
43
|
+
"@prisma/param-graph-builder": "7.3.0-integration-aqrln-upskmmvouusz.1",
|
|
44
|
+
"@prisma/ts-builders": "7.3.0-integration-aqrln-upskmmvouusz.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|