@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
|
-
|
|
52
|
-
|
|
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
|
Binary file
|