diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-10-31 01:32:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 07:32:44 +0000 |
commit | 79cdbe639cc45df6f7ae6116ba8ecf77fe869843 (patch) | |
tree | cfcf8f435353e14f5e3cd07a1c32327bedd32e15 /src | |
parent | 6.6.1-nightly.1 [skip ci] (diff) | |
download | ferdium-app-79cdbe639cc45df6f7ae6116ba8ecf77fe869843.tar.gz ferdium-app-79cdbe639cc45df6f7ae6116ba8ecf77fe869843.tar.zst ferdium-app-79cdbe639cc45df6f7ae6116ba8ecf77fe869843.zip |
refactor: uninstall node-fetch which is built-in since node 18 (#1431)
* Update submodules [skip ci]
* Update submodules [skip ci]
* refactor: uninstall node-fetch which is built-in since node 18
- uninstall node-fetch from package.json
- remove fetch import from translation-helpers.ts
- remove fetch import from RecipeController and UserController
* remove leftover console.log
---------
Co-authored-by: github-actions <github-actions@github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers/translation-helpers.ts | 1 | ||||
-rw-r--r-- | src/internal-server/app/Controllers/Http/RecipeController.js | 1 | ||||
-rw-r--r-- | src/internal-server/app/Controllers/Http/UserController.js | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/src/helpers/translation-helpers.ts b/src/helpers/translation-helpers.ts index 0edd95412..2e8f6b260 100644 --- a/src/helpers/translation-helpers.ts +++ b/src/helpers/translation-helpers.ts | |||
@@ -1,4 +1,3 @@ | |||
1 | import fetch from 'node-fetch'; | ||
2 | import translateGoogle from 'google-translate-api-x'; | 1 | import translateGoogle from 'google-translate-api-x'; |
3 | import { LIVE_API_FERDIUM_LIBRETRANSLATE } from '../config'; | 2 | import { LIVE_API_FERDIUM_LIBRETRANSLATE } from '../config'; |
4 | 3 | ||
diff --git a/src/internal-server/app/Controllers/Http/RecipeController.js b/src/internal-server/app/Controllers/Http/RecipeController.js index 61fa6be8f..3e54ab65b 100644 --- a/src/internal-server/app/Controllers/Http/RecipeController.js +++ b/src/internal-server/app/Controllers/Http/RecipeController.js | |||
@@ -3,7 +3,6 @@ const Drive = use('Drive'); | |||
3 | const { validateAll } = use('Validator'); | 3 | const { validateAll } = use('Validator'); |
4 | const Env = use('Env'); | 4 | const Env = use('Env'); |
5 | 5 | ||
6 | const fetch = require('node-fetch'); | ||
7 | const debug = require('../../../../preload-safe-debug')( | 6 | const debug = require('../../../../preload-safe-debug')( |
8 | 'Ferdium:internalServer:RecipeController', | 7 | 'Ferdium:internalServer:RecipeController', |
9 | ); | 8 | ); |
diff --git a/src/internal-server/app/Controllers/Http/UserController.js b/src/internal-server/app/Controllers/Http/UserController.js index d0c4d73b7..db733336c 100644 --- a/src/internal-server/app/Controllers/Http/UserController.js +++ b/src/internal-server/app/Controllers/Http/UserController.js | |||
@@ -5,7 +5,6 @@ const Workspace = use('App/Models/Workspace'); | |||
5 | const { validateAll } = use('Validator'); | 5 | const { validateAll } = use('Validator'); |
6 | 6 | ||
7 | const crypto = require('node:crypto'); | 7 | const crypto = require('node:crypto'); |
8 | const fetch = require('node-fetch'); | ||
9 | const { v4: uuid } = require('uuid'); | 8 | const { v4: uuid } = require('uuid'); |
10 | const { DEFAULT_APP_SETTINGS } = require('../../../../config'); | 9 | const { DEFAULT_APP_SETTINGS } = require('../../../../config'); |
11 | const { convertToJSON } = require('../../../../jsUtils'); | 10 | const { convertToJSON } = require('../../../../jsUtils'); |