@janssenproject/cedarling_wasm 0.0.351 → 0.0.352-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/cedarling_wasm.d.ts +0 -148
- package/cedarling_wasm.js +209 -291
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +2 -6
package/cedarling_wasm.d.ts
CHANGED
|
@@ -516,151 +516,3 @@ export function init(config: any): Promise<Cedarling>;
|
|
|
516
516
|
* ```
|
|
517
517
|
*/
|
|
518
518
|
export function init_from_archive_bytes(config: any, archive_bytes: Uint8Array): Promise<Cedarling>;
|
|
519
|
-
|
|
520
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
521
|
-
|
|
522
|
-
export interface InitOutput {
|
|
523
|
-
readonly memory: WebAssembly.Memory;
|
|
524
|
-
readonly __wbg_cedarling_free: (a: number, b: number) => void;
|
|
525
|
-
readonly __wbg_multiissuerauthorizeresult_free: (a: number, b: number) => void;
|
|
526
|
-
readonly __wbg_get_multiissuerauthorizeresult_response: (a: number) => number;
|
|
527
|
-
readonly __wbg_set_multiissuerauthorizeresult_response: (a: number, b: number) => void;
|
|
528
|
-
readonly __wbg_get_multiissuerauthorizeresult_decision: (a: number) => number;
|
|
529
|
-
readonly __wbg_set_multiissuerauthorizeresult_decision: (a: number, b: number) => void;
|
|
530
|
-
readonly __wbg_get_multiissuerauthorizeresult_request_id: (a: number) => [number, number];
|
|
531
|
-
readonly __wbg_set_multiissuerauthorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
532
|
-
readonly multiissuerauthorizeresult_json_string: (a: number) => [number, number];
|
|
533
|
-
readonly init: (a: any) => any;
|
|
534
|
-
readonly init_from_archive_bytes: (a: any, b: any) => any;
|
|
535
|
-
readonly cedarling_new: (a: any) => any;
|
|
536
|
-
readonly cedarling_new_from_map: (a: any) => any;
|
|
537
|
-
readonly cedarling_authorize_unsigned: (a: number, b: any) => any;
|
|
538
|
-
readonly cedarling_authorize_multi_issuer: (a: number, b: any) => any;
|
|
539
|
-
readonly cedarling_pop_logs: (a: number) => [number, number, number];
|
|
540
|
-
readonly cedarling_get_log_by_id: (a: number, b: number, c: number) => [number, number, number];
|
|
541
|
-
readonly cedarling_get_log_ids: (a: number) => any;
|
|
542
|
-
readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
|
|
543
|
-
readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
|
|
544
|
-
readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
545
|
-
readonly cedarling_shut_down: (a: number) => any;
|
|
546
|
-
readonly cedarling_push_data_ctx: (a: number, b: number, c: number, d: any, e: number, f: bigint) => [number, number];
|
|
547
|
-
readonly cedarling_get_data_ctx: (a: number, b: number, c: number) => [number, number, number];
|
|
548
|
-
readonly cedarling_get_data_entry_ctx: (a: number, b: number, c: number) => [number, number, number];
|
|
549
|
-
readonly cedarling_remove_data_ctx: (a: number, b: number, c: number) => [number, number, number];
|
|
550
|
-
readonly cedarling_clear_data_ctx: (a: number) => [number, number];
|
|
551
|
-
readonly cedarling_list_data_ctx: (a: number) => [number, number, number];
|
|
552
|
-
readonly cedarling_get_stats_ctx: (a: number) => [number, number, number];
|
|
553
|
-
readonly cedarling_is_trusted_issuer_loaded_by_name: (a: number, b: number, c: number) => number;
|
|
554
|
-
readonly cedarling_is_trusted_issuer_loaded_by_iss: (a: number, b: number, c: number) => number;
|
|
555
|
-
readonly cedarling_total_issuers: (a: number) => number;
|
|
556
|
-
readonly cedarling_loaded_trusted_issuers_count: (a: number) => number;
|
|
557
|
-
readonly cedarling_loaded_trusted_issuer_ids: (a: number) => any;
|
|
558
|
-
readonly cedarling_failed_trusted_issuer_ids: (a: number) => any;
|
|
559
|
-
readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
|
|
560
|
-
readonly __wbg_get_authorizeresult_decision: (a: number) => number;
|
|
561
|
-
readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
|
|
562
|
-
readonly __wbg_get_authorizeresult_request_id: (a: number) => [number, number];
|
|
563
|
-
readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
564
|
-
readonly authorizeresult_json_string: (a: number) => [number, number];
|
|
565
|
-
readonly authorizeresult_principal: (a: number, b: number, c: number) => number;
|
|
566
|
-
readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
|
|
567
|
-
readonly authorizeresultresponse_decision: (a: number) => number;
|
|
568
|
-
readonly authorizeresultresponse_diagnostics: (a: number) => number;
|
|
569
|
-
readonly __wbg_diagnostics_free: (a: number, b: number) => void;
|
|
570
|
-
readonly diagnostics_reason: (a: number) => [number, number];
|
|
571
|
-
readonly diagnostics_errors: (a: number) => [number, number];
|
|
572
|
-
readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
|
|
573
|
-
readonly policyevaluationerror_id: (a: number) => [number, number];
|
|
574
|
-
readonly policyevaluationerror_error: (a: number) => [number, number];
|
|
575
|
-
readonly __wbg_dataentry_free: (a: number, b: number) => void;
|
|
576
|
-
readonly __wbg_get_dataentry_key: (a: number) => [number, number];
|
|
577
|
-
readonly __wbg_set_dataentry_key: (a: number, b: number, c: number) => void;
|
|
578
|
-
readonly __wbg_get_dataentry_data_type: (a: number) => [number, number];
|
|
579
|
-
readonly __wbg_set_dataentry_data_type: (a: number, b: number, c: number) => void;
|
|
580
|
-
readonly __wbg_get_dataentry_created_at: (a: number) => [number, number];
|
|
581
|
-
readonly __wbg_set_dataentry_created_at: (a: number, b: number, c: number) => void;
|
|
582
|
-
readonly __wbg_get_dataentry_expires_at: (a: number) => [number, number];
|
|
583
|
-
readonly __wbg_set_dataentry_expires_at: (a: number, b: number, c: number) => void;
|
|
584
|
-
readonly __wbg_get_dataentry_access_count: (a: number) => bigint;
|
|
585
|
-
readonly __wbg_set_dataentry_access_count: (a: number, b: bigint) => void;
|
|
586
|
-
readonly dataentry_value: (a: number) => [number, number, number];
|
|
587
|
-
readonly dataentry_json_string: (a: number) => [number, number];
|
|
588
|
-
readonly __wbg_datastorestats_free: (a: number, b: number) => void;
|
|
589
|
-
readonly __wbg_get_datastorestats_entry_count: (a: number) => number;
|
|
590
|
-
readonly __wbg_set_datastorestats_entry_count: (a: number, b: number) => void;
|
|
591
|
-
readonly __wbg_get_datastorestats_max_entries: (a: number) => number;
|
|
592
|
-
readonly __wbg_set_datastorestats_max_entries: (a: number, b: number) => void;
|
|
593
|
-
readonly __wbg_get_datastorestats_max_entry_size: (a: number) => number;
|
|
594
|
-
readonly __wbg_set_datastorestats_max_entry_size: (a: number, b: number) => void;
|
|
595
|
-
readonly __wbg_get_datastorestats_metrics_enabled: (a: number) => number;
|
|
596
|
-
readonly __wbg_set_datastorestats_metrics_enabled: (a: number, b: number) => void;
|
|
597
|
-
readonly __wbg_get_datastorestats_total_size_bytes: (a: number) => number;
|
|
598
|
-
readonly __wbg_set_datastorestats_total_size_bytes: (a: number, b: number) => void;
|
|
599
|
-
readonly __wbg_get_datastorestats_avg_entry_size_bytes: (a: number) => number;
|
|
600
|
-
readonly __wbg_set_datastorestats_avg_entry_size_bytes: (a: number, b: number) => void;
|
|
601
|
-
readonly __wbg_get_datastorestats_capacity_usage_percent: (a: number) => number;
|
|
602
|
-
readonly __wbg_set_datastorestats_capacity_usage_percent: (a: number, b: number) => void;
|
|
603
|
-
readonly __wbg_get_datastorestats_memory_alert_threshold: (a: number) => number;
|
|
604
|
-
readonly __wbg_set_datastorestats_memory_alert_threshold: (a: number, b: number) => void;
|
|
605
|
-
readonly __wbg_get_datastorestats_memory_alert_triggered: (a: number) => number;
|
|
606
|
-
readonly __wbg_set_datastorestats_memory_alert_triggered: (a: number, b: number) => void;
|
|
607
|
-
readonly datastorestats_json_string: (a: number) => [number, number];
|
|
608
|
-
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
609
|
-
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
610
|
-
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
611
|
-
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
612
|
-
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
613
|
-
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
614
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
615
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
616
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
617
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
618
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
619
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
620
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
621
|
-
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
622
|
-
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
623
|
-
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
624
|
-
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
625
|
-
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
626
|
-
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
627
|
-
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
628
|
-
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
629
|
-
readonly wasm_bindgen__convert__closures_____invoke__ha2b3719cffd9f83d: (a: number, b: number, c: any) => [number, number];
|
|
630
|
-
readonly wasm_bindgen__convert__closures_____invoke__h0d89a39249448943: (a: number, b: number, c: any, d: any) => void;
|
|
631
|
-
readonly wasm_bindgen__convert__closures_____invoke__hb93cf6d5fa24abba: (a: number, b: number, c: any) => void;
|
|
632
|
-
readonly wasm_bindgen__convert__closures_____invoke__h9624d1ac7835711f: (a: number, b: number) => void;
|
|
633
|
-
readonly wasm_bindgen__convert__closures_____invoke__h47692f968927c4d2: (a: number, b: number) => void;
|
|
634
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
635
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
636
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
637
|
-
readonly __externref_table_alloc: () => number;
|
|
638
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
639
|
-
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
640
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
641
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
642
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
643
|
-
readonly __wbindgen_start: () => void;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
650
|
-
* a precompiled `WebAssembly.Module`.
|
|
651
|
-
*
|
|
652
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
653
|
-
*
|
|
654
|
-
* @returns {InitOutput}
|
|
655
|
-
*/
|
|
656
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
660
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
661
|
-
*
|
|
662
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
663
|
-
*
|
|
664
|
-
* @returns {Promise<InitOutput>}
|
|
665
|
-
*/
|
|
666
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/cedarling_wasm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
5
5
|
* Represents the result of an authorization request.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
class AuthorizeResult {
|
|
8
8
|
static __wrap(ptr) {
|
|
9
9
|
ptr = ptr >>> 0;
|
|
10
10
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -98,12 +98,13 @@ export class AuthorizeResult {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
101
|
+
exports.AuthorizeResult = AuthorizeResult;
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
104
105
|
* Represents the result of an authorization request.
|
|
105
106
|
*/
|
|
106
|
-
|
|
107
|
+
class AuthorizeResultResponse {
|
|
107
108
|
static __wrap(ptr) {
|
|
108
109
|
ptr = ptr >>> 0;
|
|
109
110
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -139,11 +140,12 @@ export class AuthorizeResultResponse {
|
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
142
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
143
|
+
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
142
144
|
|
|
143
145
|
/**
|
|
144
146
|
* The instance of the Cedarling application.
|
|
145
147
|
*/
|
|
146
|
-
|
|
148
|
+
class Cedarling {
|
|
147
149
|
static __wrap(ptr) {
|
|
148
150
|
ptr = ptr >>> 0;
|
|
149
151
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -574,12 +576,13 @@ export class Cedarling {
|
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
578
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
579
|
+
exports.Cedarling = Cedarling;
|
|
577
580
|
|
|
578
581
|
/**
|
|
579
582
|
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
580
583
|
* Represents a data entry in the DataStore with value and metadata.
|
|
581
584
|
*/
|
|
582
|
-
|
|
585
|
+
class DataEntry {
|
|
583
586
|
static __wrap(ptr) {
|
|
584
587
|
ptr = ptr >>> 0;
|
|
585
588
|
const obj = Object.create(DataEntry.prototype);
|
|
@@ -738,12 +741,13 @@ export class DataEntry {
|
|
|
738
741
|
}
|
|
739
742
|
}
|
|
740
743
|
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
744
|
+
exports.DataEntry = DataEntry;
|
|
741
745
|
|
|
742
746
|
/**
|
|
743
747
|
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
744
748
|
* Statistics about the DataStore.
|
|
745
749
|
*/
|
|
746
|
-
|
|
750
|
+
class DataStoreStats {
|
|
747
751
|
static __wrap(ptr) {
|
|
748
752
|
ptr = ptr >>> 0;
|
|
749
753
|
const obj = Object.create(DataStoreStats.prototype);
|
|
@@ -914,6 +918,7 @@ export class DataStoreStats {
|
|
|
914
918
|
}
|
|
915
919
|
}
|
|
916
920
|
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
921
|
+
exports.DataStoreStats = DataStoreStats;
|
|
917
922
|
|
|
918
923
|
/**
|
|
919
924
|
* Diagnostics
|
|
@@ -921,7 +926,7 @@ if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.pr
|
|
|
921
926
|
*
|
|
922
927
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
923
928
|
*/
|
|
924
|
-
|
|
929
|
+
class Diagnostics {
|
|
925
930
|
static __wrap(ptr) {
|
|
926
931
|
ptr = ptr >>> 0;
|
|
927
932
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -965,8 +970,9 @@ export class Diagnostics {
|
|
|
965
970
|
}
|
|
966
971
|
}
|
|
967
972
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
973
|
+
exports.Diagnostics = Diagnostics;
|
|
968
974
|
|
|
969
|
-
|
|
975
|
+
class IntoUnderlyingByteSource {
|
|
970
976
|
__destroy_into_raw() {
|
|
971
977
|
const ptr = this.__wbg_ptr;
|
|
972
978
|
this.__wbg_ptr = 0;
|
|
@@ -1011,8 +1017,9 @@ export class IntoUnderlyingByteSource {
|
|
|
1011
1017
|
}
|
|
1012
1018
|
}
|
|
1013
1019
|
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
1020
|
+
exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
1014
1021
|
|
|
1015
|
-
|
|
1022
|
+
class IntoUnderlyingSink {
|
|
1016
1023
|
__destroy_into_raw() {
|
|
1017
1024
|
const ptr = this.__wbg_ptr;
|
|
1018
1025
|
this.__wbg_ptr = 0;
|
|
@@ -1050,8 +1057,9 @@ export class IntoUnderlyingSink {
|
|
|
1050
1057
|
}
|
|
1051
1058
|
}
|
|
1052
1059
|
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
1060
|
+
exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
1053
1061
|
|
|
1054
|
-
|
|
1062
|
+
class IntoUnderlyingSource {
|
|
1055
1063
|
__destroy_into_raw() {
|
|
1056
1064
|
const ptr = this.__wbg_ptr;
|
|
1057
1065
|
this.__wbg_ptr = 0;
|
|
@@ -1076,12 +1084,13 @@ export class IntoUnderlyingSource {
|
|
|
1076
1084
|
}
|
|
1077
1085
|
}
|
|
1078
1086
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
1087
|
+
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
1079
1088
|
|
|
1080
1089
|
/**
|
|
1081
1090
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
1082
1091
|
* Represents the result of a multi-issuer authorization request.
|
|
1083
1092
|
*/
|
|
1084
|
-
|
|
1093
|
+
class MultiIssuerAuthorizeResult {
|
|
1085
1094
|
static __wrap(ptr) {
|
|
1086
1095
|
ptr = ptr >>> 0;
|
|
1087
1096
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -1178,6 +1187,7 @@ export class MultiIssuerAuthorizeResult {
|
|
|
1178
1187
|
}
|
|
1179
1188
|
}
|
|
1180
1189
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
1190
|
+
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
1181
1191
|
|
|
1182
1192
|
/**
|
|
1183
1193
|
* PolicyEvaluationError
|
|
@@ -1185,7 +1195,7 @@ if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = Multi
|
|
|
1185
1195
|
*
|
|
1186
1196
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
1187
1197
|
*/
|
|
1188
|
-
|
|
1198
|
+
class PolicyEvaluationError {
|
|
1189
1199
|
static __wrap(ptr) {
|
|
1190
1200
|
ptr = ptr >>> 0;
|
|
1191
1201
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -1237,6 +1247,7 @@ export class PolicyEvaluationError {
|
|
|
1237
1247
|
}
|
|
1238
1248
|
}
|
|
1239
1249
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
1250
|
+
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
1240
1251
|
|
|
1241
1252
|
/**
|
|
1242
1253
|
* Create a new instance of the Cedarling application.
|
|
@@ -1244,10 +1255,11 @@ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEval
|
|
|
1244
1255
|
* @param {any} config
|
|
1245
1256
|
* @returns {Promise<Cedarling>}
|
|
1246
1257
|
*/
|
|
1247
|
-
|
|
1258
|
+
function init(config) {
|
|
1248
1259
|
const ret = wasm.init(config);
|
|
1249
1260
|
return ret;
|
|
1250
1261
|
}
|
|
1262
|
+
exports.init = init;
|
|
1251
1263
|
|
|
1252
1264
|
/**
|
|
1253
1265
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -1269,80 +1281,81 @@ export function init(config) {
|
|
|
1269
1281
|
* @param {Uint8Array} archive_bytes
|
|
1270
1282
|
* @returns {Promise<Cedarling>}
|
|
1271
1283
|
*/
|
|
1272
|
-
|
|
1284
|
+
function init_from_archive_bytes(config, archive_bytes) {
|
|
1273
1285
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
1274
1286
|
return ret;
|
|
1275
1287
|
}
|
|
1288
|
+
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
1276
1289
|
|
|
1277
1290
|
function __wbg_get_imports() {
|
|
1278
1291
|
const import0 = {
|
|
1279
1292
|
__proto__: null,
|
|
1280
|
-
|
|
1293
|
+
__wbg_Error_2e59b1b37a9a34c3: function(arg0, arg1) {
|
|
1281
1294
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1282
1295
|
return ret;
|
|
1283
1296
|
},
|
|
1284
|
-
|
|
1297
|
+
__wbg_Number_e6ffdb596c888833: function(arg0) {
|
|
1285
1298
|
const ret = Number(arg0);
|
|
1286
1299
|
return ret;
|
|
1287
1300
|
},
|
|
1288
|
-
|
|
1301
|
+
__wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2: function(arg0, arg1) {
|
|
1289
1302
|
const v = arg1;
|
|
1290
1303
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1291
1304
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1292
1305
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1293
1306
|
},
|
|
1294
|
-
|
|
1307
|
+
__wbg___wbindgen_boolean_get_a86c216575a75c30: function(arg0) {
|
|
1295
1308
|
const v = arg0;
|
|
1296
1309
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1297
1310
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1298
1311
|
},
|
|
1299
|
-
|
|
1312
|
+
__wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
|
|
1300
1313
|
const ret = debugString(arg1);
|
|
1301
1314
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1302
1315
|
const len1 = WASM_VECTOR_LEN;
|
|
1303
1316
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1304
1317
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1305
1318
|
},
|
|
1306
|
-
|
|
1319
|
+
__wbg___wbindgen_in_4bd7a57e54337366: function(arg0, arg1) {
|
|
1307
1320
|
const ret = arg0 in arg1;
|
|
1308
1321
|
return ret;
|
|
1309
1322
|
},
|
|
1310
|
-
|
|
1323
|
+
__wbg___wbindgen_is_bigint_6c98f7e945dacdde: function(arg0) {
|
|
1311
1324
|
const ret = typeof(arg0) === 'bigint';
|
|
1312
1325
|
return ret;
|
|
1313
1326
|
},
|
|
1314
|
-
|
|
1327
|
+
__wbg___wbindgen_is_function_49868bde5eb1e745: function(arg0) {
|
|
1315
1328
|
const ret = typeof(arg0) === 'function';
|
|
1316
1329
|
return ret;
|
|
1317
1330
|
},
|
|
1318
|
-
|
|
1331
|
+
__wbg___wbindgen_is_object_40c5a80572e8f9d3: function(arg0) {
|
|
1319
1332
|
const val = arg0;
|
|
1320
1333
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1321
1334
|
return ret;
|
|
1322
1335
|
},
|
|
1323
|
-
|
|
1336
|
+
__wbg___wbindgen_is_string_b29b5c5a8065ba1a: function(arg0) {
|
|
1324
1337
|
const ret = typeof(arg0) === 'string';
|
|
1325
1338
|
return ret;
|
|
1326
1339
|
},
|
|
1327
|
-
|
|
1340
|
+
__wbg___wbindgen_is_undefined_c0cca72b82b86f4d: function(arg0) {
|
|
1328
1341
|
const ret = arg0 === undefined;
|
|
1329
1342
|
return ret;
|
|
1330
1343
|
},
|
|
1331
|
-
|
|
1344
|
+
__wbg___wbindgen_jsval_eq_7d430e744a913d26: function(arg0, arg1) {
|
|
1332
1345
|
const ret = arg0 === arg1;
|
|
1333
1346
|
return ret;
|
|
1334
1347
|
},
|
|
1335
|
-
|
|
1348
|
+
__wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944: function(arg0, arg1) {
|
|
1336
1349
|
const ret = arg0 == arg1;
|
|
1337
1350
|
return ret;
|
|
1338
1351
|
},
|
|
1339
|
-
|
|
1352
|
+
__wbg___wbindgen_number_get_7579aab02a8a620c: function(arg0, arg1) {
|
|
1340
1353
|
const obj = arg1;
|
|
1341
1354
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1342
1355
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1343
1356
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1344
1357
|
},
|
|
1345
|
-
|
|
1358
|
+
__wbg___wbindgen_string_get_914df97fcfa788f2: function(arg0, arg1) {
|
|
1346
1359
|
const obj = arg1;
|
|
1347
1360
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1348
1361
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1350,22 +1363,22 @@ function __wbg_get_imports() {
|
|
|
1350
1363
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1351
1364
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1352
1365
|
},
|
|
1353
|
-
|
|
1366
|
+
__wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
|
|
1354
1367
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1355
1368
|
},
|
|
1356
|
-
|
|
1369
|
+
__wbg__wbg_cb_unref_3c3b4f651835fbcb: function(arg0) {
|
|
1357
1370
|
arg0._wbg_cb_unref();
|
|
1358
1371
|
},
|
|
1359
|
-
|
|
1372
|
+
__wbg_abort_5ee4083ce26e0b01: function(arg0) {
|
|
1360
1373
|
arg0.abort();
|
|
1361
1374
|
},
|
|
1362
|
-
|
|
1375
|
+
__wbg_abort_7a67cb8f9383baa1: function(arg0, arg1) {
|
|
1363
1376
|
arg0.abort(arg1);
|
|
1364
1377
|
},
|
|
1365
|
-
|
|
1378
|
+
__wbg_append_c015600138ae60bb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1366
1379
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1367
1380
|
}, arguments); },
|
|
1368
|
-
|
|
1381
|
+
__wbg_arrayBuffer_dae084a298aa5fe0: function() { return handleError(function (arg0) {
|
|
1369
1382
|
const ret = arg0.arrayBuffer();
|
|
1370
1383
|
return ret;
|
|
1371
1384
|
}, arguments); },
|
|
@@ -1373,39 +1386,39 @@ function __wbg_get_imports() {
|
|
|
1373
1386
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
1374
1387
|
return ret;
|
|
1375
1388
|
},
|
|
1376
|
-
|
|
1389
|
+
__wbg_body_9a25d64338506fbe: function(arg0) {
|
|
1377
1390
|
const ret = arg0.body;
|
|
1378
1391
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1379
1392
|
},
|
|
1380
|
-
|
|
1393
|
+
__wbg_buffer_a77cc90da4bdb503: function(arg0) {
|
|
1381
1394
|
const ret = arg0.buffer;
|
|
1382
1395
|
return ret;
|
|
1383
1396
|
},
|
|
1384
|
-
|
|
1397
|
+
__wbg_byobRequest_41018d4f78e8364a: function(arg0) {
|
|
1385
1398
|
const ret = arg0.byobRequest;
|
|
1386
1399
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1387
1400
|
},
|
|
1388
|
-
|
|
1401
|
+
__wbg_byteLength_f5c761c4472de41b: function(arg0) {
|
|
1389
1402
|
const ret = arg0.byteLength;
|
|
1390
1403
|
return ret;
|
|
1391
1404
|
},
|
|
1392
|
-
|
|
1405
|
+
__wbg_byteOffset_7cd0c9f7e573845c: function(arg0) {
|
|
1393
1406
|
const ret = arg0.byteOffset;
|
|
1394
1407
|
return ret;
|
|
1395
1408
|
},
|
|
1396
|
-
|
|
1397
|
-
const ret = arg0.call(arg1
|
|
1409
|
+
__wbg_call_7f2987183bb62793: function() { return handleError(function (arg0, arg1) {
|
|
1410
|
+
const ret = arg0.call(arg1);
|
|
1398
1411
|
return ret;
|
|
1399
1412
|
}, arguments); },
|
|
1400
|
-
|
|
1401
|
-
const ret = arg0.call(arg1);
|
|
1413
|
+
__wbg_call_d578befcc3145dee: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1414
|
+
const ret = arg0.call(arg1, arg2);
|
|
1402
1415
|
return ret;
|
|
1403
1416
|
}, arguments); },
|
|
1404
|
-
|
|
1417
|
+
__wbg_cancel_8314206ca10b9605: function(arg0) {
|
|
1405
1418
|
const ret = arg0.cancel();
|
|
1406
1419
|
return ret;
|
|
1407
1420
|
},
|
|
1408
|
-
|
|
1421
|
+
__wbg_catch_32d296b856e661d9: function(arg0, arg1) {
|
|
1409
1422
|
const ret = arg0.catch(arg1);
|
|
1410
1423
|
return ret;
|
|
1411
1424
|
},
|
|
@@ -1421,10 +1434,10 @@ function __wbg_get_imports() {
|
|
|
1421
1434
|
const ret = clearTimeout(arg0);
|
|
1422
1435
|
return ret;
|
|
1423
1436
|
},
|
|
1424
|
-
|
|
1437
|
+
__wbg_close_9998ebb2f4515c42: function() { return handleError(function (arg0) {
|
|
1425
1438
|
arg0.close();
|
|
1426
1439
|
}, arguments); },
|
|
1427
|
-
|
|
1440
|
+
__wbg_close_a7c33e895baeb773: function() { return handleError(function (arg0) {
|
|
1428
1441
|
arg0.close();
|
|
1429
1442
|
}, arguments); },
|
|
1430
1443
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
@@ -1435,48 +1448,48 @@ function __wbg_get_imports() {
|
|
|
1435
1448
|
const ret = DataEntry.__wrap(arg0);
|
|
1436
1449
|
return ret;
|
|
1437
1450
|
},
|
|
1438
|
-
|
|
1451
|
+
__wbg_debug_5b884084951f22aa: function(arg0) {
|
|
1439
1452
|
console.debug(...arg0);
|
|
1440
1453
|
},
|
|
1441
|
-
|
|
1454
|
+
__wbg_done_547d467e97529006: function(arg0) {
|
|
1442
1455
|
const ret = arg0.done;
|
|
1443
1456
|
return ret;
|
|
1444
1457
|
},
|
|
1445
|
-
|
|
1458
|
+
__wbg_enqueue_bb06efec8458a81a: function() { return handleError(function (arg0, arg1) {
|
|
1446
1459
|
arg0.enqueue(arg1);
|
|
1447
1460
|
}, arguments); },
|
|
1448
|
-
|
|
1449
|
-
const ret =
|
|
1461
|
+
__wbg_entries_616b1a459b85be0b: function(arg0) {
|
|
1462
|
+
const ret = Object.entries(arg0);
|
|
1450
1463
|
return ret;
|
|
1451
1464
|
},
|
|
1452
|
-
|
|
1465
|
+
__wbg_entries_69f235654ec4ccc6: function(arg0) {
|
|
1453
1466
|
const ret = arg0.entries();
|
|
1454
1467
|
return ret;
|
|
1455
1468
|
},
|
|
1456
|
-
|
|
1457
|
-
const ret =
|
|
1469
|
+
__wbg_entries_7d89e479ff037f54: function(arg0) {
|
|
1470
|
+
const ret = arg0.entries();
|
|
1458
1471
|
return ret;
|
|
1459
1472
|
},
|
|
1460
|
-
|
|
1473
|
+
__wbg_error_d40ec8860536e1ea: function(arg0) {
|
|
1461
1474
|
console.error(...arg0);
|
|
1462
1475
|
},
|
|
1463
1476
|
__wbg_fetch_010aa16f24b763bc: function(arg0, arg1) {
|
|
1464
1477
|
const ret = fetch(arg0, arg1);
|
|
1465
1478
|
return ret;
|
|
1466
1479
|
},
|
|
1467
|
-
|
|
1468
|
-
const ret = fetch(
|
|
1480
|
+
__wbg_fetch_1a731e18c5e21884: function(arg0, arg1) {
|
|
1481
|
+
const ret = arg0.fetch(arg1);
|
|
1469
1482
|
return ret;
|
|
1470
1483
|
},
|
|
1471
|
-
|
|
1472
|
-
const ret =
|
|
1484
|
+
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
1485
|
+
const ret = fetch(arg0);
|
|
1473
1486
|
return ret;
|
|
1474
1487
|
},
|
|
1475
|
-
|
|
1488
|
+
__wbg_fetch_a920260d19124083: function(arg0, arg1, arg2) {
|
|
1476
1489
|
const ret = arg0.fetch(arg1, arg2);
|
|
1477
1490
|
return ret;
|
|
1478
1491
|
},
|
|
1479
|
-
|
|
1492
|
+
__wbg_fromEntries_5ab22ee81eeaa316: function() { return handleError(function (arg0) {
|
|
1480
1493
|
const ret = Object.fromEntries(arg0);
|
|
1481
1494
|
return ret;
|
|
1482
1495
|
}, arguments); },
|
|
@@ -1490,35 +1503,35 @@ function __wbg_get_imports() {
|
|
|
1490
1503
|
const ret = arg0.getReader();
|
|
1491
1504
|
return ret;
|
|
1492
1505
|
}, arguments); },
|
|
1493
|
-
|
|
1506
|
+
__wbg_getTime_f6ac312467f7cf09: function(arg0) {
|
|
1494
1507
|
const ret = arg0.getTime();
|
|
1495
1508
|
return ret;
|
|
1496
1509
|
},
|
|
1497
|
-
|
|
1510
|
+
__wbg_getTimezoneOffset_ac5be603b21a5797: function(arg0) {
|
|
1498
1511
|
const ret = arg0.getTimezoneOffset();
|
|
1499
1512
|
return ret;
|
|
1500
1513
|
},
|
|
1501
|
-
|
|
1514
|
+
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
1502
1515
|
const ret = arg0[arg1 >>> 0];
|
|
1503
1516
|
return ret;
|
|
1504
1517
|
},
|
|
1505
|
-
|
|
1518
|
+
__wbg_get_done_46f064515323cd59: function(arg0) {
|
|
1519
|
+
const ret = arg0.done;
|
|
1520
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1521
|
+
},
|
|
1522
|
+
__wbg_get_ed0642c4b9d31ddf: function() { return handleError(function (arg0, arg1) {
|
|
1506
1523
|
const ret = Reflect.get(arg0, arg1);
|
|
1507
1524
|
return ret;
|
|
1508
1525
|
}, arguments); },
|
|
1509
|
-
|
|
1526
|
+
__wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
|
|
1510
1527
|
const ret = Reflect.get(arg0, arg1);
|
|
1511
1528
|
return ret;
|
|
1512
1529
|
}, arguments); },
|
|
1513
|
-
|
|
1514
|
-
const ret = arg0.done;
|
|
1515
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1516
|
-
},
|
|
1517
|
-
__wbg_get_unchecked_c33f0e513c522d7c: function(arg0, arg1) {
|
|
1530
|
+
__wbg_get_unchecked_7d7babe32e9e6a54: function(arg0, arg1) {
|
|
1518
1531
|
const ret = arg0[arg1 >>> 0];
|
|
1519
1532
|
return ret;
|
|
1520
1533
|
},
|
|
1521
|
-
|
|
1534
|
+
__wbg_get_value_28b7deb73d356d88: function(arg0) {
|
|
1522
1535
|
const ret = arg0.value;
|
|
1523
1536
|
return ret;
|
|
1524
1537
|
},
|
|
@@ -1526,18 +1539,18 @@ function __wbg_get_imports() {
|
|
|
1526
1539
|
const ret = arg0[arg1];
|
|
1527
1540
|
return ret;
|
|
1528
1541
|
},
|
|
1529
|
-
|
|
1542
|
+
__wbg_has_3ec5c22db2e5237a: function() { return handleError(function (arg0, arg1) {
|
|
1530
1543
|
const ret = Reflect.has(arg0, arg1);
|
|
1531
1544
|
return ret;
|
|
1532
1545
|
}, arguments); },
|
|
1533
|
-
|
|
1546
|
+
__wbg_headers_e08dcb5aa09b9a63: function(arg0) {
|
|
1534
1547
|
const ret = arg0.headers;
|
|
1535
1548
|
return ret;
|
|
1536
1549
|
},
|
|
1537
|
-
|
|
1550
|
+
__wbg_info_d9cc7ac4e8be710d: function(arg0) {
|
|
1538
1551
|
console.info(...arg0);
|
|
1539
1552
|
},
|
|
1540
|
-
|
|
1553
|
+
__wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a: function(arg0) {
|
|
1541
1554
|
let result;
|
|
1542
1555
|
try {
|
|
1543
1556
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1547,7 +1560,7 @@ function __wbg_get_imports() {
|
|
|
1547
1560
|
const ret = result;
|
|
1548
1561
|
return ret;
|
|
1549
1562
|
},
|
|
1550
|
-
|
|
1563
|
+
__wbg_instanceof_Array_9408483148edb2e0: function(arg0) {
|
|
1551
1564
|
let result;
|
|
1552
1565
|
try {
|
|
1553
1566
|
result = arg0 instanceof Array;
|
|
@@ -1557,7 +1570,7 @@ function __wbg_get_imports() {
|
|
|
1557
1570
|
const ret = result;
|
|
1558
1571
|
return ret;
|
|
1559
1572
|
},
|
|
1560
|
-
|
|
1573
|
+
__wbg_instanceof_Map_a10a2795ef4bfe97: function(arg0) {
|
|
1561
1574
|
let result;
|
|
1562
1575
|
try {
|
|
1563
1576
|
result = arg0 instanceof Map;
|
|
@@ -1567,7 +1580,7 @@ function __wbg_get_imports() {
|
|
|
1567
1580
|
const ret = result;
|
|
1568
1581
|
return ret;
|
|
1569
1582
|
},
|
|
1570
|
-
|
|
1583
|
+
__wbg_instanceof_Response_06795eab66cc4036: function(arg0) {
|
|
1571
1584
|
let result;
|
|
1572
1585
|
try {
|
|
1573
1586
|
result = arg0 instanceof Response;
|
|
@@ -1577,7 +1590,7 @@ function __wbg_get_imports() {
|
|
|
1577
1590
|
const ret = result;
|
|
1578
1591
|
return ret;
|
|
1579
1592
|
},
|
|
1580
|
-
|
|
1593
|
+
__wbg_instanceof_Uint8Array_4b8da683deb25d72: function(arg0) {
|
|
1581
1594
|
let result;
|
|
1582
1595
|
try {
|
|
1583
1596
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1587,31 +1600,31 @@ function __wbg_get_imports() {
|
|
|
1587
1600
|
const ret = result;
|
|
1588
1601
|
return ret;
|
|
1589
1602
|
},
|
|
1590
|
-
|
|
1603
|
+
__wbg_isArray_db61795ad004c139: function(arg0) {
|
|
1591
1604
|
const ret = Array.isArray(arg0);
|
|
1592
1605
|
return ret;
|
|
1593
1606
|
},
|
|
1594
|
-
|
|
1607
|
+
__wbg_isSafeInteger_ea83862ba994770c: function(arg0) {
|
|
1595
1608
|
const ret = Number.isSafeInteger(arg0);
|
|
1596
1609
|
return ret;
|
|
1597
1610
|
},
|
|
1598
|
-
|
|
1611
|
+
__wbg_iterator_de403ef31815a3e6: function() {
|
|
1599
1612
|
const ret = Symbol.iterator;
|
|
1600
1613
|
return ret;
|
|
1601
1614
|
},
|
|
1602
|
-
|
|
1615
|
+
__wbg_keys_e611eeb7873788db: function(arg0) {
|
|
1603
1616
|
const ret = Object.keys(arg0);
|
|
1604
1617
|
return ret;
|
|
1605
1618
|
},
|
|
1606
|
-
|
|
1619
|
+
__wbg_length_0c32cb8543c8e4c8: function(arg0) {
|
|
1607
1620
|
const ret = arg0.length;
|
|
1608
1621
|
return ret;
|
|
1609
1622
|
},
|
|
1610
|
-
|
|
1623
|
+
__wbg_length_6e821edde497a532: function(arg0) {
|
|
1611
1624
|
const ret = arg0.length;
|
|
1612
1625
|
return ret;
|
|
1613
1626
|
},
|
|
1614
|
-
|
|
1627
|
+
__wbg_log_8d27771fb7f6362b: function(arg0) {
|
|
1615
1628
|
console.log(...arg0);
|
|
1616
1629
|
},
|
|
1617
1630
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -1622,54 +1635,54 @@ function __wbg_get_imports() {
|
|
|
1622
1635
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1623
1636
|
return ret;
|
|
1624
1637
|
},
|
|
1625
|
-
|
|
1638
|
+
__wbg_new_0_bfa2ef4bc447daa2: function() {
|
|
1626
1639
|
const ret = new Date();
|
|
1627
1640
|
return ret;
|
|
1628
1641
|
},
|
|
1629
|
-
|
|
1630
|
-
const ret = new Uint8Array(arg0);
|
|
1631
|
-
return ret;
|
|
1632
|
-
},
|
|
1633
|
-
__wbg_new_480195ddf7042529: function() {
|
|
1634
|
-
const ret = new Array();
|
|
1635
|
-
return ret;
|
|
1636
|
-
},
|
|
1637
|
-
__wbg_new_560c3bd51ca71bd7: function() { return handleError(function () {
|
|
1638
|
-
const ret = new AbortController();
|
|
1639
|
-
return ret;
|
|
1640
|
-
}, arguments); },
|
|
1641
|
-
__wbg_new_a52e1ac82c258947: function(arg0) {
|
|
1642
|
+
__wbg_new_0f6d2ddfe083319b: function(arg0) {
|
|
1642
1643
|
const ret = new Date(arg0);
|
|
1643
1644
|
return ret;
|
|
1644
1645
|
},
|
|
1645
|
-
|
|
1646
|
+
__wbg_new_3a112826a89cb962: function() { return handleError(function () {
|
|
1646
1647
|
const ret = new Headers();
|
|
1647
1648
|
return ret;
|
|
1648
1649
|
}, arguments); },
|
|
1649
|
-
|
|
1650
|
+
__wbg_new_4f9fafbb3909af72: function() {
|
|
1651
|
+
const ret = new Object();
|
|
1652
|
+
return ret;
|
|
1653
|
+
},
|
|
1654
|
+
__wbg_new_99cabae501c0a8a0: function() {
|
|
1650
1655
|
const ret = new Map();
|
|
1651
1656
|
return ret;
|
|
1652
1657
|
},
|
|
1653
|
-
|
|
1654
|
-
const ret = new
|
|
1658
|
+
__wbg_new_9abbf7148481485e: function() { return handleError(function () {
|
|
1659
|
+
const ret = new AbortController();
|
|
1660
|
+
return ret;
|
|
1661
|
+
}, arguments); },
|
|
1662
|
+
__wbg_new_a560378ea1240b14: function(arg0) {
|
|
1663
|
+
const ret = new Uint8Array(arg0);
|
|
1655
1664
|
return ret;
|
|
1656
1665
|
},
|
|
1657
|
-
|
|
1666
|
+
__wbg_new_e3b04b4d53d1b593: function(arg0, arg1) {
|
|
1658
1667
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1659
1668
|
return ret;
|
|
1660
1669
|
},
|
|
1661
|
-
|
|
1670
|
+
__wbg_new_f3c9df4f38f3f798: function() {
|
|
1671
|
+
const ret = new Array();
|
|
1672
|
+
return ret;
|
|
1673
|
+
},
|
|
1674
|
+
__wbg_new_from_slice_2580ff33d0d10520: function(arg0, arg1) {
|
|
1662
1675
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1663
1676
|
return ret;
|
|
1664
1677
|
},
|
|
1665
|
-
|
|
1678
|
+
__wbg_new_typed_14d7cc391ce53d2c: function(arg0, arg1) {
|
|
1666
1679
|
try {
|
|
1667
1680
|
var state0 = {a: arg0, b: arg1};
|
|
1668
1681
|
var cb0 = (arg0, arg1) => {
|
|
1669
1682
|
const a = state0.a;
|
|
1670
1683
|
state0.a = 0;
|
|
1671
1684
|
try {
|
|
1672
|
-
return
|
|
1685
|
+
return wasm_bindgen__convert__closures_____invoke__h119863c445122e5d(a, state0.b, arg0, arg1);
|
|
1673
1686
|
} finally {
|
|
1674
1687
|
state0.a = a;
|
|
1675
1688
|
}
|
|
@@ -1680,26 +1693,26 @@ function __wbg_get_imports() {
|
|
|
1680
1693
|
state0.a = 0;
|
|
1681
1694
|
}
|
|
1682
1695
|
},
|
|
1683
|
-
|
|
1696
|
+
__wbg_new_with_byte_offset_and_length_6bfc75833d6170c8: function(arg0, arg1, arg2) {
|
|
1684
1697
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1685
1698
|
return ret;
|
|
1686
1699
|
},
|
|
1687
|
-
|
|
1700
|
+
__wbg_new_with_length_9cedd08484b73942: function(arg0) {
|
|
1688
1701
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1689
1702
|
return ret;
|
|
1690
1703
|
},
|
|
1691
|
-
|
|
1704
|
+
__wbg_new_with_str_and_init_f663b6d334baa878: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1692
1705
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1693
1706
|
return ret;
|
|
1694
1707
|
}, arguments); },
|
|
1695
|
-
|
|
1696
|
-
const ret = arg0.next();
|
|
1697
|
-
return ret;
|
|
1698
|
-
}, arguments); },
|
|
1699
|
-
__wbg_next_e75ce91d696d3c0f: function(arg0) {
|
|
1708
|
+
__wbg_next_01132ed6134b8ef5: function(arg0) {
|
|
1700
1709
|
const ret = arg0.next;
|
|
1701
1710
|
return ret;
|
|
1702
1711
|
},
|
|
1712
|
+
__wbg_next_b3713ec761a9dbfd: function() { return handleError(function (arg0) {
|
|
1713
|
+
const ret = arg0.next();
|
|
1714
|
+
return ret;
|
|
1715
|
+
}, arguments); },
|
|
1703
1716
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1704
1717
|
const ret = arg0.node;
|
|
1705
1718
|
return ret;
|
|
@@ -1712,39 +1725,39 @@ function __wbg_get_imports() {
|
|
|
1712
1725
|
const ret = arg0.process;
|
|
1713
1726
|
return ret;
|
|
1714
1727
|
},
|
|
1715
|
-
|
|
1728
|
+
__wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
|
|
1716
1729
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1717
1730
|
},
|
|
1718
|
-
|
|
1731
|
+
__wbg_push_6bdbc990be5ac37b: function(arg0, arg1) {
|
|
1719
1732
|
const ret = arg0.push(arg1);
|
|
1720
1733
|
return ret;
|
|
1721
1734
|
},
|
|
1722
|
-
|
|
1723
|
-
queueMicrotask(arg0);
|
|
1724
|
-
},
|
|
1725
|
-
__wbg_queueMicrotask_805204511f79bee8: function(arg0) {
|
|
1735
|
+
__wbg_queueMicrotask_abaf92f0bd4e80a4: function(arg0) {
|
|
1726
1736
|
const ret = arg0.queueMicrotask;
|
|
1727
1737
|
return ret;
|
|
1728
1738
|
},
|
|
1739
|
+
__wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
|
|
1740
|
+
queueMicrotask(arg0);
|
|
1741
|
+
},
|
|
1729
1742
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1730
1743
|
arg0.randomFillSync(arg1);
|
|
1731
1744
|
}, arguments); },
|
|
1732
|
-
|
|
1745
|
+
__wbg_read_316bf844c93a6ccc: function(arg0) {
|
|
1733
1746
|
const ret = arg0.read();
|
|
1734
1747
|
return ret;
|
|
1735
1748
|
},
|
|
1736
|
-
|
|
1749
|
+
__wbg_releaseLock_b12f7593852f4c01: function(arg0) {
|
|
1737
1750
|
arg0.releaseLock();
|
|
1738
1751
|
},
|
|
1739
1752
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1740
1753
|
const ret = module.require;
|
|
1741
1754
|
return ret;
|
|
1742
1755
|
}, arguments); },
|
|
1743
|
-
|
|
1756
|
+
__wbg_resolve_0a79de24e9d2267b: function(arg0) {
|
|
1744
1757
|
const ret = Promise.resolve(arg0);
|
|
1745
1758
|
return ret;
|
|
1746
1759
|
},
|
|
1747
|
-
|
|
1760
|
+
__wbg_respond_87b5b47cbc9ee0b7: function() { return handleError(function (arg0, arg1) {
|
|
1748
1761
|
arg0.respond(arg1 >>> 0);
|
|
1749
1762
|
}, arguments); },
|
|
1750
1763
|
__wbg_setTimeout_a3127d9f29a851c3: function(arg0, arg1) {
|
|
@@ -1755,114 +1768,114 @@ function __wbg_get_imports() {
|
|
|
1755
1768
|
const ret = setTimeout(arg0, arg1);
|
|
1756
1769
|
return ret;
|
|
1757
1770
|
},
|
|
1758
|
-
|
|
1759
|
-
const ret =
|
|
1771
|
+
__wbg_set_08463b1df38a7e29: function(arg0, arg1, arg2) {
|
|
1772
|
+
const ret = arg0.set(arg1, arg2);
|
|
1760
1773
|
return ret;
|
|
1761
|
-
},
|
|
1774
|
+
},
|
|
1775
|
+
__wbg_set_16a9c1a07b3d38ec: function(arg0, arg1, arg2) {
|
|
1776
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1777
|
+
},
|
|
1762
1778
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1763
1779
|
arg0[arg1] = arg2;
|
|
1764
1780
|
},
|
|
1765
|
-
|
|
1781
|
+
__wbg_set_6c60b2e8ad0e9383: function(arg0, arg1, arg2) {
|
|
1782
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1783
|
+
},
|
|
1784
|
+
__wbg_set_8ee2d34facb8466e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1785
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1786
|
+
return ret;
|
|
1787
|
+
}, arguments); },
|
|
1788
|
+
__wbg_set_aa391f3af1ff0e9c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1766
1789
|
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1767
1790
|
}, arguments); },
|
|
1768
|
-
|
|
1769
|
-
const ret = arg0.set(arg1, arg2);
|
|
1770
|
-
return ret;
|
|
1771
|
-
},
|
|
1772
|
-
__wbg_set_body_44749a7f105b35d6: function(arg0, arg1) {
|
|
1791
|
+
__wbg_set_body_a304d09cb50cefbe: function(arg0, arg1) {
|
|
1773
1792
|
arg0.body = arg1;
|
|
1774
1793
|
},
|
|
1775
|
-
|
|
1776
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1777
|
-
},
|
|
1778
|
-
__wbg_set_cache_ee589f674cdd785d: function(arg0, arg1) {
|
|
1794
|
+
__wbg_set_cache_cc687e2b96e9608c: function(arg0, arg1) {
|
|
1779
1795
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1780
1796
|
},
|
|
1781
|
-
|
|
1797
|
+
__wbg_set_credentials_7693e63055f5e838: function(arg0, arg1) {
|
|
1782
1798
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1783
1799
|
},
|
|
1784
|
-
|
|
1785
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1786
|
-
},
|
|
1787
|
-
__wbg_set_headers_3dd4ad6ef11210f1: function(arg0, arg1) {
|
|
1800
|
+
__wbg_set_headers_6ab1105e542834e2: function(arg0, arg1) {
|
|
1788
1801
|
arg0.headers = arg1;
|
|
1789
1802
|
},
|
|
1790
|
-
|
|
1803
|
+
__wbg_set_integrity_0dcf8feff0f7e4d3: function(arg0, arg1, arg2) {
|
|
1791
1804
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
1792
1805
|
},
|
|
1793
|
-
|
|
1806
|
+
__wbg_set_method_1971272fe557e972: function(arg0, arg1, arg2) {
|
|
1794
1807
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1795
1808
|
},
|
|
1796
|
-
|
|
1809
|
+
__wbg_set_mode_d1b643087602281a: function(arg0, arg1) {
|
|
1797
1810
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1798
1811
|
},
|
|
1799
|
-
|
|
1812
|
+
__wbg_set_redirect_1d6df2c80bf90934: function(arg0, arg1) {
|
|
1800
1813
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1801
1814
|
},
|
|
1802
|
-
|
|
1815
|
+
__wbg_set_referrer_c0d0ce1b4c972d99: function(arg0, arg1, arg2) {
|
|
1803
1816
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1804
1817
|
},
|
|
1805
|
-
|
|
1818
|
+
__wbg_set_referrer_policy_48f3f15e75682149: function(arg0, arg1) {
|
|
1806
1819
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1807
1820
|
},
|
|
1808
|
-
|
|
1821
|
+
__wbg_set_signal_8564a226c5c6853c: function(arg0, arg1) {
|
|
1809
1822
|
arg0.signal = arg1;
|
|
1810
1823
|
},
|
|
1811
|
-
|
|
1824
|
+
__wbg_signal_9172c3282bfba2f5: function(arg0) {
|
|
1812
1825
|
const ret = arg0.signal;
|
|
1813
1826
|
return ret;
|
|
1814
1827
|
},
|
|
1815
|
-
|
|
1816
|
-
const ret = typeof
|
|
1828
|
+
__wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f: function() {
|
|
1829
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1817
1830
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1818
1831
|
},
|
|
1819
|
-
|
|
1820
|
-
const ret = typeof
|
|
1832
|
+
__wbg_static_accessor_GLOBAL_f2e0f995a21329ff: function() {
|
|
1833
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1821
1834
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1822
1835
|
},
|
|
1823
|
-
|
|
1836
|
+
__wbg_static_accessor_SELF_24f78b6d23f286ea: function() {
|
|
1824
1837
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1825
1838
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1826
1839
|
},
|
|
1827
|
-
|
|
1840
|
+
__wbg_static_accessor_WINDOW_59fd959c540fe405: function() {
|
|
1828
1841
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1829
1842
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1830
1843
|
},
|
|
1831
|
-
|
|
1844
|
+
__wbg_status_44ecb0ac1da253f4: function(arg0) {
|
|
1832
1845
|
const ret = arg0.status;
|
|
1833
1846
|
return ret;
|
|
1834
1847
|
},
|
|
1835
|
-
|
|
1848
|
+
__wbg_subarray_0f98d3fb634508ad: function(arg0, arg1, arg2) {
|
|
1836
1849
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1837
1850
|
return ret;
|
|
1838
1851
|
},
|
|
1839
|
-
|
|
1852
|
+
__wbg_text_43bdfba45e602cf9: function() { return handleError(function (arg0) {
|
|
1840
1853
|
const ret = arg0.text();
|
|
1841
1854
|
return ret;
|
|
1842
1855
|
}, arguments); },
|
|
1843
|
-
|
|
1844
|
-
const ret = arg0.then(arg1);
|
|
1856
|
+
__wbg_then_00eed3ac0b8e82cb: function(arg0, arg1, arg2) {
|
|
1857
|
+
const ret = arg0.then(arg1, arg2);
|
|
1845
1858
|
return ret;
|
|
1846
1859
|
},
|
|
1847
|
-
|
|
1848
|
-
const ret = arg0.then(arg1
|
|
1860
|
+
__wbg_then_a0c8db0381c8994c: function(arg0, arg1) {
|
|
1861
|
+
const ret = arg0.then(arg1);
|
|
1849
1862
|
return ret;
|
|
1850
1863
|
},
|
|
1851
|
-
|
|
1864
|
+
__wbg_toString_891d991e862e1d44: function(arg0) {
|
|
1852
1865
|
const ret = arg0.toString();
|
|
1853
1866
|
return ret;
|
|
1854
1867
|
},
|
|
1855
|
-
|
|
1868
|
+
__wbg_trace_4d38aa06bdf745ef: function(arg0) {
|
|
1856
1869
|
console.trace(...arg0);
|
|
1857
1870
|
},
|
|
1858
|
-
|
|
1871
|
+
__wbg_url_95d8a83d33709572: function(arg0, arg1) {
|
|
1859
1872
|
const ret = arg1.url;
|
|
1860
1873
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1861
1874
|
const len1 = WASM_VECTOR_LEN;
|
|
1862
1875
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1863
1876
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1864
1877
|
},
|
|
1865
|
-
|
|
1878
|
+
__wbg_value_7f6052747ccf940f: function(arg0) {
|
|
1866
1879
|
const ret = arg0.value;
|
|
1867
1880
|
return ret;
|
|
1868
1881
|
},
|
|
@@ -1870,31 +1883,31 @@ function __wbg_get_imports() {
|
|
|
1870
1883
|
const ret = arg0.versions;
|
|
1871
1884
|
return ret;
|
|
1872
1885
|
},
|
|
1873
|
-
|
|
1886
|
+
__wbg_view_066479053a371038: function(arg0) {
|
|
1874
1887
|
const ret = arg0.view;
|
|
1875
1888
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1876
1889
|
},
|
|
1877
|
-
|
|
1890
|
+
__wbg_warn_70c05e7db7b37efb: function(arg0) {
|
|
1878
1891
|
console.warn(...arg0);
|
|
1879
1892
|
},
|
|
1880
1893
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1881
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1882
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1894
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2207, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1895
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5760e008571e67be);
|
|
1883
1896
|
return ret;
|
|
1884
1897
|
},
|
|
1885
1898
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1886
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1887
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1899
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1900
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf1ca0e856de00606);
|
|
1888
1901
|
return ret;
|
|
1889
1902
|
},
|
|
1890
1903
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1891
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1892
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1904
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 596, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1905
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he14d1fc3cfeb85f6);
|
|
1893
1906
|
return ret;
|
|
1894
1907
|
},
|
|
1895
1908
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1896
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1897
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1909
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 754, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1910
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he72a6bdd7d802ab1);
|
|
1898
1911
|
return ret;
|
|
1899
1912
|
},
|
|
1900
1913
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -1938,27 +1951,27 @@ function __wbg_get_imports() {
|
|
|
1938
1951
|
};
|
|
1939
1952
|
}
|
|
1940
1953
|
|
|
1941
|
-
function
|
|
1942
|
-
wasm.
|
|
1954
|
+
function wasm_bindgen__convert__closures_____invoke__he14d1fc3cfeb85f6(arg0, arg1) {
|
|
1955
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he14d1fc3cfeb85f6(arg0, arg1);
|
|
1943
1956
|
}
|
|
1944
1957
|
|
|
1945
|
-
function
|
|
1946
|
-
wasm.
|
|
1958
|
+
function wasm_bindgen__convert__closures_____invoke__he72a6bdd7d802ab1(arg0, arg1) {
|
|
1959
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he72a6bdd7d802ab1(arg0, arg1);
|
|
1947
1960
|
}
|
|
1948
1961
|
|
|
1949
|
-
function
|
|
1950
|
-
wasm.
|
|
1962
|
+
function wasm_bindgen__convert__closures_____invoke__hf1ca0e856de00606(arg0, arg1, arg2) {
|
|
1963
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf1ca0e856de00606(arg0, arg1, arg2);
|
|
1951
1964
|
}
|
|
1952
1965
|
|
|
1953
|
-
function
|
|
1954
|
-
const ret = wasm.
|
|
1966
|
+
function wasm_bindgen__convert__closures_____invoke__h5760e008571e67be(arg0, arg1, arg2) {
|
|
1967
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h5760e008571e67be(arg0, arg1, arg2);
|
|
1955
1968
|
if (ret[1]) {
|
|
1956
1969
|
throw takeFromExternrefTable0(ret[0]);
|
|
1957
1970
|
}
|
|
1958
1971
|
}
|
|
1959
1972
|
|
|
1960
|
-
function
|
|
1961
|
-
wasm.
|
|
1973
|
+
function wasm_bindgen__convert__closures_____invoke__h119863c445122e5d(arg0, arg1, arg2, arg3) {
|
|
1974
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h119863c445122e5d(arg0, arg1, arg2, arg3);
|
|
1962
1975
|
}
|
|
1963
1976
|
|
|
1964
1977
|
|
|
@@ -2216,15 +2229,7 @@ function takeFromExternrefTable0(idx) {
|
|
|
2216
2229
|
|
|
2217
2230
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2218
2231
|
cachedTextDecoder.decode();
|
|
2219
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2220
|
-
let numBytesDecoded = 0;
|
|
2221
2232
|
function decodeText(ptr, len) {
|
|
2222
|
-
numBytesDecoded += len;
|
|
2223
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2224
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2225
|
-
cachedTextDecoder.decode();
|
|
2226
|
-
numBytesDecoded = len;
|
|
2227
|
-
}
|
|
2228
2233
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2229
2234
|
}
|
|
2230
2235
|
|
|
@@ -2243,95 +2248,8 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2243
2248
|
|
|
2244
2249
|
let WASM_VECTOR_LEN = 0;
|
|
2245
2250
|
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
cachedUint8ArrayMemory0 = null;
|
|
2252
|
-
wasm.__wbindgen_start();
|
|
2253
|
-
return wasm;
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
async function __wbg_load(module, imports) {
|
|
2257
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
2258
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2259
|
-
try {
|
|
2260
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2261
|
-
} catch (e) {
|
|
2262
|
-
const validResponse = module.ok && expectedResponseType(module.type);
|
|
2263
|
-
|
|
2264
|
-
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2265
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
2266
|
-
|
|
2267
|
-
} else { throw e; }
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
const bytes = await module.arrayBuffer();
|
|
2272
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
2273
|
-
} else {
|
|
2274
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
2275
|
-
|
|
2276
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
2277
|
-
return { instance, module };
|
|
2278
|
-
} else {
|
|
2279
|
-
return instance;
|
|
2280
|
-
}
|
|
2281
|
-
}
|
|
2282
|
-
|
|
2283
|
-
function expectedResponseType(type) {
|
|
2284
|
-
switch (type) {
|
|
2285
|
-
case 'basic': case 'cors': case 'default': return true;
|
|
2286
|
-
}
|
|
2287
|
-
return false;
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
|
|
2291
|
-
function initSync(module) {
|
|
2292
|
-
if (wasm !== undefined) return wasm;
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
if (module !== undefined) {
|
|
2296
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2297
|
-
({module} = module)
|
|
2298
|
-
} else {
|
|
2299
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
const imports = __wbg_get_imports();
|
|
2304
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
2305
|
-
module = new WebAssembly.Module(module);
|
|
2306
|
-
}
|
|
2307
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
2308
|
-
return __wbg_finalize_init(instance, module);
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
async function __wbg_init(module_or_path) {
|
|
2312
|
-
if (wasm !== undefined) return wasm;
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
if (module_or_path !== undefined) {
|
|
2316
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2317
|
-
({module_or_path} = module_or_path)
|
|
2318
|
-
} else {
|
|
2319
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2320
|
-
}
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
if (module_or_path === undefined) {
|
|
2324
|
-
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
2325
|
-
}
|
|
2326
|
-
const imports = __wbg_get_imports();
|
|
2327
|
-
|
|
2328
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2329
|
-
module_or_path = fetch(module_or_path);
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2332
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2333
|
-
|
|
2334
|
-
return __wbg_finalize_init(instance, module);
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
export { initSync, __wbg_init as default };
|
|
2251
|
+
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
2252
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
2253
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
2254
|
+
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
2255
|
+
wasm.__wbindgen_start();
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
|
-
"type": "module",
|
|
4
3
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
5
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.352-nodejs",
|
|
6
5
|
"license": "Apache-2.0",
|
|
7
6
|
"repository": {
|
|
8
7
|
"type": "git",
|
|
@@ -14,8 +13,5 @@
|
|
|
14
13
|
"cedarling_wasm.d.ts"
|
|
15
14
|
],
|
|
16
15
|
"main": "cedarling_wasm.js",
|
|
17
|
-
"types": "cedarling_wasm.d.ts"
|
|
18
|
-
"sideEffects": [
|
|
19
|
-
"./snippets/*"
|
|
20
|
-
]
|
|
16
|
+
"types": "cedarling_wasm.d.ts"
|
|
21
17
|
}
|