@janssenproject/cedarling_wasm 1.5.0 → 1.7.0
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 +31 -27
- package/cedarling_wasm.js +282 -375
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.d.ts
CHANGED
|
@@ -171,17 +171,17 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
171
171
|
export interface InitOutput {
|
|
172
172
|
readonly memory: WebAssembly.Memory;
|
|
173
173
|
readonly __wbg_cedarling_free: (a: number, b: number) => void;
|
|
174
|
-
readonly init: (a:
|
|
175
|
-
readonly cedarling_new: (a:
|
|
176
|
-
readonly cedarling_new_from_map: (a:
|
|
177
|
-
readonly cedarling_authorize: (a: number, b:
|
|
178
|
-
readonly cedarling_authorize_unsigned: (a: number, b:
|
|
179
|
-
readonly cedarling_pop_logs: (a: number
|
|
180
|
-
readonly cedarling_get_log_by_id: (a: number, b: number, c: number
|
|
181
|
-
readonly cedarling_get_log_ids: (a: number) =>
|
|
182
|
-
readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number,
|
|
183
|
-
readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number,
|
|
184
|
-
readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number,
|
|
174
|
+
readonly init: (a: any) => any;
|
|
175
|
+
readonly cedarling_new: (a: any) => any;
|
|
176
|
+
readonly cedarling_new_from_map: (a: any) => any;
|
|
177
|
+
readonly cedarling_authorize: (a: number, b: any) => any;
|
|
178
|
+
readonly cedarling_authorize_unsigned: (a: number, b: any) => any;
|
|
179
|
+
readonly cedarling_pop_logs: (a: number) => [number, number, number];
|
|
180
|
+
readonly cedarling_get_log_by_id: (a: number, b: number, c: number) => [number, number, number];
|
|
181
|
+
readonly cedarling_get_log_ids: (a: number) => any;
|
|
182
|
+
readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
|
|
183
|
+
readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
|
|
184
|
+
readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
185
185
|
readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
|
|
186
186
|
readonly __wbg_get_authorizeresult_workload: (a: number) => number;
|
|
187
187
|
readonly __wbg_set_authorizeresult_workload: (a: number, b: number) => void;
|
|
@@ -189,32 +189,36 @@ export interface InitOutput {
|
|
|
189
189
|
readonly __wbg_set_authorizeresult_person: (a: number, b: number) => void;
|
|
190
190
|
readonly __wbg_get_authorizeresult_decision: (a: number) => number;
|
|
191
191
|
readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
|
|
192
|
-
readonly __wbg_get_authorizeresult_request_id: (a: number
|
|
192
|
+
readonly __wbg_get_authorizeresult_request_id: (a: number) => [number, number];
|
|
193
193
|
readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
194
|
-
readonly authorizeresult_json_string: (a: number
|
|
194
|
+
readonly authorizeresult_json_string: (a: number) => [number, number];
|
|
195
195
|
readonly authorizeresult_principal: (a: number, b: number, c: number) => number;
|
|
196
196
|
readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
|
|
197
197
|
readonly authorizeresultresponse_decision: (a: number) => number;
|
|
198
198
|
readonly authorizeresultresponse_diagnostics: (a: number) => number;
|
|
199
199
|
readonly __wbg_diagnostics_free: (a: number, b: number) => void;
|
|
200
|
-
readonly diagnostics_reason: (a: number
|
|
201
|
-
readonly diagnostics_errors: (a: number
|
|
200
|
+
readonly diagnostics_reason: (a: number) => [number, number];
|
|
201
|
+
readonly diagnostics_errors: (a: number) => [number, number];
|
|
202
202
|
readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
|
|
203
|
-
readonly policyevaluationerror_id: (a: number
|
|
204
|
-
readonly policyevaluationerror_error: (a: number
|
|
203
|
+
readonly policyevaluationerror_id: (a: number) => [number, number];
|
|
204
|
+
readonly policyevaluationerror_error: (a: number) => [number, number];
|
|
205
205
|
readonly __wbg_jsjsonlogic_free: (a: number, b: number) => void;
|
|
206
206
|
readonly jsjsonlogic_new: () => number;
|
|
207
|
-
readonly jsjsonlogic_apply: (a: number, b:
|
|
207
|
+
readonly jsjsonlogic_apply: (a: number, b: any, c: any) => [number, number, number];
|
|
208
208
|
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
readonly
|
|
209
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
210
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
211
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
212
|
+
readonly __externref_table_alloc: () => number;
|
|
213
|
+
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
214
|
+
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
215
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
216
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
217
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
218
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6272236f7cfb706f: (a: number, b: number) => void;
|
|
219
|
+
readonly closure471_externref_shim: (a: number, b: number, c: any) => void;
|
|
220
|
+
readonly closure1740_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
221
|
+
readonly __wbindgen_start: () => void;
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/cedarling_wasm.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
const heap = new Array(128).fill(undefined);
|
|
4
|
-
|
|
5
|
-
heap.push(undefined, null, true, false);
|
|
6
|
-
|
|
7
|
-
function getObject(idx) { return heap[idx]; }
|
|
8
|
-
|
|
9
3
|
let WASM_VECTOR_LEN = 0;
|
|
10
4
|
|
|
11
5
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -89,14 +83,9 @@ function getStringFromWasm0(ptr, len) {
|
|
|
89
83
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
90
84
|
}
|
|
91
85
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
96
|
-
const idx = heap_next;
|
|
97
|
-
heap_next = heap[idx];
|
|
98
|
-
|
|
99
|
-
heap[idx] = obj;
|
|
86
|
+
function addToExternrefTable0(obj) {
|
|
87
|
+
const idx = wasm.__externref_table_alloc();
|
|
88
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
100
89
|
return idx;
|
|
101
90
|
}
|
|
102
91
|
|
|
@@ -104,22 +93,11 @@ function handleError(f, args) {
|
|
|
104
93
|
try {
|
|
105
94
|
return f.apply(this, args);
|
|
106
95
|
} catch (e) {
|
|
107
|
-
|
|
96
|
+
const idx = addToExternrefTable0(e);
|
|
97
|
+
wasm.__wbindgen_exn_store(idx);
|
|
108
98
|
}
|
|
109
99
|
}
|
|
110
100
|
|
|
111
|
-
function dropObject(idx) {
|
|
112
|
-
if (idx < 132) return;
|
|
113
|
-
heap[idx] = heap_next;
|
|
114
|
-
heap_next = idx;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function takeObject(idx) {
|
|
118
|
-
const ret = getObject(idx);
|
|
119
|
-
dropObject(idx);
|
|
120
|
-
return ret;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
101
|
function isLikeNone(x) {
|
|
124
102
|
return x === undefined || x === null;
|
|
125
103
|
}
|
|
@@ -127,7 +105,7 @@ function isLikeNone(x) {
|
|
|
127
105
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
128
106
|
? { register: () => {}, unregister: () => {} }
|
|
129
107
|
: new FinalizationRegistry(state => {
|
|
130
|
-
wasm.
|
|
108
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
|
|
131
109
|
});
|
|
132
110
|
|
|
133
111
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
@@ -143,7 +121,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
143
121
|
return f(a, state.b, ...args);
|
|
144
122
|
} finally {
|
|
145
123
|
if (--state.cnt === 0) {
|
|
146
|
-
wasm.
|
|
124
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
147
125
|
CLOSURE_DTORS.unregister(state);
|
|
148
126
|
} else {
|
|
149
127
|
state.a = a;
|
|
@@ -226,8 +204,14 @@ function debugString(val) {
|
|
|
226
204
|
* @returns {Promise<Cedarling>}
|
|
227
205
|
*/
|
|
228
206
|
export function init(config) {
|
|
229
|
-
const ret = wasm.init(
|
|
230
|
-
return
|
|
207
|
+
const ret = wasm.init(config);
|
|
208
|
+
return ret;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function takeFromExternrefTable0(idx) {
|
|
212
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
213
|
+
wasm.__externref_table_dealloc(idx);
|
|
214
|
+
return value;
|
|
231
215
|
}
|
|
232
216
|
|
|
233
217
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
@@ -235,8 +219,9 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
235
219
|
const mem = getDataViewMemory0();
|
|
236
220
|
const result = [];
|
|
237
221
|
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
238
|
-
result.push(
|
|
222
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
239
223
|
}
|
|
224
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
240
225
|
return result;
|
|
241
226
|
}
|
|
242
227
|
|
|
@@ -245,16 +230,16 @@ function _assertClass(instance, klass) {
|
|
|
245
230
|
throw new Error(`expected instance of ${klass.name}`);
|
|
246
231
|
}
|
|
247
232
|
}
|
|
248
|
-
function
|
|
249
|
-
wasm.
|
|
233
|
+
function __wbg_adapter_50(arg0, arg1) {
|
|
234
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6272236f7cfb706f(arg0, arg1);
|
|
250
235
|
}
|
|
251
236
|
|
|
252
|
-
function
|
|
253
|
-
wasm.
|
|
237
|
+
function __wbg_adapter_53(arg0, arg1, arg2) {
|
|
238
|
+
wasm.closure471_externref_shim(arg0, arg1, arg2);
|
|
254
239
|
}
|
|
255
240
|
|
|
256
|
-
function
|
|
257
|
-
wasm.
|
|
241
|
+
function __wbg_adapter_241(arg0, arg1, arg2, arg3) {
|
|
242
|
+
wasm.closure1740_externref_shim(arg0, arg1, arg2, arg3);
|
|
258
243
|
}
|
|
259
244
|
|
|
260
245
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
@@ -360,16 +345,12 @@ export class AuthorizeResult {
|
|
|
360
345
|
let deferred1_0;
|
|
361
346
|
let deferred1_1;
|
|
362
347
|
try {
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
deferred1_0 = r0;
|
|
368
|
-
deferred1_1 = r1;
|
|
369
|
-
return getStringFromWasm0(r0, r1);
|
|
348
|
+
const ret = wasm.__wbg_get_authorizeresult_request_id(this.__wbg_ptr);
|
|
349
|
+
deferred1_0 = ret[0];
|
|
350
|
+
deferred1_1 = ret[1];
|
|
351
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
370
352
|
} finally {
|
|
371
|
-
wasm.
|
|
372
|
-
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
353
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
373
354
|
}
|
|
374
355
|
}
|
|
375
356
|
/**
|
|
@@ -377,7 +358,7 @@ export class AuthorizeResult {
|
|
|
377
358
|
* @param {string} arg0
|
|
378
359
|
*/
|
|
379
360
|
set request_id(arg0) {
|
|
380
|
-
const ptr0 = passStringToWasm0(arg0, wasm.
|
|
361
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
362
|
const len0 = WASM_VECTOR_LEN;
|
|
382
363
|
wasm.__wbg_set_authorizeresult_request_id(this.__wbg_ptr, ptr0, len0);
|
|
383
364
|
}
|
|
@@ -389,16 +370,12 @@ export class AuthorizeResult {
|
|
|
389
370
|
let deferred1_0;
|
|
390
371
|
let deferred1_1;
|
|
391
372
|
try {
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
deferred1_0 = r0;
|
|
397
|
-
deferred1_1 = r1;
|
|
398
|
-
return getStringFromWasm0(r0, r1);
|
|
373
|
+
const ret = wasm.authorizeresult_json_string(this.__wbg_ptr);
|
|
374
|
+
deferred1_0 = ret[0];
|
|
375
|
+
deferred1_1 = ret[1];
|
|
376
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
399
377
|
} finally {
|
|
400
|
-
wasm.
|
|
401
|
-
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
378
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
402
379
|
}
|
|
403
380
|
}
|
|
404
381
|
/**
|
|
@@ -406,7 +383,7 @@ export class AuthorizeResult {
|
|
|
406
383
|
* @returns {AuthorizeResultResponse | undefined}
|
|
407
384
|
*/
|
|
408
385
|
principal(principal) {
|
|
409
|
-
const ptr0 = passStringToWasm0(principal, wasm.
|
|
386
|
+
const ptr0 = passStringToWasm0(principal, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
410
387
|
const len0 = WASM_VECTOR_LEN;
|
|
411
388
|
const ret = wasm.authorizeresult_principal(this.__wbg_ptr, ptr0, len0);
|
|
412
389
|
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
@@ -493,8 +470,8 @@ export class Cedarling {
|
|
|
493
470
|
* @returns {Promise<Cedarling>}
|
|
494
471
|
*/
|
|
495
472
|
static new(config) {
|
|
496
|
-
const ret = wasm.cedarling_new(
|
|
497
|
-
return
|
|
473
|
+
const ret = wasm.cedarling_new(config);
|
|
474
|
+
return ret;
|
|
498
475
|
}
|
|
499
476
|
/**
|
|
500
477
|
* Create a new instance of the Cedarling application.
|
|
@@ -503,8 +480,8 @@ export class Cedarling {
|
|
|
503
480
|
* @returns {Promise<Cedarling>}
|
|
504
481
|
*/
|
|
505
482
|
static new_from_map(config) {
|
|
506
|
-
const ret = wasm.cedarling_new_from_map(
|
|
507
|
-
return
|
|
483
|
+
const ret = wasm.cedarling_new_from_map(config);
|
|
484
|
+
return ret;
|
|
508
485
|
}
|
|
509
486
|
/**
|
|
510
487
|
* Authorize request
|
|
@@ -513,8 +490,8 @@ export class Cedarling {
|
|
|
513
490
|
* @returns {Promise<AuthorizeResult>}
|
|
514
491
|
*/
|
|
515
492
|
authorize(request) {
|
|
516
|
-
const ret = wasm.cedarling_authorize(this.__wbg_ptr,
|
|
517
|
-
return
|
|
493
|
+
const ret = wasm.cedarling_authorize(this.__wbg_ptr, request);
|
|
494
|
+
return ret;
|
|
518
495
|
}
|
|
519
496
|
/**
|
|
520
497
|
* Authorize request for unsigned principals.
|
|
@@ -523,8 +500,8 @@ export class Cedarling {
|
|
|
523
500
|
* @returns {Promise<AuthorizeResult>}
|
|
524
501
|
*/
|
|
525
502
|
authorize_unsigned(request) {
|
|
526
|
-
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr,
|
|
527
|
-
return
|
|
503
|
+
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
504
|
+
return ret;
|
|
528
505
|
}
|
|
529
506
|
/**
|
|
530
507
|
* Get logs and remove them from the storage.
|
|
@@ -532,19 +509,11 @@ export class Cedarling {
|
|
|
532
509
|
* @returns {Array<any>}
|
|
533
510
|
*/
|
|
534
511
|
pop_logs() {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
539
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
540
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
541
|
-
if (r2) {
|
|
542
|
-
throw takeObject(r1);
|
|
543
|
-
}
|
|
544
|
-
return takeObject(r0);
|
|
545
|
-
} finally {
|
|
546
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
512
|
+
const ret = wasm.cedarling_pop_logs(this.__wbg_ptr);
|
|
513
|
+
if (ret[2]) {
|
|
514
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
547
515
|
}
|
|
516
|
+
return takeFromExternrefTable0(ret[0]);
|
|
548
517
|
}
|
|
549
518
|
/**
|
|
550
519
|
* Get specific log entry.
|
|
@@ -553,21 +522,13 @@ export class Cedarling {
|
|
|
553
522
|
* @returns {any}
|
|
554
523
|
*/
|
|
555
524
|
get_log_by_id(id) {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
562
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
563
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
564
|
-
if (r2) {
|
|
565
|
-
throw takeObject(r1);
|
|
566
|
-
}
|
|
567
|
-
return takeObject(r0);
|
|
568
|
-
} finally {
|
|
569
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
525
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
526
|
+
const len0 = WASM_VECTOR_LEN;
|
|
527
|
+
const ret = wasm.cedarling_get_log_by_id(this.__wbg_ptr, ptr0, len0);
|
|
528
|
+
if (ret[2]) {
|
|
529
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
570
530
|
}
|
|
531
|
+
return takeFromExternrefTable0(ret[0]);
|
|
571
532
|
}
|
|
572
533
|
/**
|
|
573
534
|
* Returns a list of all log ids.
|
|
@@ -576,7 +537,7 @@ export class Cedarling {
|
|
|
576
537
|
*/
|
|
577
538
|
get_log_ids() {
|
|
578
539
|
const ret = wasm.cedarling_get_log_ids(this.__wbg_ptr);
|
|
579
|
-
return
|
|
540
|
+
return ret;
|
|
580
541
|
}
|
|
581
542
|
/**
|
|
582
543
|
* Get logs by tag, like `log_kind` or `log level`.
|
|
@@ -585,24 +546,15 @@ export class Cedarling {
|
|
|
585
546
|
* @returns {any[]}
|
|
586
547
|
*/
|
|
587
548
|
get_logs_by_tag(tag) {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
594
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
595
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
596
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
597
|
-
if (r3) {
|
|
598
|
-
throw takeObject(r2);
|
|
599
|
-
}
|
|
600
|
-
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
601
|
-
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
602
|
-
return v2;
|
|
603
|
-
} finally {
|
|
604
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
549
|
+
const ptr0 = passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
551
|
+
const ret = wasm.cedarling_get_logs_by_tag(this.__wbg_ptr, ptr0, len0);
|
|
552
|
+
if (ret[3]) {
|
|
553
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
605
554
|
}
|
|
555
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
556
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
557
|
+
return v2;
|
|
606
558
|
}
|
|
607
559
|
/**
|
|
608
560
|
* Get logs by request_id.
|
|
@@ -611,24 +563,15 @@ export class Cedarling {
|
|
|
611
563
|
* @returns {any[]}
|
|
612
564
|
*/
|
|
613
565
|
get_logs_by_request_id(request_id) {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
620
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
621
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
622
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
623
|
-
if (r3) {
|
|
624
|
-
throw takeObject(r2);
|
|
625
|
-
}
|
|
626
|
-
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
627
|
-
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
628
|
-
return v2;
|
|
629
|
-
} finally {
|
|
630
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
566
|
+
const ptr0 = passStringToWasm0(request_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
567
|
+
const len0 = WASM_VECTOR_LEN;
|
|
568
|
+
const ret = wasm.cedarling_get_logs_by_request_id(this.__wbg_ptr, ptr0, len0);
|
|
569
|
+
if (ret[3]) {
|
|
570
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
631
571
|
}
|
|
572
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
573
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
574
|
+
return v2;
|
|
632
575
|
}
|
|
633
576
|
/**
|
|
634
577
|
* Get log by request_id and tag, like composite key `request_id` + `log_kind`.
|
|
@@ -639,26 +582,17 @@ export class Cedarling {
|
|
|
639
582
|
* @returns {any[]}
|
|
640
583
|
*/
|
|
641
584
|
get_logs_by_request_id_and_tag(request_id, tag) {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
650
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
651
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
652
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
653
|
-
if (r3) {
|
|
654
|
-
throw takeObject(r2);
|
|
655
|
-
}
|
|
656
|
-
var v3 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
657
|
-
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
658
|
-
return v3;
|
|
659
|
-
} finally {
|
|
660
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
585
|
+
const ptr0 = passStringToWasm0(request_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
587
|
+
const ptr1 = passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
588
|
+
const len1 = WASM_VECTOR_LEN;
|
|
589
|
+
const ret = wasm.cedarling_get_logs_by_request_id_and_tag(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
590
|
+
if (ret[3]) {
|
|
591
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
661
592
|
}
|
|
593
|
+
var v3 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
594
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
595
|
+
return v3;
|
|
662
596
|
}
|
|
663
597
|
}
|
|
664
598
|
|
|
@@ -700,17 +634,10 @@ export class Diagnostics {
|
|
|
700
634
|
* @returns {string[]}
|
|
701
635
|
*/
|
|
702
636
|
get reason() {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
708
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
709
|
-
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
710
|
-
return v1;
|
|
711
|
-
} finally {
|
|
712
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
713
|
-
}
|
|
637
|
+
const ret = wasm.diagnostics_reason(this.__wbg_ptr);
|
|
638
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
639
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
640
|
+
return v1;
|
|
714
641
|
}
|
|
715
642
|
/**
|
|
716
643
|
* Errors that occurred during authorization. The errors should be
|
|
@@ -718,17 +645,10 @@ export class Diagnostics {
|
|
|
718
645
|
* @returns {PolicyEvaluationError[]}
|
|
719
646
|
*/
|
|
720
647
|
get errors() {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
726
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
727
|
-
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
728
|
-
return v1;
|
|
729
|
-
} finally {
|
|
730
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
731
|
-
}
|
|
648
|
+
const ret = wasm.diagnostics_errors(this.__wbg_ptr);
|
|
649
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
650
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
651
|
+
return v1;
|
|
732
652
|
}
|
|
733
653
|
}
|
|
734
654
|
|
|
@@ -761,19 +681,11 @@ export class JsJsonLogic {
|
|
|
761
681
|
* @returns {any}
|
|
762
682
|
*/
|
|
763
683
|
apply(logic, data) {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
768
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
769
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
770
|
-
if (r2) {
|
|
771
|
-
throw takeObject(r1);
|
|
772
|
-
}
|
|
773
|
-
return takeObject(r0);
|
|
774
|
-
} finally {
|
|
775
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
684
|
+
const ret = wasm.jsjsonlogic_apply(this.__wbg_ptr, logic, data);
|
|
685
|
+
if (ret[2]) {
|
|
686
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
776
687
|
}
|
|
688
|
+
return takeFromExternrefTable0(ret[0]);
|
|
777
689
|
}
|
|
778
690
|
}
|
|
779
691
|
|
|
@@ -815,16 +727,12 @@ export class PolicyEvaluationError {
|
|
|
815
727
|
let deferred1_0;
|
|
816
728
|
let deferred1_1;
|
|
817
729
|
try {
|
|
818
|
-
const
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
deferred1_0 = r0;
|
|
823
|
-
deferred1_1 = r1;
|
|
824
|
-
return getStringFromWasm0(r0, r1);
|
|
730
|
+
const ret = wasm.policyevaluationerror_id(this.__wbg_ptr);
|
|
731
|
+
deferred1_0 = ret[0];
|
|
732
|
+
deferred1_1 = ret[1];
|
|
733
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
825
734
|
} finally {
|
|
826
|
-
wasm.
|
|
827
|
-
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
735
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
828
736
|
}
|
|
829
737
|
}
|
|
830
738
|
/**
|
|
@@ -835,16 +743,12 @@ export class PolicyEvaluationError {
|
|
|
835
743
|
let deferred1_0;
|
|
836
744
|
let deferred1_1;
|
|
837
745
|
try {
|
|
838
|
-
const
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
deferred1_0 = r0;
|
|
843
|
-
deferred1_1 = r1;
|
|
844
|
-
return getStringFromWasm0(r0, r1);
|
|
746
|
+
const ret = wasm.policyevaluationerror_error(this.__wbg_ptr);
|
|
747
|
+
deferred1_0 = ret[0];
|
|
748
|
+
deferred1_1 = ret[1];
|
|
749
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
845
750
|
} finally {
|
|
846
|
-
wasm.
|
|
847
|
-
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
751
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
848
752
|
}
|
|
849
753
|
}
|
|
850
754
|
}
|
|
@@ -884,117 +788,117 @@ function __wbg_get_imports() {
|
|
|
884
788
|
const imports = {};
|
|
885
789
|
imports.wbg = {};
|
|
886
790
|
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
887
|
-
const ret = String(
|
|
888
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
791
|
+
const ret = String(arg1);
|
|
792
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
889
793
|
const len1 = WASM_VECTOR_LEN;
|
|
890
794
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
891
795
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
892
796
|
};
|
|
893
797
|
imports.wbg.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
|
|
894
|
-
|
|
798
|
+
arg0.abort(arg1);
|
|
895
799
|
};
|
|
896
800
|
imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
|
|
897
|
-
|
|
801
|
+
arg0.abort();
|
|
898
802
|
};
|
|
899
803
|
imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
900
|
-
|
|
804
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
901
805
|
}, arguments) };
|
|
902
806
|
imports.wbg.__wbg_authorizeresult_new = function(arg0) {
|
|
903
807
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
904
|
-
return
|
|
808
|
+
return ret;
|
|
905
809
|
};
|
|
906
810
|
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
907
|
-
const ret =
|
|
908
|
-
return
|
|
811
|
+
const ret = arg0.buffer;
|
|
812
|
+
return ret;
|
|
909
813
|
};
|
|
910
814
|
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
911
|
-
const ret =
|
|
912
|
-
return
|
|
815
|
+
const ret = arg0.call(arg1);
|
|
816
|
+
return ret;
|
|
913
817
|
}, arguments) };
|
|
914
818
|
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
915
|
-
const ret =
|
|
916
|
-
return
|
|
819
|
+
const ret = arg0.call(arg1, arg2);
|
|
820
|
+
return ret;
|
|
917
821
|
}, arguments) };
|
|
918
822
|
imports.wbg.__wbg_cedarling_new = function(arg0) {
|
|
919
823
|
const ret = Cedarling.__wrap(arg0);
|
|
920
|
-
return
|
|
824
|
+
return ret;
|
|
921
825
|
};
|
|
922
826
|
imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
|
|
923
|
-
const ret = clearTimeout(
|
|
924
|
-
return
|
|
827
|
+
const ret = clearTimeout(arg0);
|
|
828
|
+
return ret;
|
|
925
829
|
};
|
|
926
|
-
imports.wbg.
|
|
927
|
-
const ret =
|
|
928
|
-
return
|
|
830
|
+
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
831
|
+
const ret = arg0.crypto;
|
|
832
|
+
return ret;
|
|
929
833
|
};
|
|
930
834
|
imports.wbg.__wbg_debug_faaa2b98a2718860 = function(arg0) {
|
|
931
|
-
console.debug(...
|
|
835
|
+
console.debug(...arg0);
|
|
932
836
|
};
|
|
933
837
|
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
934
|
-
const ret =
|
|
838
|
+
const ret = arg0.done;
|
|
935
839
|
return ret;
|
|
936
840
|
};
|
|
937
841
|
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
938
|
-
const ret = Object.entries(
|
|
939
|
-
return
|
|
842
|
+
const ret = Object.entries(arg0);
|
|
843
|
+
return ret;
|
|
940
844
|
};
|
|
941
845
|
imports.wbg.__wbg_entries_c8a90a7ed73e84ce = function(arg0) {
|
|
942
|
-
const ret =
|
|
943
|
-
return
|
|
846
|
+
const ret = arg0.entries();
|
|
847
|
+
return ret;
|
|
944
848
|
};
|
|
945
849
|
imports.wbg.__wbg_error_dc53417fcef5463a = function(arg0) {
|
|
946
|
-
console.error(...
|
|
850
|
+
console.error(...arg0);
|
|
947
851
|
};
|
|
948
852
|
imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
949
|
-
const ret =
|
|
950
|
-
return
|
|
853
|
+
const ret = arg0.fetch(arg1);
|
|
854
|
+
return ret;
|
|
951
855
|
};
|
|
952
856
|
imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
|
|
953
|
-
const ret = fetch(
|
|
954
|
-
return
|
|
857
|
+
const ret = fetch(arg0);
|
|
858
|
+
return ret;
|
|
955
859
|
};
|
|
956
860
|
imports.wbg.__wbg_fromEntries_524679eecb0bdc2e = function() { return handleError(function (arg0) {
|
|
957
|
-
const ret = Object.fromEntries(
|
|
958
|
-
return
|
|
861
|
+
const ret = Object.fromEntries(arg0);
|
|
862
|
+
return ret;
|
|
959
863
|
}, arguments) };
|
|
960
|
-
imports.wbg.
|
|
961
|
-
|
|
864
|
+
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
865
|
+
arg0.getRandomValues(arg1);
|
|
962
866
|
}, arguments) };
|
|
963
867
|
imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
964
|
-
const ret =
|
|
868
|
+
const ret = arg0.getTime();
|
|
965
869
|
return ret;
|
|
966
870
|
};
|
|
967
871
|
imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
968
|
-
const ret =
|
|
872
|
+
const ret = arg0.getTimezoneOffset();
|
|
969
873
|
return ret;
|
|
970
874
|
};
|
|
971
875
|
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
972
|
-
const ret = Reflect.get(
|
|
973
|
-
return
|
|
876
|
+
const ret = Reflect.get(arg0, arg1);
|
|
877
|
+
return ret;
|
|
974
878
|
}, arguments) };
|
|
975
879
|
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
976
|
-
const ret =
|
|
977
|
-
return
|
|
880
|
+
const ret = arg0[arg1 >>> 0];
|
|
881
|
+
return ret;
|
|
978
882
|
};
|
|
979
883
|
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
980
|
-
const ret =
|
|
981
|
-
return
|
|
884
|
+
const ret = arg0[arg1];
|
|
885
|
+
return ret;
|
|
982
886
|
};
|
|
983
887
|
imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
|
|
984
|
-
const ret = Reflect.has(
|
|
888
|
+
const ret = Reflect.has(arg0, arg1);
|
|
985
889
|
return ret;
|
|
986
890
|
}, arguments) };
|
|
987
891
|
imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
|
|
988
|
-
const ret =
|
|
989
|
-
return
|
|
892
|
+
const ret = arg0.headers;
|
|
893
|
+
return ret;
|
|
990
894
|
};
|
|
991
895
|
imports.wbg.__wbg_info_7fbe81f62c7b4dab = function(arg0) {
|
|
992
|
-
console.info(...
|
|
896
|
+
console.info(...arg0);
|
|
993
897
|
};
|
|
994
898
|
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
995
899
|
let result;
|
|
996
900
|
try {
|
|
997
|
-
result =
|
|
901
|
+
result = arg0 instanceof ArrayBuffer;
|
|
998
902
|
} catch (_) {
|
|
999
903
|
result = false;
|
|
1000
904
|
}
|
|
@@ -1004,7 +908,7 @@ function __wbg_get_imports() {
|
|
|
1004
908
|
imports.wbg.__wbg_instanceof_Array_6ac07133d621675a = function(arg0) {
|
|
1005
909
|
let result;
|
|
1006
910
|
try {
|
|
1007
|
-
result =
|
|
911
|
+
result = arg0 instanceof Array;
|
|
1008
912
|
} catch (_) {
|
|
1009
913
|
result = false;
|
|
1010
914
|
}
|
|
@@ -1014,7 +918,7 @@ function __wbg_get_imports() {
|
|
|
1014
918
|
imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
|
|
1015
919
|
let result;
|
|
1016
920
|
try {
|
|
1017
|
-
result =
|
|
921
|
+
result = arg0 instanceof Map;
|
|
1018
922
|
} catch (_) {
|
|
1019
923
|
result = false;
|
|
1020
924
|
}
|
|
@@ -1024,7 +928,7 @@ function __wbg_get_imports() {
|
|
|
1024
928
|
imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
1025
929
|
let result;
|
|
1026
930
|
try {
|
|
1027
|
-
result =
|
|
931
|
+
result = arg0 instanceof Response;
|
|
1028
932
|
} catch (_) {
|
|
1029
933
|
result = false;
|
|
1030
934
|
}
|
|
@@ -1034,7 +938,7 @@ function __wbg_get_imports() {
|
|
|
1034
938
|
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
1035
939
|
let result;
|
|
1036
940
|
try {
|
|
1037
|
-
result =
|
|
941
|
+
result = arg0 instanceof Uint8Array;
|
|
1038
942
|
} catch (_) {
|
|
1039
943
|
result = false;
|
|
1040
944
|
}
|
|
@@ -1042,43 +946,43 @@ function __wbg_get_imports() {
|
|
|
1042
946
|
return ret;
|
|
1043
947
|
};
|
|
1044
948
|
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
1045
|
-
const ret = Array.isArray(
|
|
949
|
+
const ret = Array.isArray(arg0);
|
|
1046
950
|
return ret;
|
|
1047
951
|
};
|
|
1048
952
|
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
1049
|
-
const ret = Number.isSafeInteger(
|
|
953
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1050
954
|
return ret;
|
|
1051
955
|
};
|
|
1052
956
|
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
1053
957
|
const ret = Symbol.iterator;
|
|
1054
|
-
return
|
|
958
|
+
return ret;
|
|
1055
959
|
};
|
|
1056
960
|
imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
|
|
1057
|
-
const ret = Object.keys(
|
|
1058
|
-
return
|
|
961
|
+
const ret = Object.keys(arg0);
|
|
962
|
+
return ret;
|
|
1059
963
|
};
|
|
1060
964
|
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
1061
|
-
const ret =
|
|
965
|
+
const ret = arg0.length;
|
|
1062
966
|
return ret;
|
|
1063
967
|
};
|
|
1064
968
|
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
1065
|
-
const ret =
|
|
969
|
+
const ret = arg0.length;
|
|
1066
970
|
return ret;
|
|
1067
971
|
};
|
|
1068
972
|
imports.wbg.__wbg_log_245868b4b99cdf20 = function(arg0) {
|
|
1069
|
-
console.log(...
|
|
973
|
+
console.log(...arg0);
|
|
1070
974
|
};
|
|
1071
|
-
imports.wbg.
|
|
1072
|
-
const ret =
|
|
1073
|
-
return
|
|
975
|
+
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
976
|
+
const ret = arg0.msCrypto;
|
|
977
|
+
return ret;
|
|
1074
978
|
};
|
|
1075
979
|
imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
|
|
1076
980
|
const ret = new Date();
|
|
1077
|
-
return
|
|
981
|
+
return ret;
|
|
1078
982
|
};
|
|
1079
983
|
imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
|
|
1080
984
|
const ret = new Headers();
|
|
1081
|
-
return
|
|
985
|
+
return ret;
|
|
1082
986
|
}, arguments) };
|
|
1083
987
|
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
1084
988
|
try {
|
|
@@ -1087,228 +991,228 @@ function __wbg_get_imports() {
|
|
|
1087
991
|
const a = state0.a;
|
|
1088
992
|
state0.a = 0;
|
|
1089
993
|
try {
|
|
1090
|
-
return
|
|
994
|
+
return __wbg_adapter_241(a, state0.b, arg0, arg1);
|
|
1091
995
|
} finally {
|
|
1092
996
|
state0.a = a;
|
|
1093
997
|
}
|
|
1094
998
|
};
|
|
1095
999
|
const ret = new Promise(cb0);
|
|
1096
|
-
return
|
|
1000
|
+
return ret;
|
|
1097
1001
|
} finally {
|
|
1098
1002
|
state0.a = state0.b = 0;
|
|
1099
1003
|
}
|
|
1100
1004
|
};
|
|
1101
1005
|
imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
1102
|
-
const ret = new Date(
|
|
1103
|
-
return
|
|
1006
|
+
const ret = new Date(arg0);
|
|
1007
|
+
return ret;
|
|
1104
1008
|
};
|
|
1105
1009
|
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
1106
1010
|
const ret = new Object();
|
|
1107
|
-
return
|
|
1011
|
+
return ret;
|
|
1108
1012
|
};
|
|
1109
1013
|
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
|
1110
1014
|
const ret = new Map();
|
|
1111
|
-
return
|
|
1015
|
+
return ret;
|
|
1112
1016
|
};
|
|
1113
1017
|
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
1114
1018
|
const ret = new Array();
|
|
1115
|
-
return
|
|
1019
|
+
return ret;
|
|
1116
1020
|
};
|
|
1117
1021
|
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1118
|
-
const ret = new Uint8Array(
|
|
1119
|
-
return
|
|
1022
|
+
const ret = new Uint8Array(arg0);
|
|
1023
|
+
return ret;
|
|
1120
1024
|
};
|
|
1121
1025
|
imports.wbg.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
|
|
1122
1026
|
const ret = new AbortController();
|
|
1123
|
-
return
|
|
1027
|
+
return ret;
|
|
1124
1028
|
}, arguments) };
|
|
1125
1029
|
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
1126
1030
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1127
|
-
return
|
|
1031
|
+
return ret;
|
|
1128
1032
|
};
|
|
1129
1033
|
imports.wbg.__wbg_newwithargs_ab6ffe8cd6c19c04 = function(arg0, arg1, arg2, arg3) {
|
|
1130
1034
|
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1131
|
-
return
|
|
1035
|
+
return ret;
|
|
1132
1036
|
};
|
|
1133
1037
|
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
1134
|
-
const ret = new Uint8Array(
|
|
1135
|
-
return
|
|
1038
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1039
|
+
return ret;
|
|
1136
1040
|
};
|
|
1137
1041
|
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
1138
1042
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1139
|
-
return
|
|
1043
|
+
return ret;
|
|
1140
1044
|
};
|
|
1141
1045
|
imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1142
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1),
|
|
1143
|
-
return
|
|
1046
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1047
|
+
return ret;
|
|
1144
1048
|
}, arguments) };
|
|
1145
1049
|
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
1146
|
-
const ret =
|
|
1147
|
-
return
|
|
1050
|
+
const ret = arg0.next;
|
|
1051
|
+
return ret;
|
|
1148
1052
|
};
|
|
1149
1053
|
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
1150
|
-
const ret =
|
|
1151
|
-
return
|
|
1054
|
+
const ret = arg0.next();
|
|
1055
|
+
return ret;
|
|
1152
1056
|
}, arguments) };
|
|
1153
|
-
imports.wbg.
|
|
1154
|
-
const ret =
|
|
1155
|
-
return
|
|
1057
|
+
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1058
|
+
const ret = arg0.node;
|
|
1059
|
+
return ret;
|
|
1156
1060
|
};
|
|
1157
1061
|
imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1158
1062
|
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1159
|
-
return
|
|
1063
|
+
return ret;
|
|
1160
1064
|
};
|
|
1161
|
-
imports.wbg.
|
|
1162
|
-
const ret =
|
|
1163
|
-
return
|
|
1065
|
+
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1066
|
+
const ret = arg0.process;
|
|
1067
|
+
return ret;
|
|
1164
1068
|
};
|
|
1165
1069
|
imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
|
|
1166
|
-
const ret =
|
|
1070
|
+
const ret = arg0.push(arg1);
|
|
1167
1071
|
return ret;
|
|
1168
1072
|
};
|
|
1169
1073
|
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
1170
|
-
queueMicrotask(
|
|
1074
|
+
queueMicrotask(arg0);
|
|
1171
1075
|
};
|
|
1172
1076
|
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
1173
|
-
const ret =
|
|
1174
|
-
return
|
|
1077
|
+
const ret = arg0.queueMicrotask;
|
|
1078
|
+
return ret;
|
|
1175
1079
|
};
|
|
1176
|
-
imports.wbg.
|
|
1177
|
-
|
|
1080
|
+
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1081
|
+
arg0.randomFillSync(arg1);
|
|
1178
1082
|
}, arguments) };
|
|
1179
|
-
imports.wbg.
|
|
1083
|
+
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1180
1084
|
const ret = module.require;
|
|
1181
|
-
return
|
|
1085
|
+
return ret;
|
|
1182
1086
|
}, arguments) };
|
|
1183
1087
|
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
1184
|
-
const ret = Promise.resolve(
|
|
1185
|
-
return
|
|
1088
|
+
const ret = Promise.resolve(arg0);
|
|
1089
|
+
return ret;
|
|
1186
1090
|
};
|
|
1187
1091
|
imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
|
|
1188
|
-
const ret = setTimeout(
|
|
1189
|
-
return
|
|
1092
|
+
const ret = setTimeout(arg0, arg1);
|
|
1093
|
+
return ret;
|
|
1190
1094
|
};
|
|
1191
1095
|
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
1192
|
-
|
|
1096
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1193
1097
|
};
|
|
1194
1098
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1195
|
-
|
|
1099
|
+
arg0[arg1] = arg2;
|
|
1196
1100
|
};
|
|
1197
1101
|
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
1198
|
-
|
|
1102
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1199
1103
|
};
|
|
1200
1104
|
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
|
1201
|
-
const ret =
|
|
1202
|
-
return
|
|
1105
|
+
const ret = arg0.set(arg1, arg2);
|
|
1106
|
+
return ret;
|
|
1203
1107
|
};
|
|
1204
1108
|
imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1205
|
-
const ret = Reflect.set(
|
|
1109
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1206
1110
|
return ret;
|
|
1207
1111
|
}, arguments) };
|
|
1208
1112
|
imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
1209
|
-
|
|
1113
|
+
arg0.body = arg1;
|
|
1210
1114
|
};
|
|
1211
1115
|
imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
|
|
1212
|
-
|
|
1116
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1213
1117
|
};
|
|
1214
1118
|
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
1215
|
-
|
|
1119
|
+
arg0.headers = arg1;
|
|
1216
1120
|
};
|
|
1217
1121
|
imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
1218
|
-
|
|
1122
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1219
1123
|
};
|
|
1220
1124
|
imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
1221
|
-
|
|
1125
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1222
1126
|
};
|
|
1223
1127
|
imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
|
|
1224
|
-
|
|
1128
|
+
arg0.signal = arg1;
|
|
1225
1129
|
};
|
|
1226
1130
|
imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
|
|
1227
|
-
const ret =
|
|
1228
|
-
return
|
|
1131
|
+
const ret = arg0.signal;
|
|
1132
|
+
return ret;
|
|
1229
1133
|
};
|
|
1230
1134
|
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
1231
1135
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1232
|
-
return isLikeNone(ret) ? 0 :
|
|
1136
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1233
1137
|
};
|
|
1234
1138
|
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
1235
1139
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1236
|
-
return isLikeNone(ret) ? 0 :
|
|
1140
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1237
1141
|
};
|
|
1238
1142
|
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
1239
1143
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1240
|
-
return isLikeNone(ret) ? 0 :
|
|
1144
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1241
1145
|
};
|
|
1242
1146
|
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
1243
1147
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1244
|
-
return isLikeNone(ret) ? 0 :
|
|
1148
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1245
1149
|
};
|
|
1246
1150
|
imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
1247
|
-
const ret =
|
|
1151
|
+
const ret = arg0.status;
|
|
1248
1152
|
return ret;
|
|
1249
1153
|
};
|
|
1250
1154
|
imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
|
|
1251
|
-
const ret = JSON.stringify(
|
|
1252
|
-
return
|
|
1155
|
+
const ret = JSON.stringify(arg0);
|
|
1156
|
+
return ret;
|
|
1253
1157
|
}, arguments) };
|
|
1254
1158
|
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
1255
|
-
const ret =
|
|
1256
|
-
return
|
|
1159
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1160
|
+
return ret;
|
|
1257
1161
|
};
|
|
1258
1162
|
imports.wbg.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
|
|
1259
|
-
const ret =
|
|
1260
|
-
return
|
|
1163
|
+
const ret = arg0.text();
|
|
1164
|
+
return ret;
|
|
1261
1165
|
}, arguments) };
|
|
1262
1166
|
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
1263
|
-
const ret =
|
|
1264
|
-
return
|
|
1167
|
+
const ret = arg0.then(arg1);
|
|
1168
|
+
return ret;
|
|
1265
1169
|
};
|
|
1266
1170
|
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
1267
|
-
const ret =
|
|
1268
|
-
return
|
|
1171
|
+
const ret = arg0.then(arg1, arg2);
|
|
1172
|
+
return ret;
|
|
1269
1173
|
};
|
|
1270
1174
|
imports.wbg.__wbg_trace_8fa9ac2274ea7420 = function(arg0) {
|
|
1271
|
-
console.trace(...
|
|
1175
|
+
console.trace(...arg0);
|
|
1272
1176
|
};
|
|
1273
1177
|
imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
|
|
1274
|
-
const ret =
|
|
1275
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1178
|
+
const ret = arg1.url;
|
|
1179
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1276
1180
|
const len1 = WASM_VECTOR_LEN;
|
|
1277
1181
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1278
1182
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1279
1183
|
};
|
|
1280
1184
|
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
1281
|
-
const ret =
|
|
1282
|
-
return
|
|
1185
|
+
const ret = arg0.value;
|
|
1186
|
+
return ret;
|
|
1283
1187
|
};
|
|
1284
|
-
imports.wbg.
|
|
1285
|
-
const ret =
|
|
1286
|
-
return
|
|
1188
|
+
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1189
|
+
const ret = arg0.versions;
|
|
1190
|
+
return ret;
|
|
1287
1191
|
};
|
|
1288
1192
|
imports.wbg.__wbg_warn_ba4bf5118b457d45 = function(arg0) {
|
|
1289
|
-
console.warn(...
|
|
1193
|
+
console.warn(...arg0);
|
|
1290
1194
|
};
|
|
1291
1195
|
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1292
1196
|
const ret = arg0;
|
|
1293
|
-
return
|
|
1197
|
+
return ret;
|
|
1294
1198
|
};
|
|
1295
1199
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1296
1200
|
const ret = BigInt.asUintN(64, arg0);
|
|
1297
|
-
return
|
|
1201
|
+
return ret;
|
|
1298
1202
|
};
|
|
1299
1203
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1300
|
-
const v =
|
|
1204
|
+
const v = arg1;
|
|
1301
1205
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1302
1206
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1303
1207
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1304
1208
|
};
|
|
1305
1209
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1306
|
-
const v =
|
|
1210
|
+
const v = arg0;
|
|
1307
1211
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1308
1212
|
return ret;
|
|
1309
1213
|
};
|
|
1310
1214
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
1311
|
-
const obj =
|
|
1215
|
+
const obj = arg0.original;
|
|
1312
1216
|
if (obj.cnt-- == 1) {
|
|
1313
1217
|
obj.a = 0;
|
|
1314
1218
|
return true;
|
|
@@ -1316,90 +1220,93 @@ function __wbg_get_imports() {
|
|
|
1316
1220
|
const ret = false;
|
|
1317
1221
|
return ret;
|
|
1318
1222
|
};
|
|
1319
|
-
imports.wbg.
|
|
1320
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1321
|
-
return
|
|
1223
|
+
imports.wbg.__wbindgen_closure_wrapper3247 = function(arg0, arg1, arg2) {
|
|
1224
|
+
const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_50);
|
|
1225
|
+
return ret;
|
|
1322
1226
|
};
|
|
1323
|
-
imports.wbg.
|
|
1324
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1325
|
-
return
|
|
1227
|
+
imports.wbg.__wbindgen_closure_wrapper3385 = function(arg0, arg1, arg2) {
|
|
1228
|
+
const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_53);
|
|
1229
|
+
return ret;
|
|
1326
1230
|
};
|
|
1327
1231
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1328
|
-
const ret = debugString(
|
|
1329
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1232
|
+
const ret = debugString(arg1);
|
|
1233
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1330
1234
|
const len1 = WASM_VECTOR_LEN;
|
|
1331
1235
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1332
1236
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1333
1237
|
};
|
|
1334
1238
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1335
1239
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1336
|
-
return
|
|
1240
|
+
return ret;
|
|
1337
1241
|
};
|
|
1338
1242
|
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1339
|
-
const ret =
|
|
1243
|
+
const ret = arg0 in arg1;
|
|
1340
1244
|
return ret;
|
|
1341
1245
|
};
|
|
1246
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1247
|
+
const table = wasm.__wbindgen_export_4;
|
|
1248
|
+
const offset = table.grow(4);
|
|
1249
|
+
table.set(0, undefined);
|
|
1250
|
+
table.set(offset + 0, undefined);
|
|
1251
|
+
table.set(offset + 1, null);
|
|
1252
|
+
table.set(offset + 2, true);
|
|
1253
|
+
table.set(offset + 3, false);
|
|
1254
|
+
;
|
|
1255
|
+
};
|
|
1342
1256
|
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
1343
|
-
const ret = typeof(
|
|
1257
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1344
1258
|
return ret;
|
|
1345
1259
|
};
|
|
1346
1260
|
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1347
|
-
const ret = typeof(
|
|
1261
|
+
const ret = typeof(arg0) === 'function';
|
|
1348
1262
|
return ret;
|
|
1349
1263
|
};
|
|
1350
1264
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1351
|
-
const val =
|
|
1265
|
+
const val = arg0;
|
|
1352
1266
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1353
1267
|
return ret;
|
|
1354
1268
|
};
|
|
1355
1269
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1356
|
-
const ret = typeof(
|
|
1270
|
+
const ret = typeof(arg0) === 'string';
|
|
1357
1271
|
return ret;
|
|
1358
1272
|
};
|
|
1359
1273
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1360
|
-
const ret =
|
|
1274
|
+
const ret = arg0 === undefined;
|
|
1361
1275
|
return ret;
|
|
1362
1276
|
};
|
|
1363
1277
|
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1364
|
-
const ret =
|
|
1278
|
+
const ret = arg0 === arg1;
|
|
1365
1279
|
return ret;
|
|
1366
1280
|
};
|
|
1367
1281
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1368
|
-
const ret =
|
|
1282
|
+
const ret = arg0 == arg1;
|
|
1369
1283
|
return ret;
|
|
1370
1284
|
};
|
|
1371
1285
|
imports.wbg.__wbindgen_memory = function() {
|
|
1372
1286
|
const ret = wasm.memory;
|
|
1373
|
-
return
|
|
1287
|
+
return ret;
|
|
1374
1288
|
};
|
|
1375
1289
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
1376
|
-
const obj =
|
|
1290
|
+
const obj = arg1;
|
|
1377
1291
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1378
1292
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1379
1293
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1380
1294
|
};
|
|
1381
1295
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1382
1296
|
const ret = arg0;
|
|
1383
|
-
return
|
|
1384
|
-
};
|
|
1385
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1386
|
-
const ret = getObject(arg0);
|
|
1387
|
-
return addHeapObject(ret);
|
|
1388
|
-
};
|
|
1389
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1390
|
-
takeObject(arg0);
|
|
1297
|
+
return ret;
|
|
1391
1298
|
};
|
|
1392
1299
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1393
|
-
const obj =
|
|
1300
|
+
const obj = arg1;
|
|
1394
1301
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1395
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
1302
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1396
1303
|
var len1 = WASM_VECTOR_LEN;
|
|
1397
1304
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1398
1305
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1399
1306
|
};
|
|
1400
1307
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1401
1308
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1402
|
-
return
|
|
1309
|
+
return ret;
|
|
1403
1310
|
};
|
|
1404
1311
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1405
1312
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
@@ -1419,7 +1326,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1419
1326
|
cachedUint8ArrayMemory0 = null;
|
|
1420
1327
|
|
|
1421
1328
|
|
|
1422
|
-
|
|
1329
|
+
wasm.__wbindgen_start();
|
|
1423
1330
|
return wasm;
|
|
1424
1331
|
}
|
|
1425
1332
|
|
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": "1.
|
|
5
|
+
"version": "1.7.0",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|