@janssenproject/cedarling_wasm 0.0.283 → 0.0.284
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 +19 -37
- package/cedarling_wasm.js +280 -305
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
* Create a new instance of the Cedarling application.
|
|
5
|
-
* This function can take as config parameter the eather `Map` other `Object`
|
|
6
|
-
*/
|
|
7
|
-
export function init(config: any): Promise<Cedarling>;
|
|
8
|
-
/**
|
|
9
|
-
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
10
|
-
* Represents the result of an authorization request.
|
|
11
|
-
*/
|
|
3
|
+
|
|
12
4
|
export class AuthorizeResult {
|
|
13
5
|
private constructor();
|
|
14
6
|
free(): void;
|
|
@@ -47,10 +39,7 @@ export class AuthorizeResult {
|
|
|
47
39
|
*/
|
|
48
40
|
request_id: string;
|
|
49
41
|
}
|
|
50
|
-
|
|
51
|
-
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
52
|
-
* Represents the result of an authorization request.
|
|
53
|
-
*/
|
|
42
|
+
|
|
54
43
|
export class AuthorizeResultResponse {
|
|
55
44
|
private constructor();
|
|
56
45
|
free(): void;
|
|
@@ -64,9 +53,7 @@ export class AuthorizeResultResponse {
|
|
|
64
53
|
*/
|
|
65
54
|
readonly diagnostics: Diagnostics;
|
|
66
55
|
}
|
|
67
|
-
|
|
68
|
-
* The instance of the Cedarling application.
|
|
69
|
-
*/
|
|
56
|
+
|
|
70
57
|
export class Cedarling {
|
|
71
58
|
private constructor();
|
|
72
59
|
free(): void;
|
|
@@ -132,12 +119,7 @@ export class Cedarling {
|
|
|
132
119
|
*/
|
|
133
120
|
shut_down(): Promise<void>;
|
|
134
121
|
}
|
|
135
|
-
|
|
136
|
-
* Diagnostics
|
|
137
|
-
* ===========
|
|
138
|
-
*
|
|
139
|
-
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
140
|
-
*/
|
|
122
|
+
|
|
141
123
|
export class Diagnostics {
|
|
142
124
|
private constructor();
|
|
143
125
|
free(): void;
|
|
@@ -155,16 +137,14 @@ export class Diagnostics {
|
|
|
155
137
|
*/
|
|
156
138
|
readonly errors: PolicyEvaluationError[];
|
|
157
139
|
}
|
|
140
|
+
|
|
158
141
|
export class JsJsonLogic {
|
|
159
142
|
free(): void;
|
|
160
143
|
[Symbol.dispose](): void;
|
|
161
144
|
constructor();
|
|
162
145
|
apply(logic: any, data: any): any;
|
|
163
146
|
}
|
|
164
|
-
|
|
165
|
-
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
166
|
-
* Represents the result of a multi-issuer authorization request.
|
|
167
|
-
*/
|
|
147
|
+
|
|
168
148
|
export class MultiIssuerAuthorizeResult {
|
|
169
149
|
private constructor();
|
|
170
150
|
free(): void;
|
|
@@ -188,12 +168,7 @@ export class MultiIssuerAuthorizeResult {
|
|
|
188
168
|
*/
|
|
189
169
|
request_id: string;
|
|
190
170
|
}
|
|
191
|
-
|
|
192
|
-
* PolicyEvaluationError
|
|
193
|
-
* =====================
|
|
194
|
-
*
|
|
195
|
-
* Represents an error that occurred when evaluating a Cedar policy.
|
|
196
|
-
*/
|
|
171
|
+
|
|
197
172
|
export class PolicyEvaluationError {
|
|
198
173
|
private constructor();
|
|
199
174
|
free(): void;
|
|
@@ -208,6 +183,12 @@ export class PolicyEvaluationError {
|
|
|
208
183
|
readonly error: string;
|
|
209
184
|
}
|
|
210
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Create a new instance of the Cedarling application.
|
|
188
|
+
* This function can take as config parameter the eather `Map` other `Object`
|
|
189
|
+
*/
|
|
190
|
+
export function init(config: any): Promise<Cedarling>;
|
|
191
|
+
|
|
211
192
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
212
193
|
|
|
213
194
|
export interface InitOutput {
|
|
@@ -258,11 +239,11 @@ export interface InitOutput {
|
|
|
258
239
|
readonly jsjsonlogic_new: () => number;
|
|
259
240
|
readonly jsjsonlogic_apply: (a: number, b: any, c: any) => [number, number, number];
|
|
260
241
|
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
261
|
-
readonly
|
|
262
|
-
readonly
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
readonly
|
|
242
|
+
readonly wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97: (a: number, b: number) => void;
|
|
243
|
+
readonly wasm_bindgen__closure__destroy__h3b69c8350c009da1: (a: number, b: number) => void;
|
|
244
|
+
readonly wasm_bindgen__convert__closures_____invoke__he934e31379087ee0: (a: number, b: number, c: any) => void;
|
|
245
|
+
readonly wasm_bindgen__closure__destroy__h5f4f3416747f6981: (a: number, b: number) => void;
|
|
246
|
+
readonly wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa: (a: number, b: number, c: any, d: any) => void;
|
|
266
247
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
267
248
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
268
249
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -275,6 +256,7 @@ export interface InitOutput {
|
|
|
275
256
|
}
|
|
276
257
|
|
|
277
258
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
259
|
+
|
|
278
260
|
/**
|
|
279
261
|
* Instantiates the given `module`, which can either be bytes or
|
|
280
262
|
* a precompiled `WebAssembly.Module`.
|
package/cedarling_wasm.js
CHANGED
|
@@ -1,101 +1,20 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
8
|
-
}
|
|
9
|
-
return cachedUint8ArrayMemory0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
|
-
|
|
14
|
-
cachedTextDecoder.decode();
|
|
15
|
-
|
|
16
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
-
let numBytesDecoded = 0;
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
numBytesDecoded += len;
|
|
20
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
-
cachedTextDecoder.decode();
|
|
23
|
-
numBytesDecoded = len;
|
|
24
|
-
}
|
|
25
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function getStringFromWasm0(ptr, len) {
|
|
29
|
-
ptr = ptr >>> 0;
|
|
30
|
-
return decodeText(ptr, len);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let WASM_VECTOR_LEN = 0;
|
|
34
|
-
|
|
35
|
-
const cachedTextEncoder = new TextEncoder();
|
|
36
|
-
|
|
37
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
38
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
39
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
40
|
-
view.set(buf);
|
|
41
|
-
return {
|
|
42
|
-
read: arg.length,
|
|
43
|
-
written: buf.length
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
49
|
-
|
|
50
|
-
if (realloc === undefined) {
|
|
51
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
52
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
53
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
54
|
-
WASM_VECTOR_LEN = buf.length;
|
|
55
|
-
return ptr;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
let len = arg.length;
|
|
59
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
60
|
-
|
|
61
|
-
const mem = getUint8ArrayMemory0();
|
|
62
|
-
|
|
63
|
-
let offset = 0;
|
|
64
|
-
|
|
65
|
-
for (; offset < len; offset++) {
|
|
66
|
-
const code = arg.charCodeAt(offset);
|
|
67
|
-
if (code > 0x7F) break;
|
|
68
|
-
mem[ptr + offset] = code;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (offset !== len) {
|
|
72
|
-
if (offset !== 0) {
|
|
73
|
-
arg = arg.slice(offset);
|
|
74
|
-
}
|
|
75
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
76
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
77
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
78
|
-
|
|
79
|
-
offset += ret.written;
|
|
80
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
WASM_VECTOR_LEN = offset;
|
|
84
|
-
return ptr;
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
85
7
|
}
|
|
86
8
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
91
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
9
|
+
function _assertClass(instance, klass) {
|
|
10
|
+
if (!(instance instanceof klass)) {
|
|
11
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
92
12
|
}
|
|
93
|
-
return cachedDataViewMemory0;
|
|
94
13
|
}
|
|
95
14
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
15
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
16
|
+
? { register: () => {}, unregister: () => {} }
|
|
17
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
99
18
|
|
|
100
19
|
function debugString(val) {
|
|
101
20
|
// primitive types
|
|
@@ -162,10 +81,41 @@ function debugString(val) {
|
|
|
162
81
|
return className;
|
|
163
82
|
}
|
|
164
83
|
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
84
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
85
|
+
ptr = ptr >>> 0;
|
|
86
|
+
const mem = getDataViewMemory0();
|
|
87
|
+
const result = [];
|
|
88
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
89
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
90
|
+
}
|
|
91
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
96
|
+
ptr = ptr >>> 0;
|
|
97
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
let cachedDataViewMemory0 = null;
|
|
101
|
+
function getDataViewMemory0() {
|
|
102
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
103
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
104
|
+
}
|
|
105
|
+
return cachedDataViewMemory0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function getStringFromWasm0(ptr, len) {
|
|
109
|
+
ptr = ptr >>> 0;
|
|
110
|
+
return decodeText(ptr, len);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let cachedUint8ArrayMemory0 = null;
|
|
114
|
+
function getUint8ArrayMemory0() {
|
|
115
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
116
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
117
|
+
}
|
|
118
|
+
return cachedUint8ArrayMemory0;
|
|
169
119
|
}
|
|
170
120
|
|
|
171
121
|
function handleError(f, args) {
|
|
@@ -177,15 +127,10 @@ function handleError(f, args) {
|
|
|
177
127
|
}
|
|
178
128
|
}
|
|
179
129
|
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
130
|
+
function isLikeNone(x) {
|
|
131
|
+
return x === undefined || x === null;
|
|
183
132
|
}
|
|
184
133
|
|
|
185
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
186
|
-
? { register: () => {}, unregister: () => {} }
|
|
187
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
188
|
-
|
|
189
134
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
190
135
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
191
136
|
const real = (...args) => {
|
|
@@ -214,20 +159,41 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
214
159
|
return real;
|
|
215
160
|
}
|
|
216
161
|
|
|
217
|
-
function
|
|
218
|
-
if (
|
|
219
|
-
|
|
162
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
163
|
+
if (realloc === undefined) {
|
|
164
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
166
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
167
|
+
WASM_VECTOR_LEN = buf.length;
|
|
168
|
+
return ptr;
|
|
220
169
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
170
|
+
|
|
171
|
+
let len = arg.length;
|
|
172
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
173
|
+
|
|
174
|
+
const mem = getUint8ArrayMemory0();
|
|
175
|
+
|
|
176
|
+
let offset = 0;
|
|
177
|
+
|
|
178
|
+
for (; offset < len; offset++) {
|
|
179
|
+
const code = arg.charCodeAt(offset);
|
|
180
|
+
if (code > 0x7F) break;
|
|
181
|
+
mem[ptr + offset] = code;
|
|
182
|
+
}
|
|
183
|
+
if (offset !== len) {
|
|
184
|
+
if (offset !== 0) {
|
|
185
|
+
arg = arg.slice(offset);
|
|
186
|
+
}
|
|
187
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
188
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
189
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
190
|
+
|
|
191
|
+
offset += ret.written;
|
|
192
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
WASM_VECTOR_LEN = offset;
|
|
196
|
+
return ptr;
|
|
231
197
|
}
|
|
232
198
|
|
|
233
199
|
function takeFromExternrefTable0(idx) {
|
|
@@ -236,26 +202,45 @@ function takeFromExternrefTable0(idx) {
|
|
|
236
202
|
return value;
|
|
237
203
|
}
|
|
238
204
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
205
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
206
|
+
cachedTextDecoder.decode();
|
|
207
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
208
|
+
let numBytesDecoded = 0;
|
|
209
|
+
function decodeText(ptr, len) {
|
|
210
|
+
numBytesDecoded += len;
|
|
211
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
212
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
213
|
+
cachedTextDecoder.decode();
|
|
214
|
+
numBytesDecoded = len;
|
|
245
215
|
}
|
|
246
|
-
|
|
247
|
-
return result;
|
|
216
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
248
217
|
}
|
|
249
|
-
|
|
250
|
-
|
|
218
|
+
|
|
219
|
+
const cachedTextEncoder = new TextEncoder();
|
|
220
|
+
|
|
221
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
222
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
223
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
224
|
+
view.set(buf);
|
|
225
|
+
return {
|
|
226
|
+
read: arg.length,
|
|
227
|
+
written: buf.length
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
let WASM_VECTOR_LEN = 0;
|
|
233
|
+
|
|
234
|
+
function wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97(arg0, arg1) {
|
|
235
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97(arg0, arg1);
|
|
251
236
|
}
|
|
252
237
|
|
|
253
|
-
function
|
|
254
|
-
wasm.
|
|
238
|
+
function wasm_bindgen__convert__closures_____invoke__he934e31379087ee0(arg0, arg1, arg2) {
|
|
239
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he934e31379087ee0(arg0, arg1, arg2);
|
|
255
240
|
}
|
|
256
241
|
|
|
257
|
-
function
|
|
258
|
-
wasm.
|
|
242
|
+
function wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(arg0, arg1, arg2, arg3) {
|
|
243
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(arg0, arg1, arg2, arg3);
|
|
259
244
|
}
|
|
260
245
|
|
|
261
246
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -267,12 +252,36 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
267
252
|
const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
268
253
|
? { register: () => {}, unregister: () => {} }
|
|
269
254
|
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresult_free(ptr >>> 0, 1));
|
|
255
|
+
|
|
256
|
+
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
257
|
+
? { register: () => {}, unregister: () => {} }
|
|
258
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
259
|
+
|
|
260
|
+
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
261
|
+
? { register: () => {}, unregister: () => {} }
|
|
262
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
263
|
+
|
|
264
|
+
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
265
|
+
? { register: () => {}, unregister: () => {} }
|
|
266
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
267
|
+
|
|
268
|
+
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
269
|
+
? { register: () => {}, unregister: () => {} }
|
|
270
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
271
|
+
|
|
272
|
+
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
273
|
+
? { register: () => {}, unregister: () => {} }
|
|
274
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
275
|
+
|
|
276
|
+
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
277
|
+
? { register: () => {}, unregister: () => {} }
|
|
278
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
279
|
+
|
|
270
280
|
/**
|
|
271
281
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
272
282
|
* Represents the result of an authorization request.
|
|
273
283
|
*/
|
|
274
284
|
export class AuthorizeResult {
|
|
275
|
-
|
|
276
285
|
static __wrap(ptr) {
|
|
277
286
|
ptr = ptr >>> 0;
|
|
278
287
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -280,14 +289,12 @@ export class AuthorizeResult {
|
|
|
280
289
|
AuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
281
290
|
return obj;
|
|
282
291
|
}
|
|
283
|
-
|
|
284
292
|
__destroy_into_raw() {
|
|
285
293
|
const ptr = this.__wbg_ptr;
|
|
286
294
|
this.__wbg_ptr = 0;
|
|
287
295
|
AuthorizeResultFinalization.unregister(this);
|
|
288
296
|
return ptr;
|
|
289
297
|
}
|
|
290
|
-
|
|
291
298
|
free() {
|
|
292
299
|
const ptr = this.__destroy_into_raw();
|
|
293
300
|
wasm.__wbg_authorizeresult_free(ptr, 0);
|
|
@@ -409,15 +416,11 @@ export class AuthorizeResult {
|
|
|
409
416
|
}
|
|
410
417
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
411
418
|
|
|
412
|
-
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
413
|
-
? { register: () => {}, unregister: () => {} }
|
|
414
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
415
419
|
/**
|
|
416
420
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
417
421
|
* Represents the result of an authorization request.
|
|
418
422
|
*/
|
|
419
423
|
export class AuthorizeResultResponse {
|
|
420
|
-
|
|
421
424
|
static __wrap(ptr) {
|
|
422
425
|
ptr = ptr >>> 0;
|
|
423
426
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -425,14 +428,12 @@ export class AuthorizeResultResponse {
|
|
|
425
428
|
AuthorizeResultResponseFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
426
429
|
return obj;
|
|
427
430
|
}
|
|
428
|
-
|
|
429
431
|
__destroy_into_raw() {
|
|
430
432
|
const ptr = this.__wbg_ptr;
|
|
431
433
|
this.__wbg_ptr = 0;
|
|
432
434
|
AuthorizeResultResponseFinalization.unregister(this);
|
|
433
435
|
return ptr;
|
|
434
436
|
}
|
|
435
|
-
|
|
436
437
|
free() {
|
|
437
438
|
const ptr = this.__destroy_into_raw();
|
|
438
439
|
wasm.__wbg_authorizeresultresponse_free(ptr, 0);
|
|
@@ -456,14 +457,10 @@ export class AuthorizeResultResponse {
|
|
|
456
457
|
}
|
|
457
458
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
458
459
|
|
|
459
|
-
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
460
|
-
? { register: () => {}, unregister: () => {} }
|
|
461
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
462
460
|
/**
|
|
463
461
|
* The instance of the Cedarling application.
|
|
464
462
|
*/
|
|
465
463
|
export class Cedarling {
|
|
466
|
-
|
|
467
464
|
static __wrap(ptr) {
|
|
468
465
|
ptr = ptr >>> 0;
|
|
469
466
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -471,14 +468,12 @@ export class Cedarling {
|
|
|
471
468
|
CedarlingFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
472
469
|
return obj;
|
|
473
470
|
}
|
|
474
|
-
|
|
475
471
|
__destroy_into_raw() {
|
|
476
472
|
const ptr = this.__wbg_ptr;
|
|
477
473
|
this.__wbg_ptr = 0;
|
|
478
474
|
CedarlingFinalization.unregister(this);
|
|
479
475
|
return ptr;
|
|
480
476
|
}
|
|
481
|
-
|
|
482
477
|
free() {
|
|
483
478
|
const ptr = this.__destroy_into_raw();
|
|
484
479
|
wasm.__wbg_cedarling_free(ptr, 0);
|
|
@@ -635,9 +630,6 @@ export class Cedarling {
|
|
|
635
630
|
}
|
|
636
631
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
637
632
|
|
|
638
|
-
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
639
|
-
? { register: () => {}, unregister: () => {} }
|
|
640
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
641
633
|
/**
|
|
642
634
|
* Diagnostics
|
|
643
635
|
* ===========
|
|
@@ -645,7 +637,6 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
645
637
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
646
638
|
*/
|
|
647
639
|
export class Diagnostics {
|
|
648
|
-
|
|
649
640
|
static __wrap(ptr) {
|
|
650
641
|
ptr = ptr >>> 0;
|
|
651
642
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -653,14 +644,12 @@ export class Diagnostics {
|
|
|
653
644
|
DiagnosticsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
654
645
|
return obj;
|
|
655
646
|
}
|
|
656
|
-
|
|
657
647
|
__destroy_into_raw() {
|
|
658
648
|
const ptr = this.__wbg_ptr;
|
|
659
649
|
this.__wbg_ptr = 0;
|
|
660
650
|
DiagnosticsFinalization.unregister(this);
|
|
661
651
|
return ptr;
|
|
662
652
|
}
|
|
663
|
-
|
|
664
653
|
free() {
|
|
665
654
|
const ptr = this.__destroy_into_raw();
|
|
666
655
|
wasm.__wbg_diagnostics_free(ptr, 0);
|
|
@@ -692,19 +681,13 @@ export class Diagnostics {
|
|
|
692
681
|
}
|
|
693
682
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
694
683
|
|
|
695
|
-
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
696
|
-
? { register: () => {}, unregister: () => {} }
|
|
697
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
698
|
-
|
|
699
684
|
export class JsJsonLogic {
|
|
700
|
-
|
|
701
685
|
__destroy_into_raw() {
|
|
702
686
|
const ptr = this.__wbg_ptr;
|
|
703
687
|
this.__wbg_ptr = 0;
|
|
704
688
|
JsJsonLogicFinalization.unregister(this);
|
|
705
689
|
return ptr;
|
|
706
690
|
}
|
|
707
|
-
|
|
708
691
|
free() {
|
|
709
692
|
const ptr = this.__destroy_into_raw();
|
|
710
693
|
wasm.__wbg_jsjsonlogic_free(ptr, 0);
|
|
@@ -730,15 +713,11 @@ export class JsJsonLogic {
|
|
|
730
713
|
}
|
|
731
714
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
732
715
|
|
|
733
|
-
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
734
|
-
? { register: () => {}, unregister: () => {} }
|
|
735
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
736
716
|
/**
|
|
737
717
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
738
718
|
* Represents the result of a multi-issuer authorization request.
|
|
739
719
|
*/
|
|
740
720
|
export class MultiIssuerAuthorizeResult {
|
|
741
|
-
|
|
742
721
|
static __wrap(ptr) {
|
|
743
722
|
ptr = ptr >>> 0;
|
|
744
723
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -746,14 +725,12 @@ export class MultiIssuerAuthorizeResult {
|
|
|
746
725
|
MultiIssuerAuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
747
726
|
return obj;
|
|
748
727
|
}
|
|
749
|
-
|
|
750
728
|
__destroy_into_raw() {
|
|
751
729
|
const ptr = this.__wbg_ptr;
|
|
752
730
|
this.__wbg_ptr = 0;
|
|
753
731
|
MultiIssuerAuthorizeResultFinalization.unregister(this);
|
|
754
732
|
return ptr;
|
|
755
733
|
}
|
|
756
|
-
|
|
757
734
|
free() {
|
|
758
735
|
const ptr = this.__destroy_into_raw();
|
|
759
736
|
wasm.__wbg_multiissuerauthorizeresult_free(ptr, 0);
|
|
@@ -838,9 +815,6 @@ export class MultiIssuerAuthorizeResult {
|
|
|
838
815
|
}
|
|
839
816
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
840
817
|
|
|
841
|
-
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
842
|
-
? { register: () => {}, unregister: () => {} }
|
|
843
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
844
818
|
/**
|
|
845
819
|
* PolicyEvaluationError
|
|
846
820
|
* =====================
|
|
@@ -848,7 +822,6 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
848
822
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
849
823
|
*/
|
|
850
824
|
export class PolicyEvaluationError {
|
|
851
|
-
|
|
852
825
|
static __wrap(ptr) {
|
|
853
826
|
ptr = ptr >>> 0;
|
|
854
827
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -856,14 +829,12 @@ export class PolicyEvaluationError {
|
|
|
856
829
|
PolicyEvaluationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
857
830
|
return obj;
|
|
858
831
|
}
|
|
859
|
-
|
|
860
832
|
__destroy_into_raw() {
|
|
861
833
|
const ptr = this.__wbg_ptr;
|
|
862
834
|
this.__wbg_ptr = 0;
|
|
863
835
|
PolicyEvaluationErrorFinalization.unregister(this);
|
|
864
836
|
return ptr;
|
|
865
837
|
}
|
|
866
|
-
|
|
867
838
|
free() {
|
|
868
839
|
const ptr = this.__destroy_into_raw();
|
|
869
840
|
wasm.__wbg_policyevaluationerror_free(ptr, 0);
|
|
@@ -903,6 +874,17 @@ export class PolicyEvaluationError {
|
|
|
903
874
|
}
|
|
904
875
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
905
876
|
|
|
877
|
+
/**
|
|
878
|
+
* Create a new instance of the Cedarling application.
|
|
879
|
+
* This function can take as config parameter the eather `Map` other `Object`
|
|
880
|
+
* @param {any} config
|
|
881
|
+
* @returns {Promise<Cedarling>}
|
|
882
|
+
*/
|
|
883
|
+
export function init(config) {
|
|
884
|
+
const ret = wasm.init(config);
|
|
885
|
+
return ret;
|
|
886
|
+
}
|
|
887
|
+
|
|
906
888
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
907
889
|
|
|
908
890
|
async function __wbg_load(module, imports) {
|
|
@@ -910,7 +892,6 @@ async function __wbg_load(module, imports) {
|
|
|
910
892
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
911
893
|
try {
|
|
912
894
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
913
|
-
|
|
914
895
|
} catch (e) {
|
|
915
896
|
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
916
897
|
|
|
@@ -925,13 +906,11 @@ async function __wbg_load(module, imports) {
|
|
|
925
906
|
|
|
926
907
|
const bytes = await module.arrayBuffer();
|
|
927
908
|
return await WebAssembly.instantiate(bytes, imports);
|
|
928
|
-
|
|
929
909
|
} else {
|
|
930
910
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
931
911
|
|
|
932
912
|
if (instance instanceof WebAssembly.Instance) {
|
|
933
913
|
return { instance, module };
|
|
934
|
-
|
|
935
914
|
} else {
|
|
936
915
|
return instance;
|
|
937
916
|
}
|
|
@@ -941,11 +920,11 @@ async function __wbg_load(module, imports) {
|
|
|
941
920
|
function __wbg_get_imports() {
|
|
942
921
|
const imports = {};
|
|
943
922
|
imports.wbg = {};
|
|
944
|
-
imports.wbg.
|
|
923
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
945
924
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
946
925
|
return ret;
|
|
947
926
|
};
|
|
948
|
-
imports.wbg.
|
|
927
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
949
928
|
const ret = Number(arg0);
|
|
950
929
|
return ret;
|
|
951
930
|
};
|
|
@@ -956,64 +935,64 @@ function __wbg_get_imports() {
|
|
|
956
935
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
957
936
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
958
937
|
};
|
|
959
|
-
imports.wbg.
|
|
938
|
+
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
960
939
|
const v = arg1;
|
|
961
940
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
962
941
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
963
942
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
964
943
|
};
|
|
965
|
-
imports.wbg.
|
|
944
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
966
945
|
const v = arg0;
|
|
967
946
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
968
947
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
969
948
|
};
|
|
970
|
-
imports.wbg.
|
|
949
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
971
950
|
const ret = debugString(arg1);
|
|
972
951
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
973
952
|
const len1 = WASM_VECTOR_LEN;
|
|
974
953
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
975
954
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
976
955
|
};
|
|
977
|
-
imports.wbg.
|
|
956
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
978
957
|
const ret = arg0 in arg1;
|
|
979
958
|
return ret;
|
|
980
959
|
};
|
|
981
|
-
imports.wbg.
|
|
960
|
+
imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
982
961
|
const ret = typeof(arg0) === 'bigint';
|
|
983
962
|
return ret;
|
|
984
963
|
};
|
|
985
|
-
imports.wbg.
|
|
964
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
986
965
|
const ret = typeof(arg0) === 'function';
|
|
987
966
|
return ret;
|
|
988
967
|
};
|
|
989
|
-
imports.wbg.
|
|
968
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
990
969
|
const val = arg0;
|
|
991
970
|
const ret = typeof(val) === 'object' && val !== null;
|
|
992
971
|
return ret;
|
|
993
972
|
};
|
|
994
|
-
imports.wbg.
|
|
973
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
995
974
|
const ret = typeof(arg0) === 'string';
|
|
996
975
|
return ret;
|
|
997
976
|
};
|
|
998
|
-
imports.wbg.
|
|
977
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
999
978
|
const ret = arg0 === undefined;
|
|
1000
979
|
return ret;
|
|
1001
980
|
};
|
|
1002
|
-
imports.wbg.
|
|
981
|
+
imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
1003
982
|
const ret = arg0 === arg1;
|
|
1004
983
|
return ret;
|
|
1005
984
|
};
|
|
1006
|
-
imports.wbg.
|
|
985
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
1007
986
|
const ret = arg0 == arg1;
|
|
1008
987
|
return ret;
|
|
1009
988
|
};
|
|
1010
|
-
imports.wbg.
|
|
989
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
1011
990
|
const obj = arg1;
|
|
1012
991
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1013
992
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1014
993
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1015
994
|
};
|
|
1016
|
-
imports.wbg.
|
|
995
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
1017
996
|
const obj = arg1;
|
|
1018
997
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1019
998
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1021,22 +1000,22 @@ function __wbg_get_imports() {
|
|
|
1021
1000
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1022
1001
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1023
1002
|
};
|
|
1024
|
-
imports.wbg.
|
|
1003
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
1025
1004
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1026
1005
|
};
|
|
1027
|
-
imports.wbg.
|
|
1006
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
1028
1007
|
arg0._wbg_cb_unref();
|
|
1029
1008
|
};
|
|
1030
|
-
imports.wbg.
|
|
1031
|
-
arg0.abort(arg1);
|
|
1032
|
-
};
|
|
1033
|
-
imports.wbg.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
|
|
1009
|
+
imports.wbg.__wbg_abort_07646c894ebbf2bd = function(arg0) {
|
|
1034
1010
|
arg0.abort();
|
|
1035
1011
|
};
|
|
1036
|
-
imports.wbg.
|
|
1012
|
+
imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
|
|
1013
|
+
arg0.abort(arg1);
|
|
1014
|
+
};
|
|
1015
|
+
imports.wbg.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1037
1016
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1038
1017
|
}, arguments) };
|
|
1039
|
-
imports.wbg.
|
|
1018
|
+
imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
|
|
1040
1019
|
const ret = arg0.arrayBuffer();
|
|
1041
1020
|
return ret;
|
|
1042
1021
|
}, arguments) };
|
|
@@ -1044,11 +1023,11 @@ function __wbg_get_imports() {
|
|
|
1044
1023
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
1045
1024
|
return ret;
|
|
1046
1025
|
};
|
|
1047
|
-
imports.wbg.
|
|
1026
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1048
1027
|
const ret = arg0.call(arg1, arg2);
|
|
1049
1028
|
return ret;
|
|
1050
1029
|
}, arguments) };
|
|
1051
|
-
imports.wbg.
|
|
1030
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
1052
1031
|
const ret = arg0.call(arg1);
|
|
1053
1032
|
return ret;
|
|
1054
1033
|
}, arguments) };
|
|
@@ -1064,33 +1043,33 @@ function __wbg_get_imports() {
|
|
|
1064
1043
|
const ret = arg0.crypto;
|
|
1065
1044
|
return ret;
|
|
1066
1045
|
};
|
|
1067
|
-
imports.wbg.
|
|
1046
|
+
imports.wbg.__wbg_debug_24d884048190fccc = function(arg0) {
|
|
1068
1047
|
console.debug(...arg0);
|
|
1069
1048
|
};
|
|
1070
|
-
imports.wbg.
|
|
1049
|
+
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
1071
1050
|
const ret = arg0.done;
|
|
1072
1051
|
return ret;
|
|
1073
1052
|
};
|
|
1074
|
-
imports.wbg.
|
|
1053
|
+
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
1075
1054
|
const ret = Object.entries(arg0);
|
|
1076
1055
|
return ret;
|
|
1077
1056
|
};
|
|
1078
|
-
imports.wbg.
|
|
1057
|
+
imports.wbg.__wbg_entries_9af46b7eaf7dfefa = function(arg0) {
|
|
1079
1058
|
const ret = arg0.entries();
|
|
1080
1059
|
return ret;
|
|
1081
1060
|
};
|
|
1082
|
-
imports.wbg.
|
|
1061
|
+
imports.wbg.__wbg_error_98d791de55bc7c97 = function(arg0) {
|
|
1083
1062
|
console.error(...arg0);
|
|
1084
1063
|
};
|
|
1085
1064
|
imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
1086
1065
|
const ret = fetch(arg0);
|
|
1087
1066
|
return ret;
|
|
1088
1067
|
};
|
|
1089
|
-
imports.wbg.
|
|
1068
|
+
imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
|
|
1090
1069
|
const ret = arg0.fetch(arg1);
|
|
1091
1070
|
return ret;
|
|
1092
1071
|
};
|
|
1093
|
-
imports.wbg.
|
|
1072
|
+
imports.wbg.__wbg_fromEntries_743eaaa008e6db37 = function() { return handleError(function (arg0) {
|
|
1094
1073
|
const ret = Object.fromEntries(arg0);
|
|
1095
1074
|
return ret;
|
|
1096
1075
|
}, arguments) };
|
|
@@ -1100,19 +1079,19 @@ function __wbg_get_imports() {
|
|
|
1100
1079
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1101
1080
|
arg0.getRandomValues(arg1);
|
|
1102
1081
|
}, arguments) };
|
|
1103
|
-
imports.wbg.
|
|
1082
|
+
imports.wbg.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
1104
1083
|
const ret = arg0.getTime();
|
|
1105
1084
|
return ret;
|
|
1106
1085
|
};
|
|
1107
|
-
imports.wbg.
|
|
1086
|
+
imports.wbg.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
1108
1087
|
const ret = arg0.getTimezoneOffset();
|
|
1109
1088
|
return ret;
|
|
1110
1089
|
};
|
|
1111
|
-
imports.wbg.
|
|
1090
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1112
1091
|
const ret = arg0[arg1 >>> 0];
|
|
1113
1092
|
return ret;
|
|
1114
1093
|
};
|
|
1115
|
-
imports.wbg.
|
|
1094
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1116
1095
|
const ret = Reflect.get(arg0, arg1);
|
|
1117
1096
|
return ret;
|
|
1118
1097
|
}, arguments) };
|
|
@@ -1120,18 +1099,18 @@ function __wbg_get_imports() {
|
|
|
1120
1099
|
const ret = arg0[arg1];
|
|
1121
1100
|
return ret;
|
|
1122
1101
|
};
|
|
1123
|
-
imports.wbg.
|
|
1102
|
+
imports.wbg.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
|
|
1124
1103
|
const ret = Reflect.has(arg0, arg1);
|
|
1125
1104
|
return ret;
|
|
1126
1105
|
}, arguments) };
|
|
1127
|
-
imports.wbg.
|
|
1106
|
+
imports.wbg.__wbg_headers_654c30e1bcccc552 = function(arg0) {
|
|
1128
1107
|
const ret = arg0.headers;
|
|
1129
1108
|
return ret;
|
|
1130
1109
|
};
|
|
1131
|
-
imports.wbg.
|
|
1110
|
+
imports.wbg.__wbg_info_e951478d580c1573 = function(arg0) {
|
|
1132
1111
|
console.info(...arg0);
|
|
1133
1112
|
};
|
|
1134
|
-
imports.wbg.
|
|
1113
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
1135
1114
|
let result;
|
|
1136
1115
|
try {
|
|
1137
1116
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1141,7 +1120,7 @@ function __wbg_get_imports() {
|
|
|
1141
1120
|
const ret = result;
|
|
1142
1121
|
return ret;
|
|
1143
1122
|
};
|
|
1144
|
-
imports.wbg.
|
|
1123
|
+
imports.wbg.__wbg_instanceof_Array_bc64f5da83077362 = function(arg0) {
|
|
1145
1124
|
let result;
|
|
1146
1125
|
try {
|
|
1147
1126
|
result = arg0 instanceof Array;
|
|
@@ -1151,7 +1130,7 @@ function __wbg_get_imports() {
|
|
|
1151
1130
|
const ret = result;
|
|
1152
1131
|
return ret;
|
|
1153
1132
|
};
|
|
1154
|
-
imports.wbg.
|
|
1133
|
+
imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
1155
1134
|
let result;
|
|
1156
1135
|
try {
|
|
1157
1136
|
result = arg0 instanceof Map;
|
|
@@ -1161,7 +1140,7 @@ function __wbg_get_imports() {
|
|
|
1161
1140
|
const ret = result;
|
|
1162
1141
|
return ret;
|
|
1163
1142
|
};
|
|
1164
|
-
imports.wbg.
|
|
1143
|
+
imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
|
|
1165
1144
|
let result;
|
|
1166
1145
|
try {
|
|
1167
1146
|
result = arg0 instanceof Response;
|
|
@@ -1171,7 +1150,7 @@ function __wbg_get_imports() {
|
|
|
1171
1150
|
const ret = result;
|
|
1172
1151
|
return ret;
|
|
1173
1152
|
};
|
|
1174
|
-
imports.wbg.
|
|
1153
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1175
1154
|
let result;
|
|
1176
1155
|
try {
|
|
1177
1156
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1181,31 +1160,31 @@ function __wbg_get_imports() {
|
|
|
1181
1160
|
const ret = result;
|
|
1182
1161
|
return ret;
|
|
1183
1162
|
};
|
|
1184
|
-
imports.wbg.
|
|
1163
|
+
imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
1185
1164
|
const ret = Array.isArray(arg0);
|
|
1186
1165
|
return ret;
|
|
1187
1166
|
};
|
|
1188
|
-
imports.wbg.
|
|
1167
|
+
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
1189
1168
|
const ret = Number.isSafeInteger(arg0);
|
|
1190
1169
|
return ret;
|
|
1191
1170
|
};
|
|
1192
|
-
imports.wbg.
|
|
1171
|
+
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
1193
1172
|
const ret = Symbol.iterator;
|
|
1194
1173
|
return ret;
|
|
1195
1174
|
};
|
|
1196
|
-
imports.wbg.
|
|
1175
|
+
imports.wbg.__wbg_keys_f5c6002ff150fc6c = function(arg0) {
|
|
1197
1176
|
const ret = Object.keys(arg0);
|
|
1198
1177
|
return ret;
|
|
1199
1178
|
};
|
|
1200
|
-
imports.wbg.
|
|
1179
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1201
1180
|
const ret = arg0.length;
|
|
1202
1181
|
return ret;
|
|
1203
1182
|
};
|
|
1204
|
-
imports.wbg.
|
|
1183
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1205
1184
|
const ret = arg0.length;
|
|
1206
1185
|
return ret;
|
|
1207
1186
|
};
|
|
1208
|
-
imports.wbg.
|
|
1187
|
+
imports.wbg.__wbg_log_3f650af133a6de58 = function(arg0) {
|
|
1209
1188
|
console.log(...arg0);
|
|
1210
1189
|
};
|
|
1211
1190
|
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
@@ -1216,26 +1195,46 @@ function __wbg_get_imports() {
|
|
|
1216
1195
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1217
1196
|
return ret;
|
|
1218
1197
|
};
|
|
1219
|
-
imports.wbg.
|
|
1198
|
+
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1220
1199
|
const ret = new Date();
|
|
1221
1200
|
return ret;
|
|
1222
1201
|
};
|
|
1223
|
-
imports.wbg.
|
|
1202
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
1224
1203
|
const ret = new Object();
|
|
1225
1204
|
return ret;
|
|
1226
1205
|
};
|
|
1227
|
-
imports.wbg.
|
|
1206
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
1207
|
+
const ret = new Array();
|
|
1208
|
+
return ret;
|
|
1209
|
+
};
|
|
1210
|
+
imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
|
|
1211
|
+
const ret = new Headers();
|
|
1212
|
+
return ret;
|
|
1213
|
+
}, arguments) };
|
|
1214
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
1215
|
+
const ret = new Uint8Array(arg0);
|
|
1216
|
+
return ret;
|
|
1217
|
+
};
|
|
1218
|
+
imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
|
|
1228
1219
|
const ret = new AbortController();
|
|
1229
1220
|
return ret;
|
|
1230
1221
|
}, arguments) };
|
|
1231
|
-
imports.wbg.
|
|
1222
|
+
imports.wbg.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
1223
|
+
const ret = new Date(arg0);
|
|
1224
|
+
return ret;
|
|
1225
|
+
};
|
|
1226
|
+
imports.wbg.__wbg_new_b546ae120718850e = function() {
|
|
1227
|
+
const ret = new Map();
|
|
1228
|
+
return ret;
|
|
1229
|
+
};
|
|
1230
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1232
1231
|
try {
|
|
1233
1232
|
var state0 = {a: arg0, b: arg1};
|
|
1234
1233
|
var cb0 = (arg0, arg1) => {
|
|
1235
1234
|
const a = state0.a;
|
|
1236
1235
|
state0.a = 0;
|
|
1237
1236
|
try {
|
|
1238
|
-
return
|
|
1237
|
+
return wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(a, state0.b, arg0, arg1);
|
|
1239
1238
|
} finally {
|
|
1240
1239
|
state0.a = a;
|
|
1241
1240
|
}
|
|
@@ -1246,54 +1245,34 @@ function __wbg_get_imports() {
|
|
|
1246
1245
|
state0.a = state0.b = 0;
|
|
1247
1246
|
}
|
|
1248
1247
|
};
|
|
1249
|
-
imports.wbg.
|
|
1250
|
-
const ret = new Uint8Array(arg0);
|
|
1251
|
-
return ret;
|
|
1252
|
-
};
|
|
1253
|
-
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
1254
|
-
const ret = new Map();
|
|
1255
|
-
return ret;
|
|
1256
|
-
};
|
|
1257
|
-
imports.wbg.__wbg_new_93d9417ed3fb115d = function(arg0) {
|
|
1258
|
-
const ret = new Date(arg0);
|
|
1259
|
-
return ret;
|
|
1260
|
-
};
|
|
1261
|
-
imports.wbg.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
|
|
1262
|
-
const ret = new Headers();
|
|
1263
|
-
return ret;
|
|
1264
|
-
}, arguments) };
|
|
1265
|
-
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
1266
|
-
const ret = new Array();
|
|
1267
|
-
return ret;
|
|
1268
|
-
};
|
|
1269
|
-
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
1248
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1270
1249
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1271
1250
|
return ret;
|
|
1272
1251
|
};
|
|
1273
|
-
imports.wbg.
|
|
1252
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1274
1253
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1275
1254
|
return ret;
|
|
1276
1255
|
};
|
|
1277
|
-
imports.wbg.
|
|
1256
|
+
imports.wbg.__wbg_new_with_args_df9e7125ffe55248 = function(arg0, arg1, arg2, arg3) {
|
|
1278
1257
|
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1279
1258
|
return ret;
|
|
1280
1259
|
};
|
|
1281
|
-
imports.wbg.
|
|
1260
|
+
imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
1282
1261
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1283
1262
|
return ret;
|
|
1284
1263
|
};
|
|
1285
|
-
imports.wbg.
|
|
1264
|
+
imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1286
1265
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1287
1266
|
return ret;
|
|
1288
1267
|
}, arguments) };
|
|
1289
|
-
imports.wbg.
|
|
1290
|
-
const ret = arg0.next();
|
|
1291
|
-
return ret;
|
|
1292
|
-
}, arguments) };
|
|
1293
|
-
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
1268
|
+
imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
1294
1269
|
const ret = arg0.next;
|
|
1295
1270
|
return ret;
|
|
1296
1271
|
};
|
|
1272
|
+
imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
|
|
1273
|
+
const ret = arg0.next();
|
|
1274
|
+
return ret;
|
|
1275
|
+
}, arguments) };
|
|
1297
1276
|
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1298
1277
|
const ret = arg0.node;
|
|
1299
1278
|
return ret;
|
|
@@ -1306,18 +1285,18 @@ function __wbg_get_imports() {
|
|
|
1306
1285
|
const ret = arg0.process;
|
|
1307
1286
|
return ret;
|
|
1308
1287
|
};
|
|
1309
|
-
imports.wbg.
|
|
1288
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1310
1289
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1311
1290
|
};
|
|
1312
|
-
imports.wbg.
|
|
1291
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1313
1292
|
const ret = arg0.push(arg1);
|
|
1314
1293
|
return ret;
|
|
1315
1294
|
};
|
|
1316
|
-
imports.wbg.
|
|
1295
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1317
1296
|
const ret = arg0.queueMicrotask;
|
|
1318
1297
|
return ret;
|
|
1319
1298
|
};
|
|
1320
|
-
imports.wbg.
|
|
1299
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1321
1300
|
queueMicrotask(arg0);
|
|
1322
1301
|
};
|
|
1323
1302
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1327,7 +1306,7 @@ function __wbg_get_imports() {
|
|
|
1327
1306
|
const ret = module.require;
|
|
1328
1307
|
return ret;
|
|
1329
1308
|
}, arguments) };
|
|
1330
|
-
imports.wbg.
|
|
1309
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1331
1310
|
const ret = Promise.resolve(arg0);
|
|
1332
1311
|
return ret;
|
|
1333
1312
|
};
|
|
@@ -1338,93 +1317,93 @@ function __wbg_get_imports() {
|
|
|
1338
1317
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1339
1318
|
arg0[arg1] = arg2;
|
|
1340
1319
|
};
|
|
1341
|
-
imports.wbg.
|
|
1342
|
-
const ret =
|
|
1320
|
+
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1321
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1343
1322
|
return ret;
|
|
1323
|
+
}, arguments) };
|
|
1324
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
1325
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1344
1326
|
};
|
|
1345
|
-
imports.wbg.
|
|
1327
|
+
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
1346
1328
|
arg0.body = arg1;
|
|
1347
1329
|
};
|
|
1348
|
-
imports.wbg.
|
|
1349
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1350
|
-
};
|
|
1351
|
-
imports.wbg.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1352
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1353
|
-
return ret;
|
|
1354
|
-
}, arguments) };
|
|
1355
|
-
imports.wbg.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
|
|
1330
|
+
imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
|
|
1356
1331
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1357
1332
|
};
|
|
1358
|
-
imports.wbg.
|
|
1333
|
+
imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) {
|
|
1359
1334
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1360
1335
|
};
|
|
1361
|
-
imports.wbg.
|
|
1336
|
+
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1337
|
+
const ret = arg0.set(arg1, arg2);
|
|
1338
|
+
return ret;
|
|
1339
|
+
};
|
|
1340
|
+
imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
|
|
1362
1341
|
arg0.headers = arg1;
|
|
1363
1342
|
};
|
|
1364
|
-
imports.wbg.
|
|
1343
|
+
imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1365
1344
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1366
1345
|
};
|
|
1367
|
-
imports.wbg.
|
|
1346
|
+
imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
|
|
1368
1347
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1369
1348
|
};
|
|
1370
|
-
imports.wbg.
|
|
1349
|
+
imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
|
|
1371
1350
|
arg0.signal = arg1;
|
|
1372
1351
|
};
|
|
1373
|
-
imports.wbg.
|
|
1352
|
+
imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
|
|
1374
1353
|
const ret = arg0.signal;
|
|
1375
1354
|
return ret;
|
|
1376
1355
|
};
|
|
1377
|
-
imports.wbg.
|
|
1356
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1378
1357
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1379
1358
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1380
1359
|
};
|
|
1381
|
-
imports.wbg.
|
|
1360
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1382
1361
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1383
1362
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1384
1363
|
};
|
|
1385
|
-
imports.wbg.
|
|
1364
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1386
1365
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1387
1366
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1388
1367
|
};
|
|
1389
|
-
imports.wbg.
|
|
1368
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1390
1369
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1391
1370
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1392
1371
|
};
|
|
1393
|
-
imports.wbg.
|
|
1372
|
+
imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) {
|
|
1394
1373
|
const ret = arg0.status;
|
|
1395
1374
|
return ret;
|
|
1396
1375
|
};
|
|
1397
|
-
imports.wbg.
|
|
1376
|
+
imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) {
|
|
1398
1377
|
const ret = JSON.stringify(arg0);
|
|
1399
1378
|
return ret;
|
|
1400
1379
|
}, arguments) };
|
|
1401
|
-
imports.wbg.
|
|
1380
|
+
imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
|
|
1402
1381
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1403
1382
|
return ret;
|
|
1404
1383
|
};
|
|
1405
|
-
imports.wbg.
|
|
1384
|
+
imports.wbg.__wbg_text_51046bb33d257f63 = function() { return handleError(function (arg0) {
|
|
1406
1385
|
const ret = arg0.text();
|
|
1407
1386
|
return ret;
|
|
1408
1387
|
}, arguments) };
|
|
1409
|
-
imports.wbg.
|
|
1410
|
-
const ret = arg0.then(arg1);
|
|
1388
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1389
|
+
const ret = arg0.then(arg1, arg2);
|
|
1411
1390
|
return ret;
|
|
1412
1391
|
};
|
|
1413
|
-
imports.wbg.
|
|
1414
|
-
const ret = arg0.then(arg1
|
|
1392
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1393
|
+
const ret = arg0.then(arg1);
|
|
1415
1394
|
return ret;
|
|
1416
1395
|
};
|
|
1417
|
-
imports.wbg.
|
|
1396
|
+
imports.wbg.__wbg_trace_b213249bfc587469 = function(arg0) {
|
|
1418
1397
|
console.trace(...arg0);
|
|
1419
1398
|
};
|
|
1420
|
-
imports.wbg.
|
|
1399
|
+
imports.wbg.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) {
|
|
1421
1400
|
const ret = arg1.url;
|
|
1422
1401
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1423
1402
|
const len1 = WASM_VECTOR_LEN;
|
|
1424
1403
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1425
1404
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1426
1405
|
};
|
|
1427
|
-
imports.wbg.
|
|
1406
|
+
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
1428
1407
|
const ret = arg0.value;
|
|
1429
1408
|
return ret;
|
|
1430
1409
|
};
|
|
@@ -1432,12 +1411,12 @@ function __wbg_get_imports() {
|
|
|
1432
1411
|
const ret = arg0.versions;
|
|
1433
1412
|
return ret;
|
|
1434
1413
|
};
|
|
1435
|
-
imports.wbg.
|
|
1414
|
+
imports.wbg.__wbg_warn_14a9fd75d0abe5d7 = function(arg0) {
|
|
1436
1415
|
console.warn(...arg0);
|
|
1437
1416
|
};
|
|
1438
|
-
imports.wbg.
|
|
1439
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1440
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1417
|
+
imports.wbg.__wbindgen_cast_06e9015128396e60 = function(arg0, arg1) {
|
|
1418
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 505, function: Function { arguments: [], shim_idx: 506, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1419
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3b69c8350c009da1, wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97);
|
|
1441
1420
|
return ret;
|
|
1442
1421
|
};
|
|
1443
1422
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -1450,9 +1429,9 @@ function __wbg_get_imports() {
|
|
|
1450
1429
|
const ret = BigInt.asUintN(64, arg0);
|
|
1451
1430
|
return ret;
|
|
1452
1431
|
};
|
|
1453
|
-
imports.wbg.
|
|
1454
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1455
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1432
|
+
imports.wbg.__wbindgen_cast_4bdd81be241a5b48 = function(arg0, arg1) {
|
|
1433
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 549, function: Function { arguments: [Externref], shim_idx: 550, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1434
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5f4f3416747f6981, wasm_bindgen__convert__closures_____invoke__he934e31379087ee0);
|
|
1456
1435
|
return ret;
|
|
1457
1436
|
};
|
|
1458
1437
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
@@ -1478,7 +1457,6 @@ function __wbg_get_imports() {
|
|
|
1478
1457
|
table.set(offset + 1, null);
|
|
1479
1458
|
table.set(offset + 2, true);
|
|
1480
1459
|
table.set(offset + 3, false);
|
|
1481
|
-
;
|
|
1482
1460
|
};
|
|
1483
1461
|
|
|
1484
1462
|
return imports;
|
|
@@ -1508,13 +1486,10 @@ function initSync(module) {
|
|
|
1508
1486
|
}
|
|
1509
1487
|
|
|
1510
1488
|
const imports = __wbg_get_imports();
|
|
1511
|
-
|
|
1512
1489
|
if (!(module instanceof WebAssembly.Module)) {
|
|
1513
1490
|
module = new WebAssembly.Module(module);
|
|
1514
1491
|
}
|
|
1515
|
-
|
|
1516
1492
|
const instance = new WebAssembly.Instance(module, imports);
|
|
1517
|
-
|
|
1518
1493
|
return __wbg_finalize_init(instance, module);
|
|
1519
1494
|
}
|
|
1520
1495
|
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.284",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|