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