@prisma/client-generator-ts 6.15.0-dev.16 → 6.15.0-dev.18

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 CHANGED
@@ -3480,8 +3480,7 @@ function buildGetWasmModule({
3480
3480
  return `
3481
3481
  async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
3482
3482
  const { Buffer } = await import('node:buffer')
3483
- const base64Data = wasmBase64.replace('data:application/wasm;base64,', '')
3484
- const wasmArray = new Uint8Array(Buffer.from(base64Data, 'base64'))
3483
+ const wasmArray = new Uint8Array(Buffer.from(wasmBase64, 'base64'))
3485
3484
  return new WebAssembly.Module(wasmArray)
3486
3485
  }
3487
3486
 
@@ -4041,7 +4040,7 @@ ${modelEnumsAliases.length > 0 ? `${modelEnumsAliases.join("\n\n")}` : ""}
4041
4040
  }
4042
4041
  function buildPreamble(edge, moduleFormat) {
4043
4042
  if (edge) {
4044
- return `const __dirname = '/'
4043
+ return `globalThis['__dirname'] = '/'
4045
4044
  `;
4046
4045
  }
4047
4046
  let preamble = `import * as process from 'node:process'
@@ -4049,7 +4048,7 @@ import * as path from 'node:path'
4049
4048
  `;
4050
4049
  if (moduleFormat === "esm") {
4051
4050
  preamble += `import { fileURLToPath } from 'node:url'
4052
- const __dirname = path.dirname(fileURLToPath(import.meta.url))
4051
+ globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
4053
4052
  `;
4054
4053
  }
4055
4054
  return preamble;
@@ -6562,7 +6561,7 @@ var import_get_tsconfig = require("get-tsconfig");
6562
6561
  var import_ts_pattern2 = require("ts-pattern");
6563
6562
 
6564
6563
  // package.json
6565
- var version = "6.15.0-dev.16";
6564
+ var version = "6.15.0-dev.18";
6566
6565
 
6567
6566
  // src/module-format.ts
6568
6567
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -3479,8 +3479,7 @@ function buildGetWasmModule({
3479
3479
  return `
3480
3480
  async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
3481
3481
  const { Buffer } = await import('node:buffer')
3482
- const base64Data = wasmBase64.replace('data:application/wasm;base64,', '')
3483
- const wasmArray = new Uint8Array(Buffer.from(base64Data, 'base64'))
3482
+ const wasmArray = new Uint8Array(Buffer.from(wasmBase64, 'base64'))
3484
3483
  return new WebAssembly.Module(wasmArray)
3485
3484
  }
3486
3485
 
@@ -4040,7 +4039,7 @@ ${modelEnumsAliases.length > 0 ? `${modelEnumsAliases.join("\n\n")}` : ""}
4040
4039
  }
4041
4040
  function buildPreamble(edge, moduleFormat) {
4042
4041
  if (edge) {
4043
- return `const __dirname = '/'
4042
+ return `globalThis['__dirname'] = '/'
4044
4043
  `;
4045
4044
  }
4046
4045
  let preamble = `import * as process from 'node:process'
@@ -4048,7 +4047,7 @@ import * as path from 'node:path'
4048
4047
  `;
4049
4048
  if (moduleFormat === "esm") {
4050
4049
  preamble += `import { fileURLToPath } from 'node:url'
4051
- const __dirname = path.dirname(fileURLToPath(import.meta.url))
4050
+ globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
4052
4051
  `;
4053
4052
  }
4054
4053
  return preamble;
@@ -6561,7 +6560,7 @@ import { getTsconfig } from "get-tsconfig";
6561
6560
  import { match as match2 } from "ts-pattern";
6562
6561
 
6563
6562
  // package.json
6564
- var version = "6.15.0-dev.16";
6563
+ var version = "6.15.0-dev.18";
6565
6564
 
6566
6565
  // src/module-format.ts
6567
6566
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.15.0-dev.16",
3
+ "version": "6.15.0-dev.18",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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.15.0-dev.16",
38
- "@prisma/debug": "6.15.0-dev.16",
39
- "@prisma/dmmf": "6.15.0-dev.16",
40
- "@prisma/fetch-engine": "6.15.0-dev.16",
41
- "@prisma/get-platform": "6.15.0-dev.16",
42
- "@prisma/generator": "6.15.0-dev.16",
43
- "@prisma/ts-builders": "6.15.0-dev.16",
44
- "@prisma/internals": "6.15.0-dev.16"
37
+ "@prisma/debug": "6.15.0-dev.18",
38
+ "@prisma/dmmf": "6.15.0-dev.18",
39
+ "@prisma/fetch-engine": "6.15.0-dev.18",
40
+ "@prisma/client-common": "6.15.0-dev.18",
41
+ "@prisma/generator": "6.15.0-dev.18",
42
+ "@prisma/ts-builders": "6.15.0-dev.18",
43
+ "@prisma/get-platform": "6.15.0-dev.18",
44
+ "@prisma/internals": "6.15.0-dev.18"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",