jazz-wasm 2.0.0-alpha.29 → 2.0.0-alpha.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jazz-wasm",
3
- "version": "2.0.0-alpha.29",
3
+ "version": "2.0.0-alpha.30",
4
4
  "description": "WebAssembly bindings for the Jazz database engine",
5
5
  "keywords": [
6
6
  "crdt",
@@ -18,6 +18,7 @@
18
18
  "pkg/jazz_wasm.js",
19
19
  "pkg/jazz_wasm.d.ts"
20
20
  ],
21
+ "type": "module",
21
22
  "main": "pkg/jazz_wasm.js",
22
23
  "types": "pkg/jazz_wasm.d.ts",
23
24
  "publishConfig": {
@@ -123,6 +123,13 @@ export class WasmRuntime {
123
123
  * before the call returns, rather than being deferred to a microtask.
124
124
  */
125
125
  addServer(server_catalogue_state_hash?: string | null, next_sync_seq?: number | null): void;
126
+ /**
127
+ * Connect to a Jazz server over WebSocket.
128
+ *
129
+ * Parses `auth_json` into `AuthConfig`, wires a `TransportManager` into
130
+ * `RuntimeCore`, and spawns the manager loop via `spawn_local`.
131
+ */
132
+ connect(url: string, auth_json: string): void;
126
133
  /**
127
134
  * Phase 1 of 2-phase subscribe: allocate a handle and store query params.
128
135
  * No compilation, no sync, no tick — just bookkeeping.
@@ -146,6 +153,10 @@ export class WasmRuntime {
146
153
  */
147
154
  deleteWithSession(object_id: string, write_context_json?: string | null): void;
148
155
  static deriveUserId(seed_b64: string): string;
156
+ /**
157
+ * Disconnect from the Jazz server and drop the transport handle.
158
+ */
159
+ disconnect(): void;
149
160
  /**
150
161
  * Phase 2 of 2-phase subscribe: compile graph, register subscription,
151
162
  * sync to servers, attach callback, and deliver the first delta.
@@ -209,6 +220,13 @@ export class WasmRuntime {
209
220
  * `Some(true)` emits postcard bytes (`Uint8Array`), otherwise JSON strings.
210
221
  */
211
222
  constructor(schema_json: string, app_id: string, env: string, user_branch: string, tier?: string | null, use_binary_encoding?: boolean | null);
223
+ /**
224
+ * Register a JS callback that fires when the Rust transport receives an
225
+ * auth failure (Unauthorized) from the server during the WS handshake.
226
+ *
227
+ * The callback receives a single string argument: a human-readable reason.
228
+ */
229
+ onAuthFailure(callback: Function): void;
212
230
  /**
213
231
  * Called by JS when a sync message arrives from the server.
214
232
  *
@@ -275,6 +293,10 @@ export class WasmRuntime {
275
293
  * Update a row by ObjectId.
276
294
  */
277
295
  update(object_id: string, values: any): void;
296
+ /**
297
+ * Push updated auth credentials into the live transport.
298
+ */
299
+ updateAuth(auth_json: string): void;
278
300
  /**
279
301
  * Update a row and return a Promise that resolves when the tier acks.
280
302
  */
@@ -372,9 +394,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
372
394
  export interface InitOutput {
373
395
  readonly memory: WebAssembly.Memory;
374
396
  readonly __wbg_wasmquerybuilder_free: (a: number, b: number) => void;
375
- readonly currentTimestamp: () => bigint;
376
- readonly generateId: () => [number, number];
377
- readonly parseSchema: (a: number, b: number) => [number, number, number];
378
397
  readonly wasmquerybuilder_alias: (a: number, b: number, c: number) => number;
379
398
  readonly wasmquerybuilder_branch: (a: number, b: number, c: number) => number;
380
399
  readonly wasmquerybuilder_branches: (a: number, b: number, c: number) => number;
@@ -396,18 +415,23 @@ export interface InitOutput {
396
415
  readonly wasmquerybuilder_orderBy: (a: number, b: number, c: number) => number;
397
416
  readonly wasmquerybuilder_orderByDesc: (a: number, b: number, c: number) => number;
398
417
  readonly wasmquerybuilder_select: (a: number, b: number, c: number) => number;
418
+ readonly currentTimestamp: () => bigint;
419
+ readonly generateId: () => [number, number];
420
+ readonly parseSchema: (a: number, b: number) => [number, number, number];
399
421
  readonly init: () => void;
400
422
  readonly __wbg_wasmruntime_free: (a: number, b: number) => void;
401
423
  readonly wasmruntime___debugSchemaState: (a: number) => [number, number, number];
402
424
  readonly wasmruntime___debugSeedLiveSchema: (a: number, b: number, c: number) => [number, number];
403
425
  readonly wasmruntime_addClient: (a: number) => [number, number];
404
426
  readonly wasmruntime_addServer: (a: number, b: number, c: number, d: number, e: number) => [number, number];
427
+ readonly wasmruntime_connect: (a: number, b: number, c: number, d: number, e: number) => [number, number];
405
428
  readonly wasmruntime_createSubscription: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
406
429
  readonly wasmruntime_delete: (a: number, b: number, c: number) => [number, number];
407
430
  readonly wasmruntime_deleteDurable: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
408
431
  readonly wasmruntime_deleteDurableWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
409
432
  readonly wasmruntime_deleteWithSession: (a: number, b: number, c: number, d: number, e: number) => [number, number];
410
433
  readonly wasmruntime_deriveUserId: (a: number, b: number) => [number, number, number, number];
434
+ readonly wasmruntime_disconnect: (a: number) => void;
411
435
  readonly wasmruntime_executeSubscription: (a: number, b: number, c: any) => [number, number];
412
436
  readonly wasmruntime_flush: (a: number) => void;
413
437
  readonly wasmruntime_flushWal: (a: number) => void;
@@ -420,6 +444,7 @@ export interface InitOutput {
420
444
  readonly wasmruntime_insertWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
421
445
  readonly wasmruntime_mintLocalFirstToken: (a: number, b: number, c: number, d: number, e: bigint, f: bigint) => [number, number, number, number];
422
446
  readonly wasmruntime_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => [number, number, number];
447
+ readonly wasmruntime_onAuthFailure: (a: number, b: any) => void;
423
448
  readonly wasmruntime_onSyncMessageReceived: (a: number, b: any, c: number, d: number) => [number, number];
424
449
  readonly wasmruntime_onSyncMessageReceivedFromClient: (a: number, b: number, c: number, d: any) => [number, number];
425
450
  readonly wasmruntime_onSyncMessageToSend: (a: number, b: any) => void;
@@ -430,6 +455,7 @@ export interface InitOutput {
430
455
  readonly wasmruntime_subscribe: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
431
456
  readonly wasmruntime_unsubscribe: (a: number, b: number) => void;
432
457
  readonly wasmruntime_update: (a: number, b: number, c: number, d: any) => [number, number];
458
+ readonly wasmruntime_updateAuth: (a: number, b: number, c: number) => [number, number];
433
459
  readonly wasmruntime_updateDurable: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
434
460
  readonly wasmruntime_updateDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
435
461
  readonly wasmruntime_updateWithSession: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number];
@@ -456,8 +482,11 @@ export interface InitOutput {
456
482
  readonly bench_reset_overflow_threshold_bytes: () => void;
457
483
  readonly bench_reset_pin_internal_pages: () => void;
458
484
  readonly bench_reset_read_coalesce_pages: () => void;
459
- readonly wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7: (a: number, b: number, c: any) => [number, number];
460
- readonly wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193: (a: number, b: number, c: any, d: any) => void;
485
+ readonly wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6: (a: number, b: number, c: any) => [number, number];
486
+ readonly wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6: (a: number, b: number, c: any, d: any) => void;
487
+ readonly wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36: (a: number, b: number, c: any) => void;
488
+ readonly wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5: (a: number, b: number, c: any) => void;
489
+ readonly wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690: (a: number, b: number) => void;
461
490
  readonly __wbindgen_malloc: (a: number, b: number) => number;
462
491
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
463
492
  readonly __wbindgen_exn_store: (a: number) => void;
package/pkg/jazz_wasm.js CHANGED
@@ -385,6 +385,24 @@ export class WasmRuntime {
385
385
  throw takeFromExternrefTable0(ret[0]);
386
386
  }
387
387
  }
388
+ /**
389
+ * Connect to a Jazz server over WebSocket.
390
+ *
391
+ * Parses `auth_json` into `AuthConfig`, wires a `TransportManager` into
392
+ * `RuntimeCore`, and spawns the manager loop via `spawn_local`.
393
+ * @param {string} url
394
+ * @param {string} auth_json
395
+ */
396
+ connect(url, auth_json) {
397
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
398
+ const len0 = WASM_VECTOR_LEN;
399
+ const ptr1 = passStringToWasm0(auth_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
400
+ const len1 = WASM_VECTOR_LEN;
401
+ const ret = wasm.wasmruntime_connect(this.__wbg_ptr, ptr0, len0, ptr1, len1);
402
+ if (ret[1]) {
403
+ throw takeFromExternrefTable0(ret[0]);
404
+ }
405
+ }
388
406
  /**
389
407
  * Phase 1 of 2-phase subscribe: allocate a handle and store query params.
390
408
  * No compilation, no sync, no tick — just bookkeeping.
@@ -498,6 +516,12 @@ export class WasmRuntime {
498
516
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
499
517
  }
500
518
  }
519
+ /**
520
+ * Disconnect from the Jazz server and drop the transport handle.
521
+ */
522
+ disconnect() {
523
+ wasm.wasmruntime_disconnect(this.__wbg_ptr);
524
+ }
501
525
  /**
502
526
  * Phase 2 of 2-phase subscribe: compile graph, register subscription,
503
527
  * sync to servers, attach callback, and deliver the first delta.
@@ -734,6 +758,16 @@ export class WasmRuntime {
734
758
  WasmRuntimeFinalization.register(this, this.__wbg_ptr, this);
735
759
  return this;
736
760
  }
761
+ /**
762
+ * Register a JS callback that fires when the Rust transport receives an
763
+ * auth failure (Unauthorized) from the server during the WS handshake.
764
+ *
765
+ * The callback receives a single string argument: a human-readable reason.
766
+ * @param {Function} callback
767
+ */
768
+ onAuthFailure(callback) {
769
+ wasm.wasmruntime_onAuthFailure(this.__wbg_ptr, callback);
770
+ }
737
771
  /**
738
772
  * Called by JS when a sync message arrives from the server.
739
773
  *
@@ -906,6 +940,18 @@ export class WasmRuntime {
906
940
  throw takeFromExternrefTable0(ret[0]);
907
941
  }
908
942
  }
943
+ /**
944
+ * Push updated auth credentials into the live transport.
945
+ * @param {string} auth_json
946
+ */
947
+ updateAuth(auth_json) {
948
+ const ptr0 = passStringToWasm0(auth_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
949
+ const len0 = WASM_VECTOR_LEN;
950
+ const ret = wasm.wasmruntime_updateAuth(this.__wbg_ptr, ptr0, len0);
951
+ if (ret[1]) {
952
+ throw takeFromExternrefTable0(ret[0]);
953
+ }
954
+ }
909
955
  /**
910
956
  * Update a row and return a Promise that resolves when the tier acks.
911
957
  * @param {string} object_id
@@ -1330,13 +1376,36 @@ function __wbg_get_imports() {
1330
1376
  const ret = arg0.call(arg1, arg2);
1331
1377
  return ret;
1332
1378
  }, arguments); },
1379
+ __wbg_clearTimeout_113b1cde814ec762: function(arg0) {
1380
+ const ret = clearTimeout(arg0);
1381
+ return ret;
1382
+ },
1333
1383
  __wbg_close_e526ab9e090e8cc1: function(arg0) {
1334
1384
  arg0.close();
1335
1385
  },
1386
+ __wbg_close_f181fdc02ee236e6: function() { return handleError(function (arg0) {
1387
+ arg0.close();
1388
+ }, arguments); },
1389
+ __wbg_code_8b9f98f9216b2f10: function(arg0) {
1390
+ const ret = arg0.code;
1391
+ return ret;
1392
+ },
1393
+ __wbg_code_c96efa5c1a80b2d9: function(arg0) {
1394
+ const ret = arg0.code;
1395
+ return ret;
1396
+ },
1336
1397
  __wbg_createSyncAccessHandle_3be98daf699667a7: function(arg0) {
1337
1398
  const ret = arg0.createSyncAccessHandle();
1338
1399
  return ret;
1339
1400
  },
1401
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
1402
+ const ret = arg0.crypto;
1403
+ return ret;
1404
+ },
1405
+ __wbg_data_60b50110c5bd9349: function(arg0) {
1406
+ const ret = arg0.data;
1407
+ return ret;
1408
+ },
1340
1409
  __wbg_debug_32973ac940f2ca14: function(arg0, arg1) {
1341
1410
  let deferred0_0;
1342
1411
  let deferred0_1;
@@ -1414,6 +1483,9 @@ function __wbg_get_imports() {
1414
1483
  __wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
1415
1484
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1416
1485
  }, arguments); },
1486
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
1487
+ arg0.getRandomValues(arg1);
1488
+ }, arguments); },
1417
1489
  __wbg_getRandomValues_d49329ff89a07af1: function() { return handleError(function (arg0, arg1) {
1418
1490
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1419
1491
  }, arguments); },
@@ -1451,6 +1523,16 @@ function __wbg_get_imports() {
1451
1523
  const ret = result;
1452
1524
  return ret;
1453
1525
  },
1526
+ __wbg_instanceof_Blob_6b3922471f5ba34c: function(arg0) {
1527
+ let result;
1528
+ try {
1529
+ result = arg0 instanceof Blob;
1530
+ } catch (_) {
1531
+ result = false;
1532
+ }
1533
+ const ret = result;
1534
+ return ret;
1535
+ },
1454
1536
  __wbg_instanceof_DomException_37f96d3fb69189bd: function(arg0) {
1455
1537
  let result;
1456
1538
  try {
@@ -1592,6 +1674,17 @@ function __wbg_get_imports() {
1592
1674
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1593
1675
  }
1594
1676
  }, arguments); },
1677
+ __wbg_message_52a9425f28c45ebc: function(arg0, arg1) {
1678
+ const ret = arg1.message;
1679
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1680
+ const len1 = WASM_VECTOR_LEN;
1681
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1682
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1683
+ },
1684
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
1685
+ const ret = arg0.msCrypto;
1686
+ return ret;
1687
+ },
1595
1688
  __wbg_navigator_af52153252bdf29d: function(arg0) {
1596
1689
  const ret = arg0.navigator;
1597
1690
  return ret;
@@ -1607,7 +1700,7 @@ function __wbg_get_imports() {
1607
1700
  const a = state0.a;
1608
1701
  state0.a = 0;
1609
1702
  try {
1610
- return wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(a, state0.b, arg0, arg1);
1703
+ return wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6(a, state0.b, arg0, arg1);
1611
1704
  } finally {
1612
1705
  state0.a = a;
1613
1706
  }
@@ -1626,6 +1719,10 @@ function __wbg_get_imports() {
1626
1719
  const ret = new Map();
1627
1720
  return ret;
1628
1721
  },
1722
+ __wbg_new_a2d8434834334bbf: function() { return handleError(function (arg0, arg1) {
1723
+ const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
1724
+ return ret;
1725
+ }, arguments); },
1629
1726
  __wbg_new_a560378ea1240b14: function(arg0) {
1630
1727
  const ret = new Uint8Array(arg0);
1631
1728
  return ret;
@@ -1645,7 +1742,7 @@ function __wbg_get_imports() {
1645
1742
  const a = state0.a;
1646
1743
  state0.a = 0;
1647
1744
  try {
1648
- return wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(a, state0.b, arg0, arg1);
1745
+ return wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6(a, state0.b, arg0, arg1);
1649
1746
  } finally {
1650
1747
  state0.a = a;
1651
1748
  }
@@ -1656,6 +1753,14 @@ function __wbg_get_imports() {
1656
1753
  state0.a = 0;
1657
1754
  }
1658
1755
  },
1756
+ __wbg_new_with_length_9cedd08484b73942: function(arg0) {
1757
+ const ret = new Uint8Array(arg0 >>> 0);
1758
+ return ret;
1759
+ },
1760
+ __wbg_new_with_str_sequence_e6b5bb982fdcf253: function() { return handleError(function (arg0, arg1, arg2) {
1761
+ const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
1762
+ return ret;
1763
+ }, arguments); },
1659
1764
  __wbg_next_01132ed6134b8ef5: function(arg0) {
1660
1765
  const ret = arg0.next;
1661
1766
  return ret;
@@ -1664,6 +1769,10 @@ function __wbg_get_imports() {
1664
1769
  const ret = arg0.next();
1665
1770
  return ret;
1666
1771
  }, arguments); },
1772
+ __wbg_node_84ea875411254db1: function(arg0) {
1773
+ const ret = arg0.node;
1774
+ return ret;
1775
+ },
1667
1776
  __wbg_now_6798946be0e6fe2b: function() { return handleError(function () {
1668
1777
  const ret = Date.now();
1669
1778
  return ret;
@@ -1672,9 +1781,25 @@ function __wbg_get_imports() {
1672
1781
  const ret = Date.now();
1673
1782
  return ret;
1674
1783
  },
1784
+ __wbg_now_e7c6795a7f81e10f: function(arg0) {
1785
+ const ret = arg0.now();
1786
+ return ret;
1787
+ },
1788
+ __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
1789
+ const ret = arg0.performance;
1790
+ return ret;
1791
+ },
1792
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
1793
+ const ret = arg0.process;
1794
+ return ret;
1795
+ },
1675
1796
  __wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
1676
1797
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1677
1798
  },
1799
+ __wbg_push_6bdbc990be5ac37b: function(arg0, arg1) {
1800
+ const ret = arg0.push(arg1);
1801
+ return ret;
1802
+ },
1678
1803
  __wbg_queueMicrotask_abaf92f0bd4e80a4: function(arg0) {
1679
1804
  const ret = arg0.queueMicrotask;
1680
1805
  return ret;
@@ -1682,6 +1807,9 @@ function __wbg_get_imports() {
1682
1807
  __wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
1683
1808
  queueMicrotask(arg0);
1684
1809
  },
1810
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
1811
+ arg0.randomFillSync(arg1);
1812
+ }, arguments); },
1685
1813
  __wbg_random_a72d453e63c9558c: function() {
1686
1814
  const ret = Math.random();
1687
1815
  return ret;
@@ -1690,13 +1818,38 @@ function __wbg_get_imports() {
1690
1818
  const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
1691
1819
  return ret;
1692
1820
  }, arguments); },
1821
+ __wbg_readyState_631d9f7c37e595d7: function(arg0) {
1822
+ const ret = arg0.readyState;
1823
+ return ret;
1824
+ },
1825
+ __wbg_reason_85e58391371e868d: function(arg0, arg1) {
1826
+ const ret = arg1.reason;
1827
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1828
+ const len1 = WASM_VECTOR_LEN;
1829
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1830
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1831
+ },
1832
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
1833
+ const ret = module.require;
1834
+ return ret;
1835
+ }, arguments); },
1693
1836
  __wbg_resolve_0a79de24e9d2267b: function(arg0) {
1694
1837
  const ret = Promise.resolve(arg0);
1695
1838
  return ret;
1696
1839
  },
1840
+ __wbg_send_4f53c94146f0274d: function() { return handleError(function (arg0, arg1, arg2) {
1841
+ arg0.send(getStringFromWasm0(arg1, arg2));
1842
+ }, arguments); },
1843
+ __wbg_send_64dd480ad0d86a31: function() { return handleError(function (arg0, arg1, arg2) {
1844
+ arg0.send(getArrayU8FromWasm0(arg1, arg2));
1845
+ }, arguments); },
1697
1846
  __wbg_setTimeout_90ea1b70d376baa9: function(arg0, arg1) {
1698
1847
  setTimeout(arg0, arg1);
1699
1848
  },
1849
+ __wbg_setTimeout_ef24d2fc3ad97385: function() { return handleError(function (arg0, arg1) {
1850
+ const ret = setTimeout(arg0, arg1);
1851
+ return ret;
1852
+ }, arguments); },
1700
1853
  __wbg_set_08463b1df38a7e29: function(arg0, arg1, arg2) {
1701
1854
  const ret = arg0.set(arg1, arg2);
1702
1855
  return ret;
@@ -1714,9 +1867,24 @@ function __wbg_get_imports() {
1714
1867
  __wbg_set_at_da2d1d4dc8ed37da: function(arg0, arg1) {
1715
1868
  arg0.at = arg1;
1716
1869
  },
1870
+ __wbg_set_binaryType_95c0a0f7586a3903: function(arg0, arg1) {
1871
+ arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
1872
+ },
1717
1873
  __wbg_set_create_0654e513e8ccb2be: function(arg0, arg1) {
1718
1874
  arg0.create = arg1 !== 0;
1719
1875
  },
1876
+ __wbg_set_onclose_47cce56c686db4fb: function(arg0, arg1) {
1877
+ arg0.onclose = arg1;
1878
+ },
1879
+ __wbg_set_onerror_3db8bc3e52b2b10b: function(arg0, arg1) {
1880
+ arg0.onerror = arg1;
1881
+ },
1882
+ __wbg_set_onmessage_45bd33b110c54f5b: function(arg0, arg1) {
1883
+ arg0.onmessage = arg1;
1884
+ },
1885
+ __wbg_set_onopen_7ffeb01f8a628209: function(arg0, arg1) {
1886
+ arg0.onopen = arg1;
1887
+ },
1720
1888
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
1721
1889
  const ret = arg1.stack;
1722
1890
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1744,6 +1912,10 @@ function __wbg_get_imports() {
1744
1912
  const ret = arg0.storage;
1745
1913
  return ret;
1746
1914
  },
1915
+ __wbg_subarray_0f98d3fb634508ad: function(arg0, arg1, arg2) {
1916
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1917
+ return ret;
1918
+ },
1747
1919
  __wbg_then_00eed3ac0b8e82cb: function(arg0, arg1, arg2) {
1748
1920
  const ret = arg0.then(arg1, arg2);
1749
1921
  return ret;
@@ -1752,10 +1924,21 @@ function __wbg_get_imports() {
1752
1924
  const ret = arg0.then(arg1);
1753
1925
  return ret;
1754
1926
  },
1927
+ __wbg_url_b9fa55c409492e65: function(arg0, arg1) {
1928
+ const ret = arg1.url;
1929
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1930
+ const len1 = WASM_VECTOR_LEN;
1931
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1932
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1933
+ },
1755
1934
  __wbg_value_7f6052747ccf940f: function(arg0) {
1756
1935
  const ret = arg0.value;
1757
1936
  return ret;
1758
1937
  },
1938
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
1939
+ const ret = arg0.versions;
1940
+ return ret;
1941
+ },
1759
1942
  __wbg_warn_173c62eb2a78dd0b: function(arg0, arg1) {
1760
1943
  let deferred0_0;
1761
1944
  let deferred0_1;
@@ -1778,6 +1961,10 @@ function __wbg_get_imports() {
1778
1961
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1779
1962
  }
1780
1963
  },
1964
+ __wbg_wasClean_919e018e809fd9da: function(arg0) {
1965
+ const ret = arg0.wasClean;
1966
+ return ret;
1967
+ },
1781
1968
  __wbg_wasmruntime_new: function(arg0) {
1782
1969
  const ret = WasmRuntime.__wrap(arg0);
1783
1970
  return ret;
@@ -1787,26 +1974,46 @@ function __wbg_get_imports() {
1787
1974
  return ret;
1788
1975
  }, arguments); },
1789
1976
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1790
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2817, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1791
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7);
1977
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3017, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1978
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6);
1979
+ return ret;
1980
+ },
1981
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1982
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 596, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1983
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36);
1792
1984
  return ret;
1793
1985
  },
1794
- __wbindgen_cast_0000000000000002: function(arg0) {
1986
+ __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1987
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 759, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1988
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5);
1989
+ return ret;
1990
+ },
1991
+ __wbindgen_cast_0000000000000004: function(arg0, arg1) {
1992
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1113, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1993
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690);
1994
+ return ret;
1995
+ },
1996
+ __wbindgen_cast_0000000000000005: function(arg0) {
1795
1997
  // Cast intrinsic for `F64 -> Externref`.
1796
1998
  const ret = arg0;
1797
1999
  return ret;
1798
2000
  },
1799
- __wbindgen_cast_0000000000000003: function(arg0) {
2001
+ __wbindgen_cast_0000000000000006: function(arg0) {
1800
2002
  // Cast intrinsic for `I64 -> Externref`.
1801
2003
  const ret = arg0;
1802
2004
  return ret;
1803
2005
  },
1804
- __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2006
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2007
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2008
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2009
+ return ret;
2010
+ },
2011
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
1805
2012
  // Cast intrinsic for `Ref(String) -> Externref`.
1806
2013
  const ret = getStringFromWasm0(arg0, arg1);
1807
2014
  return ret;
1808
2015
  },
1809
- __wbindgen_cast_0000000000000005: function(arg0) {
2016
+ __wbindgen_cast_0000000000000009: function(arg0) {
1810
2017
  // Cast intrinsic for `U64 -> Externref`.
1811
2018
  const ret = BigInt.asUintN(64, arg0);
1812
2019
  return ret;
@@ -1827,17 +2034,31 @@ function __wbg_get_imports() {
1827
2034
  };
1828
2035
  }
1829
2036
 
1830
- function wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7(arg0, arg1, arg2) {
1831
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7(arg0, arg1, arg2);
2037
+ function wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690(arg0, arg1) {
2038
+ wasm.wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690(arg0, arg1);
2039
+ }
2040
+
2041
+ function wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36(arg0, arg1, arg2) {
2042
+ wasm.wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36(arg0, arg1, arg2);
2043
+ }
2044
+
2045
+ function wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5(arg0, arg1, arg2) {
2046
+ wasm.wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5(arg0, arg1, arg2);
2047
+ }
2048
+
2049
+ function wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6(arg0, arg1, arg2) {
2050
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6(arg0, arg1, arg2);
1832
2051
  if (ret[1]) {
1833
2052
  throw takeFromExternrefTable0(ret[0]);
1834
2053
  }
1835
2054
  }
1836
2055
 
1837
- function wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(arg0, arg1, arg2, arg3) {
1838
- wasm.wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(arg0, arg1, arg2, arg3);
2056
+ function wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6(arg0, arg1, arg2, arg3) {
2057
+ wasm.wasm_bindgen__convert__closures_____invoke__h250bbd6a67e0e1e6(arg0, arg1, arg2, arg3);
1839
2058
  }
1840
2059
 
2060
+
2061
+ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
1841
2062
  const WasmQueryBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
1842
2063
  ? { register: () => {}, unregister: () => {} }
1843
2064
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmquerybuilder_free(ptr >>> 0, 1));
Binary file