@janssenproject/cedarling_wasm 0.0.311 → 0.0.312-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.
@@ -155,13 +155,6 @@ export class Diagnostics {
155
155
  readonly reason: string[];
156
156
  }
157
157
 
158
- export class JsJsonLogic {
159
- free(): void;
160
- [Symbol.dispose](): void;
161
- apply(logic: any, data: any): any;
162
- constructor();
163
- }
164
-
165
158
  /**
166
159
  * A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
167
160
  * Represents the result of a multi-issuer authorization request.
@@ -234,100 +227,3 @@ export function init(config: any): Promise<Cedarling>;
234
227
  * ```
235
228
  */
236
229
  export function init_from_archive_bytes(config: any, archive_bytes: Uint8Array): Promise<Cedarling>;
237
-
238
- export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
239
-
240
- export interface InitOutput {
241
- readonly memory: WebAssembly.Memory;
242
- readonly __wbg_cedarling_free: (a: number, b: number) => void;
243
- readonly __wbg_multiissuerauthorizeresult_free: (a: number, b: number) => void;
244
- readonly __wbg_get_multiissuerauthorizeresult_response: (a: number) => number;
245
- readonly __wbg_set_multiissuerauthorizeresult_response: (a: number, b: number) => void;
246
- readonly __wbg_get_multiissuerauthorizeresult_decision: (a: number) => number;
247
- readonly __wbg_set_multiissuerauthorizeresult_decision: (a: number, b: number) => void;
248
- readonly __wbg_get_multiissuerauthorizeresult_request_id: (a: number) => [number, number];
249
- readonly __wbg_set_multiissuerauthorizeresult_request_id: (a: number, b: number, c: number) => void;
250
- readonly multiissuerauthorizeresult_json_string: (a: number) => [number, number];
251
- readonly init: (a: any) => any;
252
- readonly init_from_archive_bytes: (a: any, b: any) => any;
253
- readonly cedarling_new: (a: any) => any;
254
- readonly cedarling_new_from_map: (a: any) => any;
255
- readonly cedarling_authorize: (a: number, b: any) => any;
256
- readonly cedarling_authorize_unsigned: (a: number, b: any) => any;
257
- readonly cedarling_authorize_multi_issuer: (a: number, b: any) => any;
258
- readonly cedarling_pop_logs: (a: number) => [number, number, number];
259
- readonly cedarling_get_log_by_id: (a: number, b: number, c: number) => [number, number, number];
260
- readonly cedarling_get_log_ids: (a: number) => any;
261
- readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
262
- readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
263
- readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
264
- readonly cedarling_shut_down: (a: number) => any;
265
- readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
266
- readonly __wbg_get_authorizeresult_workload: (a: number) => number;
267
- readonly __wbg_set_authorizeresult_workload: (a: number, b: number) => void;
268
- readonly __wbg_get_authorizeresult_person: (a: number) => number;
269
- readonly __wbg_set_authorizeresult_person: (a: number, b: number) => void;
270
- readonly __wbg_get_authorizeresult_decision: (a: number) => number;
271
- readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
272
- readonly __wbg_get_authorizeresult_request_id: (a: number) => [number, number];
273
- readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
274
- readonly authorizeresult_json_string: (a: number) => [number, number];
275
- readonly authorizeresult_principal: (a: number, b: number, c: number) => number;
276
- readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
277
- readonly authorizeresultresponse_decision: (a: number) => number;
278
- readonly authorizeresultresponse_diagnostics: (a: number) => number;
279
- readonly __wbg_diagnostics_free: (a: number, b: number) => void;
280
- readonly diagnostics_reason: (a: number) => [number, number];
281
- readonly diagnostics_errors: (a: number) => [number, number];
282
- readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
283
- readonly policyevaluationerror_id: (a: number) => [number, number];
284
- readonly policyevaluationerror_error: (a: number) => [number, number];
285
- readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
286
- readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
287
- readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
288
- readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
289
- readonly rust_zstd_wasm_shim_free: (a: number) => void;
290
- readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
291
- readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
292
- readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
293
- readonly __wbg_jsjsonlogic_free: (a: number, b: number) => void;
294
- readonly jsjsonlogic_new: () => number;
295
- readonly jsjsonlogic_apply: (a: number, b: any, c: any) => [number, number, number];
296
- readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
297
- readonly wasm_bindgen__closure__destroy__h81df99cf5fb23bb4: (a: number, b: number) => void;
298
- readonly wasm_bindgen__closure__destroy__he589cbad438baf01: (a: number, b: number) => void;
299
- readonly wasm_bindgen__convert__closures_____invoke__h5ea28dde88fe4fc5: (a: number, b: number, c: any, d: any) => void;
300
- readonly wasm_bindgen__convert__closures_____invoke__h30e9622b2b4b0718: (a: number, b: number, c: any) => void;
301
- readonly wasm_bindgen__convert__closures_____invoke__h06cf10571db3fb4b: (a: number, b: number) => void;
302
- readonly __wbindgen_malloc: (a: number, b: number) => number;
303
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
304
- readonly __wbindgen_exn_store: (a: number) => void;
305
- readonly __externref_table_alloc: () => number;
306
- readonly __wbindgen_externrefs: WebAssembly.Table;
307
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
308
- readonly __externref_table_dealloc: (a: number) => void;
309
- readonly __externref_drop_slice: (a: number, b: number) => void;
310
- readonly __wbindgen_start: () => void;
311
- }
312
-
313
- export type SyncInitInput = BufferSource | WebAssembly.Module;
314
-
315
- /**
316
- * Instantiates the given `module`, which can either be bytes or
317
- * a precompiled `WebAssembly.Module`.
318
- *
319
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
320
- *
321
- * @returns {InitOutput}
322
- */
323
- export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
324
-
325
- /**
326
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
327
- * for everything else, calls `WebAssembly.instantiate` directly.
328
- *
329
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
330
- *
331
- * @returns {Promise<InitOutput>}
332
- */
333
- 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
- export class AuthorizeResult {
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
- export class AuthorizeResultResponse {
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
- export class Cedarling {
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
- export class Diagnostics {
365
+ class Diagnostics {
363
366
  static __wrap(ptr) {
364
367
  ptr = ptr >>> 0;
365
368
  const obj = Object.create(Diagnostics.prototype);
@@ -403,44 +406,13 @@ export class Diagnostics {
403
406
  }
404
407
  }
405
408
  if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
406
-
407
- export class JsJsonLogic {
408
- __destroy_into_raw() {
409
- const ptr = this.__wbg_ptr;
410
- this.__wbg_ptr = 0;
411
- JsJsonLogicFinalization.unregister(this);
412
- return ptr;
413
- }
414
- free() {
415
- const ptr = this.__destroy_into_raw();
416
- wasm.__wbg_jsjsonlogic_free(ptr, 0);
417
- }
418
- /**
419
- * @param {any} logic
420
- * @param {any} data
421
- * @returns {any}
422
- */
423
- apply(logic, data) {
424
- const ret = wasm.jsjsonlogic_apply(this.__wbg_ptr, logic, data);
425
- if (ret[2]) {
426
- throw takeFromExternrefTable0(ret[1]);
427
- }
428
- return takeFromExternrefTable0(ret[0]);
429
- }
430
- constructor() {
431
- const ret = wasm.jsjsonlogic_new();
432
- this.__wbg_ptr = ret >>> 0;
433
- JsJsonLogicFinalization.register(this, this.__wbg_ptr, this);
434
- return this;
435
- }
436
- }
437
- if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
409
+ exports.Diagnostics = Diagnostics;
438
410
 
439
411
  /**
440
412
  * A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
441
413
  * Represents the result of a multi-issuer authorization request.
442
414
  */
443
- export class MultiIssuerAuthorizeResult {
415
+ class MultiIssuerAuthorizeResult {
444
416
  static __wrap(ptr) {
445
417
  ptr = ptr >>> 0;
446
418
  const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
@@ -537,6 +509,7 @@ export class MultiIssuerAuthorizeResult {
537
509
  }
538
510
  }
539
511
  if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
512
+ exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
540
513
 
541
514
  /**
542
515
  * PolicyEvaluationError
@@ -544,7 +517,7 @@ if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = Multi
544
517
  *
545
518
  * Represents an error that occurred when evaluating a Cedar policy.
546
519
  */
547
- export class PolicyEvaluationError {
520
+ class PolicyEvaluationError {
548
521
  static __wrap(ptr) {
549
522
  ptr = ptr >>> 0;
550
523
  const obj = Object.create(PolicyEvaluationError.prototype);
@@ -596,6 +569,7 @@ export class PolicyEvaluationError {
596
569
  }
597
570
  }
598
571
  if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
572
+ exports.PolicyEvaluationError = PolicyEvaluationError;
599
573
 
600
574
  /**
601
575
  * Create a new instance of the Cedarling application.
@@ -603,10 +577,11 @@ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEval
603
577
  * @param {any} config
604
578
  * @returns {Promise<Cedarling>}
605
579
  */
606
- export function init(config) {
580
+ function init(config) {
607
581
  const ret = wasm.init(config);
608
582
  return ret;
609
583
  }
584
+ exports.init = init;
610
585
 
611
586
  /**
612
587
  * Create a new instance of the Cedarling application from archive bytes.
@@ -628,87 +603,81 @@ export function init(config) {
628
603
  * @param {Uint8Array} archive_bytes
629
604
  * @returns {Promise<Cedarling>}
630
605
  */
631
- export function init_from_archive_bytes(config, archive_bytes) {
606
+ function init_from_archive_bytes(config, archive_bytes) {
632
607
  const ret = wasm.init_from_archive_bytes(config, archive_bytes);
633
608
  return ret;
634
609
  }
610
+ exports.init_from_archive_bytes = init_from_archive_bytes;
635
611
 
636
612
  function __wbg_get_imports() {
637
613
  const import0 = {
638
614
  __proto__: null,
639
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
615
+ __wbg_Error_dbcd8782dbb273a2: function(arg0, arg1) {
640
616
  const ret = Error(getStringFromWasm0(arg0, arg1));
641
617
  return ret;
642
618
  },
643
- __wbg_Number_04624de7d0e8332d: function(arg0) {
619
+ __wbg_Number_012552ac4683228d: function(arg0) {
644
620
  const ret = Number(arg0);
645
621
  return ret;
646
622
  },
647
- __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
648
- const ret = String(arg1);
649
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
650
- const len1 = WASM_VECTOR_LEN;
651
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
652
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
653
- },
654
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
623
+ __wbg___wbindgen_bigint_get_as_i64_25c638f64ce0e2e0: function(arg0, arg1) {
655
624
  const v = arg1;
656
625
  const ret = typeof(v) === 'bigint' ? v : undefined;
657
626
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
658
627
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
659
628
  },
660
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
629
+ __wbg___wbindgen_boolean_get_7f1c4dd217655ab6: function(arg0) {
661
630
  const v = arg0;
662
631
  const ret = typeof(v) === 'boolean' ? v : undefined;
663
632
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
664
633
  },
665
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
634
+ __wbg___wbindgen_debug_string_6cf0badf0b90f6ef: function(arg0, arg1) {
666
635
  const ret = debugString(arg1);
667
636
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
668
637
  const len1 = WASM_VECTOR_LEN;
669
638
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
670
639
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
671
640
  },
672
- __wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
641
+ __wbg___wbindgen_in_e32cbbbf71fdc915: function(arg0, arg1) {
673
642
  const ret = arg0 in arg1;
674
643
  return ret;
675
644
  },
676
- __wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
645
+ __wbg___wbindgen_is_bigint_95f22c948ca1bbe1: function(arg0) {
677
646
  const ret = typeof(arg0) === 'bigint';
678
647
  return ret;
679
648
  },
680
- __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
649
+ __wbg___wbindgen_is_function_4500d4795b15e70b: function(arg0) {
681
650
  const ret = typeof(arg0) === 'function';
682
651
  return ret;
683
652
  },
684
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
653
+ __wbg___wbindgen_is_object_f8b6723c60349a13: function(arg0) {
685
654
  const val = arg0;
686
655
  const ret = typeof(val) === 'object' && val !== null;
687
656
  return ret;
688
657
  },
689
- __wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
658
+ __wbg___wbindgen_is_string_89134e23eba104e4: function(arg0) {
690
659
  const ret = typeof(arg0) === 'string';
691
660
  return ret;
692
661
  },
693
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
662
+ __wbg___wbindgen_is_undefined_1296fcc83c2da07a: function(arg0) {
694
663
  const ret = arg0 === undefined;
695
664
  return ret;
696
665
  },
697
- __wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
666
+ __wbg___wbindgen_jsval_eq_39cab0b49f8188e9: function(arg0, arg1) {
698
667
  const ret = arg0 === arg1;
699
668
  return ret;
700
669
  },
701
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
670
+ __wbg___wbindgen_jsval_loose_eq_3173dea557396a92: function(arg0, arg1) {
702
671
  const ret = arg0 == arg1;
703
672
  return ret;
704
673
  },
705
- __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
674
+ __wbg___wbindgen_number_get_3330675b4e5c3680: function(arg0, arg1) {
706
675
  const obj = arg1;
707
676
  const ret = typeof(obj) === 'number' ? obj : undefined;
708
677
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
709
678
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
710
679
  },
711
- __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
680
+ __wbg___wbindgen_string_get_7b8bc463f6cbeefe: function(arg0, arg1) {
712
681
  const obj = arg1;
713
682
  const ret = typeof(obj) === 'string' ? obj : undefined;
714
683
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -716,22 +685,22 @@ function __wbg_get_imports() {
716
685
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
717
686
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
718
687
  },
719
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
688
+ __wbg___wbindgen_throw_89ca9e2c67795ec1: function(arg0, arg1) {
720
689
  throw new Error(getStringFromWasm0(arg0, arg1));
721
690
  },
722
- __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
691
+ __wbg__wbg_cb_unref_f00ff3c6385bd6fa: function(arg0) {
723
692
  arg0._wbg_cb_unref();
724
693
  },
725
- __wbg_abort_2f0584e03e8e3950: function(arg0) {
726
- arg0.abort();
727
- },
728
- __wbg_abort_d549b92d3c665de1: function(arg0, arg1) {
694
+ __wbg_abort_d5982476775d2739: function(arg0, arg1) {
729
695
  arg0.abort(arg1);
730
696
  },
731
- __wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
697
+ __wbg_abort_e6a92d5623297220: function(arg0) {
698
+ arg0.abort();
699
+ },
700
+ __wbg_append_bddb95024c591a53: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
732
701
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
733
702
  }, arguments); },
734
- __wbg_arrayBuffer_bb54076166006c39: function() { return handleError(function (arg0) {
703
+ __wbg_arrayBuffer_c95edc576c2724fe: function() { return handleError(function (arg0) {
735
704
  const ret = arg0.arrayBuffer();
736
705
  return ret;
737
706
  }, arguments); },
@@ -739,94 +708,106 @@ function __wbg_get_imports() {
739
708
  const ret = AuthorizeResult.__wrap(arg0);
740
709
  return ret;
741
710
  },
742
- __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
743
- const ret = arg0.call(arg1);
711
+ __wbg_call_3eadb5cea0462653: function() { return handleError(function (arg0, arg1, arg2) {
712
+ const ret = arg0.call(arg1, arg2);
744
713
  return ret;
745
714
  }, arguments); },
746
- __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
747
- const ret = arg0.call(arg1, arg2);
715
+ __wbg_call_eb691bc2f5533064: function() { return handleError(function (arg0, arg1) {
716
+ const ret = arg0.call(arg1);
748
717
  return ret;
749
718
  }, arguments); },
750
719
  __wbg_cedarling_new: function(arg0) {
751
720
  const ret = Cedarling.__wrap(arg0);
752
721
  return ret;
753
722
  },
754
- __wbg_clearTimeout_42d9ccd50822fd3a: function(arg0) {
723
+ __wbg_clearTimeout_2256f1e7b94ef517: function(arg0) {
755
724
  const ret = clearTimeout(arg0);
756
725
  return ret;
757
726
  },
758
- __wbg_crypto_86f2631e91b51511: function(arg0) {
727
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
759
728
  const ret = arg0.crypto;
760
729
  return ret;
761
730
  },
762
- __wbg_debug_8b4b5465cbd54cd3: function(arg0) {
731
+ __wbg_debug_4aa822a1af5d039c: function(arg0) {
763
732
  console.debug(...arg0);
764
733
  },
765
- __wbg_done_57b39ecd9addfe81: function(arg0) {
734
+ __wbg_done_82b14aeb31e98db6: function(arg0) {
766
735
  const ret = arg0.done;
767
736
  return ret;
768
737
  },
769
- __wbg_entries_200a450561fa274f: function(arg0) {
738
+ __wbg_entries_279f7c28f13d750a: function(arg0) {
770
739
  const ret = arg0.entries();
771
740
  return ret;
772
741
  },
773
- __wbg_entries_58c7934c745daac7: function(arg0) {
742
+ __wbg_entries_46c64fadfaa3b525: function(arg0) {
774
743
  const ret = Object.entries(arg0);
775
744
  return ret;
776
745
  },
777
- __wbg_error_62201eec3c0d66f9: function(arg0) {
746
+ __wbg_entries_70ed5a7af0d07177: function(arg0) {
747
+ const ret = arg0.entries();
748
+ return ret;
749
+ },
750
+ __wbg_error_5fc0bc226aeb2474: function(arg0) {
778
751
  console.error(...arg0);
779
752
  },
780
- __wbg_fetch_6bbc32f991730587: function(arg0) {
753
+ __wbg_fetch_43b2f110608a59ff: function(arg0) {
781
754
  const ret = fetch(arg0);
782
755
  return ret;
783
756
  },
784
- __wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
757
+ __wbg_fetch_c170c157e1a111d4: function(arg0, arg1) {
785
758
  const ret = arg0.fetch(arg1);
786
759
  return ret;
787
760
  },
788
- __wbg_fromEntries_7fb5bc874dbe50d5: function() { return handleError(function (arg0) {
761
+ __wbg_fromEntries_cdb610e02cd25f1c: function() { return handleError(function (arg0) {
789
762
  const ret = Object.fromEntries(arg0);
790
763
  return ret;
791
764
  }, arguments); },
792
- __wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
765
+ __wbg_getRandomValues_ab1935b403569652: function() { return handleError(function (arg0, arg1) {
793
766
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
794
767
  }, arguments); },
795
- __wbg_getRandomValues_b3f15fcbfabb0f8b: function() { return handleError(function (arg0, arg1) {
768
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
796
769
  arg0.getRandomValues(arg1);
797
770
  }, arguments); },
798
- __wbg_getTime_1e3cd1391c5c3995: function(arg0) {
771
+ __wbg_getTime_4b23931c93d819bb: function(arg0) {
799
772
  const ret = arg0.getTime();
800
773
  return ret;
801
774
  },
802
- __wbg_getTimezoneOffset_81776d10a4ec18a8: function(arg0) {
775
+ __wbg_getTimezoneOffset_4f1ae12e19a7e5cb: function(arg0) {
803
776
  const ret = arg0.getTimezoneOffset();
804
777
  return ret;
805
778
  },
806
- __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
779
+ __wbg_get_229657ec2da079cd: function(arg0, arg1) {
807
780
  const ret = arg0[arg1 >>> 0];
808
781
  return ret;
809
782
  },
810
- __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
783
+ __wbg_get_89f3a4c398b4872e: function() { return handleError(function (arg0, arg1) {
811
784
  const ret = Reflect.get(arg0, arg1);
812
785
  return ret;
813
786
  }, arguments); },
814
- __wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
787
+ __wbg_get_ed44f5f876f22351: function() { return handleError(function (arg0, arg1) {
788
+ const ret = Reflect.get(arg0, arg1);
789
+ return ret;
790
+ }, arguments); },
791
+ __wbg_get_unchecked_ae4d1600970be7c3: function(arg0, arg1) {
792
+ const ret = arg0[arg1 >>> 0];
793
+ return ret;
794
+ },
795
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
815
796
  const ret = arg0[arg1];
816
797
  return ret;
817
798
  },
818
- __wbg_has_d4e53238966c12b6: function() { return handleError(function (arg0, arg1) {
799
+ __wbg_has_01b31fbd88bb3e8f: function() { return handleError(function (arg0, arg1) {
819
800
  const ret = Reflect.has(arg0, arg1);
820
801
  return ret;
821
802
  }, arguments); },
822
- __wbg_headers_59a2938db9f80985: function(arg0) {
803
+ __wbg_headers_fa752b79db86f8b3: function(arg0) {
823
804
  const ret = arg0.headers;
824
805
  return ret;
825
806
  },
826
- __wbg_info_eb43cb09e10f8150: function(arg0) {
807
+ __wbg_info_93be0cc78448065a: function(arg0) {
827
808
  console.info(...arg0);
828
809
  },
829
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
810
+ __wbg_instanceof_ArrayBuffer_4f2b9b5ed416155d: function(arg0) {
830
811
  let result;
831
812
  try {
832
813
  result = arg0 instanceof ArrayBuffer;
@@ -836,7 +817,7 @@ function __wbg_get_imports() {
836
817
  const ret = result;
837
818
  return ret;
838
819
  },
839
- __wbg_instanceof_Array_d9eac779cd191cbc: function(arg0) {
820
+ __wbg_instanceof_Array_c6fd13bcae830167: function(arg0) {
840
821
  let result;
841
822
  try {
842
823
  result = arg0 instanceof Array;
@@ -846,7 +827,7 @@ function __wbg_get_imports() {
846
827
  const ret = result;
847
828
  return ret;
848
829
  },
849
- __wbg_instanceof_Map_53af74335dec57f4: function(arg0) {
830
+ __wbg_instanceof_Map_3ad422261e078a42: function(arg0) {
850
831
  let result;
851
832
  try {
852
833
  result = arg0 instanceof Map;
@@ -856,7 +837,7 @@ function __wbg_get_imports() {
856
837
  const ret = result;
857
838
  return ret;
858
839
  },
859
- __wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
840
+ __wbg_instanceof_Response_1844be67dbd5e161: function(arg0) {
860
841
  let result;
861
842
  try {
862
843
  result = arg0 instanceof Response;
@@ -866,7 +847,7 @@ function __wbg_get_imports() {
866
847
  const ret = result;
867
848
  return ret;
868
849
  },
869
- __wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
850
+ __wbg_instanceof_Uint8Array_6482c66fce35827d: function(arg0) {
870
851
  let result;
871
852
  try {
872
853
  result = arg0 instanceof Uint8Array;
@@ -876,34 +857,34 @@ function __wbg_get_imports() {
876
857
  const ret = result;
877
858
  return ret;
878
859
  },
879
- __wbg_isArray_d314bb98fcf08331: function(arg0) {
860
+ __wbg_isArray_fe5201bfdab7e39d: function(arg0) {
880
861
  const ret = Array.isArray(arg0);
881
862
  return ret;
882
863
  },
883
- __wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
864
+ __wbg_isSafeInteger_d6215c7562dbc4db: function(arg0) {
884
865
  const ret = Number.isSafeInteger(arg0);
885
866
  return ret;
886
867
  },
887
- __wbg_iterator_6ff6560ca1568e55: function() {
868
+ __wbg_iterator_63c3a1857203cf2f: function() {
888
869
  const ret = Symbol.iterator;
889
870
  return ret;
890
871
  },
891
- __wbg_keys_b50a709a76add04e: function(arg0) {
872
+ __wbg_keys_31cd32ffa3aa3d32: function(arg0) {
892
873
  const ret = Object.keys(arg0);
893
874
  return ret;
894
875
  },
895
- __wbg_length_32ed9a279acd054c: function(arg0) {
876
+ __wbg_length_f875d3a041bab91a: function(arg0) {
896
877
  const ret = arg0.length;
897
878
  return ret;
898
879
  },
899
- __wbg_length_35a7bace40f36eac: function(arg0) {
880
+ __wbg_length_feaf2a40e5f9755a: function(arg0) {
900
881
  const ret = arg0.length;
901
882
  return ret;
902
883
  },
903
- __wbg_log_aa96eafb763b3303: function(arg0) {
884
+ __wbg_log_c6f597dffc84d4f3: function(arg0) {
904
885
  console.log(...arg0);
905
886
  },
906
- __wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
887
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
907
888
  const ret = arg0.msCrypto;
908
889
  return ret;
909
890
  },
@@ -911,34 +892,50 @@ function __wbg_get_imports() {
911
892
  const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
912
893
  return ret;
913
894
  },
914
- __wbg_new_0_73afc35eb544e539: function() {
895
+ __wbg_new_08d33c204155a3e2: function() { return handleError(function () {
896
+ const ret = new AbortController();
897
+ return ret;
898
+ }, arguments); },
899
+ __wbg_new_0_e8782c8df6122565: function() {
915
900
  const ret = new Date();
916
901
  return ret;
917
902
  },
918
- __wbg_new_245cd5c49157e602: function(arg0) {
903
+ __wbg_new_5947ca72f3fee3e6: function() {
904
+ const ret = new Map();
905
+ return ret;
906
+ },
907
+ __wbg_new_61cfa1e9627505e2: function(arg0) {
919
908
  const ret = new Date(arg0);
920
909
  return ret;
921
910
  },
922
- __wbg_new_361308b2356cecd0: function() {
923
- const ret = new Object();
911
+ __wbg_new_6e7681a5f6f98ceb: function(arg0) {
912
+ const ret = new Uint8Array(arg0);
924
913
  return ret;
925
914
  },
926
- __wbg_new_3eb36ae241fe6f44: function() {
927
- const ret = new Array();
915
+ __wbg_new_6feff3e11e4d0799: function() {
916
+ const ret = new Object();
928
917
  return ret;
929
918
  },
930
- __wbg_new_64284bd487f9d239: function() { return handleError(function () {
919
+ __wbg_new_e88efd8ca5aef956: function() { return handleError(function () {
931
920
  const ret = new Headers();
932
921
  return ret;
933
922
  }, arguments); },
934
- __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
923
+ __wbg_new_ff7f9cc4c9a4a0cf: function() {
924
+ const ret = new Array();
925
+ return ret;
926
+ },
927
+ __wbg_new_from_slice_a5be53238f31f9f7: function(arg0, arg1) {
928
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
929
+ return ret;
930
+ },
931
+ __wbg_new_typed_f79896f0ea5f7de8: function(arg0, arg1) {
935
932
  try {
936
933
  var state0 = {a: arg0, b: arg1};
937
934
  var cb0 = (arg0, arg1) => {
938
935
  const a = state0.a;
939
936
  state0.a = 0;
940
937
  try {
941
- return wasm_bindgen__convert__closures_____invoke__h5ea28dde88fe4fc5(a, state0.b, arg0, arg1);
938
+ return wasm_bindgen__convert__closures_____invoke__hd96d811f18675791(a, state0.b, arg0, arg1);
942
939
  } finally {
943
940
  state0.a = a;
944
941
  }
@@ -949,47 +946,23 @@ function __wbg_get_imports() {
949
946
  state0.a = state0.b = 0;
950
947
  }
951
948
  },
952
- __wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
953
- const ret = new AbortController();
954
- return ret;
955
- }, arguments); },
956
- __wbg_new_dca287b076112a51: function() {
957
- const ret = new Map();
958
- return ret;
959
- },
960
- __wbg_new_dd2b680c8bf6ae29: function(arg0) {
961
- const ret = new Uint8Array(arg0);
962
- return ret;
963
- },
964
- __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
965
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
966
- return ret;
967
- },
968
- __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
969
- const ret = new Function(getStringFromWasm0(arg0, arg1));
970
- return ret;
971
- },
972
- __wbg_new_with_args_7bba34e94b1cfa40: function(arg0, arg1, arg2, arg3) {
973
- const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
974
- return ret;
975
- },
976
- __wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
949
+ __wbg_new_with_length_3217a89bbca17214: function(arg0) {
977
950
  const ret = new Uint8Array(arg0 >>> 0);
978
951
  return ret;
979
952
  },
980
- __wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
953
+ __wbg_new_with_str_and_init_66de5344635d3590: function() { return handleError(function (arg0, arg1, arg2) {
981
954
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
982
955
  return ret;
983
956
  }, arguments); },
984
- __wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
957
+ __wbg_next_ae5b710aea83f41e: function() { return handleError(function (arg0) {
985
958
  const ret = arg0.next();
986
959
  return ret;
987
960
  }, arguments); },
988
- __wbg_next_418f80d8f5303233: function(arg0) {
961
+ __wbg_next_f577b3e02c9be709: function(arg0) {
989
962
  const ret = arg0.next;
990
963
  return ret;
991
964
  },
992
- __wbg_node_e1f24f89a7336c2e: function(arg0) {
965
+ __wbg_node_84ea875411254db1: function(arg0) {
993
966
  const ret = arg0.node;
994
967
  return ret;
995
968
  },
@@ -997,147 +970,143 @@ function __wbg_get_imports() {
997
970
  const ret = PolicyEvaluationError.__wrap(arg0);
998
971
  return ret;
999
972
  },
1000
- __wbg_process_3975fd6c72f520aa: function(arg0) {
973
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
1001
974
  const ret = arg0.process;
1002
975
  return ret;
1003
976
  },
1004
- __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
977
+ __wbg_prototypesetcall_37f00e1be5c4015a: function(arg0, arg1, arg2) {
1005
978
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1006
979
  },
1007
- __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
980
+ __wbg_push_3584053bd77475ee: function(arg0, arg1) {
1008
981
  const ret = arg0.push(arg1);
1009
982
  return ret;
1010
983
  },
1011
- __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
984
+ __wbg_queueMicrotask_5e387cf4d8e3f63e: function(arg0) {
985
+ queueMicrotask(arg0);
986
+ },
987
+ __wbg_queueMicrotask_77bf5a3ad712168b: function(arg0) {
1012
988
  const ret = arg0.queueMicrotask;
1013
989
  return ret;
1014
990
  },
1015
- __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
1016
- queueMicrotask(arg0);
1017
- },
1018
- __wbg_randomFillSync_f8c153b79f285817: function() { return handleError(function (arg0, arg1) {
991
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
1019
992
  arg0.randomFillSync(arg1);
1020
993
  }, arguments); },
1021
- __wbg_require_b74f47fc2d022fd6: function() { return handleError(function () {
994
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
1022
995
  const ret = module.require;
1023
996
  return ret;
1024
997
  }, arguments); },
1025
- __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
998
+ __wbg_resolve_2e8556632715b12f: function(arg0) {
1026
999
  const ret = Promise.resolve(arg0);
1027
1000
  return ret;
1028
1001
  },
1029
- __wbg_setTimeout_4ec014681668a581: function(arg0, arg1) {
1002
+ __wbg_setTimeout_b188b3bcc8977c7d: function(arg0, arg1) {
1030
1003
  const ret = setTimeout(arg0, arg1);
1031
1004
  return ret;
1032
1005
  },
1033
- __wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
1034
- const ret = arg0.set(arg1, arg2);
1006
+ __wbg_set_409333732b484ee7: function() { return handleError(function (arg0, arg1, arg2) {
1007
+ const ret = Reflect.set(arg0, arg1, arg2);
1035
1008
  return ret;
1009
+ }, arguments); },
1010
+ __wbg_set_601f3e1d081df3ac: function(arg0, arg1, arg2) {
1011
+ arg0[arg1 >>> 0] = arg2;
1036
1012
  },
1037
- __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
1013
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
1038
1014
  arg0[arg1] = arg2;
1039
1015
  },
1040
- __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
1041
- const ret = Reflect.set(arg0, arg1, arg2);
1016
+ __wbg_set_b1226382f10be917: function(arg0, arg1, arg2) {
1017
+ const ret = arg0.set(arg1, arg2);
1042
1018
  return ret;
1043
- }, arguments); },
1044
- __wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
1019
+ },
1020
+ __wbg_set_body_42d5ed933a1840a1: function(arg0, arg1) {
1045
1021
  arg0.body = arg1;
1046
1022
  },
1047
- __wbg_set_cache_315a3ed773a41543: function(arg0, arg1) {
1023
+ __wbg_set_cache_546c3dda0e43ae0c: function(arg0, arg1) {
1048
1024
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
1049
1025
  },
1050
- __wbg_set_credentials_c4a58d2e05ef24fb: function(arg0, arg1) {
1026
+ __wbg_set_credentials_328fbf29cfdfa342: function(arg0, arg1) {
1051
1027
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1052
1028
  },
1053
- __wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
1054
- arg0[arg1 >>> 0] = arg2;
1055
- },
1056
- __wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
1029
+ __wbg_set_headers_1f8bdee11d576059: function(arg0, arg1) {
1057
1030
  arg0.headers = arg1;
1058
1031
  },
1059
- __wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
1032
+ __wbg_set_method_5a35896632ca213d: function(arg0, arg1, arg2) {
1060
1033
  arg0.method = getStringFromWasm0(arg1, arg2);
1061
1034
  },
1062
- __wbg_set_mode_b13642c312648202: function(arg0, arg1) {
1035
+ __wbg_set_mode_6fa10db5d133ac26: function(arg0, arg1) {
1063
1036
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
1064
1037
  },
1065
- __wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
1038
+ __wbg_set_signal_0d93209e168efc85: function(arg0, arg1) {
1066
1039
  arg0.signal = arg1;
1067
1040
  },
1068
- __wbg_signal_d1285ecab4ebc5ad: function(arg0) {
1041
+ __wbg_signal_a0d9fead74a07e34: function(arg0) {
1069
1042
  const ret = arg0.signal;
1070
1043
  return ret;
1071
1044
  },
1072
- __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
1045
+ __wbg_static_accessor_GLOBAL_280fe6a619bbfbf6: function() {
1073
1046
  const ret = typeof global === 'undefined' ? null : global;
1074
1047
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1075
1048
  },
1076
- __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
1049
+ __wbg_static_accessor_GLOBAL_THIS_12c1f4811ec605d1: function() {
1077
1050
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1078
1051
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1079
1052
  },
1080
- __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
1053
+ __wbg_static_accessor_SELF_3a156961626f54d9: function() {
1081
1054
  const ret = typeof self === 'undefined' ? null : self;
1082
1055
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1083
1056
  },
1084
- __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
1057
+ __wbg_static_accessor_WINDOW_210015b3eb6018a4: function() {
1085
1058
  const ret = typeof window === 'undefined' ? null : window;
1086
1059
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1087
1060
  },
1088
- __wbg_status_89d7e803db911ee7: function(arg0) {
1061
+ __wbg_status_1544422a8c64aef0: function(arg0) {
1089
1062
  const ret = arg0.status;
1090
1063
  return ret;
1091
1064
  },
1092
- __wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
1093
- const ret = JSON.stringify(arg0);
1094
- return ret;
1095
- }, arguments); },
1096
- __wbg_subarray_a96e1fef17ed23cb: function(arg0, arg1, arg2) {
1065
+ __wbg_subarray_a61f483a625b1793: function(arg0, arg1, arg2) {
1097
1066
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1098
1067
  return ret;
1099
1068
  },
1100
- __wbg_text_083b8727c990c8c0: function() { return handleError(function (arg0) {
1069
+ __wbg_text_667415a14b08e789: function() { return handleError(function (arg0) {
1101
1070
  const ret = arg0.text();
1102
1071
  return ret;
1103
1072
  }, arguments); },
1104
- __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
1105
- const ret = arg0.then(arg1, arg2);
1073
+ __wbg_then_5ce48a9e69c0d3cd: function(arg0, arg1) {
1074
+ const ret = arg0.then(arg1);
1106
1075
  return ret;
1107
1076
  },
1108
- __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
1109
- const ret = arg0.then(arg1);
1077
+ __wbg_then_f73127af3894d61c: function(arg0, arg1, arg2) {
1078
+ const ret = arg0.then(arg1, arg2);
1110
1079
  return ret;
1111
1080
  },
1112
- __wbg_trace_21a493b80d415f00: function(arg0) {
1081
+ __wbg_trace_62f38a2e54f4cc2a: function(arg0) {
1113
1082
  console.trace(...arg0);
1114
1083
  },
1115
- __wbg_url_c484c26b1fbf5126: function(arg0, arg1) {
1084
+ __wbg_url_271945e420831f05: function(arg0, arg1) {
1116
1085
  const ret = arg1.url;
1117
1086
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1118
1087
  const len1 = WASM_VECTOR_LEN;
1119
1088
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1120
1089
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1121
1090
  },
1122
- __wbg_value_0546255b415e96c1: function(arg0) {
1091
+ __wbg_value_3e1fdb73e1353fb3: function(arg0) {
1123
1092
  const ret = arg0.value;
1124
1093
  return ret;
1125
1094
  },
1126
- __wbg_versions_4e31226f5e8dc909: function(arg0) {
1095
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
1127
1096
  const ret = arg0.versions;
1128
1097
  return ret;
1129
1098
  },
1130
- __wbg_warn_f3657073f42e55b4: function(arg0) {
1099
+ __wbg_warn_3af8b0e50ab410d5: function(arg0) {
1131
1100
  console.warn(...arg0);
1132
1101
  },
1133
1102
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1134
- // Cast intrinsic for `Closure(Closure { dtor_idx: 553, function: Function { arguments: [], shim_idx: 554, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1135
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h81df99cf5fb23bb4, wasm_bindgen__convert__closures_____invoke__h06cf10571db3fb4b);
1103
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 577, function: Function { arguments: [], shim_idx: 578, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1104
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6040ec9204f8ec90, wasm_bindgen__convert__closures_____invoke__h9354621fa201e4f1);
1136
1105
  return ret;
1137
1106
  },
1138
1107
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1139
- // Cast intrinsic for `Closure(Closure { dtor_idx: 597, function: Function { arguments: [Externref], shim_idx: 598, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1140
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he589cbad438baf01, wasm_bindgen__convert__closures_____invoke__h30e9622b2b4b0718);
1108
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 621, function: Function { arguments: [Externref], shim_idx: 2034, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1109
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5ca61ceeccdb4050, wasm_bindgen__convert__closures_____invoke__h662f8e0721b9d210);
1141
1110
  return ret;
1142
1111
  },
1143
1112
  __wbindgen_cast_0000000000000003: function(arg0) {
@@ -1181,16 +1150,19 @@ function __wbg_get_imports() {
1181
1150
  };
1182
1151
  }
1183
1152
 
1184
- function wasm_bindgen__convert__closures_____invoke__h06cf10571db3fb4b(arg0, arg1) {
1185
- wasm.wasm_bindgen__convert__closures_____invoke__h06cf10571db3fb4b(arg0, arg1);
1153
+ function wasm_bindgen__convert__closures_____invoke__h9354621fa201e4f1(arg0, arg1) {
1154
+ wasm.wasm_bindgen__convert__closures_____invoke__h9354621fa201e4f1(arg0, arg1);
1186
1155
  }
1187
1156
 
1188
- function wasm_bindgen__convert__closures_____invoke__h30e9622b2b4b0718(arg0, arg1, arg2) {
1189
- wasm.wasm_bindgen__convert__closures_____invoke__h30e9622b2b4b0718(arg0, arg1, arg2);
1157
+ function wasm_bindgen__convert__closures_____invoke__h662f8e0721b9d210(arg0, arg1, arg2) {
1158
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h662f8e0721b9d210(arg0, arg1, arg2);
1159
+ if (ret[1]) {
1160
+ throw takeFromExternrefTable0(ret[0]);
1161
+ }
1190
1162
  }
1191
1163
 
1192
- function wasm_bindgen__convert__closures_____invoke__h5ea28dde88fe4fc5(arg0, arg1, arg2, arg3) {
1193
- wasm.wasm_bindgen__convert__closures_____invoke__h5ea28dde88fe4fc5(arg0, arg1, arg2, arg3);
1164
+ function wasm_bindgen__convert__closures_____invoke__hd96d811f18675791(arg0, arg1, arg2, arg3) {
1165
+ wasm.wasm_bindgen__convert__closures_____invoke__hd96d811f18675791(arg0, arg1, arg2, arg3);
1194
1166
  }
1195
1167
 
1196
1168
 
@@ -1213,9 +1185,6 @@ const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
1213
1185
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
1214
1186
  ? { register: () => {}, unregister: () => {} }
1215
1187
  : new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
1216
- const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
1217
- ? { register: () => {}, unregister: () => {} }
1218
- : new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
1219
1188
  const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
1220
1189
  ? { register: () => {}, unregister: () => {} }
1221
1190
  : new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
@@ -1427,15 +1396,7 @@ function takeFromExternrefTable0(idx) {
1427
1396
 
1428
1397
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1429
1398
  cachedTextDecoder.decode();
1430
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
1431
- let numBytesDecoded = 0;
1432
1399
  function decodeText(ptr, len) {
1433
- numBytesDecoded += len;
1434
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1435
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1436
- cachedTextDecoder.decode();
1437
- numBytesDecoded = len;
1438
- }
1439
1400
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
1440
1401
  }
1441
1402
 
@@ -1454,95 +1415,8 @@ if (!('encodeInto' in cachedTextEncoder)) {
1454
1415
 
1455
1416
  let WASM_VECTOR_LEN = 0;
1456
1417
 
1457
- let wasmModule, wasm;
1458
- function __wbg_finalize_init(instance, module) {
1459
- wasm = instance.exports;
1460
- wasmModule = module;
1461
- cachedDataViewMemory0 = null;
1462
- cachedUint8ArrayMemory0 = null;
1463
- wasm.__wbindgen_start();
1464
- return wasm;
1465
- }
1466
-
1467
- async function __wbg_load(module, imports) {
1468
- if (typeof Response === 'function' && module instanceof Response) {
1469
- if (typeof WebAssembly.instantiateStreaming === 'function') {
1470
- try {
1471
- return await WebAssembly.instantiateStreaming(module, imports);
1472
- } catch (e) {
1473
- const validResponse = module.ok && expectedResponseType(module.type);
1474
-
1475
- if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1476
- 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);
1477
-
1478
- } else { throw e; }
1479
- }
1480
- }
1481
-
1482
- const bytes = await module.arrayBuffer();
1483
- return await WebAssembly.instantiate(bytes, imports);
1484
- } else {
1485
- const instance = await WebAssembly.instantiate(module, imports);
1486
-
1487
- if (instance instanceof WebAssembly.Instance) {
1488
- return { instance, module };
1489
- } else {
1490
- return instance;
1491
- }
1492
- }
1493
-
1494
- function expectedResponseType(type) {
1495
- switch (type) {
1496
- case 'basic': case 'cors': case 'default': return true;
1497
- }
1498
- return false;
1499
- }
1500
- }
1501
-
1502
- function initSync(module) {
1503
- if (wasm !== undefined) return wasm;
1504
-
1505
-
1506
- if (module !== undefined) {
1507
- if (Object.getPrototypeOf(module) === Object.prototype) {
1508
- ({module} = module)
1509
- } else {
1510
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1511
- }
1512
- }
1513
-
1514
- const imports = __wbg_get_imports();
1515
- if (!(module instanceof WebAssembly.Module)) {
1516
- module = new WebAssembly.Module(module);
1517
- }
1518
- const instance = new WebAssembly.Instance(module, imports);
1519
- return __wbg_finalize_init(instance, module);
1520
- }
1521
-
1522
- async function __wbg_init(module_or_path) {
1523
- if (wasm !== undefined) return wasm;
1524
-
1525
-
1526
- if (module_or_path !== undefined) {
1527
- if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1528
- ({module_or_path} = module_or_path)
1529
- } else {
1530
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1531
- }
1532
- }
1533
-
1534
- if (module_or_path === undefined) {
1535
- module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
1536
- }
1537
- const imports = __wbg_get_imports();
1538
-
1539
- if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1540
- module_or_path = fetch(module_or_path);
1541
- }
1542
-
1543
- const { instance, module } = await __wbg_load(await module_or_path, imports);
1544
-
1545
- return __wbg_finalize_init(instance, module);
1546
- }
1547
-
1548
- 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();
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.311",
4
+ "version": "0.0.312-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
  }