diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-08-15 23:38:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 05:08:04 +0530 |
commit | cbd0da469c4f509e8f4ff3ee530fabffa22983a8 (patch) | |
tree | d258d83209b2aa16ca05cb6b46a807a929c7636b /src/stores | |
parent | Upgrade 'electron' to '26.0.0' (diff) | |
download | ferdium-app-cbd0da469c4f509e8f4ff3ee530fabffa22983a8.tar.gz ferdium-app-cbd0da469c4f509e8f4ff3ee530fabffa22983a8.tar.zst ferdium-app-cbd0da469c4f509e8f4ff3ee530fabffa22983a8.zip |
Upgrade npm modules (#1312)
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.ts | 2 | ||||
-rw-r--r-- | src/stores/RecipesStore.ts | 4 | ||||
-rw-r--r-- | src/stores/ServicesStore.ts | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index 0bf845e4d..b317d99fc 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { URL } from 'node:url'; | ||
1 | import { ipcRenderer } from 'electron'; | 2 | import { ipcRenderer } from 'electron'; |
2 | import { | 3 | import { |
3 | app, | 4 | app, |
@@ -11,7 +12,6 @@ import { action, computed, makeObservable, observable } from 'mobx'; | |||
11 | import moment from 'moment'; | 12 | import moment from 'moment'; |
12 | import AutoLaunch from 'auto-launch'; | 13 | import AutoLaunch from 'auto-launch'; |
13 | import ms from 'ms'; | 14 | import ms from 'ms'; |
14 | import { URL } from 'node:url'; | ||
15 | import { readJsonSync } from 'fs-extra'; | 15 | import { readJsonSync } from 'fs-extra'; |
16 | 16 | ||
17 | import { Stores } from '../@types/stores.types'; | 17 | import { Stores } from '../@types/stores.types'; |
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts index b645a5989..9b5565dcf 100644 --- a/src/stores/RecipesStore.ts +++ b/src/stores/RecipesStore.ts | |||
@@ -158,8 +158,8 @@ export default class RecipesStore extends TypedStore { | |||
158 | router.push('/settings/recipes'); | 158 | router.push('/settings/recipes'); |
159 | debug(`Recipe ${recipeId} is not installed, trying to install it`); | 159 | debug(`Recipe ${recipeId} is not installed, trying to install it`); |
160 | 160 | ||
161 | const recipe = await this.installRecipeRequest.execute(recipeId) | 161 | const recipe = |
162 | .promise; | 162 | await this.installRecipeRequest.execute(recipeId).promise; |
163 | if (recipe) { | 163 | if (recipe) { |
164 | await this.allRecipesRequest.invalidate({ immediately: true }) | 164 | await this.allRecipesRequest.invalidate({ immediately: true }) |
165 | .promise; | 165 | .promise; |
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index 1cee0c57f..9c0072586 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts | |||
@@ -1,9 +1,9 @@ | |||
1 | import { join } from 'node:path'; | ||
1 | import { ipcRenderer, shell } from 'electron'; | 2 | import { ipcRenderer, shell } from 'electron'; |
2 | import { action, reaction, computed, observable, makeObservable } from 'mobx'; | 3 | import { action, reaction, computed, observable, makeObservable } from 'mobx'; |
3 | import { debounce, remove } from 'lodash'; | 4 | import { debounce, remove } from 'lodash'; |
4 | import ms from 'ms'; | 5 | import ms from 'ms'; |
5 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; | 6 | import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; |
6 | import { join } from 'node:path'; | ||
7 | 7 | ||
8 | import { Stores } from '../@types/stores.types'; | 8 | import { Stores } from '../@types/stores.types'; |
9 | import { ApiInterface } from '../api'; | 9 | import { ApiInterface } from '../api'; |