jazz-wasm 2.0.0-alpha.25 → 2.0.0-alpha.27
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 +1 -1
- package/pkg/jazz_wasm.d.ts +7 -7
- package/pkg/jazz_wasm.js +136 -131
- package/pkg/jazz_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/jazz_wasm.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export class WasmRuntime {
|
|
|
122
122
|
* catalogue sync messages (from queue_full_sync_to_server) are sent
|
|
123
123
|
* before the call returns, rather than being deferred to a microtask.
|
|
124
124
|
*/
|
|
125
|
-
addServer(server_catalogue_state_hash?: string | null): void;
|
|
125
|
+
addServer(server_catalogue_state_hash?: string | null, next_sync_seq?: number | null): void;
|
|
126
126
|
/**
|
|
127
127
|
* Phase 1 of 2-phase subscribe: allocate a handle and store query params.
|
|
128
128
|
* No compilation, no sync, no tick — just bookkeeping.
|
|
@@ -213,7 +213,7 @@ export class WasmRuntime {
|
|
|
213
213
|
* * `payload` - Either postcard-encoded SyncPayload bytes (`Uint8Array`)
|
|
214
214
|
* or JSON-encoded SyncPayload (`string`)
|
|
215
215
|
*/
|
|
216
|
-
onSyncMessageReceived(payload: any): void;
|
|
216
|
+
onSyncMessageReceived(payload: any, sequence?: number | null): void;
|
|
217
217
|
/**
|
|
218
218
|
* Called by JS when a sync message arrives from a client (not a server).
|
|
219
219
|
*
|
|
@@ -398,7 +398,7 @@ export interface InitOutput {
|
|
|
398
398
|
readonly wasmruntime___debugSchemaState: (a: number) => [number, number, number];
|
|
399
399
|
readonly wasmruntime___debugSeedLiveSchema: (a: number, b: number, c: number) => [number, number];
|
|
400
400
|
readonly wasmruntime_addClient: (a: number) => [number, number];
|
|
401
|
-
readonly wasmruntime_addServer: (a: number, b: number, c: number) =>
|
|
401
|
+
readonly wasmruntime_addServer: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
402
402
|
readonly wasmruntime_createSubscription: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
403
403
|
readonly wasmruntime_delete: (a: number, b: number, c: number) => [number, number];
|
|
404
404
|
readonly wasmruntime_deleteDurable: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
@@ -414,7 +414,7 @@ export interface InitOutput {
|
|
|
414
414
|
readonly wasmruntime_insertDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
415
415
|
readonly wasmruntime_insertWithSession: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
416
416
|
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];
|
|
417
|
-
readonly wasmruntime_onSyncMessageReceived: (a: number, b: any) => [number, number];
|
|
417
|
+
readonly wasmruntime_onSyncMessageReceived: (a: number, b: any, c: number, d: number) => [number, number];
|
|
418
418
|
readonly wasmruntime_onSyncMessageReceivedFromClient: (a: number, b: number, c: number, d: any) => [number, number];
|
|
419
419
|
readonly wasmruntime_onSyncMessageToSend: (a: number, b: any) => void;
|
|
420
420
|
readonly wasmruntime_openPersistent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => any;
|
|
@@ -450,15 +450,15 @@ export interface InitOutput {
|
|
|
450
450
|
readonly bench_reset_overflow_threshold_bytes: () => void;
|
|
451
451
|
readonly bench_reset_pin_internal_pages: () => void;
|
|
452
452
|
readonly bench_reset_read_coalesce_pages: () => void;
|
|
453
|
-
readonly
|
|
454
|
-
readonly
|
|
455
|
-
readonly wasm_bindgen__convert__closures_____invoke__h4abc8a55d4718cb4: (a: number, b: number, c: any, d: any) => void;
|
|
453
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7: (a: number, b: number, c: any) => [number, number];
|
|
454
|
+
readonly wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193: (a: number, b: number, c: any, d: any) => void;
|
|
456
455
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
457
456
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
458
457
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
459
458
|
readonly __externref_table_alloc: () => number;
|
|
460
459
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
461
460
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
461
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
462
462
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
463
463
|
readonly __wbindgen_start: () => void;
|
|
464
464
|
}
|
package/pkg/jazz_wasm.js
CHANGED
|
@@ -375,11 +375,15 @@ export class WasmRuntime {
|
|
|
375
375
|
* catalogue sync messages (from queue_full_sync_to_server) are sent
|
|
376
376
|
* before the call returns, rather than being deferred to a microtask.
|
|
377
377
|
* @param {string | null} [server_catalogue_state_hash]
|
|
378
|
+
* @param {number | null} [next_sync_seq]
|
|
378
379
|
*/
|
|
379
|
-
addServer(server_catalogue_state_hash) {
|
|
380
|
+
addServer(server_catalogue_state_hash, next_sync_seq) {
|
|
380
381
|
var ptr0 = isLikeNone(server_catalogue_state_hash) ? 0 : passStringToWasm0(server_catalogue_state_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
382
|
var len0 = WASM_VECTOR_LEN;
|
|
382
|
-
wasm.wasmruntime_addServer(this.__wbg_ptr, ptr0, len0);
|
|
383
|
+
const ret = wasm.wasmruntime_addServer(this.__wbg_ptr, ptr0, len0, !isLikeNone(next_sync_seq), isLikeNone(next_sync_seq) ? 0 : next_sync_seq);
|
|
384
|
+
if (ret[1]) {
|
|
385
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
386
|
+
}
|
|
383
387
|
}
|
|
384
388
|
/**
|
|
385
389
|
* Phase 1 of 2-phase subscribe: allocate a handle and store query params.
|
|
@@ -648,9 +652,10 @@ export class WasmRuntime {
|
|
|
648
652
|
* * `payload` - Either postcard-encoded SyncPayload bytes (`Uint8Array`)
|
|
649
653
|
* or JSON-encoded SyncPayload (`string`)
|
|
650
654
|
* @param {any} payload
|
|
655
|
+
* @param {number | null} [sequence]
|
|
651
656
|
*/
|
|
652
|
-
onSyncMessageReceived(payload) {
|
|
653
|
-
const ret = wasm.wasmruntime_onSyncMessageReceived(this.__wbg_ptr, payload);
|
|
657
|
+
onSyncMessageReceived(payload, sequence) {
|
|
658
|
+
const ret = wasm.wasmruntime_onSyncMessageReceived(this.__wbg_ptr, payload, !isLikeNone(sequence), isLikeNone(sequence) ? 0 : sequence);
|
|
654
659
|
if (ret[1]) {
|
|
655
660
|
throw takeFromExternrefTable0(ret[0]);
|
|
656
661
|
}
|
|
@@ -1130,11 +1135,11 @@ export function parseSchema(json) {
|
|
|
1130
1135
|
function __wbg_get_imports() {
|
|
1131
1136
|
const import0 = {
|
|
1132
1137
|
__proto__: null,
|
|
1133
|
-
|
|
1138
|
+
__wbg_Error_2e59b1b37a9a34c3: function(arg0, arg1) {
|
|
1134
1139
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1135
1140
|
return ret;
|
|
1136
1141
|
},
|
|
1137
|
-
|
|
1142
|
+
__wbg_Number_e6ffdb596c888833: function(arg0) {
|
|
1138
1143
|
const ret = Number(arg0);
|
|
1139
1144
|
return ret;
|
|
1140
1145
|
},
|
|
@@ -1145,68 +1150,68 @@ function __wbg_get_imports() {
|
|
|
1145
1150
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1146
1151
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1147
1152
|
},
|
|
1148
|
-
|
|
1153
|
+
__wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2: function(arg0, arg1) {
|
|
1149
1154
|
const v = arg1;
|
|
1150
1155
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1151
1156
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1152
1157
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1153
1158
|
},
|
|
1154
|
-
|
|
1159
|
+
__wbg___wbindgen_boolean_get_a86c216575a75c30: function(arg0) {
|
|
1155
1160
|
const v = arg0;
|
|
1156
1161
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1157
1162
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1158
1163
|
},
|
|
1159
|
-
|
|
1164
|
+
__wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
|
|
1160
1165
|
const ret = debugString(arg1);
|
|
1161
1166
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1162
1167
|
const len1 = WASM_VECTOR_LEN;
|
|
1163
1168
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1164
1169
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1165
1170
|
},
|
|
1166
|
-
|
|
1171
|
+
__wbg___wbindgen_in_4bd7a57e54337366: function(arg0, arg1) {
|
|
1167
1172
|
const ret = arg0 in arg1;
|
|
1168
1173
|
return ret;
|
|
1169
1174
|
},
|
|
1170
|
-
|
|
1175
|
+
__wbg___wbindgen_is_bigint_6c98f7e945dacdde: function(arg0) {
|
|
1171
1176
|
const ret = typeof(arg0) === 'bigint';
|
|
1172
1177
|
return ret;
|
|
1173
1178
|
},
|
|
1174
|
-
|
|
1179
|
+
__wbg___wbindgen_is_function_49868bde5eb1e745: function(arg0) {
|
|
1175
1180
|
const ret = typeof(arg0) === 'function';
|
|
1176
1181
|
return ret;
|
|
1177
1182
|
},
|
|
1178
|
-
|
|
1183
|
+
__wbg___wbindgen_is_null_344c8750a8525473: function(arg0) {
|
|
1179
1184
|
const ret = arg0 === null;
|
|
1180
1185
|
return ret;
|
|
1181
1186
|
},
|
|
1182
|
-
|
|
1187
|
+
__wbg___wbindgen_is_object_40c5a80572e8f9d3: function(arg0) {
|
|
1183
1188
|
const val = arg0;
|
|
1184
1189
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1185
1190
|
return ret;
|
|
1186
1191
|
},
|
|
1187
|
-
|
|
1192
|
+
__wbg___wbindgen_is_string_b29b5c5a8065ba1a: function(arg0) {
|
|
1188
1193
|
const ret = typeof(arg0) === 'string';
|
|
1189
1194
|
return ret;
|
|
1190
1195
|
},
|
|
1191
|
-
|
|
1196
|
+
__wbg___wbindgen_is_undefined_c0cca72b82b86f4d: function(arg0) {
|
|
1192
1197
|
const ret = arg0 === undefined;
|
|
1193
1198
|
return ret;
|
|
1194
1199
|
},
|
|
1195
|
-
|
|
1200
|
+
__wbg___wbindgen_jsval_eq_7d430e744a913d26: function(arg0, arg1) {
|
|
1196
1201
|
const ret = arg0 === arg1;
|
|
1197
1202
|
return ret;
|
|
1198
1203
|
},
|
|
1199
|
-
|
|
1204
|
+
__wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944: function(arg0, arg1) {
|
|
1200
1205
|
const ret = arg0 == arg1;
|
|
1201
1206
|
return ret;
|
|
1202
1207
|
},
|
|
1203
|
-
|
|
1208
|
+
__wbg___wbindgen_number_get_7579aab02a8a620c: function(arg0, arg1) {
|
|
1204
1209
|
const obj = arg1;
|
|
1205
1210
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1206
1211
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1207
1212
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1208
1213
|
},
|
|
1209
|
-
|
|
1214
|
+
__wbg___wbindgen_string_get_914df97fcfa788f2: function(arg0, arg1) {
|
|
1210
1215
|
const obj = arg1;
|
|
1211
1216
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1212
1217
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1214,32 +1219,32 @@ function __wbg_get_imports() {
|
|
|
1214
1219
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1215
1220
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1216
1221
|
},
|
|
1217
|
-
|
|
1222
|
+
__wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
|
|
1218
1223
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1219
1224
|
},
|
|
1220
|
-
|
|
1225
|
+
__wbg__wbg_cb_unref_3c3b4f651835fbcb: function(arg0) {
|
|
1221
1226
|
arg0._wbg_cb_unref();
|
|
1222
1227
|
},
|
|
1223
|
-
|
|
1224
|
-
const ret = arg0.call(arg1, arg2);
|
|
1228
|
+
__wbg_call_368fa9c372d473ba: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1229
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
1225
1230
|
return ret;
|
|
1226
1231
|
}, arguments); },
|
|
1227
|
-
|
|
1228
|
-
const ret = arg0.call(arg1
|
|
1232
|
+
__wbg_call_7f2987183bb62793: function() { return handleError(function (arg0, arg1) {
|
|
1233
|
+
const ret = arg0.call(arg1);
|
|
1229
1234
|
return ret;
|
|
1230
1235
|
}, arguments); },
|
|
1231
|
-
|
|
1232
|
-
const ret = arg0.call(arg1, arg2, arg3);
|
|
1236
|
+
__wbg_call_aa6e1b9f65550dad: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1237
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
|
|
1233
1238
|
return ret;
|
|
1234
1239
|
}, arguments); },
|
|
1235
|
-
|
|
1236
|
-
const ret = arg0.call(arg1);
|
|
1240
|
+
__wbg_call_d578befcc3145dee: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1241
|
+
const ret = arg0.call(arg1, arg2);
|
|
1237
1242
|
return ret;
|
|
1238
1243
|
}, arguments); },
|
|
1239
|
-
|
|
1244
|
+
__wbg_close_e526ab9e090e8cc1: function(arg0) {
|
|
1240
1245
|
arg0.close();
|
|
1241
1246
|
},
|
|
1242
|
-
|
|
1247
|
+
__wbg_createSyncAccessHandle_3be98daf699667a7: function(arg0) {
|
|
1243
1248
|
const ret = arg0.createSyncAccessHandle();
|
|
1244
1249
|
return ret;
|
|
1245
1250
|
},
|
|
@@ -1265,11 +1270,11 @@ function __wbg_get_imports() {
|
|
|
1265
1270
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1266
1271
|
}
|
|
1267
1272
|
},
|
|
1268
|
-
|
|
1273
|
+
__wbg_done_547d467e97529006: function(arg0) {
|
|
1269
1274
|
const ret = arg0.done;
|
|
1270
1275
|
return ret;
|
|
1271
1276
|
},
|
|
1272
|
-
|
|
1277
|
+
__wbg_entries_616b1a459b85be0b: function(arg0) {
|
|
1273
1278
|
const ret = Object.entries(arg0);
|
|
1274
1279
|
return ret;
|
|
1275
1280
|
},
|
|
@@ -1306,40 +1311,40 @@ function __wbg_get_imports() {
|
|
|
1306
1311
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1307
1312
|
}
|
|
1308
1313
|
},
|
|
1309
|
-
|
|
1314
|
+
__wbg_flush_63f2ba6bf37bcfd5: function() { return handleError(function (arg0) {
|
|
1310
1315
|
arg0.flush();
|
|
1311
1316
|
}, arguments); },
|
|
1312
|
-
|
|
1317
|
+
__wbg_getDirectory_3af764c18446017f: function(arg0) {
|
|
1313
1318
|
const ret = arg0.getDirectory();
|
|
1314
1319
|
return ret;
|
|
1315
1320
|
},
|
|
1316
|
-
|
|
1321
|
+
__wbg_getFileHandle_326ca47811ae37a1: function(arg0, arg1, arg2, arg3) {
|
|
1317
1322
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
1318
1323
|
return ret;
|
|
1319
1324
|
},
|
|
1320
1325
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
1321
1326
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1322
1327
|
}, arguments); },
|
|
1323
|
-
|
|
1328
|
+
__wbg_getRandomValues_d49329ff89a07af1: function() { return handleError(function (arg0, arg1) {
|
|
1324
1329
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1325
1330
|
}, arguments); },
|
|
1326
|
-
|
|
1331
|
+
__wbg_getSize_6037025a1b5d08db: function() { return handleError(function (arg0) {
|
|
1327
1332
|
const ret = arg0.getSize();
|
|
1328
1333
|
return ret;
|
|
1329
1334
|
}, arguments); },
|
|
1330
|
-
|
|
1335
|
+
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
1336
|
+
const ret = arg0[arg1 >>> 0];
|
|
1337
|
+
return ret;
|
|
1338
|
+
},
|
|
1339
|
+
__wbg_get_ed0642c4b9d31ddf: function() { return handleError(function (arg0, arg1) {
|
|
1331
1340
|
const ret = Reflect.get(arg0, arg1);
|
|
1332
1341
|
return ret;
|
|
1333
1342
|
}, arguments); },
|
|
1334
|
-
|
|
1343
|
+
__wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
|
|
1335
1344
|
const ret = Reflect.get(arg0, arg1);
|
|
1336
1345
|
return ret;
|
|
1337
1346
|
}, arguments); },
|
|
1338
|
-
|
|
1339
|
-
const ret = arg0[arg1 >>> 0];
|
|
1340
|
-
return ret;
|
|
1341
|
-
},
|
|
1342
|
-
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
1347
|
+
__wbg_get_unchecked_7d7babe32e9e6a54: function(arg0, arg1) {
|
|
1343
1348
|
const ret = arg0[arg1 >>> 0];
|
|
1344
1349
|
return ret;
|
|
1345
1350
|
},
|
|
@@ -1347,7 +1352,7 @@ function __wbg_get_imports() {
|
|
|
1347
1352
|
const ret = arg0[arg1];
|
|
1348
1353
|
return ret;
|
|
1349
1354
|
},
|
|
1350
|
-
|
|
1355
|
+
__wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a: function(arg0) {
|
|
1351
1356
|
let result;
|
|
1352
1357
|
try {
|
|
1353
1358
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1357,7 +1362,7 @@ function __wbg_get_imports() {
|
|
|
1357
1362
|
const ret = result;
|
|
1358
1363
|
return ret;
|
|
1359
1364
|
},
|
|
1360
|
-
|
|
1365
|
+
__wbg_instanceof_DomException_37f96d3fb69189bd: function(arg0) {
|
|
1361
1366
|
let result;
|
|
1362
1367
|
try {
|
|
1363
1368
|
result = arg0 instanceof DOMException;
|
|
@@ -1367,7 +1372,7 @@ function __wbg_get_imports() {
|
|
|
1367
1372
|
const ret = result;
|
|
1368
1373
|
return ret;
|
|
1369
1374
|
},
|
|
1370
|
-
|
|
1375
|
+
__wbg_instanceof_FileSystemDirectoryHandle_66b8b1a90ca7b685: function(arg0) {
|
|
1371
1376
|
let result;
|
|
1372
1377
|
try {
|
|
1373
1378
|
result = arg0 instanceof FileSystemDirectoryHandle;
|
|
@@ -1377,7 +1382,7 @@ function __wbg_get_imports() {
|
|
|
1377
1382
|
const ret = result;
|
|
1378
1383
|
return ret;
|
|
1379
1384
|
},
|
|
1380
|
-
|
|
1385
|
+
__wbg_instanceof_FileSystemFileHandle_2236115c7caa5120: function(arg0) {
|
|
1381
1386
|
let result;
|
|
1382
1387
|
try {
|
|
1383
1388
|
result = arg0 instanceof FileSystemFileHandle;
|
|
@@ -1387,7 +1392,7 @@ function __wbg_get_imports() {
|
|
|
1387
1392
|
const ret = result;
|
|
1388
1393
|
return ret;
|
|
1389
1394
|
},
|
|
1390
|
-
|
|
1395
|
+
__wbg_instanceof_FileSystemSyncAccessHandle_0a420b0443c563b7: function(arg0) {
|
|
1391
1396
|
let result;
|
|
1392
1397
|
try {
|
|
1393
1398
|
result = arg0 instanceof FileSystemSyncAccessHandle;
|
|
@@ -1397,7 +1402,7 @@ function __wbg_get_imports() {
|
|
|
1397
1402
|
const ret = result;
|
|
1398
1403
|
return ret;
|
|
1399
1404
|
},
|
|
1400
|
-
|
|
1405
|
+
__wbg_instanceof_Map_a10a2795ef4bfe97: function(arg0) {
|
|
1401
1406
|
let result;
|
|
1402
1407
|
try {
|
|
1403
1408
|
result = arg0 instanceof Map;
|
|
@@ -1407,7 +1412,7 @@ function __wbg_get_imports() {
|
|
|
1407
1412
|
const ret = result;
|
|
1408
1413
|
return ret;
|
|
1409
1414
|
},
|
|
1410
|
-
|
|
1415
|
+
__wbg_instanceof_Promise_95d523058012a13d: function(arg0) {
|
|
1411
1416
|
let result;
|
|
1412
1417
|
try {
|
|
1413
1418
|
result = arg0 instanceof Promise;
|
|
@@ -1417,7 +1422,7 @@ function __wbg_get_imports() {
|
|
|
1417
1422
|
const ret = result;
|
|
1418
1423
|
return ret;
|
|
1419
1424
|
},
|
|
1420
|
-
|
|
1425
|
+
__wbg_instanceof_Uint8Array_4b8da683deb25d72: function(arg0) {
|
|
1421
1426
|
let result;
|
|
1422
1427
|
try {
|
|
1423
1428
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1427,7 +1432,7 @@ function __wbg_get_imports() {
|
|
|
1427
1432
|
const ret = result;
|
|
1428
1433
|
return ret;
|
|
1429
1434
|
},
|
|
1430
|
-
|
|
1435
|
+
__wbg_instanceof_WorkerGlobalScope_2b48dbfbe7327543: function(arg0) {
|
|
1431
1436
|
let result;
|
|
1432
1437
|
try {
|
|
1433
1438
|
result = arg0 instanceof WorkerGlobalScope;
|
|
@@ -1437,23 +1442,23 @@ function __wbg_get_imports() {
|
|
|
1437
1442
|
const ret = result;
|
|
1438
1443
|
return ret;
|
|
1439
1444
|
},
|
|
1440
|
-
|
|
1445
|
+
__wbg_isArray_db61795ad004c139: function(arg0) {
|
|
1441
1446
|
const ret = Array.isArray(arg0);
|
|
1442
1447
|
return ret;
|
|
1443
1448
|
},
|
|
1444
|
-
|
|
1449
|
+
__wbg_isSafeInteger_ea83862ba994770c: function(arg0) {
|
|
1445
1450
|
const ret = Number.isSafeInteger(arg0);
|
|
1446
1451
|
return ret;
|
|
1447
1452
|
},
|
|
1448
|
-
|
|
1453
|
+
__wbg_iterator_de403ef31815a3e6: function() {
|
|
1449
1454
|
const ret = Symbol.iterator;
|
|
1450
1455
|
return ret;
|
|
1451
1456
|
},
|
|
1452
|
-
|
|
1457
|
+
__wbg_length_0c32cb8543c8e4c8: function(arg0) {
|
|
1453
1458
|
const ret = arg0.length;
|
|
1454
1459
|
return ret;
|
|
1455
1460
|
},
|
|
1456
|
-
|
|
1461
|
+
__wbg_length_6e821edde497a532: function(arg0) {
|
|
1457
1462
|
const ret = arg0.length;
|
|
1458
1463
|
return ret;
|
|
1459
1464
|
},
|
|
@@ -1498,7 +1503,7 @@ function __wbg_get_imports() {
|
|
|
1498
1503
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1499
1504
|
}
|
|
1500
1505
|
}, arguments); },
|
|
1501
|
-
|
|
1506
|
+
__wbg_navigator_af52153252bdf29d: function(arg0) {
|
|
1502
1507
|
const ret = arg0.navigator;
|
|
1503
1508
|
return ret;
|
|
1504
1509
|
},
|
|
@@ -1506,30 +1511,14 @@ function __wbg_get_imports() {
|
|
|
1506
1511
|
const ret = new Error();
|
|
1507
1512
|
return ret;
|
|
1508
1513
|
},
|
|
1509
|
-
|
|
1510
|
-
const ret = new Map();
|
|
1511
|
-
return ret;
|
|
1512
|
-
},
|
|
1513
|
-
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1514
|
-
const ret = new Uint8Array(arg0);
|
|
1515
|
-
return ret;
|
|
1516
|
-
},
|
|
1517
|
-
__wbg_new_a70fbab9066b301f: function() {
|
|
1518
|
-
const ret = new Array();
|
|
1519
|
-
return ret;
|
|
1520
|
-
},
|
|
1521
|
-
__wbg_new_ab79df5bd7c26067: function() {
|
|
1522
|
-
const ret = new Object();
|
|
1523
|
-
return ret;
|
|
1524
|
-
},
|
|
1525
|
-
__wbg_new_d098e265629cd10f: function(arg0, arg1) {
|
|
1514
|
+
__wbg_new_40792555590ec35c: function(arg0, arg1) {
|
|
1526
1515
|
try {
|
|
1527
1516
|
var state0 = {a: arg0, b: arg1};
|
|
1528
1517
|
var cb0 = (arg0, arg1) => {
|
|
1529
1518
|
const a = state0.a;
|
|
1530
1519
|
state0.a = 0;
|
|
1531
1520
|
try {
|
|
1532
|
-
return
|
|
1521
|
+
return wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(a, state0.b, arg0, arg1);
|
|
1533
1522
|
} finally {
|
|
1534
1523
|
state0.a = a;
|
|
1535
1524
|
}
|
|
@@ -1537,21 +1526,37 @@ function __wbg_get_imports() {
|
|
|
1537
1526
|
const ret = new Promise(cb0);
|
|
1538
1527
|
return ret;
|
|
1539
1528
|
} finally {
|
|
1540
|
-
state0.a =
|
|
1529
|
+
state0.a = 0;
|
|
1541
1530
|
}
|
|
1542
1531
|
},
|
|
1543
|
-
|
|
1532
|
+
__wbg_new_4f9fafbb3909af72: function() {
|
|
1533
|
+
const ret = new Object();
|
|
1534
|
+
return ret;
|
|
1535
|
+
},
|
|
1536
|
+
__wbg_new_99cabae501c0a8a0: function() {
|
|
1537
|
+
const ret = new Map();
|
|
1538
|
+
return ret;
|
|
1539
|
+
},
|
|
1540
|
+
__wbg_new_a560378ea1240b14: function(arg0) {
|
|
1541
|
+
const ret = new Uint8Array(arg0);
|
|
1542
|
+
return ret;
|
|
1543
|
+
},
|
|
1544
|
+
__wbg_new_f3c9df4f38f3f798: function() {
|
|
1545
|
+
const ret = new Array();
|
|
1546
|
+
return ret;
|
|
1547
|
+
},
|
|
1548
|
+
__wbg_new_from_slice_2580ff33d0d10520: function(arg0, arg1) {
|
|
1544
1549
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1545
1550
|
return ret;
|
|
1546
1551
|
},
|
|
1547
|
-
|
|
1552
|
+
__wbg_new_typed_14d7cc391ce53d2c: function(arg0, arg1) {
|
|
1548
1553
|
try {
|
|
1549
1554
|
var state0 = {a: arg0, b: arg1};
|
|
1550
1555
|
var cb0 = (arg0, arg1) => {
|
|
1551
1556
|
const a = state0.a;
|
|
1552
1557
|
state0.a = 0;
|
|
1553
1558
|
try {
|
|
1554
|
-
return
|
|
1559
|
+
return wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(a, state0.b, arg0, arg1);
|
|
1555
1560
|
} finally {
|
|
1556
1561
|
state0.a = a;
|
|
1557
1562
|
}
|
|
@@ -1559,68 +1564,68 @@ function __wbg_get_imports() {
|
|
|
1559
1564
|
const ret = new Promise(cb0);
|
|
1560
1565
|
return ret;
|
|
1561
1566
|
} finally {
|
|
1562
|
-
state0.a =
|
|
1567
|
+
state0.a = 0;
|
|
1563
1568
|
}
|
|
1564
1569
|
},
|
|
1565
|
-
|
|
1566
|
-
const ret = arg0.next();
|
|
1567
|
-
return ret;
|
|
1568
|
-
}, arguments); },
|
|
1569
|
-
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1570
|
+
__wbg_next_01132ed6134b8ef5: function(arg0) {
|
|
1570
1571
|
const ret = arg0.next;
|
|
1571
1572
|
return ret;
|
|
1572
1573
|
},
|
|
1573
|
-
|
|
1574
|
-
const ret =
|
|
1574
|
+
__wbg_next_b3713ec761a9dbfd: function() { return handleError(function (arg0) {
|
|
1575
|
+
const ret = arg0.next();
|
|
1575
1576
|
return ret;
|
|
1576
|
-
},
|
|
1577
|
-
|
|
1577
|
+
}, arguments); },
|
|
1578
|
+
__wbg_now_6798946be0e6fe2b: function() { return handleError(function () {
|
|
1578
1579
|
const ret = Date.now();
|
|
1579
1580
|
return ret;
|
|
1580
1581
|
}, arguments); },
|
|
1581
|
-
|
|
1582
|
+
__wbg_now_88621c9c9a4f3ffc: function() {
|
|
1583
|
+
const ret = Date.now();
|
|
1584
|
+
return ret;
|
|
1585
|
+
},
|
|
1586
|
+
__wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
|
|
1582
1587
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1583
1588
|
},
|
|
1584
|
-
|
|
1589
|
+
__wbg_queueMicrotask_abaf92f0bd4e80a4: function(arg0) {
|
|
1585
1590
|
const ret = arg0.queueMicrotask;
|
|
1586
1591
|
return ret;
|
|
1587
1592
|
},
|
|
1588
|
-
|
|
1593
|
+
__wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
|
|
1589
1594
|
queueMicrotask(arg0);
|
|
1590
1595
|
},
|
|
1591
|
-
|
|
1596
|
+
__wbg_random_a72d453e63c9558c: function() {
|
|
1592
1597
|
const ret = Math.random();
|
|
1593
1598
|
return ret;
|
|
1594
1599
|
},
|
|
1595
|
-
|
|
1600
|
+
__wbg_read_8569bf7e69cc3089: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1596
1601
|
const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1597
1602
|
return ret;
|
|
1598
1603
|
}, arguments); },
|
|
1599
|
-
|
|
1604
|
+
__wbg_resolve_0a79de24e9d2267b: function(arg0) {
|
|
1600
1605
|
const ret = Promise.resolve(arg0);
|
|
1601
1606
|
return ret;
|
|
1602
1607
|
},
|
|
1603
1608
|
__wbg_setTimeout_90ea1b70d376baa9: function(arg0, arg1) {
|
|
1604
1609
|
setTimeout(arg0, arg1);
|
|
1605
1610
|
},
|
|
1606
|
-
|
|
1607
|
-
|
|
1611
|
+
__wbg_set_08463b1df38a7e29: function(arg0, arg1, arg2) {
|
|
1612
|
+
const ret = arg0.set(arg1, arg2);
|
|
1613
|
+
return ret;
|
|
1608
1614
|
},
|
|
1609
1615
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1610
1616
|
arg0[arg1] = arg2;
|
|
1611
1617
|
},
|
|
1612
|
-
|
|
1618
|
+
__wbg_set_6c60b2e8ad0e9383: function(arg0, arg1, arg2) {
|
|
1619
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1620
|
+
},
|
|
1621
|
+
__wbg_set_8ee2d34facb8466e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1613
1622
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1614
1623
|
return ret;
|
|
1615
1624
|
}, arguments); },
|
|
1616
|
-
|
|
1625
|
+
__wbg_set_at_da2d1d4dc8ed37da: function(arg0, arg1) {
|
|
1617
1626
|
arg0.at = arg1;
|
|
1618
1627
|
},
|
|
1619
|
-
|
|
1620
|
-
const ret = arg0.set(arg1, arg2);
|
|
1621
|
-
return ret;
|
|
1622
|
-
},
|
|
1623
|
-
__wbg_set_create_ef897736206a6f05: function(arg0, arg1) {
|
|
1628
|
+
__wbg_set_create_0654e513e8ccb2be: function(arg0, arg1) {
|
|
1624
1629
|
arg0.create = arg1 !== 0;
|
|
1625
1630
|
},
|
|
1626
1631
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -1630,35 +1635,35 @@ function __wbg_get_imports() {
|
|
|
1630
1635
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1631
1636
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1632
1637
|
},
|
|
1633
|
-
|
|
1634
|
-
const ret = typeof
|
|
1638
|
+
__wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f: function() {
|
|
1639
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1635
1640
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1636
1641
|
},
|
|
1637
|
-
|
|
1638
|
-
const ret = typeof
|
|
1642
|
+
__wbg_static_accessor_GLOBAL_f2e0f995a21329ff: function() {
|
|
1643
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1639
1644
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1640
1645
|
},
|
|
1641
|
-
|
|
1646
|
+
__wbg_static_accessor_SELF_24f78b6d23f286ea: function() {
|
|
1642
1647
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1643
1648
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1644
1649
|
},
|
|
1645
|
-
|
|
1650
|
+
__wbg_static_accessor_WINDOW_59fd959c540fe405: function() {
|
|
1646
1651
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1647
1652
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1648
1653
|
},
|
|
1649
|
-
|
|
1654
|
+
__wbg_storage_1d7efd3b54b4e6e9: function(arg0) {
|
|
1650
1655
|
const ret = arg0.storage;
|
|
1651
1656
|
return ret;
|
|
1652
1657
|
},
|
|
1653
|
-
|
|
1654
|
-
const ret = arg0.then(arg1);
|
|
1658
|
+
__wbg_then_00eed3ac0b8e82cb: function(arg0, arg1, arg2) {
|
|
1659
|
+
const ret = arg0.then(arg1, arg2);
|
|
1655
1660
|
return ret;
|
|
1656
1661
|
},
|
|
1657
|
-
|
|
1658
|
-
const ret = arg0.then(arg1
|
|
1662
|
+
__wbg_then_a0c8db0381c8994c: function(arg0, arg1) {
|
|
1663
|
+
const ret = arg0.then(arg1);
|
|
1659
1664
|
return ret;
|
|
1660
1665
|
},
|
|
1661
|
-
|
|
1666
|
+
__wbg_value_7f6052747ccf940f: function(arg0) {
|
|
1662
1667
|
const ret = arg0.value;
|
|
1663
1668
|
return ret;
|
|
1664
1669
|
},
|
|
@@ -1688,13 +1693,13 @@ function __wbg_get_imports() {
|
|
|
1688
1693
|
const ret = WasmRuntime.__wrap(arg0);
|
|
1689
1694
|
return ret;
|
|
1690
1695
|
},
|
|
1691
|
-
|
|
1696
|
+
__wbg_write_726121caffd5fc3e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1692
1697
|
const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1693
1698
|
return ret;
|
|
1694
1699
|
}, arguments); },
|
|
1695
1700
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1696
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1697
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1701
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2730, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1702
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7);
|
|
1698
1703
|
return ret;
|
|
1699
1704
|
},
|
|
1700
1705
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1733,15 +1738,15 @@ function __wbg_get_imports() {
|
|
|
1733
1738
|
};
|
|
1734
1739
|
}
|
|
1735
1740
|
|
|
1736
|
-
function
|
|
1737
|
-
const ret = wasm.
|
|
1741
|
+
function wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7(arg0, arg1, arg2) {
|
|
1742
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd7cc73106a1f17e7(arg0, arg1, arg2);
|
|
1738
1743
|
if (ret[1]) {
|
|
1739
1744
|
throw takeFromExternrefTable0(ret[0]);
|
|
1740
1745
|
}
|
|
1741
1746
|
}
|
|
1742
1747
|
|
|
1743
|
-
function
|
|
1744
|
-
wasm.
|
|
1748
|
+
function wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(arg0, arg1, arg2, arg3) {
|
|
1749
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3ea5f85f902bb193(arg0, arg1, arg2, arg3);
|
|
1745
1750
|
}
|
|
1746
1751
|
|
|
1747
1752
|
const WasmQueryBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1759,7 +1764,7 @@ function addToExternrefTable0(obj) {
|
|
|
1759
1764
|
|
|
1760
1765
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1761
1766
|
? { register: () => {}, unregister: () => {} }
|
|
1762
|
-
: new FinalizationRegistry(state =>
|
|
1767
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1763
1768
|
|
|
1764
1769
|
function debugString(val) {
|
|
1765
1770
|
// primitive types
|
|
@@ -1865,8 +1870,8 @@ function isLikeNone(x) {
|
|
|
1865
1870
|
return x === undefined || x === null;
|
|
1866
1871
|
}
|
|
1867
1872
|
|
|
1868
|
-
function makeMutClosure(arg0, arg1,
|
|
1869
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
1873
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1874
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1870
1875
|
const real = (...args) => {
|
|
1871
1876
|
|
|
1872
1877
|
// First up with a closure we increment the internal reference
|
|
@@ -1884,7 +1889,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
1884
1889
|
};
|
|
1885
1890
|
real._wbg_cb_unref = () => {
|
|
1886
1891
|
if (--state.cnt === 0) {
|
|
1887
|
-
|
|
1892
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1888
1893
|
state.a = 0;
|
|
1889
1894
|
CLOSURE_DTORS.unregister(state);
|
|
1890
1895
|
}
|
package/pkg/jazz_wasm_bg.wasm
CHANGED
|
Binary file
|