@exodus/headless 2.0.0-alpha.56 → 2.0.0-alpha.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.0-alpha.58](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.57...@exodus/headless@2.0.0-alpha.58) (2023-07-03)
7
+
8
+ ### Features
9
+
10
+ - add `currencies` to txs ([#2180](https://github.com/ExodusMovement/exodus-hydra/issues/2180)) ([d0439c1](https://github.com/ExodusMovement/exodus-hydra/commit/d0439c179b2b96993ff7ea8adc7b3143fdc2101d))
11
+ - memoizedKeychain module ([#2106](https://github.com/ExodusMovement/exodus-hydra/issues/2106)) ([ba92e86](https://github.com/ExodusMovement/exodus-hydra/commit/ba92e86b97eeef613d642837dc52702debd7e723))
12
+
13
+ ## [2.0.0-alpha.57](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.56...@exodus/headless@2.0.0-alpha.57) (2023-07-03)
14
+
15
+ ### Features
16
+
17
+ - log errors in application lifecycle hooks ([#2221](https://github.com/ExodusMovement/exodus-hydra/issues/2221)) ([6680b5a](https://github.com/ExodusMovement/exodus-hydra/commit/6680b5a5023376de29a02ac9864c207cc938f3b2))
18
+
6
19
  ## [2.0.0-alpha.56](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.55...@exodus/headless@2.0.0-alpha.56) (2023-06-30)
7
20
 
8
21
  ### ⚠ BREAKING CHANGES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/headless",
3
- "version": "2.0.0-alpha.56",
3
+ "version": "2.0.0-alpha.58",
4
4
  "description": "The platform-agnostic Exodus wallet SDK",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "main": "src/index.js",
@@ -29,12 +29,12 @@
29
29
  "@exodus/ab-testing": "^5.1.2",
30
30
  "@exodus/address-provider": "^4.2.0",
31
31
  "@exodus/apy-rates": "^2.1.1",
32
- "@exodus/atoms": "^5.2.0",
32
+ "@exodus/atoms": "^5.2.1",
33
33
  "@exodus/auto-enable-assets-plugin": "^4.0.1",
34
34
  "@exodus/available-assets": "^2.0.2",
35
35
  "@exodus/balances": "^6.0.1",
36
36
  "@exodus/basic-utils": "^2.0.0",
37
- "@exodus/blockchain-metadata": "^8.0.1",
37
+ "@exodus/blockchain-metadata": "^8.1.0",
38
38
  "@exodus/config": "^7.0.0",
39
39
  "@exodus/connected-origins": "^1.1.3",
40
40
  "@exodus/crypto-news-monitor": "^2.0.0",
@@ -42,7 +42,7 @@
42
42
  "@exodus/dependency-preprocessors": "^2.8.2",
43
43
  "@exodus/enabled-assets": "^6.0.2",
44
44
  "@exodus/exodus-pricing-client": "^1.2.0",
45
- "@exodus/feature-flags": "^2.1.2",
45
+ "@exodus/feature-flags": "^2.2.0",
46
46
  "@exodus/fee-monitors": "^1.0.0",
47
47
  "@exodus/fetch": "^1.2.1",
48
48
  "@exodus/fusion": "^6.0.0",
@@ -89,5 +89,5 @@
89
89
  "nock": "^13.3.1",
90
90
  "p-defer": "^4.0.0"
91
91
  },
92
- "gitHead": "1018fd8f756ac929a2d039130facd892d78b2071"
92
+ "gitHead": "503a3569f95648ea6498c2aac4383e8102f9c06d"
93
93
  }
@@ -126,7 +126,12 @@ class Application extends ExodusModule {
126
126
  const hooks = this.#hooks[hookName] || []
127
127
 
128
128
  for (let i = 0; i < hooks.length; i++) {
129
- await hooks[i](params)
129
+ try {
130
+ await hooks[i](params)
131
+ } catch (err) {
132
+ this._logger.error(`application lifecycle hook failed: ${hookName}`, hooks[i], params)
133
+ throw err
134
+ }
130
135
  }
131
136
 
132
137
  this.emit(hookName, params)
@@ -1,6 +1,5 @@
1
1
  import availableAssetsModuleDefinition from '@exodus/available-assets/module'
2
2
  import createKeyIdentifierProvider from '@exodus/key-identifier-provider'
3
- import keychainDefinition from '@exodus/keychain/module'
4
3
  import walletCompatibilityModesDefinition from '@exodus/wallet-compatibility-modes/module'
5
4
 
6
5
  import createApplication from '../application'
@@ -23,9 +22,6 @@ const createModuleDependencies = ({ config }) =>
23
22
  dependencies: [],
24
23
  },
25
24
  },
26
- {
27
- definition: keychainDefinition,
28
- },
29
25
  {
30
26
  definition: walletCompatibilityModesDefinition,
31
27
  },
package/src/index.js CHANGED
@@ -3,6 +3,7 @@ import addressProvider from '@exodus/address-provider'
3
3
  import apyRates from '@exodus/apy-rates'
4
4
  import { pick } from '@exodus/basic-utils'
5
5
  import cryptoNews from '@exodus/crypto-news-monitor'
6
+ import keychain from '@exodus/keychain'
6
7
  import kyc from '@exodus/kyc'
7
8
  import topMovers from '@exodus/top-movers-monitor'
8
9
 
@@ -33,6 +34,7 @@ const createExodus = ({ adapters, config, port }) => {
33
34
  const { headless: headlessConfig, topMoversMonitor } = config
34
35
 
35
36
  ioc.use(wallet())
37
+ ioc.use(keychain(config.keychain))
36
38
  ioc.use(walletAccounts())
37
39
  ioc.use(blockchainMetadata())
38
40
  ioc.use(enabledAssets())