Socket
Socket
Sign inDemoInstall

@onekeyfe/hd-core

Package Overview
Dependencies
Maintainers
2
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/hd-core - npm Package Compare versions

Comparing version 0.1.39 to 0.1.40

8

package.json
{
"name": "@onekeyfe/hd-core",
"version": "0.1.39",
"version": "0.1.40",
"description": "> TODO: description",

@@ -28,4 +28,4 @@ "author": "OneKey",

"dependencies": {
"@onekeyfe/hd-shared": "^0.1.39",
"@onekeyfe/hd-transport": "^0.1.39",
"@onekeyfe/hd-shared": "^0.1.40",
"@onekeyfe/hd-transport": "^0.1.40",
"axios": "^0.27.2",

@@ -41,3 +41,3 @@ "bignumber.js": "^9.0.2",

},
"gitHead": "abaee3140debec0a263b2b87c5ffcddfa534b443"
"gitHead": "70962d6f531e16695ad953c9a6c700876a94e20d"
}

@@ -264,8 +264,14 @@ import EventEmitter from 'events';

if (!deviceId) return undefined;
if (!this.passphraseState) return undefined;
const key = `${deviceId}`;
const usePassKey = `${deviceId}@${this.passphraseState}`;
// When creating a wallet, use device_id as the key
const session = deviceSessionCache[key] ?? deviceSessionCache[usePassKey];
return this.passphraseState ? session : undefined;
if (!deviceSessionCache[usePassKey]) {
const key = `${deviceId}`;
if (deviceSessionCache[key]) {
deviceSessionCache[usePassKey] = deviceSessionCache[key];
}
}
return deviceSessionCache[usePassKey];
}

@@ -272,0 +278,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc