@janssenproject/cedarling_wasm 0.0.479 → 0.0.481

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.
@@ -1185,6 +1185,39 @@ var Cedarling = class _Cedarling {
1185
1185
  const ret = wasm.cedarling_new(addHeapObject(config));
1186
1186
  return takeObject(ret);
1187
1187
  }
1188
+ /**
1189
+ * Get the ID of the currently published policy store, if it carries one.
1190
+ *
1191
+ * `undefined` means the store carries no ID. The value is an opaque,
1192
+ * source-dependent string; it may change after a background refresh.
1193
+ *
1194
+ * # Arguments
1195
+ *
1196
+ * None.
1197
+ *
1198
+ * # Example
1199
+ *
1200
+ * ```javascript
1201
+ * const id = cedarling.policyStoreId();
1202
+ * ```
1203
+ * @returns {string | undefined}
1204
+ */
1205
+ policyStoreId() {
1206
+ try {
1207
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1208
+ wasm.cedarling_policyStoreId(retptr, this.__wbg_ptr);
1209
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1210
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1211
+ let v1;
1212
+ if (r0 !== 0) {
1213
+ v1 = getStringFromWasm0(r0, r1);
1214
+ wasm.__wbindgen_export5(r0, r1 * 1, 1);
1215
+ }
1216
+ return v1;
1217
+ } finally {
1218
+ wasm.__wbindgen_add_to_stack_pointer(16);
1219
+ }
1220
+ }
1188
1221
  /**
1189
1222
  * Returns all retained memory logs and removes them from storage.
1190
1223
  * Other log configurations return an empty array.
@@ -2584,7 +2617,7 @@ function __wbg_get_imports() {
2584
2617
  const a = state0.a;
2585
2618
  state0.a = 0;
2586
2619
  try {
2587
- return __wasm_bindgen_func_elem_8988(a, state0.b, arg02, arg12);
2620
+ return __wasm_bindgen_func_elem_8991(a, state0.b, arg02, arg12);
2588
2621
  } finally {
2589
2622
  state0.a = a;
2590
2623
  }
@@ -2815,15 +2848,15 @@ function __wbg_get_imports() {
2815
2848
  console.warn(...getObject(arg0));
2816
2849
  },
2817
2850
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
2818
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8933);
2851
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8936);
2819
2852
  return addHeapObject(ret);
2820
2853
  },
2821
2854
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
2822
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12493);
2855
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12496);
2823
2856
  return addHeapObject(ret);
2824
2857
  },
2825
2858
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
2826
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8767);
2859
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8770);
2827
2860
  return addHeapObject(ret);
2828
2861
  },
2829
2862
  __wbindgen_generic_0000000000000004: function(arg0) {
@@ -2859,19 +2892,19 @@ function __wbg_get_imports() {
2859
2892
  "./cedarling_wasm_bg.js": import0
2860
2893
  };
2861
2894
  }
2862
- function __wasm_bindgen_func_elem_8767(arg0, arg1) {
2863
- wasm.__wasm_bindgen_func_elem_8767(arg0, arg1);
2895
+ function __wasm_bindgen_func_elem_8770(arg0, arg1) {
2896
+ wasm.__wasm_bindgen_func_elem_8770(arg0, arg1);
2864
2897
  }
2865
- function __wasm_bindgen_func_elem_12493(arg0, arg1, arg2) {
2866
- wasm.__wasm_bindgen_func_elem_12493(arg0, arg1, addHeapObject(arg2));
2898
+ function __wasm_bindgen_func_elem_12496(arg0, arg1, arg2) {
2899
+ wasm.__wasm_bindgen_func_elem_12496(arg0, arg1, addHeapObject(arg2));
2867
2900
  }
2868
- function __wasm_bindgen_func_elem_8988(arg0, arg1, arg2, arg3) {
2869
- wasm.__wasm_bindgen_func_elem_8988(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2901
+ function __wasm_bindgen_func_elem_8991(arg0, arg1, arg2, arg3) {
2902
+ wasm.__wasm_bindgen_func_elem_8991(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2870
2903
  }
2871
- function __wasm_bindgen_func_elem_8933(arg0, arg1, arg2) {
2904
+ function __wasm_bindgen_func_elem_8936(arg0, arg1, arg2) {
2872
2905
  try {
2873
2906
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2874
- wasm.__wasm_bindgen_func_elem_8933(retptr, arg0, arg1, addHeapObject(arg2));
2907
+ wasm.__wasm_bindgen_func_elem_8936(retptr, arg0, arg1, addHeapObject(arg2));
2875
2908
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2876
2909
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2877
2910
  if (r1) {