@janssenproject/cedarling_wasm 0.0.398 → 0.0.399-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 +1 -151
- package/cedarling_wasm.js +201 -283
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +2 -6
package/cedarling_wasm.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
type ReadableStreamType = "bytes";
|
|
9
|
+
export type ReadableStreamType = "bytes";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
@@ -524,153 +524,3 @@ export function init(config: any): Promise<Cedarling>;
|
|
|
524
524
|
* ```
|
|
525
525
|
*/
|
|
526
526
|
export function init_from_archive_bytes(config: any, archive_bytes: Uint8Array): Promise<Cedarling>;
|
|
527
|
-
|
|
528
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
529
|
-
|
|
530
|
-
export interface InitOutput {
|
|
531
|
-
readonly memory: WebAssembly.Memory;
|
|
532
|
-
readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
|
|
533
|
-
readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
|
|
534
|
-
readonly __wbg_cedarling_free: (a: number, b: number) => void;
|
|
535
|
-
readonly __wbg_dataentry_free: (a: number, b: number) => void;
|
|
536
|
-
readonly __wbg_datastorestats_free: (a: number, b: number) => void;
|
|
537
|
-
readonly __wbg_diagnostics_free: (a: number, b: number) => void;
|
|
538
|
-
readonly __wbg_get_authorizeresult_decision: (a: number) => number;
|
|
539
|
-
readonly __wbg_get_authorizeresult_request_id: (a: number) => [number, number];
|
|
540
|
-
readonly __wbg_get_authorizeresult_response: (a: number) => number;
|
|
541
|
-
readonly __wbg_get_dataentry_access_count: (a: number) => bigint;
|
|
542
|
-
readonly __wbg_get_dataentry_created_at: (a: number) => [number, number];
|
|
543
|
-
readonly __wbg_get_dataentry_data_type: (a: number) => [number, number];
|
|
544
|
-
readonly __wbg_get_dataentry_expires_at: (a: number) => [number, number];
|
|
545
|
-
readonly __wbg_get_dataentry_key: (a: number) => [number, number];
|
|
546
|
-
readonly __wbg_get_datastorestats_avg_entry_size_bytes: (a: number) => number;
|
|
547
|
-
readonly __wbg_get_datastorestats_capacity_usage_percent: (a: number) => number;
|
|
548
|
-
readonly __wbg_get_datastorestats_entry_count: (a: number) => number;
|
|
549
|
-
readonly __wbg_get_datastorestats_max_entries: (a: number) => number;
|
|
550
|
-
readonly __wbg_get_datastorestats_max_entry_size: (a: number) => number;
|
|
551
|
-
readonly __wbg_get_datastorestats_memory_alert_threshold: (a: number) => number;
|
|
552
|
-
readonly __wbg_get_datastorestats_memory_alert_triggered: (a: number) => number;
|
|
553
|
-
readonly __wbg_get_datastorestats_metrics_enabled: (a: number) => number;
|
|
554
|
-
readonly __wbg_get_datastorestats_total_size_bytes: (a: number) => number;
|
|
555
|
-
readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
|
|
556
|
-
readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
|
|
557
|
-
readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
558
|
-
readonly __wbg_set_authorizeresult_response: (a: number, b: number) => void;
|
|
559
|
-
readonly __wbg_set_dataentry_access_count: (a: number, b: bigint) => void;
|
|
560
|
-
readonly __wbg_set_dataentry_created_at: (a: number, b: number, c: number) => void;
|
|
561
|
-
readonly __wbg_set_dataentry_data_type: (a: number, b: number, c: number) => void;
|
|
562
|
-
readonly __wbg_set_dataentry_expires_at: (a: number, b: number, c: number) => void;
|
|
563
|
-
readonly __wbg_set_dataentry_key: (a: number, b: number, c: number) => void;
|
|
564
|
-
readonly __wbg_set_datastorestats_avg_entry_size_bytes: (a: number, b: number) => void;
|
|
565
|
-
readonly __wbg_set_datastorestats_capacity_usage_percent: (a: number, b: number) => void;
|
|
566
|
-
readonly __wbg_set_datastorestats_entry_count: (a: number, b: number) => void;
|
|
567
|
-
readonly __wbg_set_datastorestats_max_entries: (a: number, b: number) => void;
|
|
568
|
-
readonly __wbg_set_datastorestats_max_entry_size: (a: number, b: number) => void;
|
|
569
|
-
readonly __wbg_set_datastorestats_memory_alert_threshold: (a: number, b: number) => void;
|
|
570
|
-
readonly __wbg_set_datastorestats_memory_alert_triggered: (a: number, b: number) => void;
|
|
571
|
-
readonly __wbg_set_datastorestats_metrics_enabled: (a: number, b: number) => void;
|
|
572
|
-
readonly __wbg_set_datastorestats_total_size_bytes: (a: number, b: number) => void;
|
|
573
|
-
readonly authorizeresult_json_string: (a: number) => [number, number];
|
|
574
|
-
readonly authorizeresultresponse_decision: (a: number) => number;
|
|
575
|
-
readonly authorizeresultresponse_diagnostics: (a: number) => number;
|
|
576
|
-
readonly cedarling_authorize_multi_issuer: (a: number, b: any) => any;
|
|
577
|
-
readonly cedarling_authorize_unsigned: (a: number, b: any) => any;
|
|
578
|
-
readonly cedarling_clear_data_ctx: (a: number) => [number, number];
|
|
579
|
-
readonly cedarling_failed_trusted_issuer_ids: (a: number) => any;
|
|
580
|
-
readonly cedarling_get_data_ctx: (a: number, b: number, c: number) => [number, number, number];
|
|
581
|
-
readonly cedarling_get_data_entry_ctx: (a: number, b: number, c: number) => [number, number, number];
|
|
582
|
-
readonly cedarling_get_log_by_id: (a: number, b: number, c: number) => [number, number, number];
|
|
583
|
-
readonly cedarling_get_log_ids: (a: number) => any;
|
|
584
|
-
readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
|
|
585
|
-
readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
586
|
-
readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
|
|
587
|
-
readonly cedarling_get_stats_ctx: (a: number) => [number, number, number];
|
|
588
|
-
readonly cedarling_is_trusted_issuer_loaded_by_iss: (a: number, b: number, c: number) => number;
|
|
589
|
-
readonly cedarling_is_trusted_issuer_loaded_by_name: (a: number, b: number, c: number) => number;
|
|
590
|
-
readonly cedarling_list_data_ctx: (a: number) => [number, number, number];
|
|
591
|
-
readonly cedarling_loaded_trusted_issuer_ids: (a: number) => any;
|
|
592
|
-
readonly cedarling_loaded_trusted_issuers_count: (a: number) => number;
|
|
593
|
-
readonly cedarling_new: (a: any) => any;
|
|
594
|
-
readonly cedarling_new_from_map: (a: any) => any;
|
|
595
|
-
readonly cedarling_pop_logs: (a: number) => [number, number, number];
|
|
596
|
-
readonly cedarling_push_data_ctx: (a: number, b: number, c: number, d: any, e: number, f: bigint) => [number, number];
|
|
597
|
-
readonly cedarling_remove_data_ctx: (a: number, b: number, c: number) => [number, number, number];
|
|
598
|
-
readonly cedarling_shut_down: (a: number) => any;
|
|
599
|
-
readonly cedarling_total_issuers: (a: number) => number;
|
|
600
|
-
readonly dataentry_json_string: (a: number) => [number, number];
|
|
601
|
-
readonly dataentry_value: (a: number) => [number, number, number];
|
|
602
|
-
readonly datastorestats_json_string: (a: number) => [number, number];
|
|
603
|
-
readonly diagnostics_errors: (a: number) => [number, number];
|
|
604
|
-
readonly diagnostics_reason: (a: number) => [number, number];
|
|
605
|
-
readonly init: (a: any) => any;
|
|
606
|
-
readonly init_from_archive_bytes: (a: any, b: any) => any;
|
|
607
|
-
readonly multiissuerauthorizeresult_json_string: (a: number) => [number, number];
|
|
608
|
-
readonly policyevaluationerror_error: (a: number) => [number, number];
|
|
609
|
-
readonly policyevaluationerror_id: (a: number) => [number, number];
|
|
610
|
-
readonly __wbg_get_multiissuerauthorizeresult_decision: (a: number) => number;
|
|
611
|
-
readonly __wbg_set_multiissuerauthorizeresult_response: (a: number, b: number) => void;
|
|
612
|
-
readonly __wbg_set_multiissuerauthorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
613
|
-
readonly __wbg_set_multiissuerauthorizeresult_decision: (a: number, b: number) => void;
|
|
614
|
-
readonly __wbg_get_multiissuerauthorizeresult_response: (a: number) => number;
|
|
615
|
-
readonly __wbg_get_multiissuerauthorizeresult_request_id: (a: number) => [number, number];
|
|
616
|
-
readonly __wbg_multiissuerauthorizeresult_free: (a: number, b: number) => void;
|
|
617
|
-
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
618
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
619
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
620
|
-
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
621
|
-
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
622
|
-
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
623
|
-
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
624
|
-
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
625
|
-
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
626
|
-
readonly intounderlyingsink_close: (a: number) => any;
|
|
627
|
-
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
628
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
629
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
630
|
-
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
631
|
-
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
632
|
-
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
633
|
-
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
634
|
-
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
635
|
-
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
636
|
-
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
637
|
-
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
638
|
-
readonly wasm_bindgen__convert__closures_____invoke__h122aa852e025a273: (a: number, b: number, c: any) => [number, number];
|
|
639
|
-
readonly wasm_bindgen__convert__closures_____invoke__h1aa6bfccca23b638: (a: number, b: number, c: any, d: any) => void;
|
|
640
|
-
readonly wasm_bindgen__convert__closures_____invoke__hd100e35fa7d3225c: (a: number, b: number, c: any) => void;
|
|
641
|
-
readonly wasm_bindgen__convert__closures_____invoke__h461784cf6dfc2afa: (a: number, b: number) => void;
|
|
642
|
-
readonly wasm_bindgen__convert__closures_____invoke__h057874c537728a90: (a: number, b: number) => void;
|
|
643
|
-
readonly wasm_bindgen__convert__closures_____invoke__hc5f2b2e319a50b97: (a: number, b: number) => void;
|
|
644
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
645
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
646
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
647
|
-
readonly __externref_table_alloc: () => number;
|
|
648
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
649
|
-
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
650
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
651
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
652
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
653
|
-
readonly __wbindgen_start: () => void;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
660
|
-
* a precompiled `WebAssembly.Module`.
|
|
661
|
-
*
|
|
662
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
663
|
-
*
|
|
664
|
-
* @returns {InitOutput}
|
|
665
|
-
*/
|
|
666
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
670
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
671
|
-
*
|
|
672
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
673
|
-
*
|
|
674
|
-
* @returns {Promise<InitOutput>}
|
|
675
|
-
*/
|
|
676
|
-
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
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
10
10
|
obj.__wbg_ptr = ptr;
|
|
@@ -104,12 +104,13 @@ export class AuthorizeResult {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
107
|
+
exports.AuthorizeResult = AuthorizeResult;
|
|
107
108
|
|
|
108
109
|
/**
|
|
109
110
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
110
111
|
* Represents the result of an authorization request.
|
|
111
112
|
*/
|
|
112
|
-
|
|
113
|
+
class AuthorizeResultResponse {
|
|
113
114
|
static __wrap(ptr) {
|
|
114
115
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
115
116
|
obj.__wbg_ptr = ptr;
|
|
@@ -144,11 +145,12 @@ export class AuthorizeResultResponse {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
148
|
+
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* The instance of the Cedarling application.
|
|
150
152
|
*/
|
|
151
|
-
|
|
153
|
+
class Cedarling {
|
|
152
154
|
static __wrap(ptr) {
|
|
153
155
|
const obj = Object.create(Cedarling.prototype);
|
|
154
156
|
obj.__wbg_ptr = ptr;
|
|
@@ -583,12 +585,13 @@ export class Cedarling {
|
|
|
583
585
|
}
|
|
584
586
|
}
|
|
585
587
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
588
|
+
exports.Cedarling = Cedarling;
|
|
586
589
|
|
|
587
590
|
/**
|
|
588
591
|
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
589
592
|
* Represents a data entry in the DataStore with value and metadata.
|
|
590
593
|
*/
|
|
591
|
-
|
|
594
|
+
class DataEntry {
|
|
592
595
|
static __wrap(ptr) {
|
|
593
596
|
const obj = Object.create(DataEntry.prototype);
|
|
594
597
|
obj.__wbg_ptr = ptr;
|
|
@@ -746,12 +749,13 @@ export class DataEntry {
|
|
|
746
749
|
}
|
|
747
750
|
}
|
|
748
751
|
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
752
|
+
exports.DataEntry = DataEntry;
|
|
749
753
|
|
|
750
754
|
/**
|
|
751
755
|
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
752
756
|
* Statistics about the DataStore.
|
|
753
757
|
*/
|
|
754
|
-
|
|
758
|
+
class DataStoreStats {
|
|
755
759
|
static __wrap(ptr) {
|
|
756
760
|
const obj = Object.create(DataStoreStats.prototype);
|
|
757
761
|
obj.__wbg_ptr = ptr;
|
|
@@ -921,6 +925,7 @@ export class DataStoreStats {
|
|
|
921
925
|
}
|
|
922
926
|
}
|
|
923
927
|
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
928
|
+
exports.DataStoreStats = DataStoreStats;
|
|
924
929
|
|
|
925
930
|
/**
|
|
926
931
|
* Diagnostics
|
|
@@ -928,7 +933,7 @@ if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.pr
|
|
|
928
933
|
*
|
|
929
934
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
930
935
|
*/
|
|
931
|
-
|
|
936
|
+
class Diagnostics {
|
|
932
937
|
static __wrap(ptr) {
|
|
933
938
|
const obj = Object.create(Diagnostics.prototype);
|
|
934
939
|
obj.__wbg_ptr = ptr;
|
|
@@ -971,8 +976,9 @@ export class Diagnostics {
|
|
|
971
976
|
}
|
|
972
977
|
}
|
|
973
978
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
979
|
+
exports.Diagnostics = Diagnostics;
|
|
974
980
|
|
|
975
|
-
|
|
981
|
+
class IntoUnderlyingByteSource {
|
|
976
982
|
__destroy_into_raw() {
|
|
977
983
|
const ptr = this.__wbg_ptr;
|
|
978
984
|
this.__wbg_ptr = 0;
|
|
@@ -1017,8 +1023,9 @@ export class IntoUnderlyingByteSource {
|
|
|
1017
1023
|
}
|
|
1018
1024
|
}
|
|
1019
1025
|
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
1026
|
+
exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
1020
1027
|
|
|
1021
|
-
|
|
1028
|
+
class IntoUnderlyingSink {
|
|
1022
1029
|
__destroy_into_raw() {
|
|
1023
1030
|
const ptr = this.__wbg_ptr;
|
|
1024
1031
|
this.__wbg_ptr = 0;
|
|
@@ -1056,8 +1063,9 @@ export class IntoUnderlyingSink {
|
|
|
1056
1063
|
}
|
|
1057
1064
|
}
|
|
1058
1065
|
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
1066
|
+
exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
1059
1067
|
|
|
1060
|
-
|
|
1068
|
+
class IntoUnderlyingSource {
|
|
1061
1069
|
__destroy_into_raw() {
|
|
1062
1070
|
const ptr = this.__wbg_ptr;
|
|
1063
1071
|
this.__wbg_ptr = 0;
|
|
@@ -1082,12 +1090,13 @@ export class IntoUnderlyingSource {
|
|
|
1082
1090
|
}
|
|
1083
1091
|
}
|
|
1084
1092
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
1093
|
+
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
1085
1094
|
|
|
1086
1095
|
/**
|
|
1087
1096
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
1088
1097
|
* Represents the result of a multi-issuer authorization request.
|
|
1089
1098
|
*/
|
|
1090
|
-
|
|
1099
|
+
class MultiIssuerAuthorizeResult {
|
|
1091
1100
|
static __wrap(ptr) {
|
|
1092
1101
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
1093
1102
|
obj.__wbg_ptr = ptr;
|
|
@@ -1183,6 +1192,7 @@ export class MultiIssuerAuthorizeResult {
|
|
|
1183
1192
|
}
|
|
1184
1193
|
}
|
|
1185
1194
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
1195
|
+
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
1186
1196
|
|
|
1187
1197
|
/**
|
|
1188
1198
|
* PolicyEvaluationError
|
|
@@ -1190,7 +1200,7 @@ if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = Multi
|
|
|
1190
1200
|
*
|
|
1191
1201
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
1192
1202
|
*/
|
|
1193
|
-
|
|
1203
|
+
class PolicyEvaluationError {
|
|
1194
1204
|
static __wrap(ptr) {
|
|
1195
1205
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
1196
1206
|
obj.__wbg_ptr = ptr;
|
|
@@ -1241,6 +1251,7 @@ export class PolicyEvaluationError {
|
|
|
1241
1251
|
}
|
|
1242
1252
|
}
|
|
1243
1253
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
1254
|
+
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
1244
1255
|
|
|
1245
1256
|
/**
|
|
1246
1257
|
* Create a new instance of the Cedarling application.
|
|
@@ -1248,10 +1259,11 @@ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEval
|
|
|
1248
1259
|
* @param {any} config
|
|
1249
1260
|
* @returns {Promise<Cedarling>}
|
|
1250
1261
|
*/
|
|
1251
|
-
|
|
1262
|
+
function init(config) {
|
|
1252
1263
|
const ret = wasm.init(config);
|
|
1253
1264
|
return ret;
|
|
1254
1265
|
}
|
|
1266
|
+
exports.init = init;
|
|
1255
1267
|
|
|
1256
1268
|
/**
|
|
1257
1269
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -1273,79 +1285,80 @@ export function init(config) {
|
|
|
1273
1285
|
* @param {Uint8Array} archive_bytes
|
|
1274
1286
|
* @returns {Promise<Cedarling>}
|
|
1275
1287
|
*/
|
|
1276
|
-
|
|
1288
|
+
function init_from_archive_bytes(config, archive_bytes) {
|
|
1277
1289
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
1278
1290
|
return ret;
|
|
1279
1291
|
}
|
|
1292
|
+
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
1280
1293
|
function __wbg_get_imports() {
|
|
1281
1294
|
const import0 = {
|
|
1282
1295
|
__proto__: null,
|
|
1283
|
-
|
|
1296
|
+
__wbg_Error_bce6d499ff0a4aff: function(arg0, arg1) {
|
|
1284
1297
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1285
1298
|
return ret;
|
|
1286
1299
|
},
|
|
1287
|
-
|
|
1300
|
+
__wbg_Number_b7972a139bfbfdf0: function(arg0) {
|
|
1288
1301
|
const ret = Number(arg0);
|
|
1289
1302
|
return ret;
|
|
1290
1303
|
},
|
|
1291
|
-
|
|
1304
|
+
__wbg___wbindgen_bigint_get_as_i64_410e28c7b761ad83: function(arg0, arg1) {
|
|
1292
1305
|
const v = arg1;
|
|
1293
1306
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1294
1307
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1295
1308
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1296
1309
|
},
|
|
1297
|
-
|
|
1310
|
+
__wbg___wbindgen_boolean_get_2304fb8c853028c8: function(arg0) {
|
|
1298
1311
|
const v = arg0;
|
|
1299
1312
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1300
1313
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1301
1314
|
},
|
|
1302
|
-
|
|
1315
|
+
__wbg___wbindgen_debug_string_edece8177ad01481: function(arg0, arg1) {
|
|
1303
1316
|
const ret = debugString(arg1);
|
|
1304
1317
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1305
1318
|
const len1 = WASM_VECTOR_LEN;
|
|
1306
1319
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1307
1320
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1308
1321
|
},
|
|
1309
|
-
|
|
1322
|
+
__wbg___wbindgen_in_07056af4f902c445: function(arg0, arg1) {
|
|
1310
1323
|
const ret = arg0 in arg1;
|
|
1311
1324
|
return ret;
|
|
1312
1325
|
},
|
|
1313
|
-
|
|
1326
|
+
__wbg___wbindgen_is_bigint_aeae3893f30ed54e: function(arg0) {
|
|
1314
1327
|
const ret = typeof(arg0) === 'bigint';
|
|
1315
1328
|
return ret;
|
|
1316
1329
|
},
|
|
1317
|
-
|
|
1330
|
+
__wbg___wbindgen_is_function_5cd60d5cf78b4eef: function(arg0) {
|
|
1318
1331
|
const ret = typeof(arg0) === 'function';
|
|
1319
1332
|
return ret;
|
|
1320
1333
|
},
|
|
1321
|
-
|
|
1334
|
+
__wbg___wbindgen_is_object_b4593df85baada48: function(arg0) {
|
|
1322
1335
|
const val = arg0;
|
|
1323
1336
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1324
1337
|
return ret;
|
|
1325
1338
|
},
|
|
1326
|
-
|
|
1339
|
+
__wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
|
|
1327
1340
|
const ret = typeof(arg0) === 'string';
|
|
1328
1341
|
return ret;
|
|
1329
1342
|
},
|
|
1330
|
-
|
|
1343
|
+
__wbg___wbindgen_is_undefined_35bb9f4c7fd651d5: function(arg0) {
|
|
1331
1344
|
const ret = arg0 === undefined;
|
|
1332
1345
|
return ret;
|
|
1333
1346
|
},
|
|
1334
|
-
|
|
1347
|
+
__wbg___wbindgen_jsval_eq_c0ed08b3e0f393b9: function(arg0, arg1) {
|
|
1335
1348
|
const ret = arg0 === arg1;
|
|
1336
1349
|
return ret;
|
|
1337
1350
|
},
|
|
1338
|
-
|
|
1351
|
+
__wbg___wbindgen_jsval_loose_eq_0ad77b7717db155c: function(arg0, arg1) {
|
|
1339
1352
|
const ret = arg0 == arg1;
|
|
1340
1353
|
return ret;
|
|
1341
1354
|
},
|
|
1342
|
-
|
|
1355
|
+
__wbg___wbindgen_number_get_f73a1244370fcc2c: function(arg0, arg1) {
|
|
1343
1356
|
const obj = arg1;
|
|
1344
1357
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1345
1358
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1346
1359
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1347
1360
|
},
|
|
1348
|
-
|
|
1361
|
+
__wbg___wbindgen_string_get_d109740c0d18f4d7: function(arg0, arg1) {
|
|
1349
1362
|
const obj = arg1;
|
|
1350
1363
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1351
1364
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1353,22 +1366,22 @@ function __wbg_get_imports() {
|
|
|
1353
1366
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1354
1367
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1355
1368
|
},
|
|
1356
|
-
|
|
1369
|
+
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
|
|
1357
1370
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1358
1371
|
},
|
|
1359
|
-
|
|
1372
|
+
__wbg__wbg_cb_unref_3fa391f3fcdb55f8: function(arg0) {
|
|
1360
1373
|
arg0._wbg_cb_unref();
|
|
1361
1374
|
},
|
|
1362
|
-
|
|
1375
|
+
__wbg_abort_89f7368e16055f5f: function(arg0, arg1) {
|
|
1363
1376
|
arg0.abort(arg1);
|
|
1364
1377
|
},
|
|
1365
|
-
|
|
1378
|
+
__wbg_abort_b363e6285472a358: function(arg0) {
|
|
1366
1379
|
arg0.abort();
|
|
1367
1380
|
},
|
|
1368
|
-
|
|
1381
|
+
__wbg_append_263958599fd198c1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1369
1382
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1370
1383
|
}, arguments); },
|
|
1371
|
-
|
|
1384
|
+
__wbg_arrayBuffer_cb5d4748b5f3cad5: function() { return handleError(function (arg0) {
|
|
1372
1385
|
const ret = arg0.arrayBuffer();
|
|
1373
1386
|
return ret;
|
|
1374
1387
|
}, arguments); },
|
|
@@ -1376,39 +1389,39 @@ function __wbg_get_imports() {
|
|
|
1376
1389
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
1377
1390
|
return ret;
|
|
1378
1391
|
},
|
|
1379
|
-
|
|
1392
|
+
__wbg_body_acbb5ec9cd18657f: function(arg0) {
|
|
1380
1393
|
const ret = arg0.body;
|
|
1381
1394
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1382
1395
|
},
|
|
1383
|
-
|
|
1396
|
+
__wbg_buffer_8d6798e32d1afd34: function(arg0) {
|
|
1384
1397
|
const ret = arg0.buffer;
|
|
1385
1398
|
return ret;
|
|
1386
1399
|
},
|
|
1387
|
-
|
|
1400
|
+
__wbg_byobRequest_9d8c3b7b2f692560: function(arg0) {
|
|
1388
1401
|
const ret = arg0.byobRequest;
|
|
1389
1402
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1390
1403
|
},
|
|
1391
|
-
|
|
1404
|
+
__wbg_byteLength_c0cecdd68fab1693: function(arg0) {
|
|
1392
1405
|
const ret = arg0.byteLength;
|
|
1393
1406
|
return ret;
|
|
1394
1407
|
},
|
|
1395
|
-
|
|
1408
|
+
__wbg_byteOffset_3791b0030cc3b490: function(arg0) {
|
|
1396
1409
|
const ret = arg0.byteOffset;
|
|
1397
1410
|
return ret;
|
|
1398
1411
|
},
|
|
1399
|
-
|
|
1400
|
-
const ret = arg0.call(arg1
|
|
1412
|
+
__wbg_call_13665d9f14390edc: function() { return handleError(function (arg0, arg1) {
|
|
1413
|
+
const ret = arg0.call(arg1);
|
|
1401
1414
|
return ret;
|
|
1402
1415
|
}, arguments); },
|
|
1403
|
-
|
|
1404
|
-
const ret = arg0.call(arg1);
|
|
1416
|
+
__wbg_call_dfde26266607c996: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1417
|
+
const ret = arg0.call(arg1, arg2);
|
|
1405
1418
|
return ret;
|
|
1406
1419
|
}, arguments); },
|
|
1407
|
-
|
|
1420
|
+
__wbg_cancel_bee68d5707c614fb: function(arg0) {
|
|
1408
1421
|
const ret = arg0.cancel();
|
|
1409
1422
|
return ret;
|
|
1410
1423
|
},
|
|
1411
|
-
|
|
1424
|
+
__wbg_catch_ec5061a695c26496: function(arg0, arg1) {
|
|
1412
1425
|
const ret = arg0.catch(arg1);
|
|
1413
1426
|
return ret;
|
|
1414
1427
|
},
|
|
@@ -1428,10 +1441,10 @@ function __wbg_get_imports() {
|
|
|
1428
1441
|
const ret = clearTimeout(arg0);
|
|
1429
1442
|
return ret;
|
|
1430
1443
|
},
|
|
1431
|
-
|
|
1444
|
+
__wbg_close_53179a3d37ed525d: function() { return handleError(function (arg0) {
|
|
1432
1445
|
arg0.close();
|
|
1433
1446
|
}, arguments); },
|
|
1434
|
-
|
|
1447
|
+
__wbg_close_807d553ef8405788: function() { return handleError(function (arg0) {
|
|
1435
1448
|
arg0.close();
|
|
1436
1449
|
}, arguments); },
|
|
1437
1450
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
@@ -1442,32 +1455,32 @@ function __wbg_get_imports() {
|
|
|
1442
1455
|
const ret = DataEntry.__wrap(arg0);
|
|
1443
1456
|
return ret;
|
|
1444
1457
|
},
|
|
1445
|
-
|
|
1458
|
+
__wbg_debug_cca59db2c0a1b2cb: function(arg0) {
|
|
1446
1459
|
console.debug(...arg0);
|
|
1447
1460
|
},
|
|
1448
|
-
|
|
1461
|
+
__wbg_done_54b8da57023b7ed2: function(arg0) {
|
|
1449
1462
|
const ret = arg0.done;
|
|
1450
1463
|
return ret;
|
|
1451
1464
|
},
|
|
1452
|
-
|
|
1465
|
+
__wbg_enqueue_c3ce0a986a355a8c: function() { return handleError(function (arg0, arg1) {
|
|
1453
1466
|
arg0.enqueue(arg1);
|
|
1454
1467
|
}, arguments); },
|
|
1455
|
-
|
|
1456
|
-
const ret =
|
|
1468
|
+
__wbg_entries_564a7e8b1e54ede5: function(arg0) {
|
|
1469
|
+
const ret = Object.entries(arg0);
|
|
1457
1470
|
return ret;
|
|
1458
1471
|
},
|
|
1459
|
-
|
|
1472
|
+
__wbg_entries_8c373da97ea5ada5: function(arg0) {
|
|
1460
1473
|
const ret = arg0.entries();
|
|
1461
1474
|
return ret;
|
|
1462
1475
|
},
|
|
1463
|
-
|
|
1464
|
-
const ret =
|
|
1476
|
+
__wbg_entries_c5ae2149eef72ab2: function(arg0) {
|
|
1477
|
+
const ret = arg0.entries();
|
|
1465
1478
|
return ret;
|
|
1466
1479
|
},
|
|
1467
|
-
|
|
1480
|
+
__wbg_error_59b1aae72f5a6ab5: function(arg0) {
|
|
1468
1481
|
console.error(...arg0);
|
|
1469
1482
|
},
|
|
1470
|
-
|
|
1483
|
+
__wbg_fetch_2998af8c54e0997c: function(arg0, arg1) {
|
|
1471
1484
|
const ret = arg0.fetch(arg1);
|
|
1472
1485
|
return ret;
|
|
1473
1486
|
},
|
|
@@ -1475,7 +1488,7 @@ function __wbg_get_imports() {
|
|
|
1475
1488
|
const ret = fetch(arg0, arg1);
|
|
1476
1489
|
return ret;
|
|
1477
1490
|
},
|
|
1478
|
-
|
|
1491
|
+
__wbg_fetch_7bedf02f4d284391: function(arg0, arg1, arg2) {
|
|
1479
1492
|
const ret = arg0.fetch(arg1, arg2);
|
|
1480
1493
|
return ret;
|
|
1481
1494
|
},
|
|
@@ -1483,7 +1496,7 @@ function __wbg_get_imports() {
|
|
|
1483
1496
|
const ret = fetch(arg0);
|
|
1484
1497
|
return ret;
|
|
1485
1498
|
},
|
|
1486
|
-
|
|
1499
|
+
__wbg_fromEntries_f989b39123797069: function() { return handleError(function (arg0) {
|
|
1487
1500
|
const ret = Object.fromEntries(arg0);
|
|
1488
1501
|
return ret;
|
|
1489
1502
|
}, arguments); },
|
|
@@ -1497,35 +1510,35 @@ function __wbg_get_imports() {
|
|
|
1497
1510
|
const ret = arg0.getReader();
|
|
1498
1511
|
return ret;
|
|
1499
1512
|
}, arguments); },
|
|
1500
|
-
|
|
1513
|
+
__wbg_getTime_09f1dd40a44edb30: function(arg0) {
|
|
1501
1514
|
const ret = arg0.getTime();
|
|
1502
1515
|
return ret;
|
|
1503
1516
|
},
|
|
1504
|
-
|
|
1517
|
+
__wbg_getTimezoneOffset_96cfb6ddebc9e5ca: function(arg0) {
|
|
1505
1518
|
const ret = arg0.getTimezoneOffset();
|
|
1506
1519
|
return ret;
|
|
1507
1520
|
},
|
|
1508
|
-
|
|
1521
|
+
__wbg_get_3e9a707ab7d352eb: function() { return handleError(function (arg0, arg1) {
|
|
1509
1522
|
const ret = Reflect.get(arg0, arg1);
|
|
1510
1523
|
return ret;
|
|
1511
1524
|
}, arguments); },
|
|
1512
|
-
|
|
1525
|
+
__wbg_get_98fdf51d029a75eb: function(arg0, arg1) {
|
|
1513
1526
|
const ret = arg0[arg1 >>> 0];
|
|
1514
1527
|
return ret;
|
|
1515
1528
|
},
|
|
1516
|
-
|
|
1529
|
+
__wbg_get_dcf82ab8aad1a593: function() { return handleError(function (arg0, arg1) {
|
|
1517
1530
|
const ret = Reflect.get(arg0, arg1);
|
|
1518
1531
|
return ret;
|
|
1519
1532
|
}, arguments); },
|
|
1520
|
-
|
|
1533
|
+
__wbg_get_done_06210bfbda89c407: function(arg0) {
|
|
1521
1534
|
const ret = arg0.done;
|
|
1522
1535
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1523
1536
|
},
|
|
1524
|
-
|
|
1537
|
+
__wbg_get_unchecked_1dfe6d05ad91d9b7: function(arg0, arg1) {
|
|
1525
1538
|
const ret = arg0[arg1 >>> 0];
|
|
1526
1539
|
return ret;
|
|
1527
1540
|
},
|
|
1528
|
-
|
|
1541
|
+
__wbg_get_value_31eb9abef97d98cb: function(arg0) {
|
|
1529
1542
|
const ret = arg0.value;
|
|
1530
1543
|
return ret;
|
|
1531
1544
|
},
|
|
@@ -1533,18 +1546,18 @@ function __wbg_get_imports() {
|
|
|
1533
1546
|
const ret = arg0[arg1];
|
|
1534
1547
|
return ret;
|
|
1535
1548
|
},
|
|
1536
|
-
|
|
1549
|
+
__wbg_has_ef192b1f278770eb: function() { return handleError(function (arg0, arg1) {
|
|
1537
1550
|
const ret = Reflect.has(arg0, arg1);
|
|
1538
1551
|
return ret;
|
|
1539
1552
|
}, arguments); },
|
|
1540
|
-
|
|
1553
|
+
__wbg_headers_18f39f24d3837dc1: function(arg0) {
|
|
1541
1554
|
const ret = arg0.headers;
|
|
1542
1555
|
return ret;
|
|
1543
1556
|
},
|
|
1544
|
-
|
|
1557
|
+
__wbg_info_61cb85fc5a4e840f: function(arg0) {
|
|
1545
1558
|
console.info(...arg0);
|
|
1546
1559
|
},
|
|
1547
|
-
|
|
1560
|
+
__wbg_instanceof_ArrayBuffer_53db37b06f6b9afe: function(arg0) {
|
|
1548
1561
|
let result;
|
|
1549
1562
|
try {
|
|
1550
1563
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1554,7 +1567,7 @@ function __wbg_get_imports() {
|
|
|
1554
1567
|
const ret = result;
|
|
1555
1568
|
return ret;
|
|
1556
1569
|
},
|
|
1557
|
-
|
|
1570
|
+
__wbg_instanceof_Array_4cdd6aa73814007e: function(arg0) {
|
|
1558
1571
|
let result;
|
|
1559
1572
|
try {
|
|
1560
1573
|
result = arg0 instanceof Array;
|
|
@@ -1564,7 +1577,7 @@ function __wbg_get_imports() {
|
|
|
1564
1577
|
const ret = result;
|
|
1565
1578
|
return ret;
|
|
1566
1579
|
},
|
|
1567
|
-
|
|
1580
|
+
__wbg_instanceof_Map_16f217b9a2a08d8c: function(arg0) {
|
|
1568
1581
|
let result;
|
|
1569
1582
|
try {
|
|
1570
1583
|
result = arg0 instanceof Map;
|
|
@@ -1574,7 +1587,7 @@ function __wbg_get_imports() {
|
|
|
1574
1587
|
const ret = result;
|
|
1575
1588
|
return ret;
|
|
1576
1589
|
},
|
|
1577
|
-
|
|
1590
|
+
__wbg_instanceof_Response_ecfc823e8fb354e2: function(arg0) {
|
|
1578
1591
|
let result;
|
|
1579
1592
|
try {
|
|
1580
1593
|
result = arg0 instanceof Response;
|
|
@@ -1584,7 +1597,7 @@ function __wbg_get_imports() {
|
|
|
1584
1597
|
const ret = result;
|
|
1585
1598
|
return ret;
|
|
1586
1599
|
},
|
|
1587
|
-
|
|
1600
|
+
__wbg_instanceof_Uint8Array_abd07d4bd221d50b: function(arg0) {
|
|
1588
1601
|
let result;
|
|
1589
1602
|
try {
|
|
1590
1603
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1594,31 +1607,31 @@ function __wbg_get_imports() {
|
|
|
1594
1607
|
const ret = result;
|
|
1595
1608
|
return ret;
|
|
1596
1609
|
},
|
|
1597
|
-
|
|
1610
|
+
__wbg_isArray_94898ed3aad6947b: function(arg0) {
|
|
1598
1611
|
const ret = Array.isArray(arg0);
|
|
1599
1612
|
return ret;
|
|
1600
1613
|
},
|
|
1601
|
-
|
|
1614
|
+
__wbg_isSafeInteger_01e964d144ad3a55: function(arg0) {
|
|
1602
1615
|
const ret = Number.isSafeInteger(arg0);
|
|
1603
1616
|
return ret;
|
|
1604
1617
|
},
|
|
1605
|
-
|
|
1618
|
+
__wbg_iterator_1441b47f341dc34f: function() {
|
|
1606
1619
|
const ret = Symbol.iterator;
|
|
1607
1620
|
return ret;
|
|
1608
1621
|
},
|
|
1609
|
-
|
|
1622
|
+
__wbg_keys_682010b680c9b1f8: function(arg0) {
|
|
1610
1623
|
const ret = Object.keys(arg0);
|
|
1611
1624
|
return ret;
|
|
1612
1625
|
},
|
|
1613
|
-
|
|
1626
|
+
__wbg_length_2591a0f4f659a55c: function(arg0) {
|
|
1614
1627
|
const ret = arg0.length;
|
|
1615
1628
|
return ret;
|
|
1616
1629
|
},
|
|
1617
|
-
|
|
1630
|
+
__wbg_length_56fcd3e2b7e0299d: function(arg0) {
|
|
1618
1631
|
const ret = arg0.length;
|
|
1619
1632
|
return ret;
|
|
1620
1633
|
},
|
|
1621
|
-
|
|
1634
|
+
__wbg_log_856a53422828d244: function(arg0) {
|
|
1622
1635
|
console.log(...arg0);
|
|
1623
1636
|
},
|
|
1624
1637
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -1629,54 +1642,54 @@ function __wbg_get_imports() {
|
|
|
1629
1642
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1630
1643
|
return ret;
|
|
1631
1644
|
},
|
|
1632
|
-
|
|
1633
|
-
const ret = new
|
|
1645
|
+
__wbg_new_02d162bc6cf02f60: function() {
|
|
1646
|
+
const ret = new Object();
|
|
1634
1647
|
return ret;
|
|
1635
1648
|
},
|
|
1636
|
-
|
|
1637
|
-
const ret = new
|
|
1638
|
-
return ret;
|
|
1639
|
-
}, arguments); },
|
|
1640
|
-
__wbg_new_2fad8ca02fd00684: function() {
|
|
1641
|
-
const ret = new Object();
|
|
1649
|
+
__wbg_new_070df68d66325372: function() {
|
|
1650
|
+
const ret = new Map();
|
|
1642
1651
|
return ret;
|
|
1643
1652
|
},
|
|
1644
|
-
|
|
1645
|
-
const ret = new
|
|
1653
|
+
__wbg_new_0_2722fcdb71a888a6: function() {
|
|
1654
|
+
const ret = new Date();
|
|
1646
1655
|
return ret;
|
|
1647
1656
|
},
|
|
1648
|
-
|
|
1649
|
-
const ret = new
|
|
1657
|
+
__wbg_new_1f236d63ba0c4784: function(arg0, arg1) {
|
|
1658
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1650
1659
|
return ret;
|
|
1651
1660
|
},
|
|
1652
|
-
|
|
1653
|
-
const ret = new
|
|
1661
|
+
__wbg_new_310879b66b6e95e1: function() {
|
|
1662
|
+
const ret = new Array();
|
|
1654
1663
|
return ret;
|
|
1655
|
-
},
|
|
1656
|
-
|
|
1664
|
+
},
|
|
1665
|
+
__wbg_new_7ddec6de44ff8f5d: function(arg0) {
|
|
1657
1666
|
const ret = new Uint8Array(arg0);
|
|
1658
1667
|
return ret;
|
|
1659
1668
|
},
|
|
1660
|
-
|
|
1669
|
+
__wbg_new_859b9002e2668e82: function(arg0) {
|
|
1661
1670
|
const ret = new Date(arg0);
|
|
1662
1671
|
return ret;
|
|
1663
1672
|
},
|
|
1664
|
-
|
|
1665
|
-
const ret = new
|
|
1673
|
+
__wbg_new_af86d8f14640f1f3: function() { return handleError(function () {
|
|
1674
|
+
const ret = new AbortController();
|
|
1666
1675
|
return ret;
|
|
1667
|
-
},
|
|
1668
|
-
|
|
1676
|
+
}, arguments); },
|
|
1677
|
+
__wbg_new_ee0be486d8f01282: function() { return handleError(function () {
|
|
1678
|
+
const ret = new Headers();
|
|
1679
|
+
return ret;
|
|
1680
|
+
}, arguments); },
|
|
1681
|
+
__wbg_new_from_slice_269e35316ed2d061: function(arg0, arg1) {
|
|
1669
1682
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1670
1683
|
return ret;
|
|
1671
1684
|
},
|
|
1672
|
-
|
|
1685
|
+
__wbg_new_typed_c072c4ce9a2a0cdf: function(arg0, arg1) {
|
|
1673
1686
|
try {
|
|
1674
1687
|
var state0 = {a: arg0, b: arg1};
|
|
1675
1688
|
var cb0 = (arg0, arg1) => {
|
|
1676
1689
|
const a = state0.a;
|
|
1677
1690
|
state0.a = 0;
|
|
1678
1691
|
try {
|
|
1679
|
-
return
|
|
1692
|
+
return wasm_bindgen__convert__closures_____invoke__h03fb46086606eb61(a, state0.b, arg0, arg1);
|
|
1680
1693
|
} finally {
|
|
1681
1694
|
state0.a = a;
|
|
1682
1695
|
}
|
|
@@ -1687,23 +1700,23 @@ function __wbg_get_imports() {
|
|
|
1687
1700
|
state0.a = 0;
|
|
1688
1701
|
}
|
|
1689
1702
|
},
|
|
1690
|
-
|
|
1703
|
+
__wbg_new_with_byte_offset_and_length_a87e79143162d67f: function(arg0, arg1, arg2) {
|
|
1691
1704
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1692
1705
|
return ret;
|
|
1693
1706
|
},
|
|
1694
|
-
|
|
1707
|
+
__wbg_new_with_length_99887c91eae4abab: function(arg0) {
|
|
1695
1708
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1696
1709
|
return ret;
|
|
1697
1710
|
},
|
|
1698
|
-
|
|
1711
|
+
__wbg_new_with_str_and_init_ffe9977c986ea039: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1699
1712
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1700
1713
|
return ret;
|
|
1701
1714
|
}, arguments); },
|
|
1702
|
-
|
|
1715
|
+
__wbg_next_2a4e19f4f5083b0f: function(arg0) {
|
|
1703
1716
|
const ret = arg0.next;
|
|
1704
1717
|
return ret;
|
|
1705
1718
|
},
|
|
1706
|
-
|
|
1719
|
+
__wbg_next_6429a146bf756f93: function() { return handleError(function (arg0) {
|
|
1707
1720
|
const ret = arg0.next();
|
|
1708
1721
|
return ret;
|
|
1709
1722
|
}, arguments); },
|
|
@@ -1719,39 +1732,39 @@ function __wbg_get_imports() {
|
|
|
1719
1732
|
const ret = arg0.process;
|
|
1720
1733
|
return ret;
|
|
1721
1734
|
},
|
|
1722
|
-
|
|
1735
|
+
__wbg_prototypesetcall_5f9bdc8d75e07276: function(arg0, arg1, arg2) {
|
|
1723
1736
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1724
1737
|
},
|
|
1725
|
-
|
|
1738
|
+
__wbg_push_b77c476b01548d0a: function(arg0, arg1) {
|
|
1726
1739
|
const ret = arg0.push(arg1);
|
|
1727
1740
|
return ret;
|
|
1728
1741
|
},
|
|
1729
|
-
|
|
1730
|
-
queueMicrotask(arg0);
|
|
1731
|
-
},
|
|
1732
|
-
__wbg_queueMicrotask_74d092439f6494c1: function(arg0) {
|
|
1742
|
+
__wbg_queueMicrotask_78d584b53af520f5: function(arg0) {
|
|
1733
1743
|
const ret = arg0.queueMicrotask;
|
|
1734
1744
|
return ret;
|
|
1735
1745
|
},
|
|
1746
|
+
__wbg_queueMicrotask_b39ea83c7f01971a: function(arg0) {
|
|
1747
|
+
queueMicrotask(arg0);
|
|
1748
|
+
},
|
|
1736
1749
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1737
1750
|
arg0.randomFillSync(arg1);
|
|
1738
1751
|
}, arguments); },
|
|
1739
|
-
|
|
1752
|
+
__wbg_read_254bf22401498310: function(arg0) {
|
|
1740
1753
|
const ret = arg0.read();
|
|
1741
1754
|
return ret;
|
|
1742
1755
|
},
|
|
1743
|
-
|
|
1756
|
+
__wbg_releaseLock_65f356509fef84ac: function(arg0) {
|
|
1744
1757
|
arg0.releaseLock();
|
|
1745
1758
|
},
|
|
1746
1759
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1747
1760
|
const ret = module.require;
|
|
1748
1761
|
return ret;
|
|
1749
1762
|
}, arguments); },
|
|
1750
|
-
|
|
1763
|
+
__wbg_resolve_d17db9352f5a220e: function(arg0) {
|
|
1751
1764
|
const ret = Promise.resolve(arg0);
|
|
1752
1765
|
return ret;
|
|
1753
1766
|
},
|
|
1754
|
-
|
|
1767
|
+
__wbg_respond_0196e052b003e1db: function() { return handleError(function (arg0, arg1) {
|
|
1755
1768
|
arg0.respond(arg1 >>> 0);
|
|
1756
1769
|
}, arguments); },
|
|
1757
1770
|
__wbg_setTimeout_30be5552e4410378: function(arg0, arg1) {
|
|
@@ -1766,114 +1779,114 @@ function __wbg_get_imports() {
|
|
|
1766
1779
|
const ret = setTimeout(arg0, arg1);
|
|
1767
1780
|
return ret;
|
|
1768
1781
|
},
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
}, arguments); },
|
|
1782
|
+
__wbg_set_24d0fa9e104112f9: function(arg0, arg1, arg2) {
|
|
1783
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1784
|
+
},
|
|
1773
1785
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1774
1786
|
arg0[arg1] = arg2;
|
|
1775
1787
|
},
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
return ret;
|
|
1788
|
+
__wbg_set_78ea6a19f4818587: function(arg0, arg1, arg2) {
|
|
1789
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1779
1790
|
},
|
|
1780
|
-
|
|
1781
|
-
|
|
1791
|
+
__wbg_set_a0e911be3da02782: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1792
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1793
|
+
return ret;
|
|
1782
1794
|
}, arguments); },
|
|
1783
|
-
|
|
1784
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1785
|
-
},
|
|
1786
|
-
__wbg_set_body_aaff4f5f9991f342: function(arg0, arg1) {
|
|
1795
|
+
__wbg_set_body_7f56457720e81672: function(arg0, arg1) {
|
|
1787
1796
|
arg0.body = arg1;
|
|
1788
1797
|
},
|
|
1789
|
-
|
|
1798
|
+
__wbg_set_cache_9ed01a3813d96de2: function(arg0, arg1) {
|
|
1790
1799
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1791
1800
|
},
|
|
1792
|
-
|
|
1801
|
+
__wbg_set_credentials_55b92faec8dcc6a4: function(arg0, arg1) {
|
|
1793
1802
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1794
1803
|
},
|
|
1795
|
-
|
|
1796
|
-
arg0
|
|
1804
|
+
__wbg_set_d57e5106f0271787: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1805
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1806
|
+
}, arguments); },
|
|
1807
|
+
__wbg_set_facb7a5914e0fa39: function(arg0, arg1, arg2) {
|
|
1808
|
+
const ret = arg0.set(arg1, arg2);
|
|
1809
|
+
return ret;
|
|
1797
1810
|
},
|
|
1798
|
-
|
|
1811
|
+
__wbg_set_headers_97ed66619adb1e3e: function(arg0, arg1) {
|
|
1799
1812
|
arg0.headers = arg1;
|
|
1800
1813
|
},
|
|
1801
|
-
|
|
1814
|
+
__wbg_set_integrity_7a3f63bc5f3da2af: function(arg0, arg1, arg2) {
|
|
1802
1815
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
1803
1816
|
},
|
|
1804
|
-
|
|
1817
|
+
__wbg_set_method_4d69a1a7e34c0aca: function(arg0, arg1, arg2) {
|
|
1805
1818
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1806
1819
|
},
|
|
1807
|
-
|
|
1820
|
+
__wbg_set_mode_dfc59bbbe25b1d14: function(arg0, arg1) {
|
|
1808
1821
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1809
1822
|
},
|
|
1810
|
-
|
|
1823
|
+
__wbg_set_redirect_1c5253448ef852a8: function(arg0, arg1) {
|
|
1811
1824
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1812
1825
|
},
|
|
1813
|
-
|
|
1826
|
+
__wbg_set_referrer_9c7fc7e5b06e6397: function(arg0, arg1, arg2) {
|
|
1814
1827
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1815
1828
|
},
|
|
1816
|
-
|
|
1829
|
+
__wbg_set_referrer_policy_383280ef1585ce10: function(arg0, arg1) {
|
|
1817
1830
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1818
1831
|
},
|
|
1819
|
-
|
|
1832
|
+
__wbg_set_signal_2a5bd3615938edbc: function(arg0, arg1) {
|
|
1820
1833
|
arg0.signal = arg1;
|
|
1821
1834
|
},
|
|
1822
|
-
|
|
1835
|
+
__wbg_signal_304beac95c8c5ea0: function(arg0) {
|
|
1823
1836
|
const ret = arg0.signal;
|
|
1824
1837
|
return ret;
|
|
1825
1838
|
},
|
|
1826
|
-
|
|
1839
|
+
__wbg_static_accessor_GLOBAL_THIS_02344c9b09eb08a9: function() {
|
|
1827
1840
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1828
1841
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1829
1842
|
},
|
|
1830
|
-
|
|
1843
|
+
__wbg_static_accessor_GLOBAL_ac6d4ac874d5cd54: function() {
|
|
1831
1844
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1832
1845
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1833
1846
|
},
|
|
1834
|
-
|
|
1847
|
+
__wbg_static_accessor_SELF_9b2406c23aeb2023: function() {
|
|
1835
1848
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1836
1849
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1837
1850
|
},
|
|
1838
|
-
|
|
1851
|
+
__wbg_static_accessor_WINDOW_b34d2126934e16ba: function() {
|
|
1839
1852
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1840
1853
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1841
1854
|
},
|
|
1842
|
-
|
|
1855
|
+
__wbg_status_0853c9f5752c7ee2: function(arg0) {
|
|
1843
1856
|
const ret = arg0.status;
|
|
1844
1857
|
return ret;
|
|
1845
1858
|
},
|
|
1846
|
-
|
|
1859
|
+
__wbg_subarray_7c6a0da8f3b4a1ba: function(arg0, arg1, arg2) {
|
|
1847
1860
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1848
1861
|
return ret;
|
|
1849
1862
|
},
|
|
1850
|
-
|
|
1863
|
+
__wbg_text_99930d92d5f1b540: function() { return handleError(function (arg0) {
|
|
1851
1864
|
const ret = arg0.text();
|
|
1852
1865
|
return ret;
|
|
1853
1866
|
}, arguments); },
|
|
1854
|
-
|
|
1867
|
+
__wbg_then_837494e384b37459: function(arg0, arg1) {
|
|
1855
1868
|
const ret = arg0.then(arg1);
|
|
1856
1869
|
return ret;
|
|
1857
1870
|
},
|
|
1858
|
-
|
|
1871
|
+
__wbg_then_bd927500e8905df2: function(arg0, arg1, arg2) {
|
|
1859
1872
|
const ret = arg0.then(arg1, arg2);
|
|
1860
1873
|
return ret;
|
|
1861
1874
|
},
|
|
1862
|
-
|
|
1875
|
+
__wbg_toString_1dda136fd8f30a5f: function(arg0) {
|
|
1863
1876
|
const ret = arg0.toString();
|
|
1864
1877
|
return ret;
|
|
1865
1878
|
},
|
|
1866
|
-
|
|
1879
|
+
__wbg_trace_fcffa939f57b341a: function(arg0) {
|
|
1867
1880
|
console.trace(...arg0);
|
|
1868
1881
|
},
|
|
1869
|
-
|
|
1882
|
+
__wbg_url_1a5ea6a8a7f22ff8: function(arg0, arg1) {
|
|
1870
1883
|
const ret = arg1.url;
|
|
1871
1884
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1872
1885
|
const len1 = WASM_VECTOR_LEN;
|
|
1873
1886
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1874
1887
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1875
1888
|
},
|
|
1876
|
-
|
|
1889
|
+
__wbg_value_9cc0518af87a489c: function(arg0) {
|
|
1877
1890
|
const ret = arg0.value;
|
|
1878
1891
|
return ret;
|
|
1879
1892
|
},
|
|
@@ -1881,36 +1894,36 @@ function __wbg_get_imports() {
|
|
|
1881
1894
|
const ret = arg0.versions;
|
|
1882
1895
|
return ret;
|
|
1883
1896
|
},
|
|
1884
|
-
|
|
1897
|
+
__wbg_view_1b637c097280508c: function(arg0) {
|
|
1885
1898
|
const ret = arg0.view;
|
|
1886
1899
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1887
1900
|
},
|
|
1888
|
-
|
|
1901
|
+
__wbg_warn_39ee5335dafae3fb: function(arg0) {
|
|
1889
1902
|
console.warn(...arg0);
|
|
1890
1903
|
},
|
|
1891
1904
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1892
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1893
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1905
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2236, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1906
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he0d1df4f45812a75);
|
|
1894
1907
|
return ret;
|
|
1895
1908
|
},
|
|
1896
1909
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1897
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1898
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1910
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 670, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1911
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdd4256d54acb8ff1);
|
|
1899
1912
|
return ret;
|
|
1900
1913
|
},
|
|
1901
1914
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1902
1915
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 578, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1903
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1916
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc7b60e1a5fd69b6e);
|
|
1904
1917
|
return ret;
|
|
1905
1918
|
},
|
|
1906
1919
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1907
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1908
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1920
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1921
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h6f2d88ffbcba67ef);
|
|
1909
1922
|
return ret;
|
|
1910
1923
|
},
|
|
1911
1924
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1912
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1913
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1925
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 787, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1926
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h32cbe4603be323e5);
|
|
1914
1927
|
return ret;
|
|
1915
1928
|
},
|
|
1916
1929
|
__wbindgen_cast_0000000000000006: function(arg0) {
|
|
@@ -1954,31 +1967,31 @@ function __wbg_get_imports() {
|
|
|
1954
1967
|
};
|
|
1955
1968
|
}
|
|
1956
1969
|
|
|
1957
|
-
function
|
|
1958
|
-
wasm.
|
|
1970
|
+
function wasm_bindgen__convert__closures_____invoke__hc7b60e1a5fd69b6e(arg0, arg1) {
|
|
1971
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc7b60e1a5fd69b6e(arg0, arg1);
|
|
1959
1972
|
}
|
|
1960
1973
|
|
|
1961
|
-
function
|
|
1962
|
-
wasm.
|
|
1974
|
+
function wasm_bindgen__convert__closures_____invoke__h6f2d88ffbcba67ef(arg0, arg1) {
|
|
1975
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6f2d88ffbcba67ef(arg0, arg1);
|
|
1963
1976
|
}
|
|
1964
1977
|
|
|
1965
|
-
function
|
|
1966
|
-
wasm.
|
|
1978
|
+
function wasm_bindgen__convert__closures_____invoke__h32cbe4603be323e5(arg0, arg1) {
|
|
1979
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h32cbe4603be323e5(arg0, arg1);
|
|
1967
1980
|
}
|
|
1968
1981
|
|
|
1969
|
-
function
|
|
1970
|
-
wasm.
|
|
1982
|
+
function wasm_bindgen__convert__closures_____invoke__hdd4256d54acb8ff1(arg0, arg1, arg2) {
|
|
1983
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hdd4256d54acb8ff1(arg0, arg1, arg2);
|
|
1971
1984
|
}
|
|
1972
1985
|
|
|
1973
|
-
function
|
|
1974
|
-
const ret = wasm.
|
|
1986
|
+
function wasm_bindgen__convert__closures_____invoke__he0d1df4f45812a75(arg0, arg1, arg2) {
|
|
1987
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__he0d1df4f45812a75(arg0, arg1, arg2);
|
|
1975
1988
|
if (ret[1]) {
|
|
1976
1989
|
throw takeFromExternrefTable0(ret[0]);
|
|
1977
1990
|
}
|
|
1978
1991
|
}
|
|
1979
1992
|
|
|
1980
|
-
function
|
|
1981
|
-
wasm.
|
|
1993
|
+
function wasm_bindgen__convert__closures_____invoke__h03fb46086606eb61(arg0, arg1, arg2, arg3) {
|
|
1994
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h03fb46086606eb61(arg0, arg1, arg2, arg3);
|
|
1982
1995
|
}
|
|
1983
1996
|
|
|
1984
1997
|
|
|
@@ -2235,15 +2248,7 @@ function takeFromExternrefTable0(idx) {
|
|
|
2235
2248
|
|
|
2236
2249
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2237
2250
|
cachedTextDecoder.decode();
|
|
2238
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2239
|
-
let numBytesDecoded = 0;
|
|
2240
2251
|
function decodeText(ptr, len) {
|
|
2241
|
-
numBytesDecoded += len;
|
|
2242
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2243
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2244
|
-
cachedTextDecoder.decode();
|
|
2245
|
-
numBytesDecoded = len;
|
|
2246
|
-
}
|
|
2247
2252
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2248
2253
|
}
|
|
2249
2254
|
|
|
@@ -2262,96 +2267,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2262
2267
|
|
|
2263
2268
|
let WASM_VECTOR_LEN = 0;
|
|
2264
2269
|
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
cachedUint8ArrayMemory0 = null;
|
|
2272
|
-
wasm.__wbindgen_start();
|
|
2273
|
-
return wasm;
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
async function __wbg_load(module, imports) {
|
|
2277
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
2278
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2279
|
-
try {
|
|
2280
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2281
|
-
} catch (e) {
|
|
2282
|
-
const validResponse = module.ok && expectedResponseType(module.type);
|
|
2283
|
-
|
|
2284
|
-
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2285
|
-
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);
|
|
2286
|
-
|
|
2287
|
-
} else { throw e; }
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
|
|
2291
|
-
const bytes = await module.arrayBuffer();
|
|
2292
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
2293
|
-
} else {
|
|
2294
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
2295
|
-
|
|
2296
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
2297
|
-
return { instance, module };
|
|
2298
|
-
} else {
|
|
2299
|
-
return instance;
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
function expectedResponseType(type) {
|
|
2304
|
-
switch (type) {
|
|
2305
|
-
case 'basic': case 'cors': case 'default': return true;
|
|
2306
|
-
}
|
|
2307
|
-
return false;
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
function initSync(module) {
|
|
2312
|
-
if (wasm !== undefined) return wasm;
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
if (module !== undefined) {
|
|
2316
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2317
|
-
({module} = module)
|
|
2318
|
-
} else {
|
|
2319
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2320
|
-
}
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
|
-
const imports = __wbg_get_imports();
|
|
2324
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
2325
|
-
module = new WebAssembly.Module(module);
|
|
2326
|
-
}
|
|
2327
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
2328
|
-
return __wbg_finalize_init(instance, module);
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
async function __wbg_init(module_or_path) {
|
|
2332
|
-
if (wasm !== undefined) return wasm;
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
if (module_or_path !== undefined) {
|
|
2336
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2337
|
-
({module_or_path} = module_or_path)
|
|
2338
|
-
} else {
|
|
2339
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
if (module_or_path === undefined) {
|
|
2344
|
-
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
2345
|
-
}
|
|
2346
|
-
const imports = __wbg_get_imports();
|
|
2347
|
-
|
|
2348
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2349
|
-
module_or_path = fetch(module_or_path);
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2353
|
-
|
|
2354
|
-
return __wbg_finalize_init(instance, module);
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
export { initSync, __wbg_init as default };
|
|
2270
|
+
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
2271
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
2272
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
2273
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
2274
|
+
let wasm = wasmInstance.exports;
|
|
2275
|
+
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.399-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
|
}
|