@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.
@@ -1,5 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Initializes the WASM module.
5
+ *
6
+ * This function is automatically called when the WASM module is loaded.
7
+ * It sets up the panic hook to route Rust panics to the JavaScript console.
8
+ */
9
+ export function start(): void;
3
10
  /**
4
11
  * Drains the pending callback queue, invoking all enqueued callbacks.
5
12
  *
@@ -10,13 +17,6 @@
10
17
  * the error is propagated to JavaScript after the current batch completes.
11
18
  */
12
19
  export function callPendingEvents(): void;
13
- /**
14
- * Initializes the WASM module.
15
- *
16
- * This function is automatically called when the WASM module is loaded.
17
- * It sets up the panic hook to route Rust panics to the JavaScript console.
18
- */
19
- export function start(): void;
20
20
  /**
21
21
  * The main WASM-exposed flock instance.
22
22
  *
@@ -205,6 +205,16 @@ function debugString(val) {
205
205
  // TODO we could test for more things here, like `Set`s and `Map`s.
206
206
  return className;
207
207
  }
208
+ /**
209
+ * Initializes the WASM module.
210
+ *
211
+ * This function is automatically called when the WASM module is loaded.
212
+ * It sets up the panic hook to route Rust panics to the JavaScript console.
213
+ */
214
+ export function start() {
215
+ wasm.start();
216
+ }
217
+
208
218
  /**
209
219
  * Drains the pending callback queue, invoking all enqueued callbacks.
210
220
  *
@@ -218,16 +228,6 @@ export function callPendingEvents() {
218
228
  wasm.callPendingEvents();
219
229
  }
220
230
 
221
- /**
222
- * Initializes the WASM module.
223
- *
224
- * This function is automatically called when the WASM module is loaded.
225
- * It sets up the panic hook to route Rust panics to the JavaScript console.
226
- */
227
- export function start() {
228
- wasm.start();
229
- }
230
-
231
231
  function takeFromExternrefTable0(idx) {
232
232
  const value = wasm.__wbindgen_export_4.get(idx);
233
233
  wasm.__externref_table_dealloc(idx);
Binary file
@@ -1,5 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Initializes the WASM module.
5
+ *
6
+ * This function is automatically called when the WASM module is loaded.
7
+ * It sets up the panic hook to route Rust panics to the JavaScript console.
8
+ */
9
+ export function start(): void;
3
10
  /**
4
11
  * Drains the pending callback queue, invoking all enqueued callbacks.
5
12
  *
@@ -10,13 +17,6 @@
10
17
  * the error is propagated to JavaScript after the current batch completes.
11
18
  */
12
19
  export function callPendingEvents(): void;
13
- /**
14
- * Initializes the WASM module.
15
- *
16
- * This function is automatically called when the WASM module is loaded.
17
- * It sets up the panic hook to route Rust panics to the JavaScript console.
18
- */
19
- export function start(): void;
20
20
  /**
21
21
  * The main WASM-exposed flock instance.
22
22
  *
@@ -201,6 +201,16 @@ function debugString(val) {
201
201
  // TODO we could test for more things here, like `Set`s and `Map`s.
202
202
  return className;
203
203
  }
204
+ /**
205
+ * Initializes the WASM module.
206
+ *
207
+ * This function is automatically called when the WASM module is loaded.
208
+ * It sets up the panic hook to route Rust panics to the JavaScript console.
209
+ */
210
+ module.exports.start = function() {
211
+ wasm.start();
212
+ };
213
+
204
214
  /**
205
215
  * Drains the pending callback queue, invoking all enqueued callbacks.
206
216
  *
@@ -214,16 +224,6 @@ module.exports.callPendingEvents = function() {
214
224
  wasm.callPendingEvents();
215
225
  };
216
226
 
217
- /**
218
- * Initializes the WASM module.
219
- *
220
- * This function is automatically called when the WASM module is loaded.
221
- * It sets up the panic hook to route Rust panics to the JavaScript console.
222
- */
223
- module.exports.start = function() {
224
- wasm.start();
225
- };
226
-
227
227
  function takeFromExternrefTable0(idx) {
228
228
  const value = wasm.__wbindgen_export_4.get(idx);
229
229
  wasm.__externref_table_dealloc(idx);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loro-dev/flock-wasm",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "WASM bindings for flock-rs.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,5 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Initializes the WASM module.
5
+ *
6
+ * This function is automatically called when the WASM module is loaded.
7
+ * It sets up the panic hook to route Rust panics to the JavaScript console.
8
+ */
9
+ export function start(): void;
3
10
  /**
4
11
  * Drains the pending callback queue, invoking all enqueued callbacks.
5
12
  *
@@ -10,13 +17,6 @@
10
17
  * the error is propagated to JavaScript after the current batch completes.
11
18
  */
12
19
  export function callPendingEvents(): void;
13
- /**
14
- * Initializes the WASM module.
15
- *
16
- * This function is automatically called when the WASM module is loaded.
17
- * It sets up the panic hook to route Rust panics to the JavaScript console.
18
- */
19
- export function start(): void;
20
20
  /**
21
21
  * The main WASM-exposed flock instance.
22
22
  *
package/web/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);
Binary file