@loro-dev/flock-wasm 0.1.3 → 0.1.4
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/README.md +1281 -6
- package/base64/flock_wasm.js +10 -10
- package/base64/wasm.js +1 -1
- package/bundler/flock_wasm.d.ts +7 -7
- package/bundler/flock_wasm_bg.js +10 -10
- package/bundler/flock_wasm_bg.wasm +0 -0
- package/nodejs/flock_wasm.d.ts +7 -7
- package/nodejs/flock_wasm.js +10 -10
- package/nodejs/flock_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/web/flock_wasm.d.ts +7 -7
- package/web/flock_wasm.js +10 -10
- package/web/flock_wasm_bg.wasm +0 -0
package/base64/flock_wasm.js
CHANGED
|
@@ -197,6 +197,16 @@ function debugString(val) {
|
|
|
197
197
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
198
198
|
return className;
|
|
199
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Initializes the WASM module.
|
|
202
|
+
*
|
|
203
|
+
* This function is automatically called when the WASM module is loaded.
|
|
204
|
+
* It sets up the panic hook to route Rust panics to the JavaScript console.
|
|
205
|
+
*/
|
|
206
|
+
export function start() {
|
|
207
|
+
wasm.start();
|
|
208
|
+
}
|
|
209
|
+
|
|
200
210
|
/**
|
|
201
211
|
* Drains the pending callback queue, invoking all enqueued callbacks.
|
|
202
212
|
*
|
|
@@ -210,16 +220,6 @@ export function callPendingEvents() {
|
|
|
210
220
|
wasm.callPendingEvents();
|
|
211
221
|
}
|
|
212
222
|
|
|
213
|
-
/**
|
|
214
|
-
* Initializes the WASM module.
|
|
215
|
-
*
|
|
216
|
-
* This function is automatically called when the WASM module is loaded.
|
|
217
|
-
* It sets up the panic hook to route Rust panics to the JavaScript console.
|
|
218
|
-
*/
|
|
219
|
-
export function start() {
|
|
220
|
-
wasm.start();
|
|
221
|
-
}
|
|
222
|
-
|
|
223
223
|
function takeFromExternrefTable0(idx) {
|
|
224
224
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
225
225
|
wasm.__externref_table_dealloc(idx);
|