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
65
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 1.1.1 to 1.1.2

README.md

30

index.js

@@ -46,10 +46,8 @@ import { isNumberUnit } from '@exodus/currency'

blockchainMetadata.on('account-state', async (opts) => {
return this.#updateAssetSource(opts)
blockchainMetadata.on('loaded', () => {
this.#recompute()
blockchainMetadata.on('account-state', this.#handleAccountStateUpdate)
blockchainMetadata.on('tx-log', this.#handleTxLogUpdate)
})
blockchainMetadata.on('tx-log', async (opts) => {
if (this.#isHistoryBasedBalanceAsset(opts.assetName)) return this.#updateAssetSource(opts)
})
walletAccountsAtom.observe((payload) =>

@@ -66,2 +64,22 @@ this.#setWalletAccounts(

#handleAccountStateUpdate = async (opts) => {
if (!this.#ready) {
this._logger.log(`ignore update from account-state event.`, {
isReady: this.#ready,
})
return
}
return this.#updateAssetSource(opts)
}
#handleTxLogUpdate = (opts) => {
if (!this.#ready) {
this._logger.log(`ignore update from tx-log event.`, {
isReady: this.#ready,
})
return
}
if (this.#isHistoryBasedBalanceAsset(opts.assetName)) return this.#updateAssetSource(opts)
}
#pushIntoSharedQueue = makeConcurrent((fn) => fn(), { concurrency: 1 })

@@ -68,0 +86,0 @@

4

package.json
{
"name": "@exodus/balances",
"version": "1.1.1",
"version": "1.1.2",
"description": "balances",

@@ -34,3 +34,3 @@ "author": "Exodus Movement Inc",

},
"gitHead": "cbca7f075af27af557d498dc6dc74f61909434ad"
"gitHead": "d23a92b5962eedd5874f0362a6983b7c4b8a3ce4"
}
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