@cityofzion/bs-neo-legacy
Advanced tools
Comparing version 0.10.5 to 0.10.6
@@ -82,16 +82,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let BsReactNativeDecrypt; | ||
try { | ||
const { NativeModules } = require('react-native'); | ||
BsReactNativeDecrypt = NativeModules.BsReactNativeDecrypt; | ||
if (!BsReactNativeDecrypt) { | ||
throw new Error('@CityOfZion/bs-react-native-decrypt is not installed'); | ||
} | ||
} | ||
catch (_a) { | ||
const key = yield neon_js_1.wallet.decrypt(encryptedKey, password); | ||
return this.generateAccountFromKey(key); | ||
} | ||
const privateKey = yield BsReactNativeDecrypt.decryptNeoLegacy(encryptedKey, password); | ||
return this.generateAccountFromKey(privateKey); | ||
const key = yield neon_js_1.wallet.decrypt(encryptedKey, password); | ||
return this.generateAccountFromKey(key); | ||
}); | ||
@@ -98,0 +86,0 @@ } |
{ | ||
"name": "@cityofzion/bs-neo-legacy", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"main": "dist/index.js", | ||
@@ -14,4 +14,4 @@ "types": "dist/index.d.ts", | ||
"@cityofzion/neon-js": "4.8.3", | ||
"@cityofzion/blockchain-service": "0.13.0", | ||
"@cityofzion/bs-asteroid-sdk": "0.9.0" | ||
"@cityofzion/bs-asteroid-sdk": "0.9.0", | ||
"@cityofzion/blockchain-service": "0.13.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
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
41336
1023