feat: expose signer via UserState

This commit is contained in:
kieran 2024-11-25 12:30:04 +00:00
parent f081405e3c
commit 6eafdc1367
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
4 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@snort/system-react",
"version": "1.5.6",
"version": "1.5.7",
"description": "React hooks for @snort/system",
"main": "dist/index.js",
"module": "src/index.ts",
@ -17,7 +17,7 @@
],
"dependencies": {
"@snort/shared": "^1.0.17",
"@snort/system": "^1.5.6",
"@snort/system": "^1.5.7",
"react": "^18.2.0"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@snort/system",
"version": "1.5.6",
"version": "1.5.7",
"description": "Snort nostr system package",
"type": "module",
"main": "dist/index.js",

View File

@ -137,6 +137,10 @@ export class UserState<TAppData> extends EventEmitter<UserStateEvents> {
}
}
get signer() {
return this.#signer;
}
get version() {
return this.#version;
}

View File

@ -1,6 +1,6 @@
{
"name": "@snort/wallet",
"version": "0.2.1",
"version": "0.2.2",
"description": "Snort wallet system package",
"type": "module",
"main": "dist/index.js",
@ -23,7 +23,7 @@
"@lightninglabs/lnc-web": "^0.3.1-alpha",
"@scure/base": "^1.1.6",
"@snort/shared": "^1.0.17",
"@snort/system": "^1.5.6",
"@snort/system": "^1.5.7",
"debug": "^4.3.4",
"eventemitter3": "^5.0.1"
},