@synonymdev/pubky 0.1.12 → 0.1.13
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/browser.js +5 -4
- package/index.cjs +4 -3
- package/package.json +1 -1
- package/pubky.d.ts +2 -1
- package/pubky_bg.wasm +0 -0
package/index.cjs
CHANGED
|
@@ -551,14 +551,15 @@ class PubkyClient {
|
|
|
551
551
|
* @param {string | undefined} [cursor]
|
|
552
552
|
* @param {boolean | undefined} [reverse]
|
|
553
553
|
* @param {number | undefined} [limit]
|
|
554
|
+
* @param {boolean | undefined} [shallow]
|
|
554
555
|
* @returns {Promise<Array<any>>}
|
|
555
556
|
*/
|
|
556
|
-
list(url, cursor, reverse, limit) {
|
|
557
|
+
list(url, cursor, reverse, limit, shallow) {
|
|
557
558
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
558
559
|
const len0 = WASM_VECTOR_LEN;
|
|
559
560
|
var ptr1 = isLikeNone(cursor) ? 0 : passStringToWasm0(cursor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
560
561
|
var len1 = WASM_VECTOR_LEN;
|
|
561
|
-
const ret = wasm.pubkyclient_list(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(reverse) ? 0xFFFFFF : reverse ? 1 : 0, isLikeNone(limit) ? 0xFFFFFF : limit);
|
|
562
|
+
const ret = wasm.pubkyclient_list(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(reverse) ? 0xFFFFFF : reverse ? 1 : 0, isLikeNone(limit) ? 0xFFFFFF : limit, isLikeNone(shallow) ? 0xFFFFFF : shallow ? 1 : 0);
|
|
562
563
|
return takeObject(ret);
|
|
563
564
|
}
|
|
564
565
|
}
|
|
@@ -1038,7 +1039,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
1038
1039
|
return addHeapObject(ret);
|
|
1039
1040
|
};
|
|
1040
1041
|
|
|
1041
|
-
module.exports.
|
|
1042
|
+
module.exports.__wbindgen_closure_wrapper1801 = function(arg0, arg1, arg2) {
|
|
1042
1043
|
const ret = makeMutClosure(arg0, arg1, 295, __wbg_adapter_26);
|
|
1043
1044
|
return addHeapObject(ret);
|
|
1044
1045
|
};
|
package/package.json
CHANGED
package/pubky.d.ts
CHANGED
|
@@ -126,9 +126,10 @@ export class PubkyClient {
|
|
|
126
126
|
* @param {string | undefined} [cursor]
|
|
127
127
|
* @param {boolean | undefined} [reverse]
|
|
128
128
|
* @param {number | undefined} [limit]
|
|
129
|
+
* @param {boolean | undefined} [shallow]
|
|
129
130
|
* @returns {Promise<Array<any>>}
|
|
130
131
|
*/
|
|
131
|
-
list(url: string, cursor?: string, reverse?: boolean, limit?: number): Promise<Array<any>>;
|
|
132
|
+
list(url: string, cursor?: string, reverse?: boolean, limit?: number, shallow?: boolean): Promise<Array<any>>;
|
|
132
133
|
}
|
|
133
134
|
/**
|
|
134
135
|
*/
|
package/pubky_bg.wasm
CHANGED
|
Binary file
|