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