New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/balances

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/balances - npm Package Compare versions

Comparing version 6.0.1 to 6.1.0

7

CHANGELOG.md

@@ -6,2 +6,9 @@ # Change Log

## [6.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@6.0.1...@exodus/balances@6.1.0) (2023-07-19)
### Features
- capture #setWalletAccounts ([#2723](https://github.com/ExodusMovement/exodus-hydra/issues/2723)) ([af8c52b](https://github.com/ExodusMovement/exodus-hydra/commit/af8c52b6f4623e490d470b6185fafb4b771d5bcc))
- emit errors from balances module ([#2718](https://github.com/ExodusMovement/exodus-hydra/issues/2718)) ([d150e55](https://github.com/ExodusMovement/exodus-hydra/commit/d150e555c76e9fedc3defb2023f8b161ce99c5f1))
## [6.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@6.0.0...@exodus/balances@6.0.1) (2023-06-21)

@@ -8,0 +15,0 @@

25

module/index.js

@@ -56,2 +56,13 @@ import { isNumberUnit } from '@exodus/currency'

const captureErrors =
(fn, name) =>
async (...args) => {
try {
return await fn(...args)
} catch (error) {
this.emit('error', { fn: name, error })
throw error
}
}
// these share a queue

@@ -61,3 +72,9 @@ this.#updateAssetSource = shareQueue(this.#updateAssetSource)

this.#recompute = shareQueue(this.#recompute)
this.#getBalancesForAssetSource = captureErrors(
this.#getBalancesForAssetSource,
'getBalancesForAssetSource'
)
this.#setWalletAccounts = captureErrors(this.#setWalletAccounts, 'setWalletAccounts')
blockchainMetadata.once('load-wallet-accounts', () => {

@@ -177,3 +194,3 @@ // eslint-disable-next-line hydra/module-side-effects

#setWalletAccounts = (walletAccounts) => {
#setWalletAccounts = async (walletAccounts) => {
const added = difference(walletAccounts, this.#walletAccounts)

@@ -194,3 +211,3 @@ const removed = difference(this.#walletAccounts, walletAccounts)

this._logger.log('recomputing after adding walletAccounts', added)
this.#recompute({ walletAccounts: added })
await this.#recompute({ walletAccounts: added })
} else {

@@ -324,3 +341,3 @@ this.#flush()

export default {
const balancesDefinition = {
id: MODULE_ID,

@@ -338,1 +355,3 @@ type: 'module',

}
export default balancesDefinition

14

package.json
{
"name": "@exodus/balances",
"version": "6.0.1",
"description": "balances",
"author": "Exodus Movement Inc",
"version": "6.1.0",
"description": "Tracks crypto balances across enabled wallet accounts.",
"author": "Exodus Movement Inc.",
"license": "UNLICENSED",

@@ -17,3 +17,3 @@ "scripts": {

"CHANGELOG.md",
"!**/__tests__"
"!**/__tests__/**"
],

@@ -29,3 +29,3 @@ "repository": {

"dependencies": {
"@exodus/atoms": "^5.0.0",
"@exodus/atoms": "^5.2.2",
"@exodus/basic-utils": "^2.0.0",

@@ -45,7 +45,7 @@ "@exodus/currency": "^2.1.2",

"@exodus/wallet-accounts": "^9.1.0",
"eslint": "^8.33.0",
"eslint": "^8.44.0",
"events": "^3.3.0",
"jest": "^29.1.2"
},
"gitHead": "f0a3d249bf994a6d5c106a106b5e4b2b6c61a6e8"
"gitHead": "4d8041f79655449cca977603e87d647c2a3e8df8"
}
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