@synonymdev/pubky 0.4.2-rc1 → 0.4.2-rc2
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 +9 -10
- package/index.js +12 -13
- package/package.json +1 -1
- package/pubky.d.ts +1 -1
- package/pubky_bg.wasm +0 -0
package/index.cjs
CHANGED
|
@@ -481,14 +481,13 @@ class Client {
|
|
|
481
481
|
* republishing. On a failed signin due to homeserver resolution failure, a key
|
|
482
482
|
* manager should always attempt to republish the last known homeserver.
|
|
483
483
|
* @param {Keypair} keypair
|
|
484
|
-
* @param {
|
|
484
|
+
* @param {PublicKey} host
|
|
485
485
|
* @returns {Promise<void>}
|
|
486
486
|
*/
|
|
487
487
|
republishHomeserver(keypair, host) {
|
|
488
488
|
_assertClass(keypair, Keypair);
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
const ret = wasm.client_republishHomeserver(this.__wbg_ptr, keypair.__wbg_ptr, ptr0, len0);
|
|
489
|
+
_assertClass(host, PublicKey);
|
|
490
|
+
const ret = wasm.client_republishHomeserver(this.__wbg_ptr, keypair.__wbg_ptr, host.__wbg_ptr);
|
|
492
491
|
return ret;
|
|
493
492
|
}
|
|
494
493
|
/**
|
|
@@ -774,11 +773,6 @@ module.exports.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
|
|
|
774
773
|
console.error(arg0, arg1, arg2, arg3);
|
|
775
774
|
};
|
|
776
775
|
|
|
777
|
-
module.exports.__wbg_fetch_2025f815912fe9d0 = function(arg0) {
|
|
778
|
-
const ret = fetch(arg0);
|
|
779
|
-
return ret;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
776
|
module.exports.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
|
|
783
777
|
const ret = fetch(arg0);
|
|
784
778
|
return ret;
|
|
@@ -789,6 +783,11 @@ module.exports.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
|
789
783
|
return ret;
|
|
790
784
|
};
|
|
791
785
|
|
|
786
|
+
module.exports.__wbg_fetch_d8b19b0ecd6b9e46 = function(arg0) {
|
|
787
|
+
const ret = fetch(arg0);
|
|
788
|
+
return ret;
|
|
789
|
+
};
|
|
790
|
+
|
|
792
791
|
module.exports.__wbg_getRandomValues_78e016fdd1d721cf = function() { return handleError(function (arg0, arg1) {
|
|
793
792
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
794
793
|
}, arguments) };
|
|
@@ -1104,7 +1103,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
1104
1103
|
return ret;
|
|
1105
1104
|
};
|
|
1106
1105
|
|
|
1107
|
-
module.exports.
|
|
1106
|
+
module.exports.__wbindgen_closure_wrapper2701 = function(arg0, arg1, arg2) {
|
|
1108
1107
|
const ret = makeMutClosure(arg0, arg1, 487, __wbg_adapter_30);
|
|
1109
1108
|
return ret;
|
|
1110
1109
|
};
|