@janssenproject/cedarling_wasm 0.0.362-nodejs → 0.0.363
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 +148 -0
- package/cedarling_wasm.js +288 -207
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.d.ts
CHANGED
|
@@ -516,3 +516,151 @@ 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__h10797b50422db1d9: (a: number, b: number, c: any) => [number, number];
|
|
630
|
+
readonly wasm_bindgen__convert__closures_____invoke__h034cae6b5dd12778: (a: number, b: number, c: any, d: any) => void;
|
|
631
|
+
readonly wasm_bindgen__convert__closures_____invoke__hc1f7fa9b168b3277: (a: number, b: number, c: any) => void;
|
|
632
|
+
readonly wasm_bindgen__convert__closures_____invoke__hdeea4964d1197885: (a: number, b: number) => void;
|
|
633
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1de102d8396d84e7: (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
|
-
class AuthorizeResult {
|
|
7
|
+
export class AuthorizeResult {
|
|
8
8
|
static __wrap(ptr) {
|
|
9
9
|
ptr = ptr >>> 0;
|
|
10
10
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -98,13 +98,12 @@ class AuthorizeResult {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
101
|
-
exports.AuthorizeResult = AuthorizeResult;
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
103
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
105
104
|
* Represents the result of an authorization request.
|
|
106
105
|
*/
|
|
107
|
-
class AuthorizeResultResponse {
|
|
106
|
+
export class AuthorizeResultResponse {
|
|
108
107
|
static __wrap(ptr) {
|
|
109
108
|
ptr = ptr >>> 0;
|
|
110
109
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -140,12 +139,11 @@ class AuthorizeResultResponse {
|
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
143
|
-
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
144
142
|
|
|
145
143
|
/**
|
|
146
144
|
* The instance of the Cedarling application.
|
|
147
145
|
*/
|
|
148
|
-
class Cedarling {
|
|
146
|
+
export class Cedarling {
|
|
149
147
|
static __wrap(ptr) {
|
|
150
148
|
ptr = ptr >>> 0;
|
|
151
149
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -576,13 +574,12 @@ class Cedarling {
|
|
|
576
574
|
}
|
|
577
575
|
}
|
|
578
576
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
579
|
-
exports.Cedarling = Cedarling;
|
|
580
577
|
|
|
581
578
|
/**
|
|
582
579
|
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
583
580
|
* Represents a data entry in the DataStore with value and metadata.
|
|
584
581
|
*/
|
|
585
|
-
class DataEntry {
|
|
582
|
+
export class DataEntry {
|
|
586
583
|
static __wrap(ptr) {
|
|
587
584
|
ptr = ptr >>> 0;
|
|
588
585
|
const obj = Object.create(DataEntry.prototype);
|
|
@@ -741,13 +738,12 @@ class DataEntry {
|
|
|
741
738
|
}
|
|
742
739
|
}
|
|
743
740
|
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
744
|
-
exports.DataEntry = DataEntry;
|
|
745
741
|
|
|
746
742
|
/**
|
|
747
743
|
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
748
744
|
* Statistics about the DataStore.
|
|
749
745
|
*/
|
|
750
|
-
class DataStoreStats {
|
|
746
|
+
export class DataStoreStats {
|
|
751
747
|
static __wrap(ptr) {
|
|
752
748
|
ptr = ptr >>> 0;
|
|
753
749
|
const obj = Object.create(DataStoreStats.prototype);
|
|
@@ -918,7 +914,6 @@ class DataStoreStats {
|
|
|
918
914
|
}
|
|
919
915
|
}
|
|
920
916
|
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
921
|
-
exports.DataStoreStats = DataStoreStats;
|
|
922
917
|
|
|
923
918
|
/**
|
|
924
919
|
* Diagnostics
|
|
@@ -926,7 +921,7 @@ exports.DataStoreStats = DataStoreStats;
|
|
|
926
921
|
*
|
|
927
922
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
928
923
|
*/
|
|
929
|
-
class Diagnostics {
|
|
924
|
+
export class Diagnostics {
|
|
930
925
|
static __wrap(ptr) {
|
|
931
926
|
ptr = ptr >>> 0;
|
|
932
927
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -970,9 +965,8 @@ class Diagnostics {
|
|
|
970
965
|
}
|
|
971
966
|
}
|
|
972
967
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
973
|
-
exports.Diagnostics = Diagnostics;
|
|
974
968
|
|
|
975
|
-
class IntoUnderlyingByteSource {
|
|
969
|
+
export class IntoUnderlyingByteSource {
|
|
976
970
|
__destroy_into_raw() {
|
|
977
971
|
const ptr = this.__wbg_ptr;
|
|
978
972
|
this.__wbg_ptr = 0;
|
|
@@ -1017,9 +1011,8 @@ class IntoUnderlyingByteSource {
|
|
|
1017
1011
|
}
|
|
1018
1012
|
}
|
|
1019
1013
|
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
1020
|
-
exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
1021
1014
|
|
|
1022
|
-
class IntoUnderlyingSink {
|
|
1015
|
+
export class IntoUnderlyingSink {
|
|
1023
1016
|
__destroy_into_raw() {
|
|
1024
1017
|
const ptr = this.__wbg_ptr;
|
|
1025
1018
|
this.__wbg_ptr = 0;
|
|
@@ -1057,9 +1050,8 @@ class IntoUnderlyingSink {
|
|
|
1057
1050
|
}
|
|
1058
1051
|
}
|
|
1059
1052
|
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
1060
|
-
exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
1061
1053
|
|
|
1062
|
-
class IntoUnderlyingSource {
|
|
1054
|
+
export class IntoUnderlyingSource {
|
|
1063
1055
|
__destroy_into_raw() {
|
|
1064
1056
|
const ptr = this.__wbg_ptr;
|
|
1065
1057
|
this.__wbg_ptr = 0;
|
|
@@ -1084,13 +1076,12 @@ class IntoUnderlyingSource {
|
|
|
1084
1076
|
}
|
|
1085
1077
|
}
|
|
1086
1078
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
1087
|
-
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
1088
1079
|
|
|
1089
1080
|
/**
|
|
1090
1081
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
1091
1082
|
* Represents the result of a multi-issuer authorization request.
|
|
1092
1083
|
*/
|
|
1093
|
-
class MultiIssuerAuthorizeResult {
|
|
1084
|
+
export class MultiIssuerAuthorizeResult {
|
|
1094
1085
|
static __wrap(ptr) {
|
|
1095
1086
|
ptr = ptr >>> 0;
|
|
1096
1087
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -1187,7 +1178,6 @@ class MultiIssuerAuthorizeResult {
|
|
|
1187
1178
|
}
|
|
1188
1179
|
}
|
|
1189
1180
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
1190
|
-
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
1191
1181
|
|
|
1192
1182
|
/**
|
|
1193
1183
|
* PolicyEvaluationError
|
|
@@ -1195,7 +1185,7 @@ exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
|
1195
1185
|
*
|
|
1196
1186
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
1197
1187
|
*/
|
|
1198
|
-
class PolicyEvaluationError {
|
|
1188
|
+
export class PolicyEvaluationError {
|
|
1199
1189
|
static __wrap(ptr) {
|
|
1200
1190
|
ptr = ptr >>> 0;
|
|
1201
1191
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -1247,7 +1237,6 @@ class PolicyEvaluationError {
|
|
|
1247
1237
|
}
|
|
1248
1238
|
}
|
|
1249
1239
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
1250
|
-
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
1251
1240
|
|
|
1252
1241
|
/**
|
|
1253
1242
|
* Create a new instance of the Cedarling application.
|
|
@@ -1255,11 +1244,10 @@ exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
|
1255
1244
|
* @param {any} config
|
|
1256
1245
|
* @returns {Promise<Cedarling>}
|
|
1257
1246
|
*/
|
|
1258
|
-
function init(config) {
|
|
1247
|
+
export function init(config) {
|
|
1259
1248
|
const ret = wasm.init(config);
|
|
1260
1249
|
return ret;
|
|
1261
1250
|
}
|
|
1262
|
-
exports.init = init;
|
|
1263
1251
|
|
|
1264
1252
|
/**
|
|
1265
1253
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -1281,81 +1269,79 @@ exports.init = init;
|
|
|
1281
1269
|
* @param {Uint8Array} archive_bytes
|
|
1282
1270
|
* @returns {Promise<Cedarling>}
|
|
1283
1271
|
*/
|
|
1284
|
-
function init_from_archive_bytes(config, archive_bytes) {
|
|
1272
|
+
export function init_from_archive_bytes(config, archive_bytes) {
|
|
1285
1273
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
1286
1274
|
return ret;
|
|
1287
1275
|
}
|
|
1288
|
-
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
1289
|
-
|
|
1290
1276
|
function __wbg_get_imports() {
|
|
1291
1277
|
const import0 = {
|
|
1292
1278
|
__proto__: null,
|
|
1293
|
-
|
|
1279
|
+
__wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
|
|
1294
1280
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1295
1281
|
return ret;
|
|
1296
1282
|
},
|
|
1297
|
-
|
|
1283
|
+
__wbg_Number_32bf70a599af1d4b: function(arg0) {
|
|
1298
1284
|
const ret = Number(arg0);
|
|
1299
1285
|
return ret;
|
|
1300
1286
|
},
|
|
1301
|
-
|
|
1287
|
+
__wbg___wbindgen_bigint_get_as_i64_3d3aba5d616c6a51: function(arg0, arg1) {
|
|
1302
1288
|
const v = arg1;
|
|
1303
1289
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1304
1290
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1305
1291
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1306
1292
|
},
|
|
1307
|
-
|
|
1293
|
+
__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff: function(arg0) {
|
|
1308
1294
|
const v = arg0;
|
|
1309
1295
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1310
1296
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1311
1297
|
},
|
|
1312
|
-
|
|
1298
|
+
__wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
|
|
1313
1299
|
const ret = debugString(arg1);
|
|
1314
1300
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1315
1301
|
const len1 = WASM_VECTOR_LEN;
|
|
1316
1302
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1317
1303
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1318
1304
|
},
|
|
1319
|
-
|
|
1305
|
+
__wbg___wbindgen_in_a5d8b22e52b24dd1: function(arg0, arg1) {
|
|
1320
1306
|
const ret = arg0 in arg1;
|
|
1321
1307
|
return ret;
|
|
1322
1308
|
},
|
|
1323
|
-
|
|
1309
|
+
__wbg___wbindgen_is_bigint_ec25c7f91b4d9e93: function(arg0) {
|
|
1324
1310
|
const ret = typeof(arg0) === 'bigint';
|
|
1325
1311
|
return ret;
|
|
1326
1312
|
},
|
|
1327
|
-
|
|
1313
|
+
__wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
|
|
1328
1314
|
const ret = typeof(arg0) === 'function';
|
|
1329
1315
|
return ret;
|
|
1330
1316
|
},
|
|
1331
|
-
|
|
1317
|
+
__wbg___wbindgen_is_object_63322ec0cd6ea4ef: function(arg0) {
|
|
1332
1318
|
const val = arg0;
|
|
1333
1319
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1334
1320
|
return ret;
|
|
1335
1321
|
},
|
|
1336
|
-
|
|
1322
|
+
__wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
|
|
1337
1323
|
const ret = typeof(arg0) === 'string';
|
|
1338
1324
|
return ret;
|
|
1339
1325
|
},
|
|
1340
|
-
|
|
1326
|
+
__wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
|
|
1341
1327
|
const ret = arg0 === undefined;
|
|
1342
1328
|
return ret;
|
|
1343
1329
|
},
|
|
1344
|
-
|
|
1330
|
+
__wbg___wbindgen_jsval_eq_d3465d8a07697228: function(arg0, arg1) {
|
|
1345
1331
|
const ret = arg0 === arg1;
|
|
1346
1332
|
return ret;
|
|
1347
1333
|
},
|
|
1348
|
-
|
|
1334
|
+
__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c: function(arg0, arg1) {
|
|
1349
1335
|
const ret = arg0 == arg1;
|
|
1350
1336
|
return ret;
|
|
1351
1337
|
},
|
|
1352
|
-
|
|
1338
|
+
__wbg___wbindgen_number_get_c7f42aed0525c451: function(arg0, arg1) {
|
|
1353
1339
|
const obj = arg1;
|
|
1354
1340
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1355
1341
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1356
1342
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1357
1343
|
},
|
|
1358
|
-
|
|
1344
|
+
__wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
|
|
1359
1345
|
const obj = arg1;
|
|
1360
1346
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1361
1347
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1363,22 +1349,22 @@ function __wbg_get_imports() {
|
|
|
1363
1349
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1364
1350
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1365
1351
|
},
|
|
1366
|
-
|
|
1352
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
1367
1353
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1368
1354
|
},
|
|
1369
|
-
|
|
1355
|
+
__wbg__wbg_cb_unref_b46c9b5a9f08ec37: function(arg0) {
|
|
1370
1356
|
arg0._wbg_cb_unref();
|
|
1371
1357
|
},
|
|
1372
|
-
|
|
1358
|
+
__wbg_abort_4ce5b484434ef6fd: function(arg0) {
|
|
1373
1359
|
arg0.abort();
|
|
1374
1360
|
},
|
|
1375
|
-
|
|
1361
|
+
__wbg_abort_d53712380a54cc81: function(arg0, arg1) {
|
|
1376
1362
|
arg0.abort(arg1);
|
|
1377
1363
|
},
|
|
1378
|
-
|
|
1364
|
+
__wbg_append_e8fc56ce7c00e874: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1379
1365
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1380
1366
|
}, arguments); },
|
|
1381
|
-
|
|
1367
|
+
__wbg_arrayBuffer_848c392b70c67d3d: function() { return handleError(function (arg0) {
|
|
1382
1368
|
const ret = arg0.arrayBuffer();
|
|
1383
1369
|
return ret;
|
|
1384
1370
|
}, arguments); },
|
|
@@ -1386,39 +1372,39 @@ function __wbg_get_imports() {
|
|
|
1386
1372
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
1387
1373
|
return ret;
|
|
1388
1374
|
},
|
|
1389
|
-
|
|
1375
|
+
__wbg_body_0c3a51aec038a31a: function(arg0) {
|
|
1390
1376
|
const ret = arg0.body;
|
|
1391
1377
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1392
1378
|
},
|
|
1393
|
-
|
|
1379
|
+
__wbg_buffer_d0f5ea0926a691fd: function(arg0) {
|
|
1394
1380
|
const ret = arg0.buffer;
|
|
1395
1381
|
return ret;
|
|
1396
1382
|
},
|
|
1397
|
-
|
|
1383
|
+
__wbg_byobRequest_dc6aed9db01b12c6: function(arg0) {
|
|
1398
1384
|
const ret = arg0.byobRequest;
|
|
1399
1385
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1400
1386
|
},
|
|
1401
|
-
|
|
1387
|
+
__wbg_byteLength_3e660e5661f3327e: function(arg0) {
|
|
1402
1388
|
const ret = arg0.byteLength;
|
|
1403
1389
|
return ret;
|
|
1404
1390
|
},
|
|
1405
|
-
|
|
1391
|
+
__wbg_byteOffset_ecd62abe44dd28d4: function(arg0) {
|
|
1406
1392
|
const ret = arg0.byteOffset;
|
|
1407
1393
|
return ret;
|
|
1408
1394
|
},
|
|
1409
|
-
|
|
1395
|
+
__wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
|
|
1410
1396
|
const ret = arg0.call(arg1);
|
|
1411
1397
|
return ret;
|
|
1412
1398
|
}, arguments); },
|
|
1413
|
-
|
|
1399
|
+
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1414
1400
|
const ret = arg0.call(arg1, arg2);
|
|
1415
1401
|
return ret;
|
|
1416
1402
|
}, arguments); },
|
|
1417
|
-
|
|
1403
|
+
__wbg_cancel_ceb1bda02e29f0a9: function(arg0) {
|
|
1418
1404
|
const ret = arg0.cancel();
|
|
1419
1405
|
return ret;
|
|
1420
1406
|
},
|
|
1421
|
-
|
|
1407
|
+
__wbg_catch_e9362815fd0b24cf: function(arg0, arg1) {
|
|
1422
1408
|
const ret = arg0.catch(arg1);
|
|
1423
1409
|
return ret;
|
|
1424
1410
|
},
|
|
@@ -1434,10 +1420,10 @@ function __wbg_get_imports() {
|
|
|
1434
1420
|
const ret = clearTimeout(arg0);
|
|
1435
1421
|
return ret;
|
|
1436
1422
|
},
|
|
1437
|
-
|
|
1423
|
+
__wbg_close_e6c8977a002e9e13: function() { return handleError(function (arg0) {
|
|
1438
1424
|
arg0.close();
|
|
1439
1425
|
}, arguments); },
|
|
1440
|
-
|
|
1426
|
+
__wbg_close_fb954dfaf67b5732: function() { return handleError(function (arg0) {
|
|
1441
1427
|
arg0.close();
|
|
1442
1428
|
}, arguments); },
|
|
1443
1429
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
@@ -1448,48 +1434,48 @@ function __wbg_get_imports() {
|
|
|
1448
1434
|
const ret = DataEntry.__wrap(arg0);
|
|
1449
1435
|
return ret;
|
|
1450
1436
|
},
|
|
1451
|
-
|
|
1437
|
+
__wbg_debug_e679aee1a146ce33: function(arg0) {
|
|
1452
1438
|
console.debug(...arg0);
|
|
1453
1439
|
},
|
|
1454
|
-
|
|
1440
|
+
__wbg_done_9158f7cc8751ba32: function(arg0) {
|
|
1455
1441
|
const ret = arg0.done;
|
|
1456
1442
|
return ret;
|
|
1457
1443
|
},
|
|
1458
|
-
|
|
1444
|
+
__wbg_enqueue_4767ce322820c94d: function() { return handleError(function (arg0, arg1) {
|
|
1459
1445
|
arg0.enqueue(arg1);
|
|
1460
1446
|
}, arguments); },
|
|
1461
|
-
|
|
1462
|
-
const ret =
|
|
1447
|
+
__wbg_entries_2bf997cf82353e47: function(arg0) {
|
|
1448
|
+
const ret = arg0.entries();
|
|
1463
1449
|
return ret;
|
|
1464
1450
|
},
|
|
1465
|
-
|
|
1451
|
+
__wbg_entries_bf727fcd7bf35a41: function(arg0) {
|
|
1466
1452
|
const ret = arg0.entries();
|
|
1467
1453
|
return ret;
|
|
1468
1454
|
},
|
|
1469
|
-
|
|
1470
|
-
const ret =
|
|
1455
|
+
__wbg_entries_e0b73aa8571ddb56: function(arg0) {
|
|
1456
|
+
const ret = Object.entries(arg0);
|
|
1471
1457
|
return ret;
|
|
1472
1458
|
},
|
|
1473
|
-
|
|
1459
|
+
__wbg_error_290de5487bca6d05: function(arg0) {
|
|
1474
1460
|
console.error(...arg0);
|
|
1475
1461
|
},
|
|
1476
1462
|
__wbg_fetch_010aa16f24b763bc: function(arg0, arg1) {
|
|
1477
1463
|
const ret = fetch(arg0, arg1);
|
|
1478
1464
|
return ret;
|
|
1479
1465
|
},
|
|
1480
|
-
|
|
1466
|
+
__wbg_fetch_0d322c0aed196b8b: function(arg0, arg1) {
|
|
1481
1467
|
const ret = arg0.fetch(arg1);
|
|
1482
1468
|
return ret;
|
|
1483
1469
|
},
|
|
1484
|
-
|
|
1485
|
-
const ret = fetch(
|
|
1470
|
+
__wbg_fetch_28a97b69c20078bb: function(arg0, arg1, arg2) {
|
|
1471
|
+
const ret = arg0.fetch(arg1, arg2);
|
|
1486
1472
|
return ret;
|
|
1487
1473
|
},
|
|
1488
|
-
|
|
1489
|
-
const ret =
|
|
1474
|
+
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
1475
|
+
const ret = fetch(arg0);
|
|
1490
1476
|
return ret;
|
|
1491
1477
|
},
|
|
1492
|
-
|
|
1478
|
+
__wbg_fromEntries_ce99d7540610a555: function() { return handleError(function (arg0) {
|
|
1493
1479
|
const ret = Object.fromEntries(arg0);
|
|
1494
1480
|
return ret;
|
|
1495
1481
|
}, arguments); },
|
|
@@ -1503,35 +1489,35 @@ function __wbg_get_imports() {
|
|
|
1503
1489
|
const ret = arg0.getReader();
|
|
1504
1490
|
return ret;
|
|
1505
1491
|
}, arguments); },
|
|
1506
|
-
|
|
1492
|
+
__wbg_getTime_da7c55f52b71e8c6: function(arg0) {
|
|
1507
1493
|
const ret = arg0.getTime();
|
|
1508
1494
|
return ret;
|
|
1509
1495
|
},
|
|
1510
|
-
|
|
1496
|
+
__wbg_getTimezoneOffset_31f57a5389d0d57c: function(arg0) {
|
|
1511
1497
|
const ret = arg0.getTimezoneOffset();
|
|
1512
1498
|
return ret;
|
|
1513
1499
|
},
|
|
1514
|
-
|
|
1515
|
-
const ret = arg0[arg1 >>> 0];
|
|
1516
|
-
return ret;
|
|
1517
|
-
},
|
|
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) {
|
|
1500
|
+
__wbg_get_1affdbdd5573b16a: function() { return handleError(function (arg0, arg1) {
|
|
1523
1501
|
const ret = Reflect.get(arg0, arg1);
|
|
1524
1502
|
return ret;
|
|
1525
1503
|
}, arguments); },
|
|
1526
|
-
|
|
1504
|
+
__wbg_get_6011fa3a58f61074: function() { return handleError(function (arg0, arg1) {
|
|
1527
1505
|
const ret = Reflect.get(arg0, arg1);
|
|
1528
1506
|
return ret;
|
|
1529
1507
|
}, arguments); },
|
|
1530
|
-
|
|
1508
|
+
__wbg_get_8360291721e2339f: function(arg0, arg1) {
|
|
1509
|
+
const ret = arg0[arg1 >>> 0];
|
|
1510
|
+
return ret;
|
|
1511
|
+
},
|
|
1512
|
+
__wbg_get_done_282bca5d3f90e0a8: function(arg0) {
|
|
1513
|
+
const ret = arg0.done;
|
|
1514
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1515
|
+
},
|
|
1516
|
+
__wbg_get_unchecked_17f53dad852b9588: function(arg0, arg1) {
|
|
1531
1517
|
const ret = arg0[arg1 >>> 0];
|
|
1532
1518
|
return ret;
|
|
1533
1519
|
},
|
|
1534
|
-
|
|
1520
|
+
__wbg_get_value_65a7a2c60b42fd75: function(arg0) {
|
|
1535
1521
|
const ret = arg0.value;
|
|
1536
1522
|
return ret;
|
|
1537
1523
|
},
|
|
@@ -1539,18 +1525,18 @@ function __wbg_get_imports() {
|
|
|
1539
1525
|
const ret = arg0[arg1];
|
|
1540
1526
|
return ret;
|
|
1541
1527
|
},
|
|
1542
|
-
|
|
1528
|
+
__wbg_has_880f1d472f7cecba: function() { return handleError(function (arg0, arg1) {
|
|
1543
1529
|
const ret = Reflect.has(arg0, arg1);
|
|
1544
1530
|
return ret;
|
|
1545
1531
|
}, arguments); },
|
|
1546
|
-
|
|
1532
|
+
__wbg_headers_6022deb4e576fb8e: function(arg0) {
|
|
1547
1533
|
const ret = arg0.headers;
|
|
1548
1534
|
return ret;
|
|
1549
1535
|
},
|
|
1550
|
-
|
|
1536
|
+
__wbg_info_cd965dfbcb78a57d: function(arg0) {
|
|
1551
1537
|
console.info(...arg0);
|
|
1552
1538
|
},
|
|
1553
|
-
|
|
1539
|
+
__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
|
|
1554
1540
|
let result;
|
|
1555
1541
|
try {
|
|
1556
1542
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1560,7 +1546,7 @@ function __wbg_get_imports() {
|
|
|
1560
1546
|
const ret = result;
|
|
1561
1547
|
return ret;
|
|
1562
1548
|
},
|
|
1563
|
-
|
|
1549
|
+
__wbg_instanceof_Array_d0200cccb1297a10: function(arg0) {
|
|
1564
1550
|
let result;
|
|
1565
1551
|
try {
|
|
1566
1552
|
result = arg0 instanceof Array;
|
|
@@ -1570,7 +1556,7 @@ function __wbg_get_imports() {
|
|
|
1570
1556
|
const ret = result;
|
|
1571
1557
|
return ret;
|
|
1572
1558
|
},
|
|
1573
|
-
|
|
1559
|
+
__wbg_instanceof_Map_1b76fd4635be43eb: function(arg0) {
|
|
1574
1560
|
let result;
|
|
1575
1561
|
try {
|
|
1576
1562
|
result = arg0 instanceof Map;
|
|
@@ -1580,7 +1566,7 @@ function __wbg_get_imports() {
|
|
|
1580
1566
|
const ret = result;
|
|
1581
1567
|
return ret;
|
|
1582
1568
|
},
|
|
1583
|
-
|
|
1569
|
+
__wbg_instanceof_Response_9b2d111407865ff2: function(arg0) {
|
|
1584
1570
|
let result;
|
|
1585
1571
|
try {
|
|
1586
1572
|
result = arg0 instanceof Response;
|
|
@@ -1590,7 +1576,7 @@ function __wbg_get_imports() {
|
|
|
1590
1576
|
const ret = result;
|
|
1591
1577
|
return ret;
|
|
1592
1578
|
},
|
|
1593
|
-
|
|
1579
|
+
__wbg_instanceof_Uint8Array_152ba1f289edcf3f: function(arg0) {
|
|
1594
1580
|
let result;
|
|
1595
1581
|
try {
|
|
1596
1582
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1600,31 +1586,31 @@ function __wbg_get_imports() {
|
|
|
1600
1586
|
const ret = result;
|
|
1601
1587
|
return ret;
|
|
1602
1588
|
},
|
|
1603
|
-
|
|
1589
|
+
__wbg_isArray_c3109d14ffc06469: function(arg0) {
|
|
1604
1590
|
const ret = Array.isArray(arg0);
|
|
1605
1591
|
return ret;
|
|
1606
1592
|
},
|
|
1607
|
-
|
|
1593
|
+
__wbg_isSafeInteger_4fc213d1989d6d2a: function(arg0) {
|
|
1608
1594
|
const ret = Number.isSafeInteger(arg0);
|
|
1609
1595
|
return ret;
|
|
1610
1596
|
},
|
|
1611
|
-
|
|
1597
|
+
__wbg_iterator_013bc09ec998c2a7: function() {
|
|
1612
1598
|
const ret = Symbol.iterator;
|
|
1613
1599
|
return ret;
|
|
1614
1600
|
},
|
|
1615
|
-
|
|
1601
|
+
__wbg_keys_2fd1bfdda7e278ca: function(arg0) {
|
|
1616
1602
|
const ret = Object.keys(arg0);
|
|
1617
1603
|
return ret;
|
|
1618
1604
|
},
|
|
1619
|
-
|
|
1605
|
+
__wbg_length_3d4ecd04bd8d22f1: function(arg0) {
|
|
1620
1606
|
const ret = arg0.length;
|
|
1621
1607
|
return ret;
|
|
1622
1608
|
},
|
|
1623
|
-
|
|
1609
|
+
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
1624
1610
|
const ret = arg0.length;
|
|
1625
1611
|
return ret;
|
|
1626
1612
|
},
|
|
1627
|
-
|
|
1613
|
+
__wbg_log_3e08aa4d12dba7f3: function(arg0) {
|
|
1628
1614
|
console.log(...arg0);
|
|
1629
1615
|
},
|
|
1630
1616
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -1635,54 +1621,54 @@ function __wbg_get_imports() {
|
|
|
1635
1621
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1636
1622
|
return ret;
|
|
1637
1623
|
},
|
|
1638
|
-
|
|
1624
|
+
__wbg_new_0_4d657201ced14de3: function() {
|
|
1639
1625
|
const ret = new Date();
|
|
1640
1626
|
return ret;
|
|
1641
1627
|
},
|
|
1642
|
-
|
|
1643
|
-
const ret = new
|
|
1628
|
+
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
1629
|
+
const ret = new Uint8Array(arg0);
|
|
1644
1630
|
return ret;
|
|
1645
1631
|
},
|
|
1646
|
-
|
|
1632
|
+
__wbg_new_15a4889b4b90734d: function() { return handleError(function () {
|
|
1647
1633
|
const ret = new Headers();
|
|
1648
1634
|
return ret;
|
|
1649
1635
|
}, arguments); },
|
|
1650
|
-
|
|
1651
|
-
const ret = new Object();
|
|
1652
|
-
return ret;
|
|
1653
|
-
},
|
|
1654
|
-
__wbg_new_99cabae501c0a8a0: function() {
|
|
1636
|
+
__wbg_new_34d45cc8e36aaead: function() {
|
|
1655
1637
|
const ret = new Map();
|
|
1656
1638
|
return ret;
|
|
1657
1639
|
},
|
|
1658
|
-
|
|
1659
|
-
const ret = new
|
|
1640
|
+
__wbg_new_5e360d2ff7b9e1c3: function(arg0, arg1) {
|
|
1641
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1660
1642
|
return ret;
|
|
1661
|
-
},
|
|
1662
|
-
|
|
1663
|
-
const ret = new
|
|
1643
|
+
},
|
|
1644
|
+
__wbg_new_682678e2f47e32bc: function() {
|
|
1645
|
+
const ret = new Array();
|
|
1664
1646
|
return ret;
|
|
1665
1647
|
},
|
|
1666
|
-
|
|
1667
|
-
const ret = new
|
|
1648
|
+
__wbg_new_7913666fe5070684: function(arg0) {
|
|
1649
|
+
const ret = new Date(arg0);
|
|
1668
1650
|
return ret;
|
|
1669
1651
|
},
|
|
1670
|
-
|
|
1671
|
-
const ret = new
|
|
1652
|
+
__wbg_new_98c22165a42231aa: function() { return handleError(function () {
|
|
1653
|
+
const ret = new AbortController();
|
|
1654
|
+
return ret;
|
|
1655
|
+
}, arguments); },
|
|
1656
|
+
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
1657
|
+
const ret = new Object();
|
|
1672
1658
|
return ret;
|
|
1673
1659
|
},
|
|
1674
|
-
|
|
1660
|
+
__wbg_new_from_slice_b5ea43e23f6008c0: function(arg0, arg1) {
|
|
1675
1661
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1676
1662
|
return ret;
|
|
1677
1663
|
},
|
|
1678
|
-
|
|
1664
|
+
__wbg_new_typed_323f37fd55ab048d: function(arg0, arg1) {
|
|
1679
1665
|
try {
|
|
1680
1666
|
var state0 = {a: arg0, b: arg1};
|
|
1681
1667
|
var cb0 = (arg0, arg1) => {
|
|
1682
1668
|
const a = state0.a;
|
|
1683
1669
|
state0.a = 0;
|
|
1684
1670
|
try {
|
|
1685
|
-
return
|
|
1671
|
+
return wasm_bindgen__convert__closures_____invoke__h034cae6b5dd12778(a, state0.b, arg0, arg1);
|
|
1686
1672
|
} finally {
|
|
1687
1673
|
state0.a = a;
|
|
1688
1674
|
}
|
|
@@ -1693,26 +1679,26 @@ function __wbg_get_imports() {
|
|
|
1693
1679
|
state0.a = 0;
|
|
1694
1680
|
}
|
|
1695
1681
|
},
|
|
1696
|
-
|
|
1682
|
+
__wbg_new_with_byte_offset_and_length_01848e8d6a3d49ad: function(arg0, arg1, arg2) {
|
|
1697
1683
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1698
1684
|
return ret;
|
|
1699
1685
|
},
|
|
1700
|
-
|
|
1686
|
+
__wbg_new_with_length_8c854e41ea4dae9b: function(arg0) {
|
|
1701
1687
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1702
1688
|
return ret;
|
|
1703
1689
|
},
|
|
1704
|
-
|
|
1690
|
+
__wbg_new_with_str_and_init_897be1708e42f39d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1705
1691
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1706
1692
|
return ret;
|
|
1707
1693
|
}, arguments); },
|
|
1708
|
-
|
|
1709
|
-
const ret = arg0.next;
|
|
1710
|
-
return ret;
|
|
1711
|
-
},
|
|
1712
|
-
__wbg_next_b3713ec761a9dbfd: function() { return handleError(function (arg0) {
|
|
1694
|
+
__wbg_next_0340c4ae324393c3: function() { return handleError(function (arg0) {
|
|
1713
1695
|
const ret = arg0.next();
|
|
1714
1696
|
return ret;
|
|
1715
1697
|
}, arguments); },
|
|
1698
|
+
__wbg_next_7646edaa39458ef7: function(arg0) {
|
|
1699
|
+
const ret = arg0.next;
|
|
1700
|
+
return ret;
|
|
1701
|
+
},
|
|
1716
1702
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1717
1703
|
const ret = arg0.node;
|
|
1718
1704
|
return ret;
|
|
@@ -1725,39 +1711,39 @@ function __wbg_get_imports() {
|
|
|
1725
1711
|
const ret = arg0.process;
|
|
1726
1712
|
return ret;
|
|
1727
1713
|
},
|
|
1728
|
-
|
|
1714
|
+
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
1729
1715
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1730
1716
|
},
|
|
1731
|
-
|
|
1717
|
+
__wbg_push_471a5b068a5295f6: function(arg0, arg1) {
|
|
1732
1718
|
const ret = arg0.push(arg1);
|
|
1733
1719
|
return ret;
|
|
1734
1720
|
},
|
|
1735
|
-
|
|
1721
|
+
__wbg_queueMicrotask_5d15a957e6aa920e: function(arg0) {
|
|
1722
|
+
queueMicrotask(arg0);
|
|
1723
|
+
},
|
|
1724
|
+
__wbg_queueMicrotask_f8819e5ffc402f36: function(arg0) {
|
|
1736
1725
|
const ret = arg0.queueMicrotask;
|
|
1737
1726
|
return ret;
|
|
1738
1727
|
},
|
|
1739
|
-
__wbg_queueMicrotask_df5a6dac26d818f3: function(arg0) {
|
|
1740
|
-
queueMicrotask(arg0);
|
|
1741
|
-
},
|
|
1742
1728
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1743
1729
|
arg0.randomFillSync(arg1);
|
|
1744
1730
|
}, arguments); },
|
|
1745
|
-
|
|
1731
|
+
__wbg_read_ddc2d178d2e57272: function(arg0) {
|
|
1746
1732
|
const ret = arg0.read();
|
|
1747
1733
|
return ret;
|
|
1748
1734
|
},
|
|
1749
|
-
|
|
1735
|
+
__wbg_releaseLock_9baaf3ccc5cfad69: function(arg0) {
|
|
1750
1736
|
arg0.releaseLock();
|
|
1751
1737
|
},
|
|
1752
1738
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1753
1739
|
const ret = module.require;
|
|
1754
1740
|
return ret;
|
|
1755
1741
|
}, arguments); },
|
|
1756
|
-
|
|
1742
|
+
__wbg_resolve_e6c466bc1052f16c: function(arg0) {
|
|
1757
1743
|
const ret = Promise.resolve(arg0);
|
|
1758
1744
|
return ret;
|
|
1759
1745
|
},
|
|
1760
|
-
|
|
1746
|
+
__wbg_respond_008ca9525ae22847: function() { return handleError(function (arg0, arg1) {
|
|
1761
1747
|
arg0.respond(arg1 >>> 0);
|
|
1762
1748
|
}, arguments); },
|
|
1763
1749
|
__wbg_setTimeout_a3127d9f29a851c3: function(arg0, arg1) {
|
|
@@ -1768,114 +1754,114 @@ function __wbg_get_imports() {
|
|
|
1768
1754
|
const ret = setTimeout(arg0, arg1);
|
|
1769
1755
|
return ret;
|
|
1770
1756
|
},
|
|
1771
|
-
|
|
1772
|
-
const ret =
|
|
1757
|
+
__wbg_set_022bee52d0b05b19: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1758
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1773
1759
|
return ret;
|
|
1760
|
+
}, arguments); },
|
|
1761
|
+
__wbg_set_1ffc463d4c541483: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1762
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1763
|
+
}, arguments); },
|
|
1764
|
+
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
1765
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1774
1766
|
},
|
|
1775
|
-
|
|
1767
|
+
__wbg_set_3d484eb794afec82: function(arg0, arg1, arg2) {
|
|
1776
1768
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1777
1769
|
},
|
|
1778
1770
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1779
1771
|
arg0[arg1] = arg2;
|
|
1780
1772
|
},
|
|
1781
|
-
|
|
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) {
|
|
1789
|
-
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1790
|
-
}, arguments); },
|
|
1791
|
-
__wbg_set_body_a304d09cb50cefbe: function(arg0, arg1) {
|
|
1773
|
+
__wbg_set_body_be11680f34217f75: function(arg0, arg1) {
|
|
1792
1774
|
arg0.body = arg1;
|
|
1793
1775
|
},
|
|
1794
|
-
|
|
1776
|
+
__wbg_set_cache_968edea422613d1b: function(arg0, arg1) {
|
|
1795
1777
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1796
1778
|
},
|
|
1797
|
-
|
|
1779
|
+
__wbg_set_credentials_6577be90e0e85eb6: function(arg0, arg1) {
|
|
1798
1780
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1799
1781
|
},
|
|
1800
|
-
|
|
1782
|
+
__wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
|
|
1783
|
+
const ret = arg0.set(arg1, arg2);
|
|
1784
|
+
return ret;
|
|
1785
|
+
},
|
|
1786
|
+
__wbg_set_headers_50fc01786240a440: function(arg0, arg1) {
|
|
1801
1787
|
arg0.headers = arg1;
|
|
1802
1788
|
},
|
|
1803
|
-
|
|
1789
|
+
__wbg_set_integrity_5c3b8dfca7ecca82: function(arg0, arg1, arg2) {
|
|
1804
1790
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
1805
1791
|
},
|
|
1806
|
-
|
|
1792
|
+
__wbg_set_method_c9f1f985f6b6c427: function(arg0, arg1, arg2) {
|
|
1807
1793
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1808
1794
|
},
|
|
1809
|
-
|
|
1795
|
+
__wbg_set_mode_5e08d503428c06b9: function(arg0, arg1) {
|
|
1810
1796
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1811
1797
|
},
|
|
1812
|
-
|
|
1798
|
+
__wbg_set_redirect_af80b8bace117f0e: function(arg0, arg1) {
|
|
1813
1799
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1814
1800
|
},
|
|
1815
|
-
|
|
1801
|
+
__wbg_set_referrer_478d9a69d0d97a98: function(arg0, arg1, arg2) {
|
|
1816
1802
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1817
1803
|
},
|
|
1818
|
-
|
|
1804
|
+
__wbg_set_referrer_policy_84fedaa88bc9d667: function(arg0, arg1) {
|
|
1819
1805
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1820
1806
|
},
|
|
1821
|
-
|
|
1807
|
+
__wbg_set_signal_1d4e73c2305a0e7c: function(arg0, arg1) {
|
|
1822
1808
|
arg0.signal = arg1;
|
|
1823
1809
|
},
|
|
1824
|
-
|
|
1810
|
+
__wbg_signal_fdc54643b47bf85b: function(arg0) {
|
|
1825
1811
|
const ret = arg0.signal;
|
|
1826
1812
|
return ret;
|
|
1827
1813
|
},
|
|
1828
|
-
|
|
1829
|
-
const ret = typeof
|
|
1814
|
+
__wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
|
|
1815
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1830
1816
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1831
1817
|
},
|
|
1832
|
-
|
|
1833
|
-
const ret = typeof
|
|
1818
|
+
__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
|
|
1819
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1834
1820
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1835
1821
|
},
|
|
1836
|
-
|
|
1822
|
+
__wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
|
|
1837
1823
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1838
1824
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1839
1825
|
},
|
|
1840
|
-
|
|
1826
|
+
__wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
|
|
1841
1827
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1842
1828
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1843
1829
|
},
|
|
1844
|
-
|
|
1830
|
+
__wbg_status_43e0d2f15b22d69f: function(arg0) {
|
|
1845
1831
|
const ret = arg0.status;
|
|
1846
1832
|
return ret;
|
|
1847
1833
|
},
|
|
1848
|
-
|
|
1834
|
+
__wbg_subarray_f8ca46a25b1f5e0d: function(arg0, arg1, arg2) {
|
|
1849
1835
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1850
1836
|
return ret;
|
|
1851
1837
|
},
|
|
1852
|
-
|
|
1838
|
+
__wbg_text_595ef75535aa25c1: function() { return handleError(function (arg0) {
|
|
1853
1839
|
const ret = arg0.text();
|
|
1854
1840
|
return ret;
|
|
1855
1841
|
}, arguments); },
|
|
1856
|
-
|
|
1842
|
+
__wbg_then_792e0c862b060889: function(arg0, arg1, arg2) {
|
|
1857
1843
|
const ret = arg0.then(arg1, arg2);
|
|
1858
1844
|
return ret;
|
|
1859
1845
|
},
|
|
1860
|
-
|
|
1846
|
+
__wbg_then_8e16ee11f05e4827: function(arg0, arg1) {
|
|
1861
1847
|
const ret = arg0.then(arg1);
|
|
1862
1848
|
return ret;
|
|
1863
1849
|
},
|
|
1864
|
-
|
|
1850
|
+
__wbg_toString_306ed0b9f320c1ca: function(arg0) {
|
|
1865
1851
|
const ret = arg0.toString();
|
|
1866
1852
|
return ret;
|
|
1867
1853
|
},
|
|
1868
|
-
|
|
1854
|
+
__wbg_trace_6a5731c8f9d2bfdf: function(arg0) {
|
|
1869
1855
|
console.trace(...arg0);
|
|
1870
1856
|
},
|
|
1871
|
-
|
|
1857
|
+
__wbg_url_2bf741820e6563a0: function(arg0, arg1) {
|
|
1872
1858
|
const ret = arg1.url;
|
|
1873
1859
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1874
1860
|
const len1 = WASM_VECTOR_LEN;
|
|
1875
1861
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1876
1862
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1877
1863
|
},
|
|
1878
|
-
|
|
1864
|
+
__wbg_value_ee3a06f4579184fa: function(arg0) {
|
|
1879
1865
|
const ret = arg0.value;
|
|
1880
1866
|
return ret;
|
|
1881
1867
|
},
|
|
@@ -1883,31 +1869,31 @@ function __wbg_get_imports() {
|
|
|
1883
1869
|
const ret = arg0.versions;
|
|
1884
1870
|
return ret;
|
|
1885
1871
|
},
|
|
1886
|
-
|
|
1872
|
+
__wbg_view_701664ffb3b1ce67: function(arg0) {
|
|
1887
1873
|
const ret = arg0.view;
|
|
1888
1874
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1889
1875
|
},
|
|
1890
|
-
|
|
1876
|
+
__wbg_warn_2dcbaf81b6d99110: function(arg0) {
|
|
1891
1877
|
console.warn(...arg0);
|
|
1892
1878
|
},
|
|
1893
1879
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1894
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1895
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1880
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2214, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1881
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h10797b50422db1d9);
|
|
1896
1882
|
return ret;
|
|
1897
1883
|
},
|
|
1898
1884
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1899
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1900
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1885
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 650, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1886
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc1f7fa9b168b3277);
|
|
1901
1887
|
return ret;
|
|
1902
1888
|
},
|
|
1903
1889
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1904
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1905
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1890
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 606, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1891
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdeea4964d1197885);
|
|
1906
1892
|
return ret;
|
|
1907
1893
|
},
|
|
1908
1894
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1909
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1910
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1895
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 762, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1896
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1de102d8396d84e7);
|
|
1911
1897
|
return ret;
|
|
1912
1898
|
},
|
|
1913
1899
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -1951,27 +1937,27 @@ function __wbg_get_imports() {
|
|
|
1951
1937
|
};
|
|
1952
1938
|
}
|
|
1953
1939
|
|
|
1954
|
-
function
|
|
1955
|
-
wasm.
|
|
1940
|
+
function wasm_bindgen__convert__closures_____invoke__hdeea4964d1197885(arg0, arg1) {
|
|
1941
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hdeea4964d1197885(arg0, arg1);
|
|
1956
1942
|
}
|
|
1957
1943
|
|
|
1958
|
-
function
|
|
1959
|
-
wasm.
|
|
1944
|
+
function wasm_bindgen__convert__closures_____invoke__h1de102d8396d84e7(arg0, arg1) {
|
|
1945
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1de102d8396d84e7(arg0, arg1);
|
|
1960
1946
|
}
|
|
1961
1947
|
|
|
1962
|
-
function
|
|
1963
|
-
wasm.
|
|
1948
|
+
function wasm_bindgen__convert__closures_____invoke__hc1f7fa9b168b3277(arg0, arg1, arg2) {
|
|
1949
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc1f7fa9b168b3277(arg0, arg1, arg2);
|
|
1964
1950
|
}
|
|
1965
1951
|
|
|
1966
|
-
function
|
|
1967
|
-
const ret = wasm.
|
|
1952
|
+
function wasm_bindgen__convert__closures_____invoke__h10797b50422db1d9(arg0, arg1, arg2) {
|
|
1953
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h10797b50422db1d9(arg0, arg1, arg2);
|
|
1968
1954
|
if (ret[1]) {
|
|
1969
1955
|
throw takeFromExternrefTable0(ret[0]);
|
|
1970
1956
|
}
|
|
1971
1957
|
}
|
|
1972
1958
|
|
|
1973
|
-
function
|
|
1974
|
-
wasm.
|
|
1959
|
+
function wasm_bindgen__convert__closures_____invoke__h034cae6b5dd12778(arg0, arg1, arg2, arg3) {
|
|
1960
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h034cae6b5dd12778(arg0, arg1, arg2, arg3);
|
|
1975
1961
|
}
|
|
1976
1962
|
|
|
1977
1963
|
|
|
@@ -2229,7 +2215,15 @@ function takeFromExternrefTable0(idx) {
|
|
|
2229
2215
|
|
|
2230
2216
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2231
2217
|
cachedTextDecoder.decode();
|
|
2218
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2219
|
+
let numBytesDecoded = 0;
|
|
2232
2220
|
function decodeText(ptr, len) {
|
|
2221
|
+
numBytesDecoded += len;
|
|
2222
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2223
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2224
|
+
cachedTextDecoder.decode();
|
|
2225
|
+
numBytesDecoded = len;
|
|
2226
|
+
}
|
|
2233
2227
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2234
2228
|
}
|
|
2235
2229
|
|
|
@@ -2248,8 +2242,95 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2248
2242
|
|
|
2249
2243
|
let WASM_VECTOR_LEN = 0;
|
|
2250
2244
|
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2245
|
+
let wasmModule, wasm;
|
|
2246
|
+
function __wbg_finalize_init(instance, module) {
|
|
2247
|
+
wasm = instance.exports;
|
|
2248
|
+
wasmModule = module;
|
|
2249
|
+
cachedDataViewMemory0 = null;
|
|
2250
|
+
cachedUint8ArrayMemory0 = null;
|
|
2251
|
+
wasm.__wbindgen_start();
|
|
2252
|
+
return wasm;
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
async function __wbg_load(module, imports) {
|
|
2256
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
2257
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2258
|
+
try {
|
|
2259
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2260
|
+
} catch (e) {
|
|
2261
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
2262
|
+
|
|
2263
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2264
|
+
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);
|
|
2265
|
+
|
|
2266
|
+
} else { throw e; }
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
const bytes = await module.arrayBuffer();
|
|
2271
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
2272
|
+
} else {
|
|
2273
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
2274
|
+
|
|
2275
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
2276
|
+
return { instance, module };
|
|
2277
|
+
} else {
|
|
2278
|
+
return instance;
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
function expectedResponseType(type) {
|
|
2283
|
+
switch (type) {
|
|
2284
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
2285
|
+
}
|
|
2286
|
+
return false;
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
function initSync(module) {
|
|
2291
|
+
if (wasm !== undefined) return wasm;
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
if (module !== undefined) {
|
|
2295
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2296
|
+
({module} = module)
|
|
2297
|
+
} else {
|
|
2298
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
const imports = __wbg_get_imports();
|
|
2303
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
2304
|
+
module = new WebAssembly.Module(module);
|
|
2305
|
+
}
|
|
2306
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
2307
|
+
return __wbg_finalize_init(instance, module);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
async function __wbg_init(module_or_path) {
|
|
2311
|
+
if (wasm !== undefined) return wasm;
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
if (module_or_path !== undefined) {
|
|
2315
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2316
|
+
({module_or_path} = module_or_path)
|
|
2317
|
+
} else {
|
|
2318
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
if (module_or_path === undefined) {
|
|
2323
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
2324
|
+
}
|
|
2325
|
+
const imports = __wbg_get_imports();
|
|
2326
|
+
|
|
2327
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2328
|
+
module_or_path = fetch(module_or_path);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2332
|
+
|
|
2333
|
+
return __wbg_finalize_init(instance, module);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
export { initSync, __wbg_init as default };
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
|
+
"type": "module",
|
|
3
4
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
4
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.363",
|
|
5
6
|
"license": "Apache-2.0",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
@@ -13,5 +14,8 @@
|
|
|
13
14
|
"cedarling_wasm.d.ts"
|
|
14
15
|
],
|
|
15
16
|
"main": "cedarling_wasm.js",
|
|
16
|
-
"types": "cedarling_wasm.d.ts"
|
|
17
|
+
"types": "cedarling_wasm.d.ts",
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"./snippets/*"
|
|
20
|
+
]
|
|
17
21
|
}
|