Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/activity-txs

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/activity-txs - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

6

CHANGELOG.md

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

## [4.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.2.0...@exodus/activity-txs@4.2.1) (2024-05-30)
### Bug Fixes
- memoize activity selectors ([#7223](https://github.com/ExodusMovement/exodus-hydra/issues/7223)) ([cf4cb47](https://github.com/ExodusMovement/exodus-hydra/commit/cf4cb478355548d355180c81ad15b0558d0d7ad6))
## [4.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.1.5...@exodus/activity-txs@4.2.0) (2024-05-29)

@@ -8,0 +14,0 @@

6

package.json
{
"name": "@exodus/activity-txs",
"version": "4.2.0",
"version": "4.2.1",
"description": "The activity-txs feature",

@@ -54,3 +54,3 @@ "author": "Exodus Movement, Inc.",

"@exodus/dependency-preprocessors": "^5.2.0",
"@exodus/fiat-ramp": "^10.7.0",
"@exodus/fiat-ramp": "^10.7.1",
"@exodus/nfts": "^9.3.0",

@@ -65,3 +65,3 @@ "@exodus/orders": "^4.9.0",

},
"gitHead": "4d39581f3d08d36a51b846982c016b2c4cd2e59d"
"gitHead": "9169f83b1c385d7b59703e0bc763a544d28b46a8"
}

@@ -8,11 +8,13 @@ import { memoize } from 'lodash'

selectorFactory: (createBatchedAssetSourceSelector) =>
memoize(({ assetName, walletAccount, limit }) =>
createSelector(
createBatchedAssetSourceSelector({ assetName, walletAccount, limit }),
(transformedTxs) =>
transformedTxs.reduce((acc, tx) => {
;(acc[tx.txId] || (acc[tx.txId] = [])).push(tx)
return acc
}, Object.create(null))
)
memoize(
({ assetName, walletAccount, limit }) =>
createSelector(
createBatchedAssetSourceSelector({ assetName, walletAccount, limit }),
(transformedTxs) =>
transformedTxs.reduce((acc, tx) => {
;(acc[tx.txId] || (acc[tx.txId] = [])).push(tx)
return acc
}, Object.create(null))
),
({ assetName, walletAccount, limit }) => `${assetName}_${walletAccount}_${limit}`
),

@@ -19,0 +21,0 @@ }

@@ -61,13 +61,15 @@ import { memoize, get, groupBy, merge } from 'lodash'

) =>
memoize(({ assetName, walletAccount, limit }) =>
createSelector(
createLimitedAssetSourceSelector({ assetName, walletAccount, limit }),
personalNotesWithBatchIdSelector,
assetsSelector,
(txs, personalNotesWithBatchId, assets) => {
return personalNotesWithBatchId.size > 0
? groupAndCollapseBatched({ txs, personalNotesWithBatchId, assets })
: txs
}
)
memoize(
({ assetName, walletAccount, limit }) =>
createSelector(
createLimitedAssetSourceSelector({ assetName, walletAccount, limit }),
personalNotesWithBatchIdSelector,
assetsSelector,
(txs, personalNotesWithBatchId, assets) => {
return personalNotesWithBatchId.size > 0
? groupAndCollapseBatched({ txs, personalNotesWithBatchId, assets })
: txs
}
),
({ assetName, walletAccount, limit }) => `${assetName}_${walletAccount}_${limit}`
),

@@ -74,0 +76,0 @@ }

@@ -8,6 +8,8 @@ import { memoize } from 'lodash'

selectorFactory: (createAssetSourceSelector) =>
memoize(({ assetName, walletAccount, limit }) =>
createSelector(createAssetSourceSelector({ assetName, walletAccount }), (txs) =>
limit ? txs.slice(-limit) : txs
)
memoize(
({ assetName, walletAccount, limit }) =>
createSelector(createAssetSourceSelector({ assetName, walletAccount }), (txs) =>
limit ? txs.slice(-limit) : txs
),
({ assetName, walletAccount, limit }) => `${assetName}_${walletAccount}_${limit}`
),

@@ -14,0 +16,0 @@ }

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