@exodus/balances
Advanced tools
Comparing version 13.3.1 to 13.3.2
import { compute, createStorageAtomFactory } from '@exodus/atoms' | ||
// eslint-disable-next-line @exodus/restricted-imports/prefer-basic-utils | ||
import lodash from 'lodash' | ||
@@ -4,0 +3,0 @@ |
@@ -6,2 +6,8 @@ # Change Log | ||
## [13.3.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.3.1...@exodus/balances@13.3.2) (2024-09-13) | ||
### Bug Fixes | ||
- log instead of throwing ([#9147](https://github.com/ExodusMovement/exodus-hydra/issues/9147)) ([499f002](https://github.com/ExodusMovement/exodus-hydra/commit/499f002ddb2d35fab3d7b18b59cac07476ea6ee0)) | ||
## [13.3.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@13.3.0...@exodus/balances@13.3.1) (2024-09-09) | ||
@@ -8,0 +14,0 @@ |
import { isNumberUnit } from '@exodus/currency' | ||
import { TxSet } from '@exodus/models' | ||
import ExodusModule from '@exodus/module' // eslint-disable-line import/no-deprecated | ||
// eslint-disable-next-line @exodus/restricted-imports/prefer-basic-utils | ||
import lodash from 'lodash' | ||
@@ -73,3 +72,3 @@ import { difference, flattenToPaths, pick, set } from '@exodus/basic-utils' | ||
// when only `{ walletAccount }` is expected | ||
const captureErrors = | ||
const reportAndSwallowErrors = | ||
({ fn, name, sanitizeArgs = () => {} }) => | ||
@@ -81,3 +80,3 @@ async (...args) => { | ||
this.emit('error', { fn: name, error, args: sanitizeArgs(...args) }) | ||
throw error | ||
this._logger.error(error) | ||
} | ||
@@ -91,3 +90,3 @@ } | ||
this.#onAssetsChanged = shareQueue(this.#onAssetsChanged) | ||
this.#getBalancesForAssetSource = captureErrors({ | ||
this.#getBalancesForAssetSource = reportAndSwallowErrors({ | ||
fn: this.#getBalancesForAssetSource, | ||
@@ -98,3 +97,3 @@ name: 'getBalancesForAssetSource', | ||
this.#setWalletAccounts = captureErrors({ | ||
this.#setWalletAccounts = reportAndSwallowErrors({ | ||
fn: this.#setWalletAccounts, | ||
@@ -101,0 +100,0 @@ name: 'setWalletAccounts', |
{ | ||
"name": "@exodus/balances", | ||
"version": "13.3.1", | ||
"version": "13.3.2", | ||
"description": "Tracks crypto balances across enabled wallet accounts.", | ||
@@ -67,3 +67,3 @@ "author": "Exodus Movement, Inc.", | ||
}, | ||
"gitHead": "d64de7579b06afe91fbded3d1f7eb29950f82e5a" | ||
"gitHead": "de12d93c6e9cea90a07137a932dccd255226d92f" | ||
} |
@@ -5,3 +5,2 @@ import id from './id.js' | ||
import { mapValues } from '@exodus/basic-utils' | ||
// eslint-disable-next-line @exodus/restricted-imports/prefer-basic-utils | ||
import lodash from 'lodash' | ||
@@ -8,0 +7,0 @@ import helper from './multi-account-helper.js' |
@@ -1,6 +0,6 @@ | ||
import lodash from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file | ||
import lodash from 'lodash' | ||
import { MY_STATE } from '@exodus/redux-dependency-injection' | ||
import { createSelector } from 'reselect' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -7,0 +7,0 @@ const createBalanceSelectorFactory = ({ field, id }) => { |
@@ -1,6 +0,6 @@ | ||
import lodash from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file | ||
import lodash from 'lodash' | ||
import { createSelector } from 'reselect' | ||
import { isNumberUnit } from '@exodus/currency' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -7,0 +7,0 @@ const selectorFactory = (getFeeDataSelector, assetsSelector) => |
@@ -1,6 +0,6 @@ | ||
import lodash from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file | ||
import lodash from 'lodash' | ||
import { createSelector } from 'reselect' | ||
import { getUnconfirmedBalance } from './get-unconfirmed-balance.js' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -7,0 +7,0 @@ const selectorFactory = (assetsSelector, createAssetSourceSelector) => |
@@ -1,5 +0,5 @@ | ||
import lodash from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file | ||
import lodash from 'lodash' | ||
import defaultConfig from '../../default-config.js' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -6,0 +6,0 @@ const { balanceFields } = defaultConfig |
@@ -1,5 +0,4 @@ | ||
// eslint-disable-next-line @exodus/restricted-imports/prefer-basic-utils | ||
import lodash from 'lodash' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -6,0 +5,0 @@ const createResultFunction = (field) => (getBalanceForField) => |
@@ -1,6 +0,6 @@ | ||
import lodash from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file | ||
import lodash from 'lodash' | ||
import { createSelector } from 'reselect' | ||
import { MY_STATE } from '@exodus/redux-dependency-injection' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -7,0 +7,0 @@ const selectorFactory = (selfSelector) => |
@@ -1,5 +0,5 @@ | ||
import lodash from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file | ||
import lodash from 'lodash' | ||
import { createSelector } from 'reselect' | ||
const { memoize } = lodash | ||
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils | ||
@@ -6,0 +6,0 @@ export const getUnconfirmedBalance = ({ asset, txs }) => { |
68664
1085