@exodus/headless 2.0.0-alpha.54 → 2.0.0-alpha.55
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 +6 -0
- package/package.json +3 -3
- package/src/application.js +2 -2
- package/src/constants.js +1 -0
- package/src/plugins/log-lifecycle.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.55](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.54...@exodus/headless@2.0.0-alpha.55) (2023-06-28)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- make restart a lifecycle hook ([#2136](https://github.com/ExodusMovement/exodus-hydra/issues/2136)) ([dbb4269](https://github.com/ExodusMovement/exodus-hydra/commit/dbb42697fc09fb4a18a1918fa83c379171e2e7e3))
|
|
11
|
+
|
|
6
12
|
## [2.0.0-alpha.54](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.53...@exodus/headless@2.0.0-alpha.54) (2023-06-23)
|
|
7
13
|
|
|
8
14
|
### ⚠ 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.55",
|
|
4
4
|
"description": "The headless Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"src",
|
|
18
18
|
"README.md",
|
|
19
19
|
"CHANGELOG.md",
|
|
20
|
-
"!**/__tests__",
|
|
20
|
+
"!**/__tests__/**",
|
|
21
21
|
"!**/*.test.js"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"nock": "^13.3.1",
|
|
90
90
|
"p-defer": "^4.0.0"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "74bde9d9f5bd441f35b7fe4d5b5098ed294dab44"
|
|
93
93
|
}
|
package/src/application.js
CHANGED
|
@@ -165,7 +165,7 @@ class Application extends ExodusModule {
|
|
|
165
165
|
if (forceRestart || walletExists) {
|
|
166
166
|
await this.#storage.set(IMPORT_FLAG, true)
|
|
167
167
|
|
|
168
|
-
this.
|
|
168
|
+
await this.fire(Hook.Restart, { reason: 'import' })
|
|
169
169
|
} else {
|
|
170
170
|
await this.fire(Hook.Import)
|
|
171
171
|
|
|
@@ -253,7 +253,7 @@ class Application extends ExodusModule {
|
|
|
253
253
|
|
|
254
254
|
delete = async () => {
|
|
255
255
|
await this.#storage.set(DELETE_FLAG, true)
|
|
256
|
-
this.
|
|
256
|
+
await this.fire(Hook.Restart, { reason: 'delete' })
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
changeLockTimer = async ({ ttl }) => {
|
package/src/constants.js
CHANGED
|
@@ -9,6 +9,7 @@ const logLifecycle = {
|
|
|
9
9
|
onImport: () => logger.debug('onImport'),
|
|
10
10
|
onMigrate: () => logger.debug('onMigrate'),
|
|
11
11
|
onStart: () => logger.debug('onStart'),
|
|
12
|
+
onRestart: () => logger.debug('onRestart'),
|
|
12
13
|
onLoad: () => logger.debug('onLoad'),
|
|
13
14
|
onUnload: () => logger.debug('onUnload'),
|
|
14
15
|
onCreate: () => logger.debug('onCreate'),
|