@exodus/airgap-beacon-core
Advanced tools
Comparing version 4.0.0-exodus.3 to 4.0.0-exodus.4
@@ -28,17 +28,7 @@ "use strict"; | ||
else { | ||
try { | ||
return JSON.parse(value); | ||
} | ||
catch (jsonParseError) { | ||
return value; // TODO: Validate storage | ||
} | ||
return JSON.parse(value); | ||
} | ||
} | ||
async set(key, value) { | ||
if (typeof value === 'string') { | ||
return localStorage.setItem(this.getPrefixedKey(key), value); | ||
} | ||
else { | ||
return localStorage.setItem(this.getPrefixedKey(key), JSON.stringify(value)); | ||
} | ||
return localStorage.setItem(this.getPrefixedKey(key), JSON.stringify(value)); | ||
} | ||
@@ -45,0 +35,0 @@ async delete(key) { |
@@ -23,5 +23,5 @@ "use strict"; | ||
} | ||
const buffer = Buffer.from((0, blakejs_1.blake2b)((0, utf8_1.encode)(data.join('-')), undefined, 10)); | ||
const buffer = Buffer.from((0, blakejs_1.blake2b)((0, utf8_1.encode)(data.join('-')), undefined, 16)); | ||
return bs58check.encode(buffer); | ||
}; | ||
exports.getAccountIdentifier = getAccountIdentifier; |
{ | ||
"name": "@exodus/airgap-beacon-core", | ||
"version": "4.0.0-exodus.3", | ||
"version": "4.0.0-exodus.4", | ||
"description": "> TODO: description", | ||
@@ -33,4 +33,4 @@ "author": "Andreas Gassmann <a.gassmann@papers.ch>", | ||
"dependencies": { | ||
"@exodus/airgap-beacon-types": "4.0.0-exodus.3", | ||
"@exodus/airgap-beacon-utils": "4.0.0-exodus.3", | ||
"@exodus/airgap-beacon-types": "4.0.0-exodus.4", | ||
"@exodus/airgap-beacon-utils": "4.0.0-exodus.4", | ||
"@exodus/sodium-crypto": "^3.3.0", | ||
@@ -37,0 +37,0 @@ "@stablelib/utf8": "^1.0.1", |
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
96142
2395
+ Added@exodus/airgap-beacon-types@4.0.0-exodus.4(transitive)
+ Added@exodus/airgap-beacon-utils@4.0.0-exodus.4(transitive)
- Removed@exodus/airgap-beacon-types@4.0.0-exodus.3(transitive)
- Removed@exodus/airgap-beacon-utils@4.0.0-exodus.3(transitive)