@allbluecn/database 0.14.12 → 0.14.13

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.
@@ -48,15 +48,8 @@ config.compilerWasm = {
48
48
  getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs"),
49
49
 
50
50
  getQueryCompilerWasmModule: async () => {
51
- // PRISMA_WORKERD_WASM_PATCH_V1: workerd 禁动态 WASM 编译(prisma/orm#28657),
52
- // Cloudflare-Workers 环境走 vite-plugin 处理的 wasm 模块导入;
53
- // Node/Vercel/desktop 保持 base64 原路(decodeBase64AsWasm)。
54
- if (typeof navigator !== "undefined" && navigator.userAgent === "Cloudflare-Workers") {
55
- const wasmNs = (await import("../prisma-query-compiler.postgresql.wasm")) as unknown as { default: WebAssembly.Module };
56
- return wasmNs.default ?? (wasmNs as unknown as WebAssembly.Module);
57
- }
58
- const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.mjs");
59
- return await decodeBase64AsWasm(wasm)
51
+ const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.mjs")
52
+ return await decodeBase64AsWasm(wasm)
60
53
  },
61
54
 
62
55
  importName: "./query_compiler_fast_bg.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allbluecn/database",
3
- "version": "0.14.12",
3
+ "version": "0.14.13",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "main": "./index.ts",