@derec-alliance/nodejs 0.0.1-alpha.9 → 0.0.2
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 +4 -5
- package/derec_library.d.ts +61 -7
- package/derec_library.js +178 -107
- package/derec_library_bg.wasm +0 -0
- package/derec_library_bg.wasm.d.ts +31 -28
- package/index.d.ts +375 -28
- package/index.js +2 -2
- package/package.json +1 -1
package/derec_library.js
CHANGED
|
@@ -219,15 +219,33 @@ class DeRecProtocolBuilder {
|
|
|
219
219
|
return DeRecProtocolBuilder.__wrap(ret);
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
222
|
+
* Configure the four waiting periods in one call.
|
|
223
|
+
*
|
|
224
|
+
* Object shape — every field optional, and **absent means "keep the
|
|
225
|
+
* library default"**:
|
|
226
|
+
*
|
|
227
|
+
* ```text
|
|
228
|
+
* {
|
|
229
|
+
* inbound_message_secs?: number, // staleness / replay window
|
|
230
|
+
* sharing_round_secs?: number,
|
|
231
|
+
* unpair_ack_secs?: number,
|
|
232
|
+
* expired_channels?: { enabled: boolean, timeout_in_secs: number },
|
|
233
|
+
* }
|
|
234
|
+
* ```
|
|
235
|
+
*
|
|
236
|
+
* Values are forwarded verbatim; clamping and the meaning of a disabled
|
|
237
|
+
* `expired_channels` are library decisions, not this shim's. Not calling
|
|
238
|
+
* this leaves every default in force.
|
|
239
|
+
* @param {any} timeouts
|
|
225
240
|
* @returns {DeRecProtocolBuilder}
|
|
226
241
|
*/
|
|
227
|
-
|
|
242
|
+
withTimeouts(timeouts) {
|
|
228
243
|
const ptr = this.__destroy_into_raw();
|
|
229
|
-
const ret = wasm.
|
|
230
|
-
|
|
244
|
+
const ret = wasm.derecprotocolbuilder_withTimeouts(ptr, timeouts);
|
|
245
|
+
if (ret[2]) {
|
|
246
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
247
|
+
}
|
|
248
|
+
return DeRecProtocolBuilder.__wrap(ret[0]);
|
|
231
249
|
}
|
|
232
250
|
/**
|
|
233
251
|
* @param {any} transport
|
|
@@ -253,6 +271,24 @@ class DeRecProtocolBuilder {
|
|
|
253
271
|
}
|
|
254
272
|
return DeRecProtocolBuilder.__wrap(ret[0]);
|
|
255
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Accept plaintext `http://` transport endpoints. **Development only.**
|
|
276
|
+
* Default `false`.
|
|
277
|
+
*
|
|
278
|
+
* With it `false`, plaintext is accepted only for an endpoint this
|
|
279
|
+
* device configured for *itself* that names loopback (`localhost`,
|
|
280
|
+
* `127.0.0.1`, `::1`) — so a local dev server needs no configuration.
|
|
281
|
+
* With it `true`, plaintext is accepted for any host on any path,
|
|
282
|
+
* including endpoints a peer supplies. That is what makes the LAN case
|
|
283
|
+
* work (a phone against a laptop), and why the name is blunt.
|
|
284
|
+
* @param {boolean} allow
|
|
285
|
+
* @returns {DeRecProtocolBuilder}
|
|
286
|
+
*/
|
|
287
|
+
withUnsafeHttp(allow) {
|
|
288
|
+
const ptr = this.__destroy_into_raw();
|
|
289
|
+
const ret = wasm.derecprotocolbuilder_withUnsafeHttp(ptr, allow);
|
|
290
|
+
return DeRecProtocolBuilder.__wrap(ret);
|
|
291
|
+
}
|
|
256
292
|
/**
|
|
257
293
|
* @param {any} store
|
|
258
294
|
* @returns {DeRecProtocolBuilder}
|
|
@@ -269,7 +305,7 @@ exports.DeRecProtocolBuilder = DeRecProtocolBuilder;
|
|
|
269
305
|
/**
|
|
270
306
|
* Higher-level DeRec protocol orchestrator for TypeScript/JavaScript consumers.
|
|
271
307
|
*
|
|
272
|
-
* Wraps [`
|
|
308
|
+
* Wraps [`crate::protocol::DeRecProtocol`] with JS-side store
|
|
273
309
|
* and transport adapters so that a TypeScript application can drive all five
|
|
274
310
|
* protocol flows without routing raw bytes manually.
|
|
275
311
|
*
|
|
@@ -291,7 +327,7 @@ exports.DeRecProtocolBuilder = DeRecProtocolBuilder;
|
|
|
291
327
|
* | `ShareConfirmed` | `channel_id: string`, `version: number` |
|
|
292
328
|
* | `ShareVerified` | `channel_id: string`, `version: number` |
|
|
293
329
|
* | `SecretsDiscovered`| `channel_id: string`, `secrets: SecretVersionEntry[]` |
|
|
294
|
-
* | `SecretRecovered` | `secret: { helpers, secrets, replicas
|
|
330
|
+
* | `SecretRecovered` | `secret: { helpers, secrets, replicas }` (same nested shape as `ReplicaSecretReceived.secret`) |
|
|
295
331
|
* | `NoOp` | _(none)_ |
|
|
296
332
|
*
|
|
297
333
|
* `SecretVersionEntry = { secret_id: bigint, versions: { version: number, description: string }[] }`
|
|
@@ -368,7 +404,8 @@ class DeRecProtocolWasm {
|
|
|
368
404
|
* Feed any incoming wire bytes to the protocol.
|
|
369
405
|
*
|
|
370
406
|
* Returns an `Array` of plain JS event objects (see struct-level docs for shapes).
|
|
371
|
-
*
|
|
407
|
+
* Every inbound flow — pairing, sharing, verification, discovery,
|
|
408
|
+
* recovery, unpairing, channel-info updates and the replica flows — is
|
|
372
409
|
* handled through this single entry point.
|
|
373
410
|
*
|
|
374
411
|
* # Arguments
|
|
@@ -404,6 +441,25 @@ class DeRecProtocolWasm {
|
|
|
404
441
|
const ret = wasm.derecprotocolwasm_reject(this.__wbg_ptr, ptr0, len0, status, ptr1, len1);
|
|
405
442
|
return ret;
|
|
406
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* Remove `Pending` channels older than `older_than_secs`, along with
|
|
446
|
+
* their pairing keys.
|
|
447
|
+
*
|
|
448
|
+
* Independent of the configured cleanup policy — it sweeps at the
|
|
449
|
+
* threshold given, even when the policy is disabled. The age
|
|
450
|
+
* comparison is strict, so a channel created within the current
|
|
451
|
+
* second survives even `0`.
|
|
452
|
+
*
|
|
453
|
+
* # Returns
|
|
454
|
+
*
|
|
455
|
+
* An `Array` of removed channel ids as decimal strings.
|
|
456
|
+
* @param {number} older_than_secs
|
|
457
|
+
* @returns {Promise<any>}
|
|
458
|
+
*/
|
|
459
|
+
removeExpiredChannels(older_than_secs) {
|
|
460
|
+
const ret = wasm.derecprotocolwasm_removeExpiredChannels(this.__wbg_ptr, older_than_secs);
|
|
461
|
+
return ret;
|
|
462
|
+
}
|
|
407
463
|
/**
|
|
408
464
|
* Rebuild this protocol's `secret_id` namespace from a recovered
|
|
409
465
|
* `Secret`. Mirrors [`crate::protocol::DeRecProtocol::restore`] —
|
|
@@ -508,6 +564,22 @@ class DeRecProtocolWasm {
|
|
|
508
564
|
const ret = wasm.derecprotocolwasm_start(this.__wbg_ptr, flow_kind, params);
|
|
509
565
|
return ret;
|
|
510
566
|
}
|
|
567
|
+
/**
|
|
568
|
+
* Advance time-driven state without an inbound message.
|
|
569
|
+
*
|
|
570
|
+
* Timeouts are otherwise only evaluated by `process`, so a publish whose
|
|
571
|
+
* helpers all go quiet has nothing left to close it. Call this from a
|
|
572
|
+
* timer — `setInterval`, a service-worker alarm, a job runner — at an
|
|
573
|
+
* interval shorter than the configured timeout.
|
|
574
|
+
*
|
|
575
|
+
* Returns an `Array` of plain JS event objects, empty when nothing was
|
|
576
|
+
* in flight. Safe to call at any time.
|
|
577
|
+
* @returns {Promise<any>}
|
|
578
|
+
*/
|
|
579
|
+
tick() {
|
|
580
|
+
const ret = wasm.derecprotocolwasm_tick(this.__wbg_ptr);
|
|
581
|
+
return ret;
|
|
582
|
+
}
|
|
511
583
|
/**
|
|
512
584
|
* Verify a fingerprint against the channel's locally-derived one. On
|
|
513
585
|
* match, the channel transitions from `Pending` to `Paired`. Returns
|
|
@@ -1006,15 +1078,14 @@ exports.sharing_request_extract = sharing_request_extract;
|
|
|
1006
1078
|
* @param {string} description
|
|
1007
1079
|
* @param {Uint8Array} shared_key
|
|
1008
1080
|
* @param {any} reply_to
|
|
1009
|
-
* @param {any} replica_id
|
|
1010
1081
|
* @returns {any}
|
|
1011
1082
|
*/
|
|
1012
|
-
function sharing_request_produce(channel_id, version, secret_id, committed_share, keep_list, description, shared_key, reply_to
|
|
1083
|
+
function sharing_request_produce(channel_id, version, secret_id, committed_share, keep_list, description, shared_key, reply_to) {
|
|
1013
1084
|
const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1014
1085
|
const len0 = WASM_VECTOR_LEN;
|
|
1015
1086
|
const ptr1 = passArray8ToWasm0(shared_key, wasm.__wbindgen_malloc);
|
|
1016
1087
|
const len1 = WASM_VECTOR_LEN;
|
|
1017
|
-
const ret = wasm.sharing_request_produce(channel_id, version, secret_id, committed_share, keep_list, ptr0, len0, ptr1, len1, reply_to
|
|
1088
|
+
const ret = wasm.sharing_request_produce(channel_id, version, secret_id, committed_share, keep_list, ptr0, len0, ptr1, len1, reply_to);
|
|
1018
1089
|
if (ret[2]) {
|
|
1019
1090
|
throw takeFromExternrefTable0(ret[1]);
|
|
1020
1091
|
}
|
|
@@ -1280,15 +1351,15 @@ exports.wasm_start = wasm_start;
|
|
|
1280
1351
|
function __wbg_get_imports() {
|
|
1281
1352
|
const import0 = {
|
|
1282
1353
|
__proto__: null,
|
|
1283
|
-
|
|
1354
|
+
__wbg_BigInt_54837260f97b6890: function(arg0) {
|
|
1284
1355
|
const ret = BigInt(arg0);
|
|
1285
1356
|
return ret;
|
|
1286
1357
|
},
|
|
1287
|
-
|
|
1358
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
1288
1359
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1289
1360
|
return ret;
|
|
1290
1361
|
},
|
|
1291
|
-
|
|
1362
|
+
__wbg_Number_3890faa6d3ff057d: function(arg0) {
|
|
1292
1363
|
const ret = Number(arg0);
|
|
1293
1364
|
return ret;
|
|
1294
1365
|
},
|
|
@@ -1299,76 +1370,76 @@ function __wbg_get_imports() {
|
|
|
1299
1370
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1300
1371
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1301
1372
|
},
|
|
1302
|
-
|
|
1373
|
+
__wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
|
|
1303
1374
|
const v = arg1;
|
|
1304
1375
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1305
1376
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1306
1377
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1307
1378
|
},
|
|
1308
|
-
|
|
1379
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
1309
1380
|
const v = arg0;
|
|
1310
1381
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1311
1382
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1312
1383
|
},
|
|
1313
|
-
|
|
1384
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
1314
1385
|
const ret = debugString(arg1);
|
|
1315
1386
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1316
1387
|
const len1 = WASM_VECTOR_LEN;
|
|
1317
1388
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1318
1389
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1319
1390
|
},
|
|
1320
|
-
|
|
1391
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
1321
1392
|
const ret = arg0 in arg1;
|
|
1322
1393
|
return ret;
|
|
1323
1394
|
},
|
|
1324
|
-
|
|
1395
|
+
__wbg___wbindgen_is_bigint_8ffbbef442139384: function(arg0) {
|
|
1325
1396
|
const ret = typeof(arg0) === 'bigint';
|
|
1326
1397
|
return ret;
|
|
1327
1398
|
},
|
|
1328
|
-
|
|
1399
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
1329
1400
|
const ret = typeof(arg0) === 'function';
|
|
1330
1401
|
return ret;
|
|
1331
1402
|
},
|
|
1332
|
-
|
|
1403
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
1333
1404
|
const ret = arg0 === null;
|
|
1334
1405
|
return ret;
|
|
1335
1406
|
},
|
|
1336
|
-
|
|
1407
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
1337
1408
|
const val = arg0;
|
|
1338
1409
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1339
1410
|
return ret;
|
|
1340
1411
|
},
|
|
1341
|
-
|
|
1412
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
1342
1413
|
const ret = typeof(arg0) === 'string';
|
|
1343
1414
|
return ret;
|
|
1344
1415
|
},
|
|
1345
|
-
|
|
1416
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
1346
1417
|
const ret = arg0 === undefined;
|
|
1347
1418
|
return ret;
|
|
1348
1419
|
},
|
|
1349
|
-
|
|
1420
|
+
__wbg___wbindgen_jsval_eq_0a18949a61670320: function(arg0, arg1) {
|
|
1350
1421
|
const ret = arg0 === arg1;
|
|
1351
1422
|
return ret;
|
|
1352
1423
|
},
|
|
1353
|
-
|
|
1424
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
1354
1425
|
const ret = arg0 == arg1;
|
|
1355
1426
|
return ret;
|
|
1356
1427
|
},
|
|
1357
|
-
|
|
1428
|
+
__wbg___wbindgen_lt_94fbb50645571f95: function(arg0, arg1) {
|
|
1358
1429
|
const ret = arg0 < arg1;
|
|
1359
1430
|
return ret;
|
|
1360
1431
|
},
|
|
1361
|
-
|
|
1432
|
+
__wbg___wbindgen_neg_8a39375bffed95b1: function(arg0) {
|
|
1362
1433
|
const ret = -arg0;
|
|
1363
1434
|
return ret;
|
|
1364
1435
|
},
|
|
1365
|
-
|
|
1436
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
1366
1437
|
const obj = arg1;
|
|
1367
1438
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1368
1439
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1369
1440
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1370
1441
|
},
|
|
1371
|
-
|
|
1442
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
1372
1443
|
const obj = arg1;
|
|
1373
1444
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1374
1445
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1376,21 +1447,21 @@ function __wbg_get_imports() {
|
|
|
1376
1447
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1377
1448
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1378
1449
|
},
|
|
1379
|
-
|
|
1450
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
1380
1451
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1381
1452
|
},
|
|
1382
|
-
|
|
1453
|
+
__wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
|
|
1383
1454
|
arg0._wbg_cb_unref();
|
|
1384
1455
|
},
|
|
1385
|
-
|
|
1456
|
+
__wbg_apply_cb180996ed7fdae9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1386
1457
|
const ret = arg0.apply(arg1, arg2);
|
|
1387
1458
|
return ret;
|
|
1388
1459
|
}, arguments); },
|
|
1389
|
-
|
|
1460
|
+
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
1390
1461
|
const ret = arg0.call(arg1);
|
|
1391
1462
|
return ret;
|
|
1392
1463
|
}, arguments); },
|
|
1393
|
-
|
|
1464
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1394
1465
|
const ret = arg0.call(arg1, arg2);
|
|
1395
1466
|
return ret;
|
|
1396
1467
|
}, arguments); },
|
|
@@ -1398,18 +1469,15 @@ function __wbg_get_imports() {
|
|
|
1398
1469
|
const ret = arg0.crypto;
|
|
1399
1470
|
return ret;
|
|
1400
1471
|
},
|
|
1401
|
-
|
|
1472
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
1402
1473
|
const ret = arg0.done;
|
|
1403
1474
|
return ret;
|
|
1404
1475
|
},
|
|
1405
|
-
|
|
1476
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
1406
1477
|
const ret = Object.entries(arg0);
|
|
1407
1478
|
return ret;
|
|
1408
1479
|
},
|
|
1409
|
-
|
|
1410
|
-
console.error(arg0);
|
|
1411
|
-
},
|
|
1412
|
-
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
1480
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
1413
1481
|
let deferred0_0;
|
|
1414
1482
|
let deferred0_1;
|
|
1415
1483
|
try {
|
|
@@ -1420,29 +1488,32 @@ function __wbg_get_imports() {
|
|
|
1420
1488
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1421
1489
|
}
|
|
1422
1490
|
},
|
|
1423
|
-
|
|
1491
|
+
__wbg_error_dd408a7b3cb542dd: function(arg0) {
|
|
1492
|
+
console.error(arg0);
|
|
1493
|
+
},
|
|
1494
|
+
__wbg_from_74f3d90e0ff11240: function(arg0) {
|
|
1424
1495
|
const ret = Array.from(arg0);
|
|
1425
1496
|
return ret;
|
|
1426
1497
|
},
|
|
1498
|
+
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
1499
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1500
|
+
}, arguments); },
|
|
1427
1501
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1428
1502
|
arg0.getRandomValues(arg1);
|
|
1429
1503
|
}, arguments); },
|
|
1430
|
-
|
|
1431
|
-
|
|
1504
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
1505
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1506
|
+
return ret;
|
|
1432
1507
|
}, arguments); },
|
|
1433
|
-
|
|
1508
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
1434
1509
|
const ret = arg0[arg1 >>> 0];
|
|
1435
1510
|
return ret;
|
|
1436
1511
|
},
|
|
1437
|
-
|
|
1512
|
+
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
1438
1513
|
const ret = Reflect.get(arg0, arg1);
|
|
1439
1514
|
return ret;
|
|
1440
1515
|
}, arguments); },
|
|
1441
|
-
|
|
1442
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1443
|
-
return ret;
|
|
1444
|
-
}, arguments); },
|
|
1445
|
-
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
1516
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
1446
1517
|
const ret = arg0[arg1 >>> 0];
|
|
1447
1518
|
return ret;
|
|
1448
1519
|
},
|
|
@@ -1450,7 +1521,7 @@ function __wbg_get_imports() {
|
|
|
1450
1521
|
const ret = arg0[arg1];
|
|
1451
1522
|
return ret;
|
|
1452
1523
|
},
|
|
1453
|
-
|
|
1524
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
1454
1525
|
let result;
|
|
1455
1526
|
try {
|
|
1456
1527
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1460,7 +1531,7 @@ function __wbg_get_imports() {
|
|
|
1460
1531
|
const ret = result;
|
|
1461
1532
|
return ret;
|
|
1462
1533
|
},
|
|
1463
|
-
|
|
1534
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
1464
1535
|
let result;
|
|
1465
1536
|
try {
|
|
1466
1537
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1470,23 +1541,23 @@ function __wbg_get_imports() {
|
|
|
1470
1541
|
const ret = result;
|
|
1471
1542
|
return ret;
|
|
1472
1543
|
},
|
|
1473
|
-
|
|
1544
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
1474
1545
|
const ret = Array.isArray(arg0);
|
|
1475
1546
|
return ret;
|
|
1476
1547
|
},
|
|
1477
|
-
|
|
1548
|
+
__wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
|
|
1478
1549
|
const ret = Number.isSafeInteger(arg0);
|
|
1479
1550
|
return ret;
|
|
1480
1551
|
},
|
|
1481
|
-
|
|
1552
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
1482
1553
|
const ret = Symbol.iterator;
|
|
1483
1554
|
return ret;
|
|
1484
1555
|
},
|
|
1485
|
-
|
|
1556
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
1486
1557
|
const ret = arg0.length;
|
|
1487
1558
|
return ret;
|
|
1488
1559
|
},
|
|
1489
|
-
|
|
1560
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
1490
1561
|
const ret = arg0.length;
|
|
1491
1562
|
return ret;
|
|
1492
1563
|
},
|
|
@@ -1494,38 +1565,38 @@ function __wbg_get_imports() {
|
|
|
1494
1565
|
const ret = arg0.msCrypto;
|
|
1495
1566
|
return ret;
|
|
1496
1567
|
},
|
|
1568
|
+
__wbg_new_116be93542d39019: function() {
|
|
1569
|
+
const ret = new Array();
|
|
1570
|
+
return ret;
|
|
1571
|
+
},
|
|
1497
1572
|
__wbg_new_227d7c05414eb861: function() {
|
|
1498
1573
|
const ret = new Error();
|
|
1499
1574
|
return ret;
|
|
1500
1575
|
},
|
|
1501
|
-
|
|
1502
|
-
const ret = new
|
|
1576
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
1577
|
+
const ret = new Uint8Array(arg0);
|
|
1503
1578
|
return ret;
|
|
1504
1579
|
},
|
|
1505
|
-
|
|
1580
|
+
__wbg_new_cdf041679ded4c5f: function() {
|
|
1506
1581
|
const ret = new Map();
|
|
1507
1582
|
return ret;
|
|
1508
1583
|
},
|
|
1509
|
-
|
|
1510
|
-
const ret = new Uint8Array(arg0);
|
|
1511
|
-
return ret;
|
|
1512
|
-
},
|
|
1513
|
-
__wbg_new_da52cf8fe3429cb2: function() {
|
|
1584
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
1514
1585
|
const ret = new Object();
|
|
1515
1586
|
return ret;
|
|
1516
1587
|
},
|
|
1517
|
-
|
|
1588
|
+
__wbg_new_from_slice_3eea173078478cfe: function(arg0, arg1) {
|
|
1518
1589
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1519
1590
|
return ret;
|
|
1520
1591
|
},
|
|
1521
|
-
|
|
1592
|
+
__wbg_new_typed_cceaf62d8d95e9f2: function(arg0, arg1) {
|
|
1522
1593
|
try {
|
|
1523
1594
|
var state0 = {a: arg0, b: arg1};
|
|
1524
1595
|
var cb0 = (arg0, arg1) => {
|
|
1525
1596
|
const a = state0.a;
|
|
1526
1597
|
state0.a = 0;
|
|
1527
1598
|
try {
|
|
1528
|
-
return
|
|
1599
|
+
return wasm_bindgen__convert__closures_____invoke__h037700d3f721a480(a, state0.b, arg0, arg1);
|
|
1529
1600
|
} finally {
|
|
1530
1601
|
state0.a = a;
|
|
1531
1602
|
}
|
|
@@ -1536,23 +1607,23 @@ function __wbg_get_imports() {
|
|
|
1536
1607
|
state0.a = 0;
|
|
1537
1608
|
}
|
|
1538
1609
|
},
|
|
1539
|
-
|
|
1610
|
+
__wbg_new_with_length_3ffc1c56427c525c: function(arg0) {
|
|
1540
1611
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1541
1612
|
return ret;
|
|
1542
1613
|
},
|
|
1543
|
-
|
|
1544
|
-
const ret = arg0.next;
|
|
1545
|
-
return ret;
|
|
1546
|
-
},
|
|
1547
|
-
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
1614
|
+
__wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
|
|
1548
1615
|
const ret = arg0.next();
|
|
1549
1616
|
return ret;
|
|
1550
1617
|
}, arguments); },
|
|
1618
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
1619
|
+
const ret = arg0.next;
|
|
1620
|
+
return ret;
|
|
1621
|
+
},
|
|
1551
1622
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1552
1623
|
const ret = arg0.node;
|
|
1553
1624
|
return ret;
|
|
1554
1625
|
},
|
|
1555
|
-
|
|
1626
|
+
__wbg_now_8b265300afd5f2b9: function() {
|
|
1556
1627
|
const ret = Date.now();
|
|
1557
1628
|
return ret;
|
|
1558
1629
|
},
|
|
@@ -1560,20 +1631,20 @@ function __wbg_get_imports() {
|
|
|
1560
1631
|
const ret = arg0.process;
|
|
1561
1632
|
return ret;
|
|
1562
1633
|
},
|
|
1563
|
-
|
|
1634
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
1564
1635
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1565
1636
|
},
|
|
1566
|
-
|
|
1637
|
+
__wbg_push_adb0107829f02d75: function(arg0, arg1) {
|
|
1567
1638
|
const ret = arg0.push(arg1);
|
|
1568
1639
|
return ret;
|
|
1569
1640
|
},
|
|
1570
|
-
|
|
1641
|
+
__wbg_queueMicrotask_ac694eae12e92dfb: function(arg0) {
|
|
1642
|
+
queueMicrotask(arg0);
|
|
1643
|
+
},
|
|
1644
|
+
__wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
|
|
1571
1645
|
const ret = arg0.queueMicrotask;
|
|
1572
1646
|
return ret;
|
|
1573
1647
|
},
|
|
1574
|
-
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
1575
|
-
queueMicrotask(arg0);
|
|
1576
|
-
},
|
|
1577
1648
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1578
1649
|
arg0.randomFillSync(arg1);
|
|
1579
1650
|
}, arguments); },
|
|
@@ -1581,22 +1652,22 @@ function __wbg_get_imports() {
|
|
|
1581
1652
|
const ret = module.require;
|
|
1582
1653
|
return ret;
|
|
1583
1654
|
}, arguments); },
|
|
1584
|
-
|
|
1655
|
+
__wbg_resolve_020f95d838c6ef25: function(arg0) {
|
|
1585
1656
|
const ret = Promise.resolve(arg0);
|
|
1586
1657
|
return ret;
|
|
1587
1658
|
},
|
|
1588
|
-
|
|
1659
|
+
__wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
|
|
1589
1660
|
const ret = arg0.set(arg1, arg2);
|
|
1590
1661
|
return ret;
|
|
1591
1662
|
},
|
|
1592
1663
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1593
1664
|
arg0[arg1] = arg2;
|
|
1594
1665
|
},
|
|
1595
|
-
|
|
1666
|
+
__wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1596
1667
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1597
1668
|
return ret;
|
|
1598
1669
|
}, arguments); },
|
|
1599
|
-
|
|
1670
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
1600
1671
|
arg0[arg1 >>> 0] = arg2;
|
|
1601
1672
|
},
|
|
1602
1673
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
@@ -1606,46 +1677,46 @@ function __wbg_get_imports() {
|
|
|
1606
1677
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1607
1678
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1608
1679
|
},
|
|
1609
|
-
|
|
1610
|
-
const ret = typeof
|
|
1680
|
+
__wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
|
|
1681
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1611
1682
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1612
1683
|
},
|
|
1613
|
-
|
|
1614
|
-
const ret = typeof
|
|
1684
|
+
__wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
|
|
1685
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1615
1686
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1616
1687
|
},
|
|
1617
|
-
|
|
1688
|
+
__wbg_static_accessor_SELF_42d4fae05e59267a: function() {
|
|
1618
1689
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1619
1690
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1620
1691
|
},
|
|
1621
|
-
|
|
1692
|
+
__wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
|
|
1622
1693
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1623
1694
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1624
1695
|
},
|
|
1625
|
-
|
|
1696
|
+
__wbg_subarray_a4cc58201c7359fd: function(arg0, arg1, arg2) {
|
|
1626
1697
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1627
1698
|
return ret;
|
|
1628
1699
|
},
|
|
1629
|
-
|
|
1630
|
-
const ret = arg0.then(arg1
|
|
1700
|
+
__wbg_then_7026b513a94278a8: function(arg0, arg1) {
|
|
1701
|
+
const ret = arg0.then(arg1);
|
|
1631
1702
|
return ret;
|
|
1632
1703
|
},
|
|
1633
|
-
|
|
1634
|
-
const ret = arg0.then(arg1);
|
|
1704
|
+
__wbg_then_72819b8d4e081fb5: function(arg0, arg1, arg2) {
|
|
1705
|
+
const ret = arg0.then(arg1, arg2);
|
|
1635
1706
|
return ret;
|
|
1636
1707
|
},
|
|
1637
|
-
|
|
1708
|
+
__wbg_toString_76752bc853683831: function() { return handleError(function (arg0, arg1) {
|
|
1638
1709
|
const ret = arg0.toString(arg1);
|
|
1639
1710
|
return ret;
|
|
1640
1711
|
}, arguments); },
|
|
1641
|
-
|
|
1712
|
+
__wbg_toString_effe882d0e9af91c: function(arg0, arg1, arg2) {
|
|
1642
1713
|
const ret = arg1.toString(arg2);
|
|
1643
1714
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1644
1715
|
const len1 = WASM_VECTOR_LEN;
|
|
1645
1716
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1646
1717
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1647
1718
|
},
|
|
1648
|
-
|
|
1719
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
1649
1720
|
const ret = arg0.value;
|
|
1650
1721
|
return ret;
|
|
1651
1722
|
},
|
|
@@ -1654,8 +1725,8 @@ function __wbg_get_imports() {
|
|
|
1654
1725
|
return ret;
|
|
1655
1726
|
},
|
|
1656
1727
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1657
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1658
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1728
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 376, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1729
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h379e0770a020d351);
|
|
1659
1730
|
return ret;
|
|
1660
1731
|
},
|
|
1661
1732
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1699,15 +1770,15 @@ function __wbg_get_imports() {
|
|
|
1699
1770
|
};
|
|
1700
1771
|
}
|
|
1701
1772
|
|
|
1702
|
-
function
|
|
1703
|
-
const ret = wasm.
|
|
1773
|
+
function wasm_bindgen__convert__closures_____invoke__h379e0770a020d351(arg0, arg1, arg2) {
|
|
1774
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h379e0770a020d351(arg0, arg1, arg2);
|
|
1704
1775
|
if (ret[1]) {
|
|
1705
1776
|
throw takeFromExternrefTable0(ret[0]);
|
|
1706
1777
|
}
|
|
1707
1778
|
}
|
|
1708
1779
|
|
|
1709
|
-
function
|
|
1710
|
-
wasm.
|
|
1780
|
+
function wasm_bindgen__convert__closures_____invoke__h037700d3f721a480(arg0, arg1, arg2, arg3) {
|
|
1781
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h037700d3f721a480(arg0, arg1, arg2, arg3);
|
|
1711
1782
|
}
|
|
1712
1783
|
|
|
1713
1784
|
const DeRecProtocolBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/derec_library_bg.wasm
CHANGED
|
Binary file
|