@exodus/headless 2.0.0-alpha.19 → 2.0.0-alpha.20
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 +11 -0
- package/package.json +3 -3
- package/src/api.js +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.20](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.19...@exodus/headless@2.0.0-alpha.20) (2023-05-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- stop timers on remoteConfig.stop(), kyc.stop(), referrals.stop() ([#1593](https://github.com/ExodusMovement/exodus-hydra/issues/1593)) ([0f73363](https://github.com/ExodusMovement/exodus-hydra/commit/0f7336362cdc5a6f878109e6353ac241795e4fc6))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- kyc tests ([#1619](https://github.com/ExodusMovement/exodus-hydra/issues/1619)) ([20da423](https://github.com/ExodusMovement/exodus-hydra/commit/20da423b98aa3b950e197b4a2290898c731c59b2))
|
|
15
|
+
- kyc tests (again) ([#1626](https://github.com/ExodusMovement/exodus-hydra/issues/1626)) ([0f12f89](https://github.com/ExodusMovement/exodus-hydra/commit/0f12f898691504aefffeaca0db2fd3dbe9740ff6))
|
|
16
|
+
|
|
6
17
|
## [2.0.0-alpha.19](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.18...@exodus/headless@2.0.0-alpha.19) (2023-05-08)
|
|
7
18
|
|
|
8
19
|
### ⚠ BREAKING CHANGES
|
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.20",
|
|
4
4
|
"description": "The headless Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"lint": "eslint . --ignore-path ../../.gitignore",
|
|
25
25
|
"lint:fix": "yarn lint --fix",
|
|
26
|
-
"test": "jest"
|
|
26
|
+
"test": "jest --runInBand"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@exodus/addresses-provider": "^3.0.2",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"nock": "^13.3.1",
|
|
77
77
|
"p-defer": "^4.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "97af2cc1155b12a20858cf026a2fee25fff37483"
|
|
80
80
|
}
|
package/src/api.js
CHANGED
|
@@ -24,6 +24,13 @@ const createApi = ({ ioc, port }) => {
|
|
|
24
24
|
languageAtom,
|
|
25
25
|
} = ioc.getByType('atom')
|
|
26
26
|
|
|
27
|
+
// TODO: do this on 'unload'
|
|
28
|
+
const stop = () => {
|
|
29
|
+
kyc.stop()
|
|
30
|
+
referrals.stop()
|
|
31
|
+
remoteConfig.stop()
|
|
32
|
+
}
|
|
33
|
+
|
|
27
34
|
return {
|
|
28
35
|
wallet: {
|
|
29
36
|
exists: () => wallet.exists(),
|
|
@@ -103,6 +110,7 @@ const createApi = ({ ioc, port }) => {
|
|
|
103
110
|
isMnemonicValid,
|
|
104
111
|
subscribe: port.subscribe.bind(port),
|
|
105
112
|
unsubscribe: port.unsubscribe.bind(port),
|
|
113
|
+
stop,
|
|
106
114
|
}
|
|
107
115
|
}
|
|
108
116
|
|