@1sat/connect 0.0.17 → 0.0.18
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/index.js +3 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -41426,7 +41426,8 @@ function createSigmaCWI(config) {
|
|
|
41426
41426
|
}
|
|
41427
41427
|
});
|
|
41428
41428
|
};
|
|
41429
|
-
const sendCustomMessage = (type, payload) => {
|
|
41429
|
+
const sendCustomMessage = async (type, payload) => {
|
|
41430
|
+
await waitForHandshake();
|
|
41430
41431
|
const target = iframe?.contentWindow;
|
|
41431
41432
|
if (!target)
|
|
41432
41433
|
return;
|
|
@@ -45163,7 +45164,7 @@ async function connectSigmaWallet(bapId) {
|
|
|
45163
45164
|
const cwiConfig = { sigmaUrl: SIGMA_URL };
|
|
45164
45165
|
const { wallet: wallet2, destroy, sendCustomMessage } = createSigmaCWI(cwiConfig);
|
|
45165
45166
|
setSigmaIdentity(bapId);
|
|
45166
|
-
sendCustomMessage("SET_IDENTITY", { bapId });
|
|
45167
|
+
await sendCustomMessage("SET_IDENTITY", { bapId });
|
|
45167
45168
|
await wallet2.waitForAuthentication({});
|
|
45168
45169
|
const { publicKey } = await wallet2.getPublicKey({ identityKey: true });
|
|
45169
45170
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1sat/connect",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "Connection layer for 1Sat wallet - popup flow, events, session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"keywords": ["1sat", "bsv", "ordinals", "wallet", "sdk", "connect"],
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@1sat/wallet": "0.0.
|
|
22
|
+
"@1sat/wallet": "0.0.27",
|
|
23
23
|
"@sigma-auth/better-auth-plugin": "^0.0.84",
|
|
24
24
|
"better-auth": "^1.5.4",
|
|
25
25
|
"eventemitter3": "^5.0.1"
|