@bloks/wallet
Advanced tools
Comparing version 3.5.12-alpha.0 to 3.5.12
{ | ||
"name": "@bloks/wallet", | ||
"version": "3.5.12-alpha.0", | ||
"version": "3.5.12", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "d440e24e25aff849f2d3dac8b423de037eed132c" | ||
"gitHead": "2b7407b9b1d3e35b117b7958340dabf453a40176" | ||
} |
import store from 'store' | ||
import { defaultUser } from './defaults' | ||
const USER_KEY = 'user-v.0.0.1' | ||
const USERS_KEY = 'user-v.0.0.1' | ||
class Users { | ||
@@ -10,4 +13,4 @@ constructor () { | ||
this.user = store.get('user') || defaultUser() | ||
this.users = store.get('users') || [] | ||
this.user = store.get(USER_KEY) || defaultUser() | ||
this.users = store.get(USERS_KEY) || [] | ||
} | ||
@@ -23,3 +26,3 @@ | ||
saveUsers () { | ||
store.set('users', this.users) | ||
store.set(USERS_KEY, this.users) | ||
} | ||
@@ -47,3 +50,3 @@ | ||
} | ||
store.set('user', this.user) | ||
store.set(USER_KEY, this.user) | ||
} | ||
@@ -50,0 +53,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15808
651
1