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