@janssenproject/cedarling_wasm 1.11.0-nodejs → 1.12.0-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 +6 -0
- package/cedarling_wasm.js +270 -260
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export function init(config: any): Promise<Cedarling>;
|
|
|
12
12
|
export class AuthorizeResult {
|
|
13
13
|
private constructor();
|
|
14
14
|
free(): void;
|
|
15
|
+
[Symbol.dispose](): void;
|
|
15
16
|
/**
|
|
16
17
|
* Convert `AuthorizeResult` to json string value
|
|
17
18
|
*/
|
|
@@ -53,6 +54,7 @@ export class AuthorizeResult {
|
|
|
53
54
|
export class AuthorizeResultResponse {
|
|
54
55
|
private constructor();
|
|
55
56
|
free(): void;
|
|
57
|
+
[Symbol.dispose](): void;
|
|
56
58
|
/**
|
|
57
59
|
* Authorization decision
|
|
58
60
|
*/
|
|
@@ -68,6 +70,7 @@ export class AuthorizeResultResponse {
|
|
|
68
70
|
export class Cedarling {
|
|
69
71
|
private constructor();
|
|
70
72
|
free(): void;
|
|
73
|
+
[Symbol.dispose](): void;
|
|
71
74
|
/**
|
|
72
75
|
* Create a new instance of the Cedarling application.
|
|
73
76
|
* Assume that config is `Object`
|
|
@@ -133,6 +136,7 @@ export class Cedarling {
|
|
|
133
136
|
export class Diagnostics {
|
|
134
137
|
private constructor();
|
|
135
138
|
free(): void;
|
|
139
|
+
[Symbol.dispose](): void;
|
|
136
140
|
/**
|
|
137
141
|
* `PolicyId`s of the policies that contributed to the decision.
|
|
138
142
|
* If no policies applied to the request, this set will be empty.
|
|
@@ -148,6 +152,7 @@ export class Diagnostics {
|
|
|
148
152
|
}
|
|
149
153
|
export class JsJsonLogic {
|
|
150
154
|
free(): void;
|
|
155
|
+
[Symbol.dispose](): void;
|
|
151
156
|
constructor();
|
|
152
157
|
apply(logic: any, data: any): any;
|
|
153
158
|
}
|
|
@@ -160,6 +165,7 @@ export class JsJsonLogic {
|
|
|
160
165
|
export class PolicyEvaluationError {
|
|
161
166
|
private constructor();
|
|
162
167
|
free(): void;
|
|
168
|
+
[Symbol.dispose](): void;
|
|
163
169
|
/**
|
|
164
170
|
* Id of the policy with an error
|
|
165
171
|
*/
|
package/cedarling_wasm.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
let wasm;
|
|
5
|
-
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
4
|
|
|
7
5
|
let cachedUint8ArrayMemory0 = null;
|
|
8
6
|
|
|
@@ -28,20 +26,18 @@ function getStringFromWasm0(ptr, len) {
|
|
|
28
26
|
|
|
29
27
|
let WASM_VECTOR_LEN = 0;
|
|
30
28
|
|
|
31
|
-
const cachedTextEncoder = new TextEncoder(
|
|
29
|
+
const cachedTextEncoder = new TextEncoder();
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
32
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
33
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
34
|
+
view.set(buf);
|
|
35
|
+
return {
|
|
36
|
+
read: arg.length,
|
|
37
|
+
written: buf.length
|
|
38
|
+
};
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
: function (arg, view) {
|
|
38
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
39
|
-
view.set(buf);
|
|
40
|
-
return {
|
|
41
|
-
read: arg.length,
|
|
42
|
-
written: buf.length
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
41
|
|
|
46
42
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
47
43
|
|
|
@@ -72,7 +68,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
72
68
|
}
|
|
73
69
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
74
70
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
75
|
-
const ret =
|
|
71
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
76
72
|
|
|
77
73
|
offset += ret.written;
|
|
78
74
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -115,37 +111,6 @@ function isLikeNone(x) {
|
|
|
115
111
|
return x === undefined || x === null;
|
|
116
112
|
}
|
|
117
113
|
|
|
118
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
119
|
-
? { register: () => {}, unregister: () => {} }
|
|
120
|
-
: new FinalizationRegistry(state => {
|
|
121
|
-
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
125
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
126
|
-
const real = (...args) => {
|
|
127
|
-
// First up with a closure we increment the internal reference
|
|
128
|
-
// count. This ensures that the Rust closure environment won't
|
|
129
|
-
// be deallocated while we're invoking it.
|
|
130
|
-
state.cnt++;
|
|
131
|
-
const a = state.a;
|
|
132
|
-
state.a = 0;
|
|
133
|
-
try {
|
|
134
|
-
return f(a, state.b, ...args);
|
|
135
|
-
} finally {
|
|
136
|
-
if (--state.cnt === 0) {
|
|
137
|
-
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
138
|
-
CLOSURE_DTORS.unregister(state);
|
|
139
|
-
} else {
|
|
140
|
-
state.a = a;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
real.original = state;
|
|
145
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
146
|
-
return real;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
114
|
function debugString(val) {
|
|
150
115
|
// primitive types
|
|
151
116
|
const type = typeof val;
|
|
@@ -210,13 +175,47 @@ function debugString(val) {
|
|
|
210
175
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
211
176
|
return className;
|
|
212
177
|
}
|
|
178
|
+
|
|
179
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
180
|
+
? { register: () => {}, unregister: () => {} }
|
|
181
|
+
: new FinalizationRegistry(
|
|
182
|
+
state => {
|
|
183
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
188
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
189
|
+
const real = (...args) => {
|
|
190
|
+
|
|
191
|
+
// First up with a closure we increment the internal reference
|
|
192
|
+
// count. This ensures that the Rust closure environment won't
|
|
193
|
+
// be deallocated while we're invoking it.
|
|
194
|
+
state.cnt++;
|
|
195
|
+
const a = state.a;
|
|
196
|
+
state.a = 0;
|
|
197
|
+
try {
|
|
198
|
+
return f(a, state.b, ...args);
|
|
199
|
+
} finally {
|
|
200
|
+
if (--state.cnt === 0) {
|
|
201
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
202
|
+
CLOSURE_DTORS.unregister(state);
|
|
203
|
+
} else {
|
|
204
|
+
state.a = a;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
real.original = state;
|
|
209
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
210
|
+
return real;
|
|
211
|
+
}
|
|
213
212
|
/**
|
|
214
213
|
* Create a new instance of the Cedarling application.
|
|
215
214
|
* This function can take as config parameter the eather `Map` other `Object`
|
|
216
215
|
* @param {any} config
|
|
217
216
|
* @returns {Promise<Cedarling>}
|
|
218
217
|
*/
|
|
219
|
-
|
|
218
|
+
exports.init = function(config) {
|
|
220
219
|
const ret = wasm.init(config);
|
|
221
220
|
return ret;
|
|
222
221
|
};
|
|
@@ -243,16 +242,16 @@ function _assertClass(instance, klass) {
|
|
|
243
242
|
throw new Error(`expected instance of ${klass.name}`);
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
|
-
function
|
|
247
|
-
wasm.
|
|
245
|
+
function __wbg_adapter_12(arg0, arg1) {
|
|
246
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he6c7a67b2aad2b08(arg0, arg1);
|
|
248
247
|
}
|
|
249
248
|
|
|
250
|
-
function
|
|
251
|
-
wasm.
|
|
249
|
+
function __wbg_adapter_17(arg0, arg1, arg2) {
|
|
250
|
+
wasm.closure549_externref_shim(arg0, arg1, arg2);
|
|
252
251
|
}
|
|
253
252
|
|
|
254
|
-
function
|
|
255
|
-
wasm.
|
|
253
|
+
function __wbg_adapter_212(arg0, arg1, arg2, arg3) {
|
|
254
|
+
wasm.closure1838_externref_shim(arg0, arg1, arg2, arg3);
|
|
256
255
|
}
|
|
257
256
|
|
|
258
257
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -404,7 +403,9 @@ class AuthorizeResult {
|
|
|
404
403
|
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
405
404
|
}
|
|
406
405
|
}
|
|
407
|
-
|
|
406
|
+
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
407
|
+
|
|
408
|
+
exports.AuthorizeResult = AuthorizeResult;
|
|
408
409
|
|
|
409
410
|
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
410
411
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -451,7 +452,9 @@ class AuthorizeResultResponse {
|
|
|
451
452
|
return Diagnostics.__wrap(ret);
|
|
452
453
|
}
|
|
453
454
|
}
|
|
454
|
-
|
|
455
|
+
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
456
|
+
|
|
457
|
+
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
455
458
|
|
|
456
459
|
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
457
460
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -620,7 +623,9 @@ class Cedarling {
|
|
|
620
623
|
return ret;
|
|
621
624
|
}
|
|
622
625
|
}
|
|
623
|
-
|
|
626
|
+
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
627
|
+
|
|
628
|
+
exports.Cedarling = Cedarling;
|
|
624
629
|
|
|
625
630
|
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
626
631
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -677,7 +682,9 @@ class Diagnostics {
|
|
|
677
682
|
return v1;
|
|
678
683
|
}
|
|
679
684
|
}
|
|
680
|
-
|
|
685
|
+
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
686
|
+
|
|
687
|
+
exports.Diagnostics = Diagnostics;
|
|
681
688
|
|
|
682
689
|
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
683
690
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -715,7 +722,9 @@ class JsJsonLogic {
|
|
|
715
722
|
return takeFromExternrefTable0(ret[0]);
|
|
716
723
|
}
|
|
717
724
|
}
|
|
718
|
-
|
|
725
|
+
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
726
|
+
|
|
727
|
+
exports.JsJsonLogic = JsJsonLogic;
|
|
719
728
|
|
|
720
729
|
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
721
730
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -780,14 +789,21 @@ class PolicyEvaluationError {
|
|
|
780
789
|
}
|
|
781
790
|
}
|
|
782
791
|
}
|
|
783
|
-
|
|
792
|
+
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
793
|
+
|
|
794
|
+
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
784
795
|
|
|
785
|
-
|
|
796
|
+
exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
786
797
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
787
798
|
return ret;
|
|
788
799
|
};
|
|
789
800
|
|
|
790
|
-
|
|
801
|
+
exports.__wbg_Number_998bea33bd87c3e0 = function(arg0) {
|
|
802
|
+
const ret = Number(arg0);
|
|
803
|
+
return ret;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
791
807
|
const ret = String(arg1);
|
|
792
808
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
793
809
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -795,140 +811,135 @@ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
|
795
811
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
796
812
|
};
|
|
797
813
|
|
|
798
|
-
|
|
814
|
+
exports.__wbg_abort_67e1b49bf6614565 = function(arg0) {
|
|
799
815
|
arg0.abort();
|
|
800
816
|
};
|
|
801
817
|
|
|
802
|
-
|
|
818
|
+
exports.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
|
|
803
819
|
arg0.abort(arg1);
|
|
804
820
|
};
|
|
805
821
|
|
|
806
|
-
|
|
822
|
+
exports.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
807
823
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
808
824
|
}, arguments) };
|
|
809
825
|
|
|
810
|
-
|
|
826
|
+
exports.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
|
|
811
827
|
const ret = arg0.arrayBuffer();
|
|
812
828
|
return ret;
|
|
813
829
|
}, arguments) };
|
|
814
830
|
|
|
815
|
-
|
|
831
|
+
exports.__wbg_authorizeresult_new = function(arg0) {
|
|
816
832
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
817
833
|
return ret;
|
|
818
834
|
};
|
|
819
835
|
|
|
820
|
-
|
|
821
|
-
const ret = arg0.
|
|
822
|
-
return ret;
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
module.exports.__wbg_call_f2db6205e5c51dc8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
826
|
-
const ret = arg0.call(arg1, arg2);
|
|
836
|
+
exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
837
|
+
const ret = arg0.call(arg1);
|
|
827
838
|
return ret;
|
|
828
839
|
}, arguments) };
|
|
829
840
|
|
|
830
|
-
|
|
831
|
-
const ret = arg0.call(arg1);
|
|
841
|
+
exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
842
|
+
const ret = arg0.call(arg1, arg2);
|
|
832
843
|
return ret;
|
|
833
844
|
}, arguments) };
|
|
834
845
|
|
|
835
|
-
|
|
846
|
+
exports.__wbg_cedarling_new = function(arg0) {
|
|
836
847
|
const ret = Cedarling.__wrap(arg0);
|
|
837
848
|
return ret;
|
|
838
849
|
};
|
|
839
850
|
|
|
840
|
-
|
|
851
|
+
exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
|
|
841
852
|
const ret = clearTimeout(arg0);
|
|
842
853
|
return ret;
|
|
843
854
|
};
|
|
844
855
|
|
|
845
|
-
|
|
856
|
+
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
846
857
|
const ret = arg0.crypto;
|
|
847
858
|
return ret;
|
|
848
859
|
};
|
|
849
860
|
|
|
850
|
-
|
|
861
|
+
exports.__wbg_debug_3bc8bd5a0fc361c6 = function(arg0) {
|
|
851
862
|
console.debug(...arg0);
|
|
852
863
|
};
|
|
853
864
|
|
|
854
|
-
|
|
865
|
+
exports.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
|
|
855
866
|
const ret = arg0.done;
|
|
856
867
|
return ret;
|
|
857
868
|
};
|
|
858
869
|
|
|
859
|
-
|
|
870
|
+
exports.__wbg_entries_2be2f15bd5554996 = function(arg0) {
|
|
860
871
|
const ret = Object.entries(arg0);
|
|
861
872
|
return ret;
|
|
862
873
|
};
|
|
863
874
|
|
|
864
|
-
|
|
875
|
+
exports.__wbg_entries_7a842f4caac72cb9 = function(arg0) {
|
|
865
876
|
const ret = arg0.entries();
|
|
866
877
|
return ret;
|
|
867
878
|
};
|
|
868
879
|
|
|
869
|
-
|
|
880
|
+
exports.__wbg_error_3e65ef00ce5a8b19 = function(arg0) {
|
|
870
881
|
console.error(...arg0);
|
|
871
882
|
};
|
|
872
883
|
|
|
873
|
-
|
|
884
|
+
exports.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
|
|
874
885
|
const ret = arg0.fetch(arg1);
|
|
875
886
|
return ret;
|
|
876
887
|
};
|
|
877
888
|
|
|
878
|
-
|
|
889
|
+
exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
|
|
879
890
|
const ret = fetch(arg0);
|
|
880
891
|
return ret;
|
|
881
892
|
};
|
|
882
893
|
|
|
883
|
-
|
|
894
|
+
exports.__wbg_fromEntries_90d06c670ebbfb45 = function() { return handleError(function (arg0) {
|
|
884
895
|
const ret = Object.fromEntries(arg0);
|
|
885
896
|
return ret;
|
|
886
897
|
}, arguments) };
|
|
887
898
|
|
|
888
|
-
|
|
899
|
+
exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
889
900
|
arg0.getRandomValues(arg1);
|
|
890
901
|
}, arguments) };
|
|
891
902
|
|
|
892
|
-
|
|
903
|
+
exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
|
|
893
904
|
const ret = arg0.getTime();
|
|
894
905
|
return ret;
|
|
895
906
|
};
|
|
896
907
|
|
|
897
|
-
|
|
908
|
+
exports.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
|
|
898
909
|
const ret = arg0.getTimezoneOffset();
|
|
899
910
|
return ret;
|
|
900
911
|
};
|
|
901
912
|
|
|
902
|
-
|
|
903
|
-
const ret = Reflect.get(arg0, arg1);
|
|
904
|
-
return ret;
|
|
905
|
-
}, arguments) };
|
|
906
|
-
|
|
907
|
-
module.exports.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
|
|
913
|
+
exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
|
|
908
914
|
const ret = arg0[arg1 >>> 0];
|
|
909
915
|
return ret;
|
|
910
916
|
};
|
|
911
917
|
|
|
912
|
-
|
|
918
|
+
exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
|
|
919
|
+
const ret = Reflect.get(arg0, arg1);
|
|
920
|
+
return ret;
|
|
921
|
+
}, arguments) };
|
|
922
|
+
|
|
923
|
+
exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
913
924
|
const ret = arg0[arg1];
|
|
914
925
|
return ret;
|
|
915
926
|
};
|
|
916
927
|
|
|
917
|
-
|
|
928
|
+
exports.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
|
|
918
929
|
const ret = Reflect.has(arg0, arg1);
|
|
919
930
|
return ret;
|
|
920
931
|
}, arguments) };
|
|
921
932
|
|
|
922
|
-
|
|
933
|
+
exports.__wbg_headers_29fec3c72865cd75 = function(arg0) {
|
|
923
934
|
const ret = arg0.headers;
|
|
924
935
|
return ret;
|
|
925
936
|
};
|
|
926
937
|
|
|
927
|
-
|
|
938
|
+
exports.__wbg_info_8fdedfc14c52e0d2 = function(arg0) {
|
|
928
939
|
console.info(...arg0);
|
|
929
940
|
};
|
|
930
941
|
|
|
931
|
-
|
|
942
|
+
exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
|
|
932
943
|
let result;
|
|
933
944
|
try {
|
|
934
945
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -939,7 +950,7 @@ module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
|
|
|
939
950
|
return ret;
|
|
940
951
|
};
|
|
941
952
|
|
|
942
|
-
|
|
953
|
+
exports.__wbg_instanceof_Array_0b7383f4189e69c2 = function(arg0) {
|
|
943
954
|
let result;
|
|
944
955
|
try {
|
|
945
956
|
result = arg0 instanceof Array;
|
|
@@ -950,7 +961,7 @@ module.exports.__wbg_instanceof_Array_b740b533930f065b = function(arg0) {
|
|
|
950
961
|
return ret;
|
|
951
962
|
};
|
|
952
963
|
|
|
953
|
-
|
|
964
|
+
exports.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
|
|
954
965
|
let result;
|
|
955
966
|
try {
|
|
956
967
|
result = arg0 instanceof Map;
|
|
@@ -961,7 +972,7 @@ module.exports.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
|
|
|
961
972
|
return ret;
|
|
962
973
|
};
|
|
963
974
|
|
|
964
|
-
|
|
975
|
+
exports.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
|
|
965
976
|
let result;
|
|
966
977
|
try {
|
|
967
978
|
result = arg0 instanceof Response;
|
|
@@ -972,7 +983,7 @@ module.exports.__wbg_instanceof_Response_e80ce8b7a2b968d2 = function(arg0) {
|
|
|
972
983
|
return ret;
|
|
973
984
|
};
|
|
974
985
|
|
|
975
|
-
|
|
986
|
+
exports.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
|
|
976
987
|
let result;
|
|
977
988
|
try {
|
|
978
989
|
result = arg0 instanceof Uint8Array;
|
|
@@ -983,88 +994,68 @@ module.exports.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
|
|
|
983
994
|
return ret;
|
|
984
995
|
};
|
|
985
996
|
|
|
986
|
-
|
|
997
|
+
exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
|
|
987
998
|
const ret = Array.isArray(arg0);
|
|
988
999
|
return ret;
|
|
989
1000
|
};
|
|
990
1001
|
|
|
991
|
-
|
|
1002
|
+
exports.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
|
|
992
1003
|
const ret = Number.isSafeInteger(arg0);
|
|
993
1004
|
return ret;
|
|
994
1005
|
};
|
|
995
1006
|
|
|
996
|
-
|
|
1007
|
+
exports.__wbg_iterator_f370b34483c71a1c = function() {
|
|
997
1008
|
const ret = Symbol.iterator;
|
|
998
1009
|
return ret;
|
|
999
1010
|
};
|
|
1000
1011
|
|
|
1001
|
-
|
|
1012
|
+
exports.__wbg_keys_ef52390b2ae0e714 = function(arg0) {
|
|
1002
1013
|
const ret = Object.keys(arg0);
|
|
1003
1014
|
return ret;
|
|
1004
1015
|
};
|
|
1005
1016
|
|
|
1006
|
-
|
|
1017
|
+
exports.__wbg_length_186546c51cd61acd = function(arg0) {
|
|
1007
1018
|
const ret = arg0.length;
|
|
1008
1019
|
return ret;
|
|
1009
1020
|
};
|
|
1010
1021
|
|
|
1011
|
-
|
|
1022
|
+
exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
1012
1023
|
const ret = arg0.length;
|
|
1013
1024
|
return ret;
|
|
1014
1025
|
};
|
|
1015
1026
|
|
|
1016
|
-
|
|
1027
|
+
exports.__wbg_log_77195989eb27ffe5 = function(arg0) {
|
|
1017
1028
|
console.log(...arg0);
|
|
1018
1029
|
};
|
|
1019
1030
|
|
|
1020
|
-
|
|
1031
|
+
exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1021
1032
|
const ret = arg0.msCrypto;
|
|
1022
1033
|
return ret;
|
|
1023
1034
|
};
|
|
1024
1035
|
|
|
1025
|
-
|
|
1036
|
+
exports.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
1026
1037
|
const ret = new Date();
|
|
1027
1038
|
return ret;
|
|
1028
1039
|
};
|
|
1029
1040
|
|
|
1030
|
-
|
|
1041
|
+
exports.__wbg_new_19c25a3f2fa63a02 = function() {
|
|
1031
1042
|
const ret = new Object();
|
|
1032
1043
|
return ret;
|
|
1033
1044
|
};
|
|
1034
1045
|
|
|
1035
|
-
|
|
1036
|
-
const ret = new AbortController();
|
|
1037
|
-
return ret;
|
|
1038
|
-
}, arguments) };
|
|
1039
|
-
|
|
1040
|
-
module.exports.__wbg_new_4796e1cd2eb9ea6d = function() { return handleError(function () {
|
|
1041
|
-
const ret = new Headers();
|
|
1042
|
-
return ret;
|
|
1043
|
-
}, arguments) };
|
|
1044
|
-
|
|
1045
|
-
module.exports.__wbg_new_58353953ad2097cc = function() {
|
|
1046
|
+
exports.__wbg_new_1f3a344cf3123716 = function() {
|
|
1046
1047
|
const ret = new Array();
|
|
1047
1048
|
return ret;
|
|
1048
1049
|
};
|
|
1049
1050
|
|
|
1050
|
-
|
|
1051
|
-
const ret = new Date(arg0);
|
|
1052
|
-
return ret;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
module.exports.__wbg_new_a979b4b45bd55c7f = function() {
|
|
1056
|
-
const ret = new Map();
|
|
1057
|
-
return ret;
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
module.exports.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
|
|
1051
|
+
exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
1061
1052
|
try {
|
|
1062
1053
|
var state0 = {a: arg0, b: arg1};
|
|
1063
1054
|
var cb0 = (arg0, arg1) => {
|
|
1064
1055
|
const a = state0.a;
|
|
1065
1056
|
state0.a = 0;
|
|
1066
1057
|
try {
|
|
1067
|
-
return
|
|
1058
|
+
return __wbg_adapter_212(a, state0.b, arg0, arg1);
|
|
1068
1059
|
} finally {
|
|
1069
1060
|
state0.a = a;
|
|
1070
1061
|
}
|
|
@@ -1076,209 +1067,224 @@ module.exports.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
|
|
|
1076
1067
|
}
|
|
1077
1068
|
};
|
|
1078
1069
|
|
|
1079
|
-
|
|
1070
|
+
exports.__wbg_new_2ff1f68f3676ea53 = function() {
|
|
1071
|
+
const ret = new Map();
|
|
1072
|
+
return ret;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
exports.__wbg_new_5a2ae4557f92b50e = function(arg0) {
|
|
1076
|
+
const ret = new Date(arg0);
|
|
1077
|
+
return ret;
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
|
|
1080
1081
|
const ret = new Uint8Array(arg0);
|
|
1081
1082
|
return ret;
|
|
1082
1083
|
};
|
|
1083
1084
|
|
|
1084
|
-
|
|
1085
|
+
exports.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
|
|
1086
|
+
const ret = new AbortController();
|
|
1087
|
+
return ret;
|
|
1088
|
+
}, arguments) };
|
|
1089
|
+
|
|
1090
|
+
exports.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
|
|
1091
|
+
const ret = new Headers();
|
|
1092
|
+
return ret;
|
|
1093
|
+
}, arguments) };
|
|
1094
|
+
|
|
1095
|
+
exports.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
|
|
1085
1096
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1086
1097
|
return ret;
|
|
1087
1098
|
};
|
|
1088
1099
|
|
|
1089
|
-
|
|
1100
|
+
exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
1090
1101
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1091
1102
|
return ret;
|
|
1092
1103
|
};
|
|
1093
1104
|
|
|
1094
|
-
|
|
1105
|
+
exports.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
|
|
1095
1106
|
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1096
1107
|
return ret;
|
|
1097
1108
|
};
|
|
1098
1109
|
|
|
1099
|
-
|
|
1100
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1101
|
-
return ret;
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
module.exports.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
|
|
1110
|
+
exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
1105
1111
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1106
1112
|
return ret;
|
|
1107
1113
|
};
|
|
1108
1114
|
|
|
1109
|
-
|
|
1115
|
+
exports.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1110
1116
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1111
1117
|
return ret;
|
|
1112
1118
|
}, arguments) };
|
|
1113
1119
|
|
|
1114
|
-
|
|
1120
|
+
exports.__wbg_next_5b3530e612fde77d = function(arg0) {
|
|
1115
1121
|
const ret = arg0.next;
|
|
1116
1122
|
return ret;
|
|
1117
1123
|
};
|
|
1118
1124
|
|
|
1119
|
-
|
|
1125
|
+
exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
1120
1126
|
const ret = arg0.next();
|
|
1121
1127
|
return ret;
|
|
1122
1128
|
}, arguments) };
|
|
1123
1129
|
|
|
1124
|
-
|
|
1130
|
+
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1125
1131
|
const ret = arg0.node;
|
|
1126
1132
|
return ret;
|
|
1127
1133
|
};
|
|
1128
1134
|
|
|
1129
|
-
|
|
1135
|
+
exports.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1130
1136
|
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1131
1137
|
return ret;
|
|
1132
1138
|
};
|
|
1133
1139
|
|
|
1134
|
-
|
|
1140
|
+
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1135
1141
|
const ret = arg0.process;
|
|
1136
1142
|
return ret;
|
|
1137
1143
|
};
|
|
1138
1144
|
|
|
1139
|
-
|
|
1145
|
+
exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
1146
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1149
|
+
exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
|
|
1140
1150
|
const ret = arg0.push(arg1);
|
|
1141
1151
|
return ret;
|
|
1142
1152
|
};
|
|
1143
1153
|
|
|
1144
|
-
|
|
1154
|
+
exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
|
|
1145
1155
|
queueMicrotask(arg0);
|
|
1146
1156
|
};
|
|
1147
1157
|
|
|
1148
|
-
|
|
1158
|
+
exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
|
|
1149
1159
|
const ret = arg0.queueMicrotask;
|
|
1150
1160
|
return ret;
|
|
1151
1161
|
};
|
|
1152
1162
|
|
|
1153
|
-
|
|
1163
|
+
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1154
1164
|
arg0.randomFillSync(arg1);
|
|
1155
1165
|
}, arguments) };
|
|
1156
1166
|
|
|
1157
|
-
|
|
1167
|
+
exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1158
1168
|
const ret = module.require;
|
|
1159
1169
|
return ret;
|
|
1160
1170
|
}, arguments) };
|
|
1161
1171
|
|
|
1162
|
-
|
|
1172
|
+
exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
|
|
1163
1173
|
const ret = Promise.resolve(arg0);
|
|
1164
1174
|
return ret;
|
|
1165
1175
|
};
|
|
1166
1176
|
|
|
1167
|
-
|
|
1177
|
+
exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
1168
1178
|
const ret = setTimeout(arg0, arg1);
|
|
1169
1179
|
return ret;
|
|
1170
1180
|
};
|
|
1171
1181
|
|
|
1172
|
-
|
|
1182
|
+
exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1173
1183
|
arg0[arg1] = arg2;
|
|
1174
1184
|
};
|
|
1175
1185
|
|
|
1176
|
-
|
|
1177
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
module.exports.__wbg_set_c43293f93a35998a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1186
|
+
exports.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1181
1187
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1182
1188
|
return ret;
|
|
1183
1189
|
}, arguments) };
|
|
1184
1190
|
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
return ret;
|
|
1191
|
+
exports.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
|
|
1192
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1188
1193
|
};
|
|
1189
1194
|
|
|
1190
|
-
|
|
1191
|
-
arg0.set(arg1, arg2
|
|
1195
|
+
exports.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
|
|
1196
|
+
const ret = arg0.set(arg1, arg2);
|
|
1197
|
+
return ret;
|
|
1192
1198
|
};
|
|
1193
1199
|
|
|
1194
|
-
|
|
1200
|
+
exports.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
|
|
1195
1201
|
arg0.body = arg1;
|
|
1196
1202
|
};
|
|
1197
1203
|
|
|
1198
|
-
|
|
1204
|
+
exports.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
|
|
1199
1205
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1200
1206
|
};
|
|
1201
1207
|
|
|
1202
|
-
|
|
1208
|
+
exports.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
|
|
1203
1209
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1204
1210
|
};
|
|
1205
1211
|
|
|
1206
|
-
|
|
1212
|
+
exports.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
|
|
1207
1213
|
arg0.headers = arg1;
|
|
1208
1214
|
};
|
|
1209
1215
|
|
|
1210
|
-
|
|
1216
|
+
exports.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
|
|
1211
1217
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1212
1218
|
};
|
|
1213
1219
|
|
|
1214
|
-
|
|
1220
|
+
exports.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
|
|
1215
1221
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1216
1222
|
};
|
|
1217
1223
|
|
|
1218
|
-
|
|
1224
|
+
exports.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
|
|
1219
1225
|
arg0.signal = arg1;
|
|
1220
1226
|
};
|
|
1221
1227
|
|
|
1222
|
-
|
|
1228
|
+
exports.__wbg_signal_da4d466ce86118b5 = function(arg0) {
|
|
1223
1229
|
const ret = arg0.signal;
|
|
1224
1230
|
return ret;
|
|
1225
1231
|
};
|
|
1226
1232
|
|
|
1227
|
-
|
|
1233
|
+
exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
1228
1234
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1229
1235
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1230
1236
|
};
|
|
1231
1237
|
|
|
1232
|
-
|
|
1238
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
1233
1239
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1234
1240
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1235
1241
|
};
|
|
1236
1242
|
|
|
1237
|
-
|
|
1243
|
+
exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
1238
1244
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1239
1245
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1240
1246
|
};
|
|
1241
1247
|
|
|
1242
|
-
|
|
1248
|
+
exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
1243
1249
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1244
1250
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1245
1251
|
};
|
|
1246
1252
|
|
|
1247
|
-
|
|
1253
|
+
exports.__wbg_status_3fea3036088621d6 = function(arg0) {
|
|
1248
1254
|
const ret = arg0.status;
|
|
1249
1255
|
return ret;
|
|
1250
1256
|
};
|
|
1251
1257
|
|
|
1252
|
-
|
|
1258
|
+
exports.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
|
|
1253
1259
|
const ret = JSON.stringify(arg0);
|
|
1254
1260
|
return ret;
|
|
1255
1261
|
}, arguments) };
|
|
1256
1262
|
|
|
1257
|
-
|
|
1263
|
+
exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
1258
1264
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1259
1265
|
return ret;
|
|
1260
1266
|
};
|
|
1261
1267
|
|
|
1262
|
-
|
|
1268
|
+
exports.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
|
|
1263
1269
|
const ret = arg0.text();
|
|
1264
1270
|
return ret;
|
|
1265
1271
|
}, arguments) };
|
|
1266
1272
|
|
|
1267
|
-
|
|
1273
|
+
exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
|
|
1268
1274
|
const ret = arg0.then(arg1, arg2);
|
|
1269
1275
|
return ret;
|
|
1270
1276
|
};
|
|
1271
1277
|
|
|
1272
|
-
|
|
1278
|
+
exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
1273
1279
|
const ret = arg0.then(arg1);
|
|
1274
1280
|
return ret;
|
|
1275
1281
|
};
|
|
1276
1282
|
|
|
1277
|
-
|
|
1283
|
+
exports.__wbg_trace_fe562a020dec3e6f = function(arg0) {
|
|
1278
1284
|
console.trace(...arg0);
|
|
1279
1285
|
};
|
|
1280
1286
|
|
|
1281
|
-
|
|
1287
|
+
exports.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
|
|
1282
1288
|
const ret = arg1.url;
|
|
1283
1289
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1284
1290
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1286,44 +1292,34 @@ module.exports.__wbg_url_e6ed869ea05b7a71 = function(arg0, arg1) {
|
|
|
1286
1292
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1287
1293
|
};
|
|
1288
1294
|
|
|
1289
|
-
|
|
1295
|
+
exports.__wbg_value_dd9372230531eade = function(arg0) {
|
|
1290
1296
|
const ret = arg0.value;
|
|
1291
1297
|
return ret;
|
|
1292
1298
|
};
|
|
1293
1299
|
|
|
1294
|
-
|
|
1300
|
+
exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1295
1301
|
const ret = arg0.versions;
|
|
1296
1302
|
return ret;
|
|
1297
1303
|
};
|
|
1298
1304
|
|
|
1299
|
-
|
|
1305
|
+
exports.__wbg_warn_3e0e93af109bb736 = function(arg0) {
|
|
1300
1306
|
console.warn(...arg0);
|
|
1301
1307
|
};
|
|
1302
1308
|
|
|
1303
|
-
|
|
1304
|
-
const ret = arg0;
|
|
1305
|
-
return ret;
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1309
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1310
|
-
return ret;
|
|
1311
|
-
};
|
|
1312
|
-
|
|
1313
|
-
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1309
|
+
exports.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
|
|
1314
1310
|
const v = arg1;
|
|
1315
1311
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1316
1312
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1317
1313
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1318
1314
|
};
|
|
1319
1315
|
|
|
1320
|
-
|
|
1316
|
+
exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
|
|
1321
1317
|
const v = arg0;
|
|
1322
|
-
const ret = typeof(v) === 'boolean' ?
|
|
1323
|
-
return ret;
|
|
1318
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1319
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1324
1320
|
};
|
|
1325
1321
|
|
|
1326
|
-
|
|
1322
|
+
exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
|
|
1327
1323
|
const obj = arg0.original;
|
|
1328
1324
|
if (obj.cnt-- == 1) {
|
|
1329
1325
|
obj.a = 0;
|
|
@@ -1333,17 +1329,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
1333
1329
|
return ret;
|
|
1334
1330
|
};
|
|
1335
1331
|
|
|
1336
|
-
|
|
1337
|
-
const ret = makeMutClosure(arg0, arg1, 498, __wbg_adapter_48);
|
|
1338
|
-
return ret;
|
|
1339
|
-
};
|
|
1340
|
-
|
|
1341
|
-
module.exports.__wbindgen_closure_wrapper4097 = function(arg0, arg1, arg2) {
|
|
1342
|
-
const ret = makeMutClosure(arg0, arg1, 544, __wbg_adapter_51);
|
|
1343
|
-
return ret;
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
|
-
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1332
|
+
exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
1347
1333
|
const ret = debugString(arg1);
|
|
1348
1334
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1349
1335
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1351,76 +1337,55 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
1351
1337
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1352
1338
|
};
|
|
1353
1339
|
|
|
1354
|
-
|
|
1340
|
+
exports.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
|
|
1355
1341
|
const ret = arg0 in arg1;
|
|
1356
1342
|
return ret;
|
|
1357
1343
|
};
|
|
1358
1344
|
|
|
1359
|
-
|
|
1360
|
-
const table = wasm.__wbindgen_export_4;
|
|
1361
|
-
const offset = table.grow(4);
|
|
1362
|
-
table.set(0, undefined);
|
|
1363
|
-
table.set(offset + 0, undefined);
|
|
1364
|
-
table.set(offset + 1, null);
|
|
1365
|
-
table.set(offset + 2, true);
|
|
1366
|
-
table.set(offset + 3, false);
|
|
1367
|
-
;
|
|
1368
|
-
};
|
|
1369
|
-
|
|
1370
|
-
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
1345
|
+
exports.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
|
|
1371
1346
|
const ret = typeof(arg0) === 'bigint';
|
|
1372
1347
|
return ret;
|
|
1373
1348
|
};
|
|
1374
1349
|
|
|
1375
|
-
|
|
1350
|
+
exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
1376
1351
|
const ret = typeof(arg0) === 'function';
|
|
1377
1352
|
return ret;
|
|
1378
1353
|
};
|
|
1379
1354
|
|
|
1380
|
-
|
|
1355
|
+
exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
1381
1356
|
const val = arg0;
|
|
1382
1357
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1383
1358
|
return ret;
|
|
1384
1359
|
};
|
|
1385
1360
|
|
|
1386
|
-
|
|
1361
|
+
exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
1387
1362
|
const ret = typeof(arg0) === 'string';
|
|
1388
1363
|
return ret;
|
|
1389
1364
|
};
|
|
1390
1365
|
|
|
1391
|
-
|
|
1366
|
+
exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
1392
1367
|
const ret = arg0 === undefined;
|
|
1393
1368
|
return ret;
|
|
1394
1369
|
};
|
|
1395
1370
|
|
|
1396
|
-
|
|
1371
|
+
exports.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
|
|
1397
1372
|
const ret = arg0 === arg1;
|
|
1398
1373
|
return ret;
|
|
1399
1374
|
};
|
|
1400
1375
|
|
|
1401
|
-
|
|
1376
|
+
exports.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
|
|
1402
1377
|
const ret = arg0 == arg1;
|
|
1403
1378
|
return ret;
|
|
1404
1379
|
};
|
|
1405
1380
|
|
|
1406
|
-
|
|
1407
|
-
const ret = wasm.memory;
|
|
1408
|
-
return ret;
|
|
1409
|
-
};
|
|
1410
|
-
|
|
1411
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
1381
|
+
exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
|
|
1412
1382
|
const obj = arg1;
|
|
1413
1383
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1414
1384
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1415
1385
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1416
1386
|
};
|
|
1417
1387
|
|
|
1418
|
-
|
|
1419
|
-
const ret = arg0;
|
|
1420
|
-
return ret;
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1388
|
+
exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
1424
1389
|
const obj = arg1;
|
|
1425
1390
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1426
1391
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1429,22 +1394,67 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
1429
1394
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1430
1395
|
};
|
|
1431
1396
|
|
|
1432
|
-
|
|
1397
|
+
exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
1398
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
exports.__wbindgen_cast_18ca959934895024 = function(arg0, arg1) {
|
|
1402
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 504, function: Function { arguments: [], shim_idx: 505, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1403
|
+
const ret = makeMutClosure(arg0, arg1, 504, __wbg_adapter_12);
|
|
1404
|
+
return ret;
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1407
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1408
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1433
1409
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1434
1410
|
return ret;
|
|
1435
1411
|
};
|
|
1436
1412
|
|
|
1437
|
-
|
|
1438
|
-
|
|
1413
|
+
exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1414
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1415
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1416
|
+
return ret;
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
exports.__wbindgen_cast_777e541acebb07c2 = function(arg0, arg1) {
|
|
1420
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 548, function: Function { arguments: [Externref], shim_idx: 549, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1421
|
+
const ret = makeMutClosure(arg0, arg1, 548, __wbg_adapter_17);
|
|
1422
|
+
return ret;
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1426
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1427
|
+
const ret = arg0;
|
|
1428
|
+
return ret;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1432
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1433
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1434
|
+
return ret;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1438
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1439
|
+
const ret = arg0;
|
|
1440
|
+
return ret;
|
|
1439
1441
|
};
|
|
1440
1442
|
|
|
1441
|
-
|
|
1442
|
-
const
|
|
1443
|
+
exports.__wbindgen_init_externref_table = function() {
|
|
1444
|
+
const table = wasm.__wbindgen_export_4;
|
|
1445
|
+
const offset = table.grow(4);
|
|
1446
|
+
table.set(0, undefined);
|
|
1447
|
+
table.set(offset + 0, undefined);
|
|
1448
|
+
table.set(offset + 1, null);
|
|
1449
|
+
table.set(offset + 2, true);
|
|
1450
|
+
table.set(offset + 3, false);
|
|
1451
|
+
;
|
|
1452
|
+
};
|
|
1443
1453
|
|
|
1444
|
-
const
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
|
|
1454
|
+
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
1455
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1456
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1457
|
+
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
1448
1458
|
|
|
1449
1459
|
wasm.__wbindgen_start();
|
|
1450
1460
|
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
3
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.12.0-nodejs",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|