@janssenproject/cedarling_wasm 0.0.315-nodejs → 0.0.316-nodejs
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 +273 -0
- package/cedarling_wasm.d.ts +207 -0
- package/cedarling_wasm.js +649 -123
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.js
CHANGED
|
@@ -233,6 +233,82 @@ class Cedarling {
|
|
|
233
233
|
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
234
234
|
return ret;
|
|
235
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Clear all entries from the data store.
|
|
238
|
+
*
|
|
239
|
+
* # Example
|
|
240
|
+
*
|
|
241
|
+
* ```javascript
|
|
242
|
+
* cedarling.clear_data_ctx();
|
|
243
|
+
* console.log("All data entries cleared");
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
clear_data_ctx() {
|
|
247
|
+
const ret = wasm.cedarling_clear_data_ctx(this.__wbg_ptr);
|
|
248
|
+
if (ret[1]) {
|
|
249
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Get a value from the data store by key.
|
|
254
|
+
* Returns null if the key doesn't exist or the entry has expired.
|
|
255
|
+
*
|
|
256
|
+
* # Arguments
|
|
257
|
+
*
|
|
258
|
+
* * `key` - A string key for the data entry to retrieve
|
|
259
|
+
*
|
|
260
|
+
* # Example
|
|
261
|
+
*
|
|
262
|
+
* ```javascript
|
|
263
|
+
* const value = cedarling.get_data_ctx("user:123");
|
|
264
|
+
* if (value !== null) {
|
|
265
|
+
* console.log(value.name); // "John"
|
|
266
|
+
* }
|
|
267
|
+
* ```
|
|
268
|
+
* @param {string} key
|
|
269
|
+
* @returns {any}
|
|
270
|
+
*/
|
|
271
|
+
get_data_ctx(key) {
|
|
272
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
+
const len0 = WASM_VECTOR_LEN;
|
|
274
|
+
const ret = wasm.cedarling_get_data_ctx(this.__wbg_ptr, ptr0, len0);
|
|
275
|
+
if (ret[2]) {
|
|
276
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
277
|
+
}
|
|
278
|
+
return takeFromExternrefTable0(ret[0]);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Get a data entry with full metadata by key.
|
|
282
|
+
* Returns null if the key doesn't exist or the entry has expired.
|
|
283
|
+
*
|
|
284
|
+
* # Arguments
|
|
285
|
+
*
|
|
286
|
+
* * `key` - A string key for the data entry to retrieve
|
|
287
|
+
*
|
|
288
|
+
* # Example
|
|
289
|
+
*
|
|
290
|
+
* ```javascript
|
|
291
|
+
* const entry = cedarling.get_data_entry_ctx("user:123");
|
|
292
|
+
* if (entry !== null) {
|
|
293
|
+
* console.log(entry.key); // "user:123"
|
|
294
|
+
* console.log(entry.value); // { name: "John", age: 30 }
|
|
295
|
+
* console.log(entry.data_type); // "Record"
|
|
296
|
+
* console.log(entry.created_at); // "2024-01-01T12:00:00Z"
|
|
297
|
+
* console.log(entry.access_count); // 5
|
|
298
|
+
* }
|
|
299
|
+
* ```
|
|
300
|
+
* @param {string} key
|
|
301
|
+
* @returns {DataEntry | undefined}
|
|
302
|
+
*/
|
|
303
|
+
get_data_entry_ctx(key) {
|
|
304
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
const len0 = WASM_VECTOR_LEN;
|
|
306
|
+
const ret = wasm.cedarling_get_data_entry_ctx(this.__wbg_ptr, ptr0, len0);
|
|
307
|
+
if (ret[2]) {
|
|
308
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
309
|
+
}
|
|
310
|
+
return ret[0] === 0 ? undefined : DataEntry.__wrap(ret[0]);
|
|
311
|
+
}
|
|
236
312
|
/**
|
|
237
313
|
* Get specific log entry.
|
|
238
314
|
* Returns `Map` with values or `null`.
|
|
@@ -312,6 +388,47 @@ class Cedarling {
|
|
|
312
388
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
313
389
|
return v2;
|
|
314
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Get statistics about the data store.
|
|
393
|
+
*
|
|
394
|
+
* # Example
|
|
395
|
+
*
|
|
396
|
+
* ```javascript
|
|
397
|
+
* const stats = cedarling.get_stats_ctx();
|
|
398
|
+
* console.log(`Entries: ${stats.entry_count}/${stats.max_entries || 'unlimited'}`);
|
|
399
|
+
* console.log(`Capacity: ${stats.capacity_usage_percent.toFixed(2)}%`);
|
|
400
|
+
* console.log(`Total size: ${stats.total_size_bytes} bytes`);
|
|
401
|
+
* ```
|
|
402
|
+
* @returns {DataStoreStats}
|
|
403
|
+
*/
|
|
404
|
+
get_stats_ctx() {
|
|
405
|
+
const ret = wasm.cedarling_get_stats_ctx(this.__wbg_ptr);
|
|
406
|
+
if (ret[2]) {
|
|
407
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
408
|
+
}
|
|
409
|
+
return DataStoreStats.__wrap(ret[0]);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* List all entries with their metadata.
|
|
413
|
+
* Returns an array of DataEntry objects.
|
|
414
|
+
*
|
|
415
|
+
* # Example
|
|
416
|
+
*
|
|
417
|
+
* ```javascript
|
|
418
|
+
* const entries = cedarling.list_data_ctx();
|
|
419
|
+
* entries.forEach(entry => {
|
|
420
|
+
* console.log(`${entry.key}: ${entry.data_type} (accessed ${entry.access_count} times)`);
|
|
421
|
+
* });
|
|
422
|
+
* ```
|
|
423
|
+
* @returns {Array<any>}
|
|
424
|
+
*/
|
|
425
|
+
list_data_ctx() {
|
|
426
|
+
const ret = wasm.cedarling_list_data_ctx(this.__wbg_ptr);
|
|
427
|
+
if (ret[2]) {
|
|
428
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
429
|
+
}
|
|
430
|
+
return takeFromExternrefTable0(ret[0]);
|
|
431
|
+
}
|
|
315
432
|
/**
|
|
316
433
|
* Create a new instance of the Cedarling application.
|
|
317
434
|
* Assume that config is `Object`
|
|
@@ -344,6 +461,63 @@ class Cedarling {
|
|
|
344
461
|
}
|
|
345
462
|
return takeFromExternrefTable0(ret[0]);
|
|
346
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Push a value into the data store with an optional TTL.
|
|
466
|
+
* If the key already exists, the value will be replaced.
|
|
467
|
+
* If TTL is not provided, the default TTL from configuration is used.
|
|
468
|
+
*
|
|
469
|
+
* # Arguments
|
|
470
|
+
*
|
|
471
|
+
* * `key` - A string key for the data entry (must not be empty)
|
|
472
|
+
* * `value` - The value to store (any JSON-serializable JavaScript value: object, array, string, number, boolean)
|
|
473
|
+
* * `ttl_secs` - Optional TTL in seconds (undefined/null uses default from config)
|
|
474
|
+
*
|
|
475
|
+
* # Example
|
|
476
|
+
*
|
|
477
|
+
* ```javascript
|
|
478
|
+
* cedarling.push_data_ctx("user:123", { name: "John", age: 30 }, 3600);
|
|
479
|
+
* cedarling.push_data_ctx("config", { setting: "value" }); // Uses default TTL
|
|
480
|
+
* ```
|
|
481
|
+
* @param {string} key
|
|
482
|
+
* @param {any} value
|
|
483
|
+
* @param {bigint | null} [ttl_secs]
|
|
484
|
+
*/
|
|
485
|
+
push_data_ctx(key, value, ttl_secs) {
|
|
486
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
|
+
const len0 = WASM_VECTOR_LEN;
|
|
488
|
+
const ret = wasm.cedarling_push_data_ctx(this.__wbg_ptr, ptr0, len0, value, !isLikeNone(ttl_secs), isLikeNone(ttl_secs) ? BigInt(0) : ttl_secs);
|
|
489
|
+
if (ret[1]) {
|
|
490
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Remove a value from the data store by key.
|
|
495
|
+
* Returns true if the key existed and was removed, false otherwise.
|
|
496
|
+
*
|
|
497
|
+
* # Arguments
|
|
498
|
+
*
|
|
499
|
+
* * `key` - A string key for the data entry to remove
|
|
500
|
+
*
|
|
501
|
+
* # Example
|
|
502
|
+
*
|
|
503
|
+
* ```javascript
|
|
504
|
+
* const removed = cedarling.remove_data_ctx("user:123");
|
|
505
|
+
* if (removed) {
|
|
506
|
+
* console.log("Entry was successfully removed");
|
|
507
|
+
* }
|
|
508
|
+
* ```
|
|
509
|
+
* @param {string} key
|
|
510
|
+
* @returns {boolean}
|
|
511
|
+
*/
|
|
512
|
+
remove_data_ctx(key) {
|
|
513
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
514
|
+
const len0 = WASM_VECTOR_LEN;
|
|
515
|
+
const ret = wasm.cedarling_remove_data_ctx(this.__wbg_ptr, ptr0, len0);
|
|
516
|
+
if (ret[2]) {
|
|
517
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
518
|
+
}
|
|
519
|
+
return ret[0] !== 0;
|
|
520
|
+
}
|
|
347
521
|
/**
|
|
348
522
|
* Closes the connections to the Lock Server and pushes all available logs.
|
|
349
523
|
* @returns {Promise<void>}
|
|
@@ -356,6 +530,348 @@ class Cedarling {
|
|
|
356
530
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
357
531
|
exports.Cedarling = Cedarling;
|
|
358
532
|
|
|
533
|
+
/**
|
|
534
|
+
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
535
|
+
* Represents a data entry in the DataStore with value and metadata.
|
|
536
|
+
*/
|
|
537
|
+
class DataEntry {
|
|
538
|
+
static __wrap(ptr) {
|
|
539
|
+
ptr = ptr >>> 0;
|
|
540
|
+
const obj = Object.create(DataEntry.prototype);
|
|
541
|
+
obj.__wbg_ptr = ptr;
|
|
542
|
+
DataEntryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
543
|
+
return obj;
|
|
544
|
+
}
|
|
545
|
+
__destroy_into_raw() {
|
|
546
|
+
const ptr = this.__wbg_ptr;
|
|
547
|
+
this.__wbg_ptr = 0;
|
|
548
|
+
DataEntryFinalization.unregister(this);
|
|
549
|
+
return ptr;
|
|
550
|
+
}
|
|
551
|
+
free() {
|
|
552
|
+
const ptr = this.__destroy_into_raw();
|
|
553
|
+
wasm.__wbg_dataentry_free(ptr, 0);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Convert `DataEntry` to json string value
|
|
557
|
+
* @returns {string}
|
|
558
|
+
*/
|
|
559
|
+
json_string() {
|
|
560
|
+
let deferred1_0;
|
|
561
|
+
let deferred1_1;
|
|
562
|
+
try {
|
|
563
|
+
const ret = wasm.dataentry_json_string(this.__wbg_ptr);
|
|
564
|
+
deferred1_0 = ret[0];
|
|
565
|
+
deferred1_1 = ret[1];
|
|
566
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
567
|
+
} finally {
|
|
568
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Get the value stored in this entry as a JavaScript object
|
|
573
|
+
* @returns {any}
|
|
574
|
+
*/
|
|
575
|
+
value() {
|
|
576
|
+
const ret = wasm.dataentry_value(this.__wbg_ptr);
|
|
577
|
+
if (ret[2]) {
|
|
578
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
579
|
+
}
|
|
580
|
+
return takeFromExternrefTable0(ret[0]);
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Number of times this entry has been accessed
|
|
584
|
+
* @returns {bigint}
|
|
585
|
+
*/
|
|
586
|
+
get access_count() {
|
|
587
|
+
const ret = wasm.__wbg_get_dataentry_access_count(this.__wbg_ptr);
|
|
588
|
+
return BigInt.asUintN(64, ret);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Timestamp when this entry was created (RFC 3339 format)
|
|
592
|
+
* @returns {string}
|
|
593
|
+
*/
|
|
594
|
+
get created_at() {
|
|
595
|
+
let deferred1_0;
|
|
596
|
+
let deferred1_1;
|
|
597
|
+
try {
|
|
598
|
+
const ret = wasm.__wbg_get_dataentry_created_at(this.__wbg_ptr);
|
|
599
|
+
deferred1_0 = ret[0];
|
|
600
|
+
deferred1_1 = ret[1];
|
|
601
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
602
|
+
} finally {
|
|
603
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* The inferred Cedar type of the value
|
|
608
|
+
* @returns {string}
|
|
609
|
+
*/
|
|
610
|
+
get data_type() {
|
|
611
|
+
let deferred1_0;
|
|
612
|
+
let deferred1_1;
|
|
613
|
+
try {
|
|
614
|
+
const ret = wasm.__wbg_get_dataentry_data_type(this.__wbg_ptr);
|
|
615
|
+
deferred1_0 = ret[0];
|
|
616
|
+
deferred1_1 = ret[1];
|
|
617
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
618
|
+
} finally {
|
|
619
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Timestamp when this entry expires (RFC 3339 format), or null if no TTL
|
|
624
|
+
* @returns {string | undefined}
|
|
625
|
+
*/
|
|
626
|
+
get expires_at() {
|
|
627
|
+
const ret = wasm.__wbg_get_dataentry_expires_at(this.__wbg_ptr);
|
|
628
|
+
let v1;
|
|
629
|
+
if (ret[0] !== 0) {
|
|
630
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
631
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
632
|
+
}
|
|
633
|
+
return v1;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* The key for this entry
|
|
637
|
+
* @returns {string}
|
|
638
|
+
*/
|
|
639
|
+
get key() {
|
|
640
|
+
let deferred1_0;
|
|
641
|
+
let deferred1_1;
|
|
642
|
+
try {
|
|
643
|
+
const ret = wasm.__wbg_get_dataentry_key(this.__wbg_ptr);
|
|
644
|
+
deferred1_0 = ret[0];
|
|
645
|
+
deferred1_1 = ret[1];
|
|
646
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
647
|
+
} finally {
|
|
648
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Number of times this entry has been accessed
|
|
653
|
+
* @param {bigint} arg0
|
|
654
|
+
*/
|
|
655
|
+
set access_count(arg0) {
|
|
656
|
+
wasm.__wbg_set_dataentry_access_count(this.__wbg_ptr, arg0);
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Timestamp when this entry was created (RFC 3339 format)
|
|
660
|
+
* @param {string} arg0
|
|
661
|
+
*/
|
|
662
|
+
set created_at(arg0) {
|
|
663
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
664
|
+
const len0 = WASM_VECTOR_LEN;
|
|
665
|
+
wasm.__wbg_set_dataentry_created_at(this.__wbg_ptr, ptr0, len0);
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* The inferred Cedar type of the value
|
|
669
|
+
* @param {string} arg0
|
|
670
|
+
*/
|
|
671
|
+
set data_type(arg0) {
|
|
672
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
673
|
+
const len0 = WASM_VECTOR_LEN;
|
|
674
|
+
wasm.__wbg_set_dataentry_data_type(this.__wbg_ptr, ptr0, len0);
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Timestamp when this entry expires (RFC 3339 format), or null if no TTL
|
|
678
|
+
* @param {string | null} [arg0]
|
|
679
|
+
*/
|
|
680
|
+
set expires_at(arg0) {
|
|
681
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
682
|
+
var len0 = WASM_VECTOR_LEN;
|
|
683
|
+
wasm.__wbg_set_dataentry_expires_at(this.__wbg_ptr, ptr0, len0);
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* The key for this entry
|
|
687
|
+
* @param {string} arg0
|
|
688
|
+
*/
|
|
689
|
+
set key(arg0) {
|
|
690
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
691
|
+
const len0 = WASM_VECTOR_LEN;
|
|
692
|
+
wasm.__wbg_set_dataentry_key(this.__wbg_ptr, ptr0, len0);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
696
|
+
exports.DataEntry = DataEntry;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
700
|
+
* Statistics about the DataStore.
|
|
701
|
+
*/
|
|
702
|
+
class DataStoreStats {
|
|
703
|
+
static __wrap(ptr) {
|
|
704
|
+
ptr = ptr >>> 0;
|
|
705
|
+
const obj = Object.create(DataStoreStats.prototype);
|
|
706
|
+
obj.__wbg_ptr = ptr;
|
|
707
|
+
DataStoreStatsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
708
|
+
return obj;
|
|
709
|
+
}
|
|
710
|
+
__destroy_into_raw() {
|
|
711
|
+
const ptr = this.__wbg_ptr;
|
|
712
|
+
this.__wbg_ptr = 0;
|
|
713
|
+
DataStoreStatsFinalization.unregister(this);
|
|
714
|
+
return ptr;
|
|
715
|
+
}
|
|
716
|
+
free() {
|
|
717
|
+
const ptr = this.__destroy_into_raw();
|
|
718
|
+
wasm.__wbg_datastorestats_free(ptr, 0);
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Convert `DataStoreStats` to json string value
|
|
722
|
+
* @returns {string}
|
|
723
|
+
*/
|
|
724
|
+
json_string() {
|
|
725
|
+
let deferred1_0;
|
|
726
|
+
let deferred1_1;
|
|
727
|
+
try {
|
|
728
|
+
const ret = wasm.datastorestats_json_string(this.__wbg_ptr);
|
|
729
|
+
deferred1_0 = ret[0];
|
|
730
|
+
deferred1_1 = ret[1];
|
|
731
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
732
|
+
} finally {
|
|
733
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Average size per entry in bytes (0 if no entries)
|
|
738
|
+
* @returns {number}
|
|
739
|
+
*/
|
|
740
|
+
get avg_entry_size_bytes() {
|
|
741
|
+
const ret = wasm.__wbg_get_datastorestats_avg_entry_size_bytes(this.__wbg_ptr);
|
|
742
|
+
return ret >>> 0;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Percentage of capacity used (0.0-100.0, based on entry count)
|
|
746
|
+
* @returns {number}
|
|
747
|
+
*/
|
|
748
|
+
get capacity_usage_percent() {
|
|
749
|
+
const ret = wasm.__wbg_get_datastorestats_capacity_usage_percent(this.__wbg_ptr);
|
|
750
|
+
return ret;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Number of entries currently stored
|
|
754
|
+
* @returns {number}
|
|
755
|
+
*/
|
|
756
|
+
get entry_count() {
|
|
757
|
+
const ret = wasm.__wbg_get_datastorestats_entry_count(this.__wbg_ptr);
|
|
758
|
+
return ret >>> 0;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Maximum number of entries allowed (0 = unlimited)
|
|
762
|
+
* @returns {number}
|
|
763
|
+
*/
|
|
764
|
+
get max_entries() {
|
|
765
|
+
const ret = wasm.__wbg_get_datastorestats_max_entries(this.__wbg_ptr);
|
|
766
|
+
return ret >>> 0;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* Maximum size per entry in bytes (0 = unlimited)
|
|
770
|
+
* @returns {number}
|
|
771
|
+
*/
|
|
772
|
+
get max_entry_size() {
|
|
773
|
+
const ret = wasm.__wbg_get_datastorestats_max_entry_size(this.__wbg_ptr);
|
|
774
|
+
return ret >>> 0;
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Memory usage threshold percentage (from config)
|
|
778
|
+
* @returns {number}
|
|
779
|
+
*/
|
|
780
|
+
get memory_alert_threshold() {
|
|
781
|
+
const ret = wasm.__wbg_get_datastorestats_memory_alert_threshold(this.__wbg_ptr);
|
|
782
|
+
return ret;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Whether memory usage exceeds the alert threshold
|
|
786
|
+
* @returns {boolean}
|
|
787
|
+
*/
|
|
788
|
+
get memory_alert_triggered() {
|
|
789
|
+
const ret = wasm.__wbg_get_datastorestats_memory_alert_triggered(this.__wbg_ptr);
|
|
790
|
+
return ret !== 0;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Whether metrics tracking is enabled
|
|
794
|
+
* @returns {boolean}
|
|
795
|
+
*/
|
|
796
|
+
get metrics_enabled() {
|
|
797
|
+
const ret = wasm.__wbg_get_datastorestats_metrics_enabled(this.__wbg_ptr);
|
|
798
|
+
return ret !== 0;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Total size of all entries in bytes (approximate, based on JSON serialization)
|
|
802
|
+
* @returns {number}
|
|
803
|
+
*/
|
|
804
|
+
get total_size_bytes() {
|
|
805
|
+
const ret = wasm.__wbg_get_datastorestats_total_size_bytes(this.__wbg_ptr);
|
|
806
|
+
return ret >>> 0;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Average size per entry in bytes (0 if no entries)
|
|
810
|
+
* @param {number} arg0
|
|
811
|
+
*/
|
|
812
|
+
set avg_entry_size_bytes(arg0) {
|
|
813
|
+
wasm.__wbg_set_datastorestats_avg_entry_size_bytes(this.__wbg_ptr, arg0);
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Percentage of capacity used (0.0-100.0, based on entry count)
|
|
817
|
+
* @param {number} arg0
|
|
818
|
+
*/
|
|
819
|
+
set capacity_usage_percent(arg0) {
|
|
820
|
+
wasm.__wbg_set_datastorestats_capacity_usage_percent(this.__wbg_ptr, arg0);
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Number of entries currently stored
|
|
824
|
+
* @param {number} arg0
|
|
825
|
+
*/
|
|
826
|
+
set entry_count(arg0) {
|
|
827
|
+
wasm.__wbg_set_datastorestats_entry_count(this.__wbg_ptr, arg0);
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Maximum number of entries allowed (0 = unlimited)
|
|
831
|
+
* @param {number} arg0
|
|
832
|
+
*/
|
|
833
|
+
set max_entries(arg0) {
|
|
834
|
+
wasm.__wbg_set_datastorestats_max_entries(this.__wbg_ptr, arg0);
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Maximum size per entry in bytes (0 = unlimited)
|
|
838
|
+
* @param {number} arg0
|
|
839
|
+
*/
|
|
840
|
+
set max_entry_size(arg0) {
|
|
841
|
+
wasm.__wbg_set_datastorestats_max_entry_size(this.__wbg_ptr, arg0);
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Memory usage threshold percentage (from config)
|
|
845
|
+
* @param {number} arg0
|
|
846
|
+
*/
|
|
847
|
+
set memory_alert_threshold(arg0) {
|
|
848
|
+
wasm.__wbg_set_datastorestats_memory_alert_threshold(this.__wbg_ptr, arg0);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Whether memory usage exceeds the alert threshold
|
|
852
|
+
* @param {boolean} arg0
|
|
853
|
+
*/
|
|
854
|
+
set memory_alert_triggered(arg0) {
|
|
855
|
+
wasm.__wbg_set_datastorestats_memory_alert_triggered(this.__wbg_ptr, arg0);
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Whether metrics tracking is enabled
|
|
859
|
+
* @param {boolean} arg0
|
|
860
|
+
*/
|
|
861
|
+
set metrics_enabled(arg0) {
|
|
862
|
+
wasm.__wbg_set_datastorestats_metrics_enabled(this.__wbg_ptr, arg0);
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Total size of all entries in bytes (approximate, based on JSON serialization)
|
|
866
|
+
* @param {number} arg0
|
|
867
|
+
*/
|
|
868
|
+
set total_size_bytes(arg0) {
|
|
869
|
+
wasm.__wbg_set_datastorestats_total_size_bytes(this.__wbg_ptr, arg0);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
873
|
+
exports.DataStoreStats = DataStoreStats;
|
|
874
|
+
|
|
359
875
|
/**
|
|
360
876
|
* Diagnostics
|
|
361
877
|
* ===========
|
|
@@ -612,72 +1128,72 @@ exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
|
612
1128
|
function __wbg_get_imports() {
|
|
613
1129
|
const import0 = {
|
|
614
1130
|
__proto__: null,
|
|
615
|
-
|
|
1131
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
616
1132
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
617
1133
|
return ret;
|
|
618
1134
|
},
|
|
619
|
-
|
|
1135
|
+
__wbg_Number_a5a435bd7bbec835: function(arg0) {
|
|
620
1136
|
const ret = Number(arg0);
|
|
621
1137
|
return ret;
|
|
622
1138
|
},
|
|
623
|
-
|
|
1139
|
+
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
624
1140
|
const v = arg1;
|
|
625
1141
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
626
1142
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
627
1143
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
628
1144
|
},
|
|
629
|
-
|
|
1145
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
630
1146
|
const v = arg0;
|
|
631
1147
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
632
1148
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
633
1149
|
},
|
|
634
|
-
|
|
1150
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
635
1151
|
const ret = debugString(arg1);
|
|
636
1152
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
637
1153
|
const len1 = WASM_VECTOR_LEN;
|
|
638
1154
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
639
1155
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
640
1156
|
},
|
|
641
|
-
|
|
1157
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
642
1158
|
const ret = arg0 in arg1;
|
|
643
1159
|
return ret;
|
|
644
1160
|
},
|
|
645
|
-
|
|
1161
|
+
__wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
|
|
646
1162
|
const ret = typeof(arg0) === 'bigint';
|
|
647
1163
|
return ret;
|
|
648
1164
|
},
|
|
649
|
-
|
|
1165
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
650
1166
|
const ret = typeof(arg0) === 'function';
|
|
651
1167
|
return ret;
|
|
652
1168
|
},
|
|
653
|
-
|
|
1169
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
654
1170
|
const val = arg0;
|
|
655
1171
|
const ret = typeof(val) === 'object' && val !== null;
|
|
656
1172
|
return ret;
|
|
657
1173
|
},
|
|
658
|
-
|
|
1174
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
659
1175
|
const ret = typeof(arg0) === 'string';
|
|
660
1176
|
return ret;
|
|
661
1177
|
},
|
|
662
|
-
|
|
1178
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
663
1179
|
const ret = arg0 === undefined;
|
|
664
1180
|
return ret;
|
|
665
1181
|
},
|
|
666
|
-
|
|
1182
|
+
__wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
|
|
667
1183
|
const ret = arg0 === arg1;
|
|
668
1184
|
return ret;
|
|
669
1185
|
},
|
|
670
|
-
|
|
1186
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
671
1187
|
const ret = arg0 == arg1;
|
|
672
1188
|
return ret;
|
|
673
1189
|
},
|
|
674
|
-
|
|
1190
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
675
1191
|
const obj = arg1;
|
|
676
1192
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
677
1193
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
678
1194
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
679
1195
|
},
|
|
680
|
-
|
|
1196
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
681
1197
|
const obj = arg1;
|
|
682
1198
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
683
1199
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -685,22 +1201,22 @@ function __wbg_get_imports() {
|
|
|
685
1201
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
686
1202
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
687
1203
|
},
|
|
688
|
-
|
|
1204
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
689
1205
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
690
1206
|
},
|
|
691
|
-
|
|
1207
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
692
1208
|
arg0._wbg_cb_unref();
|
|
693
1209
|
},
|
|
694
|
-
|
|
1210
|
+
__wbg_abort_5ef96933660780b7: function(arg0) {
|
|
695
1211
|
arg0.abort();
|
|
696
1212
|
},
|
|
697
|
-
|
|
1213
|
+
__wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
|
|
698
1214
|
arg0.abort(arg1);
|
|
699
1215
|
},
|
|
700
|
-
|
|
1216
|
+
__wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
701
1217
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
702
1218
|
}, arguments); },
|
|
703
|
-
|
|
1219
|
+
__wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
|
|
704
1220
|
const ret = arg0.arrayBuffer();
|
|
705
1221
|
return ret;
|
|
706
1222
|
}, arguments); },
|
|
@@ -708,11 +1224,11 @@ function __wbg_get_imports() {
|
|
|
708
1224
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
709
1225
|
return ret;
|
|
710
1226
|
},
|
|
711
|
-
|
|
1227
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
712
1228
|
const ret = arg0.call(arg1, arg2);
|
|
713
1229
|
return ret;
|
|
714
1230
|
}, arguments); },
|
|
715
|
-
|
|
1231
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
716
1232
|
const ret = arg0.call(arg1);
|
|
717
1233
|
return ret;
|
|
718
1234
|
}, arguments); },
|
|
@@ -728,37 +1244,41 @@ function __wbg_get_imports() {
|
|
|
728
1244
|
const ret = arg0.crypto;
|
|
729
1245
|
return ret;
|
|
730
1246
|
},
|
|
731
|
-
|
|
1247
|
+
__wbg_dataentry_new: function(arg0) {
|
|
1248
|
+
const ret = DataEntry.__wrap(arg0);
|
|
1249
|
+
return ret;
|
|
1250
|
+
},
|
|
1251
|
+
__wbg_debug_6fad7a26a693b696: function(arg0) {
|
|
732
1252
|
console.debug(...arg0);
|
|
733
1253
|
},
|
|
734
|
-
|
|
1254
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
735
1255
|
const ret = arg0.done;
|
|
736
1256
|
return ret;
|
|
737
1257
|
},
|
|
738
|
-
|
|
739
|
-
const ret =
|
|
1258
|
+
__wbg_entries_5b8fe91cea59610e: function(arg0) {
|
|
1259
|
+
const ret = arg0.entries();
|
|
740
1260
|
return ret;
|
|
741
1261
|
},
|
|
742
|
-
|
|
1262
|
+
__wbg_entries_850b70a4650cfe8b: function(arg0) {
|
|
743
1263
|
const ret = arg0.entries();
|
|
744
1264
|
return ret;
|
|
745
1265
|
},
|
|
746
|
-
|
|
747
|
-
const ret =
|
|
1266
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
1267
|
+
const ret = Object.entries(arg0);
|
|
748
1268
|
return ret;
|
|
749
1269
|
},
|
|
750
|
-
|
|
1270
|
+
__wbg_error_b282edc683808929: function(arg0) {
|
|
751
1271
|
console.error(...arg0);
|
|
752
1272
|
},
|
|
753
1273
|
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
754
1274
|
const ret = fetch(arg0);
|
|
755
1275
|
return ret;
|
|
756
1276
|
},
|
|
757
|
-
|
|
1277
|
+
__wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
|
|
758
1278
|
const ret = arg0.fetch(arg1);
|
|
759
1279
|
return ret;
|
|
760
1280
|
},
|
|
761
|
-
|
|
1281
|
+
__wbg_fromEntries_8f078e02a548e8eb: function() { return handleError(function (arg0) {
|
|
762
1282
|
const ret = Object.fromEntries(arg0);
|
|
763
1283
|
return ret;
|
|
764
1284
|
}, arguments); },
|
|
@@ -768,27 +1288,27 @@ function __wbg_get_imports() {
|
|
|
768
1288
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
769
1289
|
arg0.getRandomValues(arg1);
|
|
770
1290
|
}, arguments); },
|
|
771
|
-
|
|
1291
|
+
__wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
|
|
772
1292
|
const ret = arg0.getTime();
|
|
773
1293
|
return ret;
|
|
774
1294
|
},
|
|
775
|
-
|
|
1295
|
+
__wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
|
|
776
1296
|
const ret = arg0.getTimezoneOffset();
|
|
777
1297
|
return ret;
|
|
778
1298
|
},
|
|
779
|
-
|
|
1299
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
780
1300
|
const ret = Reflect.get(arg0, arg1);
|
|
781
1301
|
return ret;
|
|
782
1302
|
}, arguments); },
|
|
783
|
-
|
|
1303
|
+
__wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
|
|
784
1304
|
const ret = Reflect.get(arg0, arg1);
|
|
785
1305
|
return ret;
|
|
786
1306
|
}, arguments); },
|
|
787
|
-
|
|
1307
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
788
1308
|
const ret = arg0[arg1 >>> 0];
|
|
789
1309
|
return ret;
|
|
790
1310
|
},
|
|
791
|
-
|
|
1311
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
792
1312
|
const ret = arg0[arg1 >>> 0];
|
|
793
1313
|
return ret;
|
|
794
1314
|
},
|
|
@@ -796,18 +1316,18 @@ function __wbg_get_imports() {
|
|
|
796
1316
|
const ret = arg0[arg1];
|
|
797
1317
|
return ret;
|
|
798
1318
|
},
|
|
799
|
-
|
|
1319
|
+
__wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
|
|
800
1320
|
const ret = Reflect.has(arg0, arg1);
|
|
801
1321
|
return ret;
|
|
802
1322
|
}, arguments); },
|
|
803
|
-
|
|
1323
|
+
__wbg_headers_eb2234545f9ff993: function(arg0) {
|
|
804
1324
|
const ret = arg0.headers;
|
|
805
1325
|
return ret;
|
|
806
1326
|
},
|
|
807
|
-
|
|
1327
|
+
__wbg_info_4284b8118a0cae1c: function(arg0) {
|
|
808
1328
|
console.info(...arg0);
|
|
809
1329
|
},
|
|
810
|
-
|
|
1330
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
811
1331
|
let result;
|
|
812
1332
|
try {
|
|
813
1333
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -817,7 +1337,7 @@ function __wbg_get_imports() {
|
|
|
817
1337
|
const ret = result;
|
|
818
1338
|
return ret;
|
|
819
1339
|
},
|
|
820
|
-
|
|
1340
|
+
__wbg_instanceof_Array_3247353192ed9130: function(arg0) {
|
|
821
1341
|
let result;
|
|
822
1342
|
try {
|
|
823
1343
|
result = arg0 instanceof Array;
|
|
@@ -827,7 +1347,7 @@ function __wbg_get_imports() {
|
|
|
827
1347
|
const ret = result;
|
|
828
1348
|
return ret;
|
|
829
1349
|
},
|
|
830
|
-
|
|
1350
|
+
__wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
|
|
831
1351
|
let result;
|
|
832
1352
|
try {
|
|
833
1353
|
result = arg0 instanceof Map;
|
|
@@ -837,7 +1357,7 @@ function __wbg_get_imports() {
|
|
|
837
1357
|
const ret = result;
|
|
838
1358
|
return ret;
|
|
839
1359
|
},
|
|
840
|
-
|
|
1360
|
+
__wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
|
|
841
1361
|
let result;
|
|
842
1362
|
try {
|
|
843
1363
|
result = arg0 instanceof Response;
|
|
@@ -847,7 +1367,7 @@ function __wbg_get_imports() {
|
|
|
847
1367
|
const ret = result;
|
|
848
1368
|
return ret;
|
|
849
1369
|
},
|
|
850
|
-
|
|
1370
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
851
1371
|
let result;
|
|
852
1372
|
try {
|
|
853
1373
|
result = arg0 instanceof Uint8Array;
|
|
@@ -857,31 +1377,31 @@ function __wbg_get_imports() {
|
|
|
857
1377
|
const ret = result;
|
|
858
1378
|
return ret;
|
|
859
1379
|
},
|
|
860
|
-
|
|
1380
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
861
1381
|
const ret = Array.isArray(arg0);
|
|
862
1382
|
return ret;
|
|
863
1383
|
},
|
|
864
|
-
|
|
1384
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
865
1385
|
const ret = Number.isSafeInteger(arg0);
|
|
866
1386
|
return ret;
|
|
867
1387
|
},
|
|
868
|
-
|
|
1388
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
869
1389
|
const ret = Symbol.iterator;
|
|
870
1390
|
return ret;
|
|
871
1391
|
},
|
|
872
|
-
|
|
1392
|
+
__wbg_keys_ab0d051a1c55236d: function(arg0) {
|
|
873
1393
|
const ret = Object.keys(arg0);
|
|
874
1394
|
return ret;
|
|
875
1395
|
},
|
|
876
|
-
|
|
1396
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
877
1397
|
const ret = arg0.length;
|
|
878
1398
|
return ret;
|
|
879
1399
|
},
|
|
880
|
-
|
|
1400
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
881
1401
|
const ret = arg0.length;
|
|
882
1402
|
return ret;
|
|
883
1403
|
},
|
|
884
|
-
|
|
1404
|
+
__wbg_log_0c2d15a74310c102: function(arg0) {
|
|
885
1405
|
console.log(...arg0);
|
|
886
1406
|
},
|
|
887
1407
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -892,50 +1412,50 @@ function __wbg_get_imports() {
|
|
|
892
1412
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
893
1413
|
return ret;
|
|
894
1414
|
},
|
|
895
|
-
|
|
1415
|
+
__wbg_new_0837727332ac86ba: function() { return handleError(function () {
|
|
896
1416
|
const ret = new Headers();
|
|
897
1417
|
return ret;
|
|
898
1418
|
}, arguments); },
|
|
899
|
-
|
|
900
|
-
const ret = new Uint8Array(arg0);
|
|
901
|
-
return ret;
|
|
902
|
-
},
|
|
903
|
-
__wbg_new_0_a719938e6f92ddf4: function() {
|
|
1419
|
+
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
904
1420
|
const ret = new Date();
|
|
905
1421
|
return ret;
|
|
906
1422
|
},
|
|
907
|
-
|
|
908
|
-
const ret = new
|
|
1423
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
1424
|
+
const ret = new Map();
|
|
909
1425
|
return ret;
|
|
910
1426
|
},
|
|
911
|
-
|
|
912
|
-
const ret = new
|
|
1427
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1428
|
+
const ret = new Uint8Array(arg0);
|
|
913
1429
|
return ret;
|
|
914
1430
|
},
|
|
915
|
-
|
|
1431
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
916
1432
|
const ret = new Array();
|
|
917
1433
|
return ret;
|
|
918
1434
|
},
|
|
919
|
-
|
|
1435
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
920
1436
|
const ret = new Object();
|
|
921
1437
|
return ret;
|
|
922
1438
|
},
|
|
923
|
-
|
|
1439
|
+
__wbg_new_c518c60af666645b: function() { return handleError(function () {
|
|
924
1440
|
const ret = new AbortController();
|
|
925
1441
|
return ret;
|
|
926
1442
|
}, arguments); },
|
|
927
|
-
|
|
1443
|
+
__wbg_new_fd94ca5c9639abd2: function(arg0) {
|
|
1444
|
+
const ret = new Date(arg0);
|
|
1445
|
+
return ret;
|
|
1446
|
+
},
|
|
1447
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
928
1448
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
929
1449
|
return ret;
|
|
930
1450
|
},
|
|
931
|
-
|
|
1451
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
932
1452
|
try {
|
|
933
1453
|
var state0 = {a: arg0, b: arg1};
|
|
934
1454
|
var cb0 = (arg0, arg1) => {
|
|
935
1455
|
const a = state0.a;
|
|
936
1456
|
state0.a = 0;
|
|
937
1457
|
try {
|
|
938
|
-
return
|
|
1458
|
+
return wasm_bindgen__convert__closures_____invoke__h434e5a5fca11045c(a, state0.b, arg0, arg1);
|
|
939
1459
|
} finally {
|
|
940
1460
|
state0.a = a;
|
|
941
1461
|
}
|
|
@@ -946,22 +1466,22 @@ function __wbg_get_imports() {
|
|
|
946
1466
|
state0.a = state0.b = 0;
|
|
947
1467
|
}
|
|
948
1468
|
},
|
|
949
|
-
|
|
1469
|
+
__wbg_new_with_length_825018a1616e9e55: function(arg0) {
|
|
950
1470
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
951
1471
|
return ret;
|
|
952
1472
|
},
|
|
953
|
-
|
|
1473
|
+
__wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
|
|
954
1474
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
955
1475
|
return ret;
|
|
956
1476
|
}, arguments); },
|
|
957
|
-
|
|
958
|
-
const ret = arg0.next;
|
|
959
|
-
return ret;
|
|
960
|
-
},
|
|
961
|
-
__wbg_next_e592122bb4ed4c67: function() { return handleError(function (arg0) {
|
|
1477
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
962
1478
|
const ret = arg0.next();
|
|
963
1479
|
return ret;
|
|
964
1480
|
}, arguments); },
|
|
1481
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1482
|
+
const ret = arg0.next;
|
|
1483
|
+
return ret;
|
|
1484
|
+
},
|
|
965
1485
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
966
1486
|
const ret = arg0.node;
|
|
967
1487
|
return ret;
|
|
@@ -974,18 +1494,18 @@ function __wbg_get_imports() {
|
|
|
974
1494
|
const ret = arg0.process;
|
|
975
1495
|
return ret;
|
|
976
1496
|
},
|
|
977
|
-
|
|
1497
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
978
1498
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
979
1499
|
},
|
|
980
|
-
|
|
1500
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
981
1501
|
const ret = arg0.push(arg1);
|
|
982
1502
|
return ret;
|
|
983
1503
|
},
|
|
984
|
-
|
|
1504
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
985
1505
|
const ret = arg0.queueMicrotask;
|
|
986
1506
|
return ret;
|
|
987
1507
|
},
|
|
988
|
-
|
|
1508
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
989
1509
|
queueMicrotask(arg0);
|
|
990
1510
|
},
|
|
991
1511
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -995,7 +1515,7 @@ function __wbg_get_imports() {
|
|
|
995
1515
|
const ret = module.require;
|
|
996
1516
|
return ret;
|
|
997
1517
|
}, arguments); },
|
|
998
|
-
|
|
1518
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
999
1519
|
const ret = Promise.resolve(arg0);
|
|
1000
1520
|
return ret;
|
|
1001
1521
|
},
|
|
@@ -1003,92 +1523,92 @@ function __wbg_get_imports() {
|
|
|
1003
1523
|
const ret = setTimeout(arg0, arg1);
|
|
1004
1524
|
return ret;
|
|
1005
1525
|
},
|
|
1006
|
-
|
|
1526
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
1007
1527
|
arg0[arg1 >>> 0] = arg2;
|
|
1008
1528
|
},
|
|
1009
1529
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1010
1530
|
arg0[arg1] = arg2;
|
|
1011
1531
|
},
|
|
1012
|
-
|
|
1532
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1013
1533
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1014
1534
|
return ret;
|
|
1015
1535
|
}, arguments); },
|
|
1016
|
-
|
|
1536
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1537
|
+
const ret = arg0.set(arg1, arg2);
|
|
1538
|
+
return ret;
|
|
1539
|
+
},
|
|
1540
|
+
__wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
|
|
1017
1541
|
arg0.body = arg1;
|
|
1018
1542
|
},
|
|
1019
|
-
|
|
1543
|
+
__wbg_set_cache_ec7e430c6056ebda: function(arg0, arg1) {
|
|
1020
1544
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1021
1545
|
},
|
|
1022
|
-
|
|
1023
|
-
const ret = arg0.set(arg1, arg2);
|
|
1024
|
-
return ret;
|
|
1025
|
-
},
|
|
1026
|
-
__wbg_set_credentials_b80a80dfa15201af: function(arg0, arg1) {
|
|
1546
|
+
__wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
|
|
1027
1547
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1028
1548
|
},
|
|
1029
|
-
|
|
1549
|
+
__wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
|
|
1030
1550
|
arg0.headers = arg1;
|
|
1031
1551
|
},
|
|
1032
|
-
|
|
1552
|
+
__wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
|
|
1033
1553
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1034
1554
|
},
|
|
1035
|
-
|
|
1555
|
+
__wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
|
|
1036
1556
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1037
1557
|
},
|
|
1038
|
-
|
|
1558
|
+
__wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
|
|
1039
1559
|
arg0.signal = arg1;
|
|
1040
1560
|
},
|
|
1041
|
-
|
|
1561
|
+
__wbg_signal_166e1da31adcac18: function(arg0) {
|
|
1042
1562
|
const ret = arg0.signal;
|
|
1043
1563
|
return ret;
|
|
1044
1564
|
},
|
|
1045
|
-
|
|
1046
|
-
const ret = typeof
|
|
1565
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1566
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1047
1567
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1048
1568
|
},
|
|
1049
|
-
|
|
1050
|
-
const ret = typeof
|
|
1569
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1570
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1051
1571
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1052
1572
|
},
|
|
1053
|
-
|
|
1573
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1054
1574
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1055
1575
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1056
1576
|
},
|
|
1057
|
-
|
|
1577
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1058
1578
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1059
1579
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1060
1580
|
},
|
|
1061
|
-
|
|
1581
|
+
__wbg_status_318629ab93a22955: function(arg0) {
|
|
1062
1582
|
const ret = arg0.status;
|
|
1063
1583
|
return ret;
|
|
1064
1584
|
},
|
|
1065
|
-
|
|
1585
|
+
__wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
|
|
1066
1586
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1067
1587
|
return ret;
|
|
1068
1588
|
},
|
|
1069
|
-
|
|
1589
|
+
__wbg_text_372f5b91442c50f9: function() { return handleError(function (arg0) {
|
|
1070
1590
|
const ret = arg0.text();
|
|
1071
1591
|
return ret;
|
|
1072
1592
|
}, arguments); },
|
|
1073
|
-
|
|
1074
|
-
const ret = arg0.then(arg1
|
|
1593
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1594
|
+
const ret = arg0.then(arg1);
|
|
1075
1595
|
return ret;
|
|
1076
1596
|
},
|
|
1077
|
-
|
|
1078
|
-
const ret = arg0.then(arg1);
|
|
1597
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1598
|
+
const ret = arg0.then(arg1, arg2);
|
|
1079
1599
|
return ret;
|
|
1080
1600
|
},
|
|
1081
|
-
|
|
1601
|
+
__wbg_trace_e81c2d096c740f11: function(arg0) {
|
|
1082
1602
|
console.trace(...arg0);
|
|
1083
1603
|
},
|
|
1084
|
-
|
|
1604
|
+
__wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
|
|
1085
1605
|
const ret = arg1.url;
|
|
1086
1606
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1087
1607
|
const len1 = WASM_VECTOR_LEN;
|
|
1088
1608
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1089
1609
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1090
1610
|
},
|
|
1091
|
-
|
|
1611
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
1092
1612
|
const ret = arg0.value;
|
|
1093
1613
|
return ret;
|
|
1094
1614
|
},
|
|
@@ -1096,17 +1616,17 @@ function __wbg_get_imports() {
|
|
|
1096
1616
|
const ret = arg0.versions;
|
|
1097
1617
|
return ret;
|
|
1098
1618
|
},
|
|
1099
|
-
|
|
1619
|
+
__wbg_warn_ff4a30433095bbe4: function(arg0) {
|
|
1100
1620
|
console.warn(...arg0);
|
|
1101
1621
|
},
|
|
1102
1622
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1103
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1104
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1623
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 575, function: Function { arguments: [], shim_idx: 576, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1624
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haa2c8eeec983adf2, wasm_bindgen__convert__closures_____invoke__h680f4b2480ae6141);
|
|
1105
1625
|
return ret;
|
|
1106
1626
|
},
|
|
1107
1627
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1108
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1109
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1628
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 619, function: Function { arguments: [Externref], shim_idx: 2038, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1629
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haf4358594d12c874, wasm_bindgen__convert__closures_____invoke__h1f90382e3f7fa14a);
|
|
1110
1630
|
return ret;
|
|
1111
1631
|
},
|
|
1112
1632
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1150,19 +1670,19 @@ function __wbg_get_imports() {
|
|
|
1150
1670
|
};
|
|
1151
1671
|
}
|
|
1152
1672
|
|
|
1153
|
-
function
|
|
1154
|
-
wasm.
|
|
1673
|
+
function wasm_bindgen__convert__closures_____invoke__h680f4b2480ae6141(arg0, arg1) {
|
|
1674
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h680f4b2480ae6141(arg0, arg1);
|
|
1155
1675
|
}
|
|
1156
1676
|
|
|
1157
|
-
function
|
|
1158
|
-
const ret = wasm.
|
|
1677
|
+
function wasm_bindgen__convert__closures_____invoke__h1f90382e3f7fa14a(arg0, arg1, arg2) {
|
|
1678
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1f90382e3f7fa14a(arg0, arg1, arg2);
|
|
1159
1679
|
if (ret[1]) {
|
|
1160
1680
|
throw takeFromExternrefTable0(ret[0]);
|
|
1161
1681
|
}
|
|
1162
1682
|
}
|
|
1163
1683
|
|
|
1164
|
-
function
|
|
1165
|
-
wasm.
|
|
1684
|
+
function wasm_bindgen__convert__closures_____invoke__h434e5a5fca11045c(arg0, arg1, arg2, arg3) {
|
|
1685
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h434e5a5fca11045c(arg0, arg1, arg2, arg3);
|
|
1166
1686
|
}
|
|
1167
1687
|
|
|
1168
1688
|
|
|
@@ -1182,6 +1702,12 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
|
|
|
1182
1702
|
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1183
1703
|
? { register: () => {}, unregister: () => {} }
|
|
1184
1704
|
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
1705
|
+
const DataEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1706
|
+
? { register: () => {}, unregister: () => {} }
|
|
1707
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_dataentry_free(ptr >>> 0, 1));
|
|
1708
|
+
const DataStoreStatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1709
|
+
? { register: () => {}, unregister: () => {} }
|
|
1710
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_datastorestats_free(ptr >>> 0, 1));
|
|
1185
1711
|
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1186
1712
|
? { register: () => {}, unregister: () => {} }
|
|
1187
1713
|
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|