@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/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.__wbindgen_closure_wrapper1792 = function(arg0, arg1, arg2) {
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
@@ -2,7 +2,7 @@
2
2
  "name": "@synonymdev/pubky",
3
3
  "type": "module",
4
4
  "description": "Pubky client",
5
- "version": "0.1.12",
5
+ "version": "0.1.13",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
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