@janssenproject/cedarling_wasm 0.0.480 → 0.0.482
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/dist/browser/index.js +45 -12
- package/dist/browser/index.js.map +2 -2
- package/dist/cjs/index.cjs +45 -12
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/edge/index.js +45 -12
- package/dist/edge/index.js.map +2 -2
- package/dist/esm/index.js +45 -12
- package/dist/esm/index.js.map +2 -2
- package/dist/manual/index.js +45 -12
- package/dist/manual/index.js.map +2 -2
- package/dist/types/cjs/generated.d.ts +22 -4
- package/dist/types/esm/generated.d.ts +22 -4
- package/dist/wasm/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1212,6 +1212,39 @@ var Cedarling = class _Cedarling {
|
|
|
1212
1212
|
const ret = wasm.cedarling_new(addHeapObject(config));
|
|
1213
1213
|
return takeObject(ret);
|
|
1214
1214
|
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Get the ID of the currently published policy store, if it carries one.
|
|
1217
|
+
*
|
|
1218
|
+
* `undefined` means the store carries no ID. The value is an opaque,
|
|
1219
|
+
* source-dependent string; it may change after a background refresh.
|
|
1220
|
+
*
|
|
1221
|
+
* # Arguments
|
|
1222
|
+
*
|
|
1223
|
+
* None.
|
|
1224
|
+
*
|
|
1225
|
+
* # Example
|
|
1226
|
+
*
|
|
1227
|
+
* ```javascript
|
|
1228
|
+
* const id = cedarling.policyStoreId();
|
|
1229
|
+
* ```
|
|
1230
|
+
* @returns {string | undefined}
|
|
1231
|
+
*/
|
|
1232
|
+
policyStoreId() {
|
|
1233
|
+
try {
|
|
1234
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1235
|
+
wasm.cedarling_policyStoreId(retptr, this.__wbg_ptr);
|
|
1236
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1237
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1238
|
+
let v1;
|
|
1239
|
+
if (r0 !== 0) {
|
|
1240
|
+
v1 = getStringFromWasm0(r0, r1);
|
|
1241
|
+
wasm.__wbindgen_export5(r0, r1 * 1, 1);
|
|
1242
|
+
}
|
|
1243
|
+
return v1;
|
|
1244
|
+
} finally {
|
|
1245
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1215
1248
|
/**
|
|
1216
1249
|
* Returns all retained memory logs and removes them from storage.
|
|
1217
1250
|
* Other log configurations return an empty array.
|
|
@@ -2611,7 +2644,7 @@ function __wbg_get_imports() {
|
|
|
2611
2644
|
const a = state0.a;
|
|
2612
2645
|
state0.a = 0;
|
|
2613
2646
|
try {
|
|
2614
|
-
return
|
|
2647
|
+
return __wasm_bindgen_func_elem_8990(a, state0.b, arg02, arg12);
|
|
2615
2648
|
} finally {
|
|
2616
2649
|
state0.a = a;
|
|
2617
2650
|
}
|
|
@@ -2842,15 +2875,15 @@ function __wbg_get_imports() {
|
|
|
2842
2875
|
console.warn(...getObject(arg0));
|
|
2843
2876
|
},
|
|
2844
2877
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
2845
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2878
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8935);
|
|
2846
2879
|
return addHeapObject(ret);
|
|
2847
2880
|
},
|
|
2848
2881
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
2849
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2882
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12496);
|
|
2850
2883
|
return addHeapObject(ret);
|
|
2851
2884
|
},
|
|
2852
2885
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
2853
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2886
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8769);
|
|
2854
2887
|
return addHeapObject(ret);
|
|
2855
2888
|
},
|
|
2856
2889
|
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
@@ -2886,19 +2919,19 @@ function __wbg_get_imports() {
|
|
|
2886
2919
|
"./cedarling_wasm_bg.js": import0
|
|
2887
2920
|
};
|
|
2888
2921
|
}
|
|
2889
|
-
function
|
|
2890
|
-
wasm.
|
|
2922
|
+
function __wasm_bindgen_func_elem_8769(arg0, arg1) {
|
|
2923
|
+
wasm.__wasm_bindgen_func_elem_8769(arg0, arg1);
|
|
2891
2924
|
}
|
|
2892
|
-
function
|
|
2893
|
-
wasm.
|
|
2925
|
+
function __wasm_bindgen_func_elem_12496(arg0, arg1, arg2) {
|
|
2926
|
+
wasm.__wasm_bindgen_func_elem_12496(arg0, arg1, addHeapObject(arg2));
|
|
2894
2927
|
}
|
|
2895
|
-
function
|
|
2896
|
-
wasm.
|
|
2928
|
+
function __wasm_bindgen_func_elem_8990(arg0, arg1, arg2, arg3) {
|
|
2929
|
+
wasm.__wasm_bindgen_func_elem_8990(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2897
2930
|
}
|
|
2898
|
-
function
|
|
2931
|
+
function __wasm_bindgen_func_elem_8935(arg0, arg1, arg2) {
|
|
2899
2932
|
try {
|
|
2900
2933
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2901
|
-
wasm.
|
|
2934
|
+
wasm.__wasm_bindgen_func_elem_8935(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2902
2935
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2903
2936
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2904
2937
|
if (r1) {
|