@exodus/headless 2.0.0-alpha.145 → 2.0.0-alpha.147
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 +12 -0
- package/package.json +9 -9
- package/src/application.js +9 -1
- package/src/dependencies/modules.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.147](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.146...@exodus/headless@2.0.0-alpha.147) (2023-12-04)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- compute feature-is-enabled in geolocation ([#4939](https://github.com/ExodusMovement/exodus-hydra/issues/4939)) ([3a9bac6](https://github.com/ExodusMovement/exodus-hydra/commit/3a9bac6f1b3116f2849ca74ffae6be454e590acb)), closes [#4941](https://github.com/ExodusMovement/exodus-hydra/issues/4941)
|
|
11
|
+
|
|
12
|
+
## [2.0.0-alpha.146](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.145...@exodus/headless@2.0.0-alpha.146) (2023-11-30)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- make passphrase cache optional ([#4915](https://github.com/ExodusMovement/exodus-hydra/issues/4915)) ([1a5738b](https://github.com/ExodusMovement/exodus-hydra/commit/1a5738b830e200012d271ff5553e5985dd3ffe7c))
|
|
17
|
+
|
|
6
18
|
## [2.0.0-alpha.145](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.144...@exodus/headless@2.0.0-alpha.145) (2023-11-23)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @exodus/headless
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/headless",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.147",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"test": "NODE_OPTIONS=--max-old-space-size=4096 jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@exodus/address-provider": "^9.0.
|
|
29
|
+
"@exodus/address-provider": "^9.0.1",
|
|
30
30
|
"@exodus/assets-feature": "^4.0.0",
|
|
31
|
-
"@exodus/atoms": "^6.0.
|
|
31
|
+
"@exodus/atoms": "^6.0.2",
|
|
32
32
|
"@exodus/auto-enable-assets-plugin": "^4.4.0",
|
|
33
33
|
"@exodus/available-assets": "^8.0.0",
|
|
34
|
-
"@exodus/balances": "^
|
|
34
|
+
"@exodus/balances": "^12.0.0",
|
|
35
35
|
"@exodus/basic-utils": "^2.0.0",
|
|
36
36
|
"@exodus/blockchain-metadata": "^15.0.0",
|
|
37
37
|
"@exodus/dependency-injection": "^2.0.1",
|
|
38
38
|
"@exodus/dependency-preprocessors": "^3.1.1",
|
|
39
39
|
"@exodus/enabled-assets": "^9.0.1",
|
|
40
|
-
"@exodus/feature-flags": "^
|
|
40
|
+
"@exodus/feature-flags": "^5.1.0",
|
|
41
41
|
"@exodus/fee-data-monitors": "^3.0.0",
|
|
42
42
|
"@exodus/fetch": "^1.2.1",
|
|
43
43
|
"@exodus/geolocation": "^3.0.0",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@exodus/restore-progress-tracker": "^3.0.0",
|
|
54
54
|
"@exodus/sodium-crypto": "^3.2.0",
|
|
55
55
|
"@exodus/tx-signer": "^1.1.0",
|
|
56
|
-
"@exodus/wallet": "^10.
|
|
57
|
-
"@exodus/wallet-accounts": "^14.
|
|
56
|
+
"@exodus/wallet": "^10.3.0",
|
|
57
|
+
"@exodus/wallet-accounts": "^14.4.0",
|
|
58
58
|
"@exodus/wallet-compatibility-modes": "^3.2.0",
|
|
59
59
|
"bip39": "^2.6.0",
|
|
60
60
|
"events": "^3.3.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@exodus/litecoin-meta": "^1.0.0",
|
|
80
80
|
"@exodus/market-history": "^7.1.0",
|
|
81
81
|
"@exodus/models": "^10.1.0",
|
|
82
|
-
"@exodus/nfts": "^7.1.
|
|
82
|
+
"@exodus/nfts": "^7.1.2",
|
|
83
83
|
"@exodus/personal-notes": "^3.6.0",
|
|
84
84
|
"@exodus/referrals": "^8.0.1",
|
|
85
85
|
"@exodus/solana-lib": "^1.3.11",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"msw": "^2.0.0",
|
|
100
100
|
"p-defer": "^4.0.0"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "51959d37d308750ca8dab99eb11e9d8279658619"
|
|
103
103
|
}
|
package/src/application.js
CHANGED
|
@@ -21,6 +21,14 @@ const RESTORE_FLAG = 'restoreFlag'
|
|
|
21
21
|
|
|
22
22
|
const HOOKS = new Set(Object.values(Hook))
|
|
23
23
|
|
|
24
|
+
const passphraseCachePlaceholder = {
|
|
25
|
+
get: () => {},
|
|
26
|
+
set: () => {},
|
|
27
|
+
changeTtl: () => {},
|
|
28
|
+
clear: () => {},
|
|
29
|
+
scheduleClear: () => {},
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
class Application extends ExodusModule {
|
|
25
33
|
#hooks = {}
|
|
26
34
|
#wallet = null
|
|
@@ -29,7 +37,7 @@ class Application extends ExodusModule {
|
|
|
29
37
|
#applicationStarted = null
|
|
30
38
|
#resolveStart = null
|
|
31
39
|
|
|
32
|
-
constructor({ wallet, unsafeStorage, passphraseCache, logger }) {
|
|
40
|
+
constructor({ wallet, unsafeStorage, passphraseCache = passphraseCachePlaceholder, logger }) {
|
|
33
41
|
super({ name: 'Application', logger })
|
|
34
42
|
|
|
35
43
|
this.#wallet = wallet
|
|
@@ -11,7 +11,7 @@ const createModuleDependencies = ({ config }) =>
|
|
|
11
11
|
definition: {
|
|
12
12
|
id: 'application',
|
|
13
13
|
factory: createApplication,
|
|
14
|
-
dependencies: ['unsafeStorage', 'passphraseCache', 'wallet', 'logger'],
|
|
14
|
+
dependencies: ['unsafeStorage', 'passphraseCache?', 'wallet', 'logger'],
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
{
|