@janssenproject/cedarling_wasm 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,6 +119,10 @@ export class Cedarling {
119
119
  * Return log entries that match the given request_id and tag.
120
120
  */
121
121
  get_logs_by_request_id_and_tag(request_id: string, tag: string): any[];
122
+ /**
123
+ * Closes the connections to the Lock Server and pushes all available logs.
124
+ */
125
+ shut_down(): Promise<void>;
122
126
  }
123
127
  /**
124
128
  * Diagnostics
@@ -182,6 +186,7 @@ export interface InitOutput {
182
186
  readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
183
187
  readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
184
188
  readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
189
+ readonly cedarling_shut_down: (a: number) => any;
185
190
  readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
186
191
  readonly __wbg_get_authorizeresult_workload: (a: number) => number;
187
192
  readonly __wbg_set_authorizeresult_workload: (a: number, b: number) => void;
@@ -215,9 +220,9 @@ export interface InitOutput {
215
220
  readonly __externref_table_dealloc: (a: number) => void;
216
221
  readonly __externref_drop_slice: (a: number, b: number) => void;
217
222
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
218
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6272236f7cfb706f: (a: number, b: number) => void;
219
- readonly closure471_externref_shim: (a: number, b: number, c: any) => void;
220
- readonly closure1740_externref_shim: (a: number, b: number, c: any, d: any) => void;
223
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6b52a9d17ca9899: (a: number, b: number) => void;
224
+ readonly closure508_externref_shim: (a: number, b: number, c: any) => void;
225
+ readonly closure1774_externref_shim: (a: number, b: number, c: any, d: any) => void;
221
226
  readonly __wbindgen_start: () => void;
222
227
  }
223
228
 
package/cedarling_wasm.js CHANGED
@@ -231,15 +231,15 @@ function _assertClass(instance, klass) {
231
231
  }
232
232
  }
233
233
  function __wbg_adapter_50(arg0, arg1) {
234
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6272236f7cfb706f(arg0, arg1);
234
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6b52a9d17ca9899(arg0, arg1);
235
235
  }
236
236
 
237
237
  function __wbg_adapter_53(arg0, arg1, arg2) {
238
- wasm.closure471_externref_shim(arg0, arg1, arg2);
238
+ wasm.closure508_externref_shim(arg0, arg1, arg2);
239
239
  }
240
240
 
241
- function __wbg_adapter_241(arg0, arg1, arg2, arg3) {
242
- wasm.closure1740_externref_shim(arg0, arg1, arg2, arg3);
241
+ function __wbg_adapter_244(arg0, arg1, arg2, arg3) {
242
+ wasm.closure1774_externref_shim(arg0, arg1, arg2, arg3);
243
243
  }
244
244
 
245
245
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -594,6 +594,14 @@ export class Cedarling {
594
594
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
595
595
  return v3;
596
596
  }
597
+ /**
598
+ * Closes the connections to the Lock Server and pushes all available logs.
599
+ * @returns {Promise<void>}
600
+ */
601
+ shut_down() {
602
+ const ret = wasm.cedarling_shut_down(this.__wbg_ptr);
603
+ return ret;
604
+ }
597
605
  }
598
606
 
599
607
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -803,6 +811,10 @@ function __wbg_get_imports() {
803
811
  imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
804
812
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
805
813
  }, arguments) };
814
+ imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
815
+ const ret = arg0.arrayBuffer();
816
+ return ret;
817
+ }, arguments) };
806
818
  imports.wbg.__wbg_authorizeresult_new = function(arg0) {
807
819
  const ret = AuthorizeResult.__wrap(arg0);
808
820
  return ret;
@@ -823,7 +835,7 @@ function __wbg_get_imports() {
823
835
  const ret = Cedarling.__wrap(arg0);
824
836
  return ret;
825
837
  };
826
- imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
838
+ imports.wbg.__wbg_clearTimeout_b1115618e821c3b2 = function(arg0) {
827
839
  const ret = clearTimeout(arg0);
828
840
  return ret;
829
841
  };
@@ -849,12 +861,12 @@ function __wbg_get_imports() {
849
861
  imports.wbg.__wbg_error_dc53417fcef5463a = function(arg0) {
850
862
  console.error(...arg0);
851
863
  };
852
- imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
853
- const ret = arg0.fetch(arg1);
864
+ imports.wbg.__wbg_fetch_3afbdcc7ddbf16fe = function(arg0) {
865
+ const ret = fetch(arg0);
854
866
  return ret;
855
867
  };
856
- imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
857
- const ret = fetch(arg0);
868
+ imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
869
+ const ret = arg0.fetch(arg1);
858
870
  return ret;
859
871
  };
860
872
  imports.wbg.__wbg_fromEntries_524679eecb0bdc2e = function() { return handleError(function (arg0) {
@@ -991,7 +1003,7 @@ function __wbg_get_imports() {
991
1003
  const a = state0.a;
992
1004
  state0.a = 0;
993
1005
  try {
994
- return __wbg_adapter_241(a, state0.b, arg0, arg1);
1006
+ return __wbg_adapter_244(a, state0.b, arg0, arg1);
995
1007
  } finally {
996
1008
  state0.a = a;
997
1009
  }
@@ -1088,7 +1100,7 @@ function __wbg_get_imports() {
1088
1100
  const ret = Promise.resolve(arg0);
1089
1101
  return ret;
1090
1102
  };
1091
- imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
1103
+ imports.wbg.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
1092
1104
  const ret = setTimeout(arg0, arg1);
1093
1105
  return ret;
1094
1106
  };
@@ -1220,12 +1232,12 @@ function __wbg_get_imports() {
1220
1232
  const ret = false;
1221
1233
  return ret;
1222
1234
  };
1223
- imports.wbg.__wbindgen_closure_wrapper3247 = function(arg0, arg1, arg2) {
1224
- const ret = makeMutClosure(arg0, arg1, 428, __wbg_adapter_50);
1235
+ imports.wbg.__wbindgen_closure_wrapper3637 = function(arg0, arg1, arg2) {
1236
+ const ret = makeMutClosure(arg0, arg1, 467, __wbg_adapter_50);
1225
1237
  return ret;
1226
1238
  };
1227
- imports.wbg.__wbindgen_closure_wrapper3385 = function(arg0, arg1, arg2) {
1228
- const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_53);
1239
+ imports.wbg.__wbindgen_closure_wrapper3788 = function(arg0, arg1, arg2) {
1240
+ const ret = makeMutClosure(arg0, arg1, 509, __wbg_adapter_53);
1229
1241
  return ret;
1230
1242
  };
1231
1243
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@janssenproject/cedarling_wasm",
3
3
  "type": "module",
4
4
  "description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
5
- "version": "1.7.0",
5
+ "version": "1.8.0",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",