@janssenproject/cedarling_wasm 0.0.312 → 0.0.313-nodejs
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cedarling_wasm.d.ts +0 -93
- package/cedarling_wasm.js +156 -243
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +2 -6
package/cedarling_wasm.d.ts
CHANGED
|
@@ -227,96 +227,3 @@ export function init(config: any): Promise<Cedarling>;
|
|
|
227
227
|
* ```
|
|
228
228
|
*/
|
|
229
229
|
export function init_from_archive_bytes(config: any, archive_bytes: Uint8Array): Promise<Cedarling>;
|
|
230
|
-
|
|
231
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
232
|
-
|
|
233
|
-
export interface InitOutput {
|
|
234
|
-
readonly memory: WebAssembly.Memory;
|
|
235
|
-
readonly __wbg_cedarling_free: (a: number, b: number) => void;
|
|
236
|
-
readonly __wbg_multiissuerauthorizeresult_free: (a: number, b: number) => void;
|
|
237
|
-
readonly __wbg_get_multiissuerauthorizeresult_response: (a: number) => number;
|
|
238
|
-
readonly __wbg_set_multiissuerauthorizeresult_response: (a: number, b: number) => void;
|
|
239
|
-
readonly __wbg_get_multiissuerauthorizeresult_decision: (a: number) => number;
|
|
240
|
-
readonly __wbg_set_multiissuerauthorizeresult_decision: (a: number, b: number) => void;
|
|
241
|
-
readonly __wbg_get_multiissuerauthorizeresult_request_id: (a: number) => [number, number];
|
|
242
|
-
readonly __wbg_set_multiissuerauthorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
243
|
-
readonly multiissuerauthorizeresult_json_string: (a: number) => [number, number];
|
|
244
|
-
readonly init: (a: any) => any;
|
|
245
|
-
readonly init_from_archive_bytes: (a: any, b: any) => any;
|
|
246
|
-
readonly cedarling_new: (a: any) => any;
|
|
247
|
-
readonly cedarling_new_from_map: (a: any) => any;
|
|
248
|
-
readonly cedarling_authorize: (a: number, b: any) => any;
|
|
249
|
-
readonly cedarling_authorize_unsigned: (a: number, b: any) => any;
|
|
250
|
-
readonly cedarling_authorize_multi_issuer: (a: number, b: any) => any;
|
|
251
|
-
readonly cedarling_pop_logs: (a: number) => [number, number, number];
|
|
252
|
-
readonly cedarling_get_log_by_id: (a: number, b: number, c: number) => [number, number, number];
|
|
253
|
-
readonly cedarling_get_log_ids: (a: number) => any;
|
|
254
|
-
readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
|
|
255
|
-
readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
|
|
256
|
-
readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
257
|
-
readonly cedarling_shut_down: (a: number) => any;
|
|
258
|
-
readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
|
|
259
|
-
readonly __wbg_get_authorizeresult_workload: (a: number) => number;
|
|
260
|
-
readonly __wbg_set_authorizeresult_workload: (a: number, b: number) => void;
|
|
261
|
-
readonly __wbg_get_authorizeresult_person: (a: number) => number;
|
|
262
|
-
readonly __wbg_set_authorizeresult_person: (a: number, b: number) => void;
|
|
263
|
-
readonly __wbg_get_authorizeresult_decision: (a: number) => number;
|
|
264
|
-
readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
|
|
265
|
-
readonly __wbg_get_authorizeresult_request_id: (a: number) => [number, number];
|
|
266
|
-
readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
267
|
-
readonly authorizeresult_json_string: (a: number) => [number, number];
|
|
268
|
-
readonly authorizeresult_principal: (a: number, b: number, c: number) => number;
|
|
269
|
-
readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
|
|
270
|
-
readonly authorizeresultresponse_decision: (a: number) => number;
|
|
271
|
-
readonly authorizeresultresponse_diagnostics: (a: number) => number;
|
|
272
|
-
readonly __wbg_diagnostics_free: (a: number, b: number) => void;
|
|
273
|
-
readonly diagnostics_reason: (a: number) => [number, number];
|
|
274
|
-
readonly diagnostics_errors: (a: number) => [number, number];
|
|
275
|
-
readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
|
|
276
|
-
readonly policyevaluationerror_id: (a: number) => [number, number];
|
|
277
|
-
readonly policyevaluationerror_error: (a: number) => [number, number];
|
|
278
|
-
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
279
|
-
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
280
|
-
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
281
|
-
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
282
|
-
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
283
|
-
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
284
|
-
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
285
|
-
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
286
|
-
readonly wasm_bindgen__closure__destroy__h6040ec9204f8ec90: (a: number, b: number) => void;
|
|
287
|
-
readonly wasm_bindgen__closure__destroy__h5ca61ceeccdb4050: (a: number, b: number) => void;
|
|
288
|
-
readonly wasm_bindgen__convert__closures_____invoke__h662f8e0721b9d210: (a: number, b: number, c: any) => [number, number];
|
|
289
|
-
readonly wasm_bindgen__convert__closures_____invoke__hd96d811f18675791: (a: number, b: number, c: any, d: any) => void;
|
|
290
|
-
readonly wasm_bindgen__convert__closures_____invoke__h9354621fa201e4f1: (a: number, b: number) => void;
|
|
291
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
292
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
293
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
294
|
-
readonly __externref_table_alloc: () => number;
|
|
295
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
296
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
297
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
298
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
299
|
-
readonly __wbindgen_start: () => void;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
306
|
-
* a precompiled `WebAssembly.Module`.
|
|
307
|
-
*
|
|
308
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
309
|
-
*
|
|
310
|
-
* @returns {InitOutput}
|
|
311
|
-
*/
|
|
312
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
316
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
317
|
-
*
|
|
318
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
319
|
-
*
|
|
320
|
-
* @returns {Promise<InitOutput>}
|
|
321
|
-
*/
|
|
322
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/cedarling_wasm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
5
5
|
* Represents the result of an authorization request.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
class AuthorizeResult {
|
|
8
8
|
static __wrap(ptr) {
|
|
9
9
|
ptr = ptr >>> 0;
|
|
10
10
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -138,12 +138,13 @@ export class AuthorizeResult {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
141
|
+
exports.AuthorizeResult = AuthorizeResult;
|
|
141
142
|
|
|
142
143
|
/**
|
|
143
144
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
144
145
|
* Represents the result of an authorization request.
|
|
145
146
|
*/
|
|
146
|
-
|
|
147
|
+
class AuthorizeResultResponse {
|
|
147
148
|
static __wrap(ptr) {
|
|
148
149
|
ptr = ptr >>> 0;
|
|
149
150
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -179,11 +180,12 @@ export class AuthorizeResultResponse {
|
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
183
|
+
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
182
184
|
|
|
183
185
|
/**
|
|
184
186
|
* The instance of the Cedarling application.
|
|
185
187
|
*/
|
|
186
|
-
|
|
188
|
+
class Cedarling {
|
|
187
189
|
static __wrap(ptr) {
|
|
188
190
|
ptr = ptr >>> 0;
|
|
189
191
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -352,6 +354,7 @@ export class Cedarling {
|
|
|
352
354
|
}
|
|
353
355
|
}
|
|
354
356
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
357
|
+
exports.Cedarling = Cedarling;
|
|
355
358
|
|
|
356
359
|
/**
|
|
357
360
|
* Diagnostics
|
|
@@ -359,7 +362,7 @@ if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.fr
|
|
|
359
362
|
*
|
|
360
363
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
361
364
|
*/
|
|
362
|
-
|
|
365
|
+
class Diagnostics {
|
|
363
366
|
static __wrap(ptr) {
|
|
364
367
|
ptr = ptr >>> 0;
|
|
365
368
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -403,12 +406,13 @@ export class Diagnostics {
|
|
|
403
406
|
}
|
|
404
407
|
}
|
|
405
408
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
409
|
+
exports.Diagnostics = Diagnostics;
|
|
406
410
|
|
|
407
411
|
/**
|
|
408
412
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
409
413
|
* Represents the result of a multi-issuer authorization request.
|
|
410
414
|
*/
|
|
411
|
-
|
|
415
|
+
class MultiIssuerAuthorizeResult {
|
|
412
416
|
static __wrap(ptr) {
|
|
413
417
|
ptr = ptr >>> 0;
|
|
414
418
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -505,6 +509,7 @@ export class MultiIssuerAuthorizeResult {
|
|
|
505
509
|
}
|
|
506
510
|
}
|
|
507
511
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
512
|
+
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
508
513
|
|
|
509
514
|
/**
|
|
510
515
|
* PolicyEvaluationError
|
|
@@ -512,7 +517,7 @@ if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = Multi
|
|
|
512
517
|
*
|
|
513
518
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
514
519
|
*/
|
|
515
|
-
|
|
520
|
+
class PolicyEvaluationError {
|
|
516
521
|
static __wrap(ptr) {
|
|
517
522
|
ptr = ptr >>> 0;
|
|
518
523
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -564,6 +569,7 @@ export class PolicyEvaluationError {
|
|
|
564
569
|
}
|
|
565
570
|
}
|
|
566
571
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
572
|
+
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
567
573
|
|
|
568
574
|
/**
|
|
569
575
|
* Create a new instance of the Cedarling application.
|
|
@@ -571,10 +577,11 @@ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEval
|
|
|
571
577
|
* @param {any} config
|
|
572
578
|
* @returns {Promise<Cedarling>}
|
|
573
579
|
*/
|
|
574
|
-
|
|
580
|
+
function init(config) {
|
|
575
581
|
const ret = wasm.init(config);
|
|
576
582
|
return ret;
|
|
577
583
|
}
|
|
584
|
+
exports.init = init;
|
|
578
585
|
|
|
579
586
|
/**
|
|
580
587
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -596,80 +603,81 @@ export function init(config) {
|
|
|
596
603
|
* @param {Uint8Array} archive_bytes
|
|
597
604
|
* @returns {Promise<Cedarling>}
|
|
598
605
|
*/
|
|
599
|
-
|
|
606
|
+
function init_from_archive_bytes(config, archive_bytes) {
|
|
600
607
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
601
608
|
return ret;
|
|
602
609
|
}
|
|
610
|
+
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
603
611
|
|
|
604
612
|
function __wbg_get_imports() {
|
|
605
613
|
const import0 = {
|
|
606
614
|
__proto__: null,
|
|
607
|
-
|
|
615
|
+
__wbg_Error_4577686b3a6d9b3a: function(arg0, arg1) {
|
|
608
616
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
609
617
|
return ret;
|
|
610
618
|
},
|
|
611
|
-
|
|
619
|
+
__wbg_Number_e89e48a2fe1a6355: function(arg0) {
|
|
612
620
|
const ret = Number(arg0);
|
|
613
621
|
return ret;
|
|
614
622
|
},
|
|
615
|
-
|
|
623
|
+
__wbg___wbindgen_bigint_get_as_i64_578010f8442e0319: function(arg0, arg1) {
|
|
616
624
|
const v = arg1;
|
|
617
625
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
618
626
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
619
627
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
620
628
|
},
|
|
621
|
-
|
|
629
|
+
__wbg___wbindgen_boolean_get_18c4ed9422296fff: function(arg0) {
|
|
622
630
|
const v = arg0;
|
|
623
631
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
624
632
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
625
633
|
},
|
|
626
|
-
|
|
634
|
+
__wbg___wbindgen_debug_string_ddde1867f49c2442: function(arg0, arg1) {
|
|
627
635
|
const ret = debugString(arg1);
|
|
628
636
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
629
637
|
const len1 = WASM_VECTOR_LEN;
|
|
630
638
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
631
639
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
632
640
|
},
|
|
633
|
-
|
|
641
|
+
__wbg___wbindgen_in_1064a108f4d18b9e: function(arg0, arg1) {
|
|
634
642
|
const ret = arg0 in arg1;
|
|
635
643
|
return ret;
|
|
636
644
|
},
|
|
637
|
-
|
|
645
|
+
__wbg___wbindgen_is_bigint_a157f0734ca85901: function(arg0) {
|
|
638
646
|
const ret = typeof(arg0) === 'bigint';
|
|
639
647
|
return ret;
|
|
640
648
|
},
|
|
641
|
-
|
|
649
|
+
__wbg___wbindgen_is_function_d633e708baf0d146: function(arg0) {
|
|
642
650
|
const ret = typeof(arg0) === 'function';
|
|
643
651
|
return ret;
|
|
644
652
|
},
|
|
645
|
-
|
|
653
|
+
__wbg___wbindgen_is_object_4b3de556756ee8a8: function(arg0) {
|
|
646
654
|
const val = arg0;
|
|
647
655
|
const ret = typeof(val) === 'object' && val !== null;
|
|
648
656
|
return ret;
|
|
649
657
|
},
|
|
650
|
-
|
|
658
|
+
__wbg___wbindgen_is_string_7debe47dc1e045c2: function(arg0) {
|
|
651
659
|
const ret = typeof(arg0) === 'string';
|
|
652
660
|
return ret;
|
|
653
661
|
},
|
|
654
|
-
|
|
662
|
+
__wbg___wbindgen_is_undefined_c18285b9fc34cb7d: function(arg0) {
|
|
655
663
|
const ret = arg0 === undefined;
|
|
656
664
|
return ret;
|
|
657
665
|
},
|
|
658
|
-
|
|
666
|
+
__wbg___wbindgen_jsval_eq_a6afb59d8c5e78d6: function(arg0, arg1) {
|
|
659
667
|
const ret = arg0 === arg1;
|
|
660
668
|
return ret;
|
|
661
669
|
},
|
|
662
|
-
|
|
670
|
+
__wbg___wbindgen_jsval_loose_eq_1562ceb9af84e990: function(arg0, arg1) {
|
|
663
671
|
const ret = arg0 == arg1;
|
|
664
672
|
return ret;
|
|
665
673
|
},
|
|
666
|
-
|
|
674
|
+
__wbg___wbindgen_number_get_5854912275df1894: function(arg0, arg1) {
|
|
667
675
|
const obj = arg1;
|
|
668
676
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
669
677
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
670
678
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
671
679
|
},
|
|
672
|
-
|
|
680
|
+
__wbg___wbindgen_string_get_3e5751597f39a112: function(arg0, arg1) {
|
|
673
681
|
const obj = arg1;
|
|
674
682
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
675
683
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -677,22 +685,22 @@ function __wbg_get_imports() {
|
|
|
677
685
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
678
686
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
679
687
|
},
|
|
680
|
-
|
|
688
|
+
__wbg___wbindgen_throw_39bc967c0e5a9b58: function(arg0, arg1) {
|
|
681
689
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
682
690
|
},
|
|
683
|
-
|
|
691
|
+
__wbg__wbg_cb_unref_b6d832240a919168: function(arg0) {
|
|
684
692
|
arg0._wbg_cb_unref();
|
|
685
693
|
},
|
|
686
|
-
|
|
687
|
-
arg0.abort(arg1);
|
|
688
|
-
},
|
|
689
|
-
__wbg_abort_e6a92d5623297220: function(arg0) {
|
|
694
|
+
__wbg_abort_695597a7a37354a1: function(arg0) {
|
|
690
695
|
arg0.abort();
|
|
691
696
|
},
|
|
692
|
-
|
|
697
|
+
__wbg_abort_e104a8a255db427b: function(arg0, arg1) {
|
|
698
|
+
arg0.abort(arg1);
|
|
699
|
+
},
|
|
700
|
+
__wbg_append_83740b7c5805e38d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
693
701
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
694
702
|
}, arguments); },
|
|
695
|
-
|
|
703
|
+
__wbg_arrayBuffer_8fd4b7df096647f9: function() { return handleError(function (arg0) {
|
|
696
704
|
const ret = arg0.arrayBuffer();
|
|
697
705
|
return ret;
|
|
698
706
|
}, arguments); },
|
|
@@ -700,11 +708,11 @@ function __wbg_get_imports() {
|
|
|
700
708
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
701
709
|
return ret;
|
|
702
710
|
},
|
|
703
|
-
|
|
711
|
+
__wbg_call_08ad0d89caa7cb79: function() { return handleError(function (arg0, arg1, arg2) {
|
|
704
712
|
const ret = arg0.call(arg1, arg2);
|
|
705
713
|
return ret;
|
|
706
714
|
}, arguments); },
|
|
707
|
-
|
|
715
|
+
__wbg_call_73af281463ec8b58: function() { return handleError(function (arg0, arg1) {
|
|
708
716
|
const ret = arg0.call(arg1);
|
|
709
717
|
return ret;
|
|
710
718
|
}, arguments); },
|
|
@@ -720,37 +728,37 @@ function __wbg_get_imports() {
|
|
|
720
728
|
const ret = arg0.crypto;
|
|
721
729
|
return ret;
|
|
722
730
|
},
|
|
723
|
-
|
|
731
|
+
__wbg_debug_55a0d5307b3f43af: function(arg0) {
|
|
724
732
|
console.debug(...arg0);
|
|
725
733
|
},
|
|
726
|
-
|
|
734
|
+
__wbg_done_5aad55ec6b1954b1: function(arg0) {
|
|
727
735
|
const ret = arg0.done;
|
|
728
736
|
return ret;
|
|
729
737
|
},
|
|
730
|
-
|
|
731
|
-
const ret =
|
|
738
|
+
__wbg_entries_28d32ba4cd93f5fc: function(arg0) {
|
|
739
|
+
const ret = Object.entries(arg0);
|
|
732
740
|
return ret;
|
|
733
741
|
},
|
|
734
|
-
|
|
735
|
-
const ret =
|
|
742
|
+
__wbg_entries_728df8ae891bd59c: function(arg0) {
|
|
743
|
+
const ret = arg0.entries();
|
|
736
744
|
return ret;
|
|
737
745
|
},
|
|
738
|
-
|
|
746
|
+
__wbg_entries_a004d41a2064144e: function(arg0) {
|
|
739
747
|
const ret = arg0.entries();
|
|
740
748
|
return ret;
|
|
741
749
|
},
|
|
742
|
-
|
|
750
|
+
__wbg_error_b21ccef52463b9ca: function(arg0) {
|
|
743
751
|
console.error(...arg0);
|
|
744
752
|
},
|
|
745
753
|
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
746
754
|
const ret = fetch(arg0);
|
|
747
755
|
return ret;
|
|
748
756
|
},
|
|
749
|
-
|
|
757
|
+
__wbg_fetch_59df3bdc0a4c0e4b: function(arg0, arg1) {
|
|
750
758
|
const ret = arg0.fetch(arg1);
|
|
751
759
|
return ret;
|
|
752
760
|
},
|
|
753
|
-
|
|
761
|
+
__wbg_fromEntries_2f51c4024e2a7aa3: function() { return handleError(function (arg0) {
|
|
754
762
|
const ret = Object.fromEntries(arg0);
|
|
755
763
|
return ret;
|
|
756
764
|
}, arguments); },
|
|
@@ -760,27 +768,27 @@ function __wbg_get_imports() {
|
|
|
760
768
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
761
769
|
arg0.getRandomValues(arg1);
|
|
762
770
|
}, arguments); },
|
|
763
|
-
|
|
771
|
+
__wbg_getTime_9429d05129287418: function(arg0) {
|
|
764
772
|
const ret = arg0.getTime();
|
|
765
773
|
return ret;
|
|
766
774
|
},
|
|
767
|
-
|
|
775
|
+
__wbg_getTimezoneOffset_eeb05f23347950d1: function(arg0) {
|
|
768
776
|
const ret = arg0.getTimezoneOffset();
|
|
769
777
|
return ret;
|
|
770
778
|
},
|
|
771
|
-
|
|
772
|
-
const ret = arg0[arg1 >>> 0];
|
|
773
|
-
return ret;
|
|
774
|
-
},
|
|
775
|
-
__wbg_get_89f3a4c398b4872e: function() { return handleError(function (arg0, arg1) {
|
|
779
|
+
__wbg_get_18349afdb36339a9: function() { return handleError(function (arg0, arg1) {
|
|
776
780
|
const ret = Reflect.get(arg0, arg1);
|
|
777
781
|
return ret;
|
|
778
782
|
}, arguments); },
|
|
779
|
-
|
|
783
|
+
__wbg_get_4920fefd3451364b: function() { return handleError(function (arg0, arg1) {
|
|
780
784
|
const ret = Reflect.get(arg0, arg1);
|
|
781
785
|
return ret;
|
|
782
786
|
}, arguments); },
|
|
783
|
-
|
|
787
|
+
__wbg_get_f09c3a16f8848381: function(arg0, arg1) {
|
|
788
|
+
const ret = arg0[arg1 >>> 0];
|
|
789
|
+
return ret;
|
|
790
|
+
},
|
|
791
|
+
__wbg_get_unchecked_3d0f4b91c8eca4f0: function(arg0, arg1) {
|
|
784
792
|
const ret = arg0[arg1 >>> 0];
|
|
785
793
|
return ret;
|
|
786
794
|
},
|
|
@@ -788,18 +796,18 @@ function __wbg_get_imports() {
|
|
|
788
796
|
const ret = arg0[arg1];
|
|
789
797
|
return ret;
|
|
790
798
|
},
|
|
791
|
-
|
|
799
|
+
__wbg_has_14f08fae2dc367dc: function() { return handleError(function (arg0, arg1) {
|
|
792
800
|
const ret = Reflect.has(arg0, arg1);
|
|
793
801
|
return ret;
|
|
794
802
|
}, arguments); },
|
|
795
|
-
|
|
803
|
+
__wbg_headers_028b9b1c907f9362: function(arg0) {
|
|
796
804
|
const ret = arg0.headers;
|
|
797
805
|
return ret;
|
|
798
806
|
},
|
|
799
|
-
|
|
807
|
+
__wbg_info_53eab27aae9168ec: function(arg0) {
|
|
800
808
|
console.info(...arg0);
|
|
801
809
|
},
|
|
802
|
-
|
|
810
|
+
__wbg_instanceof_ArrayBuffer_15859862b80b732d: function(arg0) {
|
|
803
811
|
let result;
|
|
804
812
|
try {
|
|
805
813
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -809,7 +817,7 @@ function __wbg_get_imports() {
|
|
|
809
817
|
const ret = result;
|
|
810
818
|
return ret;
|
|
811
819
|
},
|
|
812
|
-
|
|
820
|
+
__wbg_instanceof_Array_461ec6d7afd45fda: function(arg0) {
|
|
813
821
|
let result;
|
|
814
822
|
try {
|
|
815
823
|
result = arg0 instanceof Array;
|
|
@@ -819,7 +827,7 @@ function __wbg_get_imports() {
|
|
|
819
827
|
const ret = result;
|
|
820
828
|
return ret;
|
|
821
829
|
},
|
|
822
|
-
|
|
830
|
+
__wbg_instanceof_Map_9df16bf25ceb4ecb: function(arg0) {
|
|
823
831
|
let result;
|
|
824
832
|
try {
|
|
825
833
|
result = arg0 instanceof Map;
|
|
@@ -829,7 +837,7 @@ function __wbg_get_imports() {
|
|
|
829
837
|
const ret = result;
|
|
830
838
|
return ret;
|
|
831
839
|
},
|
|
832
|
-
|
|
840
|
+
__wbg_instanceof_Response_8ec0057b1e5c71bf: function(arg0) {
|
|
833
841
|
let result;
|
|
834
842
|
try {
|
|
835
843
|
result = arg0 instanceof Response;
|
|
@@ -839,7 +847,7 @@ function __wbg_get_imports() {
|
|
|
839
847
|
const ret = result;
|
|
840
848
|
return ret;
|
|
841
849
|
},
|
|
842
|
-
|
|
850
|
+
__wbg_instanceof_Uint8Array_2240b7046ac16f05: function(arg0) {
|
|
843
851
|
let result;
|
|
844
852
|
try {
|
|
845
853
|
result = arg0 instanceof Uint8Array;
|
|
@@ -849,31 +857,31 @@ function __wbg_get_imports() {
|
|
|
849
857
|
const ret = result;
|
|
850
858
|
return ret;
|
|
851
859
|
},
|
|
852
|
-
|
|
860
|
+
__wbg_isArray_fad08a0d12828686: function(arg0) {
|
|
853
861
|
const ret = Array.isArray(arg0);
|
|
854
862
|
return ret;
|
|
855
863
|
},
|
|
856
|
-
|
|
864
|
+
__wbg_isSafeInteger_10e4151eb694e42a: function(arg0) {
|
|
857
865
|
const ret = Number.isSafeInteger(arg0);
|
|
858
866
|
return ret;
|
|
859
867
|
},
|
|
860
|
-
|
|
868
|
+
__wbg_iterator_fc7ad8d33bab9e26: function() {
|
|
861
869
|
const ret = Symbol.iterator;
|
|
862
870
|
return ret;
|
|
863
871
|
},
|
|
864
|
-
|
|
872
|
+
__wbg_keys_e20e1368162303e0: function(arg0) {
|
|
865
873
|
const ret = Object.keys(arg0);
|
|
866
874
|
return ret;
|
|
867
875
|
},
|
|
868
|
-
|
|
876
|
+
__wbg_length_5855c1f289dfffc1: function(arg0) {
|
|
869
877
|
const ret = arg0.length;
|
|
870
878
|
return ret;
|
|
871
879
|
},
|
|
872
|
-
|
|
880
|
+
__wbg_length_a31e05262e09b7f8: function(arg0) {
|
|
873
881
|
const ret = arg0.length;
|
|
874
882
|
return ret;
|
|
875
883
|
},
|
|
876
|
-
|
|
884
|
+
__wbg_log_ecffbec35822c498: function(arg0) {
|
|
877
885
|
console.log(...arg0);
|
|
878
886
|
},
|
|
879
887
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -884,50 +892,50 @@ function __wbg_get_imports() {
|
|
|
884
892
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
885
893
|
return ret;
|
|
886
894
|
},
|
|
887
|
-
|
|
888
|
-
const ret = new
|
|
895
|
+
__wbg_new_0765f05b3e3b4625: function() { return handleError(function () {
|
|
896
|
+
const ret = new Headers();
|
|
889
897
|
return ret;
|
|
890
898
|
}, arguments); },
|
|
891
|
-
|
|
892
|
-
const ret = new
|
|
899
|
+
__wbg_new_09959f7b4c92c246: function(arg0) {
|
|
900
|
+
const ret = new Uint8Array(arg0);
|
|
893
901
|
return ret;
|
|
894
902
|
},
|
|
895
|
-
|
|
896
|
-
const ret = new
|
|
903
|
+
__wbg_new_0_a719938e6f92ddf4: function() {
|
|
904
|
+
const ret = new Date();
|
|
897
905
|
return ret;
|
|
898
906
|
},
|
|
899
|
-
|
|
907
|
+
__wbg_new_223944ca37c18764: function(arg0) {
|
|
900
908
|
const ret = new Date(arg0);
|
|
901
909
|
return ret;
|
|
902
910
|
},
|
|
903
|
-
|
|
904
|
-
const ret = new
|
|
911
|
+
__wbg_new_92df58a8ec3bfb6b: function() {
|
|
912
|
+
const ret = new Map();
|
|
913
|
+
return ret;
|
|
914
|
+
},
|
|
915
|
+
__wbg_new_cbee8c0d5c479eac: function() {
|
|
916
|
+
const ret = new Array();
|
|
905
917
|
return ret;
|
|
906
918
|
},
|
|
907
|
-
|
|
919
|
+
__wbg_new_ed69e637b553a997: function() {
|
|
908
920
|
const ret = new Object();
|
|
909
921
|
return ret;
|
|
910
922
|
},
|
|
911
|
-
|
|
912
|
-
const ret = new
|
|
923
|
+
__wbg_new_fe53f8c71bd1e95b: function() { return handleError(function () {
|
|
924
|
+
const ret = new AbortController();
|
|
913
925
|
return ret;
|
|
914
926
|
}, arguments); },
|
|
915
|
-
|
|
916
|
-
const ret = new Array();
|
|
917
|
-
return ret;
|
|
918
|
-
},
|
|
919
|
-
__wbg_new_from_slice_a5be53238f31f9f7: function(arg0, arg1) {
|
|
927
|
+
__wbg_new_from_slice_d7e202fdbee3c396: function(arg0, arg1) {
|
|
920
928
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
921
929
|
return ret;
|
|
922
930
|
},
|
|
923
|
-
|
|
931
|
+
__wbg_new_typed_8258a0d8488ef2a2: function(arg0, arg1) {
|
|
924
932
|
try {
|
|
925
933
|
var state0 = {a: arg0, b: arg1};
|
|
926
934
|
var cb0 = (arg0, arg1) => {
|
|
927
935
|
const a = state0.a;
|
|
928
936
|
state0.a = 0;
|
|
929
937
|
try {
|
|
930
|
-
return
|
|
938
|
+
return wasm_bindgen__convert__closures_____invoke__h494d783032f4344f(a, state0.b, arg0, arg1);
|
|
931
939
|
} finally {
|
|
932
940
|
state0.a = a;
|
|
933
941
|
}
|
|
@@ -938,22 +946,22 @@ function __wbg_get_imports() {
|
|
|
938
946
|
state0.a = state0.b = 0;
|
|
939
947
|
}
|
|
940
948
|
},
|
|
941
|
-
|
|
949
|
+
__wbg_new_with_length_c8449d782396d344: function(arg0) {
|
|
942
950
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
943
951
|
return ret;
|
|
944
952
|
},
|
|
945
|
-
|
|
953
|
+
__wbg_new_with_str_and_init_5fdb105df3907de1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
946
954
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
947
955
|
return ret;
|
|
948
956
|
}, arguments); },
|
|
949
|
-
|
|
950
|
-
const ret = arg0.next();
|
|
951
|
-
return ret;
|
|
952
|
-
}, arguments); },
|
|
953
|
-
__wbg_next_f577b3e02c9be709: function(arg0) {
|
|
957
|
+
__wbg_next_a5fe6f328f7affc2: function(arg0) {
|
|
954
958
|
const ret = arg0.next;
|
|
955
959
|
return ret;
|
|
956
960
|
},
|
|
961
|
+
__wbg_next_e592122bb4ed4c67: function() { return handleError(function (arg0) {
|
|
962
|
+
const ret = arg0.next();
|
|
963
|
+
return ret;
|
|
964
|
+
}, arguments); },
|
|
957
965
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
958
966
|
const ret = arg0.node;
|
|
959
967
|
return ret;
|
|
@@ -966,20 +974,20 @@ function __wbg_get_imports() {
|
|
|
966
974
|
const ret = arg0.process;
|
|
967
975
|
return ret;
|
|
968
976
|
},
|
|
969
|
-
|
|
977
|
+
__wbg_prototypesetcall_f034d444741426c3: function(arg0, arg1, arg2) {
|
|
970
978
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
971
979
|
},
|
|
972
|
-
|
|
980
|
+
__wbg_push_a6f9488ffd3fae3b: function(arg0, arg1) {
|
|
973
981
|
const ret = arg0.push(arg1);
|
|
974
982
|
return ret;
|
|
975
983
|
},
|
|
976
|
-
|
|
977
|
-
queueMicrotask(arg0);
|
|
978
|
-
},
|
|
979
|
-
__wbg_queueMicrotask_77bf5a3ad712168b: function(arg0) {
|
|
984
|
+
__wbg_queueMicrotask_2c8dfd1056f24fdc: function(arg0) {
|
|
980
985
|
const ret = arg0.queueMicrotask;
|
|
981
986
|
return ret;
|
|
982
987
|
},
|
|
988
|
+
__wbg_queueMicrotask_8985ad63815852e7: function(arg0) {
|
|
989
|
+
queueMicrotask(arg0);
|
|
990
|
+
},
|
|
983
991
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
984
992
|
arg0.randomFillSync(arg1);
|
|
985
993
|
}, arguments); },
|
|
@@ -987,7 +995,7 @@ function __wbg_get_imports() {
|
|
|
987
995
|
const ret = module.require;
|
|
988
996
|
return ret;
|
|
989
997
|
}, arguments); },
|
|
990
|
-
|
|
998
|
+
__wbg_resolve_5d61e0d10c14730a: function(arg0) {
|
|
991
999
|
const ret = Promise.resolve(arg0);
|
|
992
1000
|
return ret;
|
|
993
1001
|
},
|
|
@@ -995,92 +1003,92 @@ function __wbg_get_imports() {
|
|
|
995
1003
|
const ret = setTimeout(arg0, arg1);
|
|
996
1004
|
return ret;
|
|
997
1005
|
},
|
|
998
|
-
|
|
999
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1000
|
-
return ret;
|
|
1001
|
-
}, arguments); },
|
|
1002
|
-
__wbg_set_601f3e1d081df3ac: function(arg0, arg1, arg2) {
|
|
1006
|
+
__wbg_set_4c81cfb5dc3a333c: function(arg0, arg1, arg2) {
|
|
1003
1007
|
arg0[arg1 >>> 0] = arg2;
|
|
1004
1008
|
},
|
|
1005
1009
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1006
1010
|
arg0[arg1] = arg2;
|
|
1007
1011
|
},
|
|
1008
|
-
|
|
1009
|
-
const ret =
|
|
1012
|
+
__wbg_set_bad5c505cc70b5f8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1013
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1010
1014
|
return ret;
|
|
1011
|
-
},
|
|
1012
|
-
|
|
1015
|
+
}, arguments); },
|
|
1016
|
+
__wbg_set_body_cced363f7703790d: function(arg0, arg1) {
|
|
1013
1017
|
arg0.body = arg1;
|
|
1014
1018
|
},
|
|
1015
|
-
|
|
1019
|
+
__wbg_set_cache_d1e60189f19e54cf: function(arg0, arg1) {
|
|
1016
1020
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1017
1021
|
},
|
|
1018
|
-
|
|
1022
|
+
__wbg_set_cfc6de03f990decf: function(arg0, arg1, arg2) {
|
|
1023
|
+
const ret = arg0.set(arg1, arg2);
|
|
1024
|
+
return ret;
|
|
1025
|
+
},
|
|
1026
|
+
__wbg_set_credentials_b80a80dfa15201af: function(arg0, arg1) {
|
|
1019
1027
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1020
1028
|
},
|
|
1021
|
-
|
|
1029
|
+
__wbg_set_headers_9144e2163352af57: function(arg0, arg1) {
|
|
1022
1030
|
arg0.headers = arg1;
|
|
1023
1031
|
},
|
|
1024
|
-
|
|
1032
|
+
__wbg_set_method_c1be4686b152fe29: function(arg0, arg1, arg2) {
|
|
1025
1033
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1026
1034
|
},
|
|
1027
|
-
|
|
1035
|
+
__wbg_set_mode_13fad253f291265c: function(arg0, arg1) {
|
|
1028
1036
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1029
1037
|
},
|
|
1030
|
-
|
|
1038
|
+
__wbg_set_signal_0ad1579122fc44a7: function(arg0, arg1) {
|
|
1031
1039
|
arg0.signal = arg1;
|
|
1032
1040
|
},
|
|
1033
|
-
|
|
1041
|
+
__wbg_signal_147ce1e013d09714: function(arg0) {
|
|
1034
1042
|
const ret = arg0.signal;
|
|
1035
1043
|
return ret;
|
|
1036
1044
|
},
|
|
1037
|
-
|
|
1038
|
-
const ret = typeof
|
|
1045
|
+
__wbg_static_accessor_GLOBAL_THIS_14325d8cca34bb77: function() {
|
|
1046
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1039
1047
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1040
1048
|
},
|
|
1041
|
-
|
|
1042
|
-
const ret = typeof
|
|
1049
|
+
__wbg_static_accessor_GLOBAL_f3a1e69f9c5a7e8e: function() {
|
|
1050
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1043
1051
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1044
1052
|
},
|
|
1045
|
-
|
|
1053
|
+
__wbg_static_accessor_SELF_50cdb5b517789aca: function() {
|
|
1046
1054
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1047
1055
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1048
1056
|
},
|
|
1049
|
-
|
|
1057
|
+
__wbg_static_accessor_WINDOW_d6c4126e4c244380: function() {
|
|
1050
1058
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1051
1059
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1052
1060
|
},
|
|
1053
|
-
|
|
1061
|
+
__wbg_status_acf2080bc55aa324: function(arg0) {
|
|
1054
1062
|
const ret = arg0.status;
|
|
1055
1063
|
return ret;
|
|
1056
1064
|
},
|
|
1057
|
-
|
|
1065
|
+
__wbg_subarray_7ad5f01d4a9c1c4d: function(arg0, arg1, arg2) {
|
|
1058
1066
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1059
1067
|
return ret;
|
|
1060
1068
|
},
|
|
1061
|
-
|
|
1069
|
+
__wbg_text_b1b162595ee5251d: function() { return handleError(function (arg0) {
|
|
1062
1070
|
const ret = arg0.text();
|
|
1063
1071
|
return ret;
|
|
1064
1072
|
}, arguments); },
|
|
1065
|
-
|
|
1066
|
-
const ret = arg0.then(arg1);
|
|
1073
|
+
__wbg_then_d4163530723f56f4: function(arg0, arg1, arg2) {
|
|
1074
|
+
const ret = arg0.then(arg1, arg2);
|
|
1067
1075
|
return ret;
|
|
1068
1076
|
},
|
|
1069
|
-
|
|
1070
|
-
const ret = arg0.then(arg1
|
|
1077
|
+
__wbg_then_f1c954fe00733701: function(arg0, arg1) {
|
|
1078
|
+
const ret = arg0.then(arg1);
|
|
1071
1079
|
return ret;
|
|
1072
1080
|
},
|
|
1073
|
-
|
|
1081
|
+
__wbg_trace_fe7b51ac14177e75: function(arg0) {
|
|
1074
1082
|
console.trace(...arg0);
|
|
1075
1083
|
},
|
|
1076
|
-
|
|
1084
|
+
__wbg_url_86ac63f11d20b46f: function(arg0, arg1) {
|
|
1077
1085
|
const ret = arg1.url;
|
|
1078
1086
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1079
1087
|
const len1 = WASM_VECTOR_LEN;
|
|
1080
1088
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1081
1089
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1082
1090
|
},
|
|
1083
|
-
|
|
1091
|
+
__wbg_value_667dcb90597486a6: function(arg0) {
|
|
1084
1092
|
const ret = arg0.value;
|
|
1085
1093
|
return ret;
|
|
1086
1094
|
},
|
|
@@ -1088,17 +1096,17 @@ function __wbg_get_imports() {
|
|
|
1088
1096
|
const ret = arg0.versions;
|
|
1089
1097
|
return ret;
|
|
1090
1098
|
},
|
|
1091
|
-
|
|
1099
|
+
__wbg_warn_7639dad0f12218d7: function(arg0) {
|
|
1092
1100
|
console.warn(...arg0);
|
|
1093
1101
|
},
|
|
1094
1102
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1095
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1096
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1103
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 581, function: Function { arguments: [], shim_idx: 582, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1104
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hd529f22c34389d0f, wasm_bindgen__convert__closures_____invoke__hbf3e188fe995424e);
|
|
1097
1105
|
return ret;
|
|
1098
1106
|
},
|
|
1099
1107
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1100
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1101
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1108
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 625, function: Function { arguments: [Externref], shim_idx: 2038, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1109
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0bd98a3a1d60a5b1, wasm_bindgen__convert__closures_____invoke__h826419d66d164abb);
|
|
1102
1110
|
return ret;
|
|
1103
1111
|
},
|
|
1104
1112
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1142,19 +1150,19 @@ function __wbg_get_imports() {
|
|
|
1142
1150
|
};
|
|
1143
1151
|
}
|
|
1144
1152
|
|
|
1145
|
-
function
|
|
1146
|
-
wasm.
|
|
1153
|
+
function wasm_bindgen__convert__closures_____invoke__hbf3e188fe995424e(arg0, arg1) {
|
|
1154
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hbf3e188fe995424e(arg0, arg1);
|
|
1147
1155
|
}
|
|
1148
1156
|
|
|
1149
|
-
function
|
|
1150
|
-
const ret = wasm.
|
|
1157
|
+
function wasm_bindgen__convert__closures_____invoke__h826419d66d164abb(arg0, arg1, arg2) {
|
|
1158
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h826419d66d164abb(arg0, arg1, arg2);
|
|
1151
1159
|
if (ret[1]) {
|
|
1152
1160
|
throw takeFromExternrefTable0(ret[0]);
|
|
1153
1161
|
}
|
|
1154
1162
|
}
|
|
1155
1163
|
|
|
1156
|
-
function
|
|
1157
|
-
wasm.
|
|
1164
|
+
function wasm_bindgen__convert__closures_____invoke__h494d783032f4344f(arg0, arg1, arg2, arg3) {
|
|
1165
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h494d783032f4344f(arg0, arg1, arg2, arg3);
|
|
1158
1166
|
}
|
|
1159
1167
|
|
|
1160
1168
|
|
|
@@ -1388,15 +1396,7 @@ function takeFromExternrefTable0(idx) {
|
|
|
1388
1396
|
|
|
1389
1397
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1390
1398
|
cachedTextDecoder.decode();
|
|
1391
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1392
|
-
let numBytesDecoded = 0;
|
|
1393
1399
|
function decodeText(ptr, len) {
|
|
1394
|
-
numBytesDecoded += len;
|
|
1395
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1396
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1397
|
-
cachedTextDecoder.decode();
|
|
1398
|
-
numBytesDecoded = len;
|
|
1399
|
-
}
|
|
1400
1400
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
@@ -1415,95 +1415,8 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1415
1415
|
|
|
1416
1416
|
let WASM_VECTOR_LEN = 0;
|
|
1417
1417
|
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
cachedUint8ArrayMemory0 = null;
|
|
1424
|
-
wasm.__wbindgen_start();
|
|
1425
|
-
return wasm;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
async function __wbg_load(module, imports) {
|
|
1429
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
1430
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1431
|
-
try {
|
|
1432
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1433
|
-
} catch (e) {
|
|
1434
|
-
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1435
|
-
|
|
1436
|
-
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1437
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1438
|
-
|
|
1439
|
-
} else { throw e; }
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
const bytes = await module.arrayBuffer();
|
|
1444
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
1445
|
-
} else {
|
|
1446
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
1447
|
-
|
|
1448
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
1449
|
-
return { instance, module };
|
|
1450
|
-
} else {
|
|
1451
|
-
return instance;
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
function expectedResponseType(type) {
|
|
1456
|
-
switch (type) {
|
|
1457
|
-
case 'basic': case 'cors': case 'default': return true;
|
|
1458
|
-
}
|
|
1459
|
-
return false;
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
function initSync(module) {
|
|
1464
|
-
if (wasm !== undefined) return wasm;
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
if (module !== undefined) {
|
|
1468
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1469
|
-
({module} = module)
|
|
1470
|
-
} else {
|
|
1471
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
const imports = __wbg_get_imports();
|
|
1476
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
1477
|
-
module = new WebAssembly.Module(module);
|
|
1478
|
-
}
|
|
1479
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
1480
|
-
return __wbg_finalize_init(instance, module);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
async function __wbg_init(module_or_path) {
|
|
1484
|
-
if (wasm !== undefined) return wasm;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
if (module_or_path !== undefined) {
|
|
1488
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1489
|
-
({module_or_path} = module_or_path)
|
|
1490
|
-
} else {
|
|
1491
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
if (module_or_path === undefined) {
|
|
1496
|
-
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
1497
|
-
}
|
|
1498
|
-
const imports = __wbg_get_imports();
|
|
1499
|
-
|
|
1500
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1501
|
-
module_or_path = fetch(module_or_path);
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1505
|
-
|
|
1506
|
-
return __wbg_finalize_init(instance, module);
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
export { initSync, __wbg_init as default };
|
|
1418
|
+
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
1419
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1420
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1421
|
+
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
1422
|
+
wasm.__wbindgen_start();
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
|
-
"type": "module",
|
|
4
3
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
5
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.313-nodejs",
|
|
6
5
|
"license": "Apache-2.0",
|
|
7
6
|
"repository": {
|
|
8
7
|
"type": "git",
|
|
@@ -14,8 +13,5 @@
|
|
|
14
13
|
"cedarling_wasm.d.ts"
|
|
15
14
|
],
|
|
16
15
|
"main": "cedarling_wasm.js",
|
|
17
|
-
"types": "cedarling_wasm.d.ts"
|
|
18
|
-
"sideEffects": [
|
|
19
|
-
"./snippets/*"
|
|
20
|
-
]
|
|
16
|
+
"types": "cedarling_wasm.d.ts"
|
|
21
17
|
}
|