@janssenproject/cedarling_wasm 0.0.90 → 0.0.92
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 +8 -3
- package/cedarling_wasm.js +21 -9
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.d.ts
CHANGED
|
@@ -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
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
223
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ea374e9f4e8d65a: (a: number, b: number) => void;
|
|
224
|
+
readonly closure518_externref_shim: (a: number, b: number, c: any) => void;
|
|
225
|
+
readonly closure1797_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.
|
|
234
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ea374e9f4e8d65a(arg0, arg1);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
function __wbg_adapter_53(arg0, arg1, arg2) {
|
|
238
|
-
wasm.
|
|
238
|
+
wasm.closure518_externref_shim(arg0, arg1, arg2);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
function
|
|
242
|
-
wasm.
|
|
241
|
+
function __wbg_adapter_244(arg0, arg1, arg2, arg3) {
|
|
242
|
+
wasm.closure1797_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;
|
|
@@ -991,7 +1003,7 @@ function __wbg_get_imports() {
|
|
|
991
1003
|
const a = state0.a;
|
|
992
1004
|
state0.a = 0;
|
|
993
1005
|
try {
|
|
994
|
-
return
|
|
1006
|
+
return __wbg_adapter_244(a, state0.b, arg0, arg1);
|
|
995
1007
|
} finally {
|
|
996
1008
|
state0.a = a;
|
|
997
1009
|
}
|
|
@@ -1220,12 +1232,12 @@ function __wbg_get_imports() {
|
|
|
1220
1232
|
const ret = false;
|
|
1221
1233
|
return ret;
|
|
1222
1234
|
};
|
|
1223
|
-
imports.wbg.
|
|
1224
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1235
|
+
imports.wbg.__wbindgen_closure_wrapper3751 = function(arg0, arg1, arg2) {
|
|
1236
|
+
const ret = makeMutClosure(arg0, arg1, 474, __wbg_adapter_50);
|
|
1225
1237
|
return ret;
|
|
1226
1238
|
};
|
|
1227
|
-
imports.wbg.
|
|
1228
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1239
|
+
imports.wbg.__wbindgen_closure_wrapper3900 = function(arg0, arg1, arg2) {
|
|
1240
|
+
const ret = makeMutClosure(arg0, arg1, 519, __wbg_adapter_53);
|
|
1229
1241
|
return ret;
|
|
1230
1242
|
};
|
|
1231
1243
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/cedarling_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@janssenproject/cedarling_wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.92",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|