Comparing version 0.16.10 to 0.16.11
@@ -224,3 +224,3 @@ /* tslint:disable */ | ||
export const __wbindgen_export_2: WebAssembly.Table; | ||
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha2cb4ddd3bdd56da(a: number, b: number, c: number): void; | ||
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4104f240ab47fd05(a: number, b: number, c: number): void; | ||
export function __wbindgen_add_to_stack_pointer(a: number): number; | ||
@@ -227,0 +227,0 @@ export function __wbindgen_free(a: number, b: number, c: number): void; |
@@ -0,6 +1,16 @@ | ||
// See https://github.com/loro-dev/loro/issues/440 | ||
// Without this patch, Cloudflare Worker would raise issue like: "Uncaught TypeError: wasm2.__wbindgen_start is not a function" | ||
import * as wasm from "./loro_wasm_bg.wasm"; | ||
import { __wbg_set_wasm } from "./loro_wasm_bg.js"; | ||
__wbg_set_wasm(wasm); | ||
import * as imports from "./loro_wasm_bg.js"; | ||
if (wasm.__wbindgen_start) { | ||
imports.__wbg_set_wasm(wasm); | ||
wasm.__wbindgen_start(); | ||
} else { | ||
const wkmod = await import("./loro_wasm_bg.wasm"); | ||
const instance = new WebAssembly.Instance(wkmod.default, { | ||
"./loro_wasm_bg.js": imports, | ||
}); | ||
imports.__wbg_set_wasm(instance.exports); | ||
} | ||
export * from "./loro_wasm_bg.js"; | ||
wasm.__wbindgen_start(); |
@@ -224,3 +224,3 @@ /* tslint:disable */ | ||
export const __wbindgen_export_2: WebAssembly.Table; | ||
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha2cb4ddd3bdd56da(a: number, b: number, c: number): void; | ||
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4104f240ab47fd05(a: number, b: number, c: number): void; | ||
export function __wbindgen_add_to_stack_pointer(a: number): number; | ||
@@ -227,0 +227,0 @@ export function __wbindgen_free(a: number, b: number, c: number): void; |
{ | ||
"name": "loro-wasm", | ||
"version": "0.16.10", | ||
"version": "0.16.11", | ||
"description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4700251
16285