diff options
author | 2023-10-31 01:32:44 -0600 | |
---|---|---|
committer | 2023-10-31 07:32:44 +0000 | |
commit | 79cdbe639cc45df6f7ae6116ba8ecf77fe869843 (patch) | |
tree | cfcf8f435353e14f5e3cd07a1c32327bedd32e15 | |
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>
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | pnpm-lock.yaml | 3 | ||||
-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 |
5 files changed, 0 insertions, 7 deletions
diff --git a/package.json b/package.json index 15234a67a..f944dcbda 100644 --- a/package.json +++ b/package.json | |||
@@ -102,7 +102,6 @@ | |||
102 | "mobx-react-form": "6.3.7", | 102 | "mobx-react-form": "6.3.7", |
103 | "moment": "2.29.4", | 103 | "moment": "2.29.4", |
104 | "ms": "2.1.3", | 104 | "ms": "2.1.3", |
105 | "node-fetch": "2.6.11", | ||
106 | "normalize-url": "6.1.0", | 105 | "normalize-url": "6.1.0", |
107 | "os-name": "4.0.1", | 106 | "os-name": "4.0.1", |
108 | "pretty-bytes": "5.6.0", | 107 | "pretty-bytes": "5.6.0", |
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d8b7e70a..96853ef9f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml | |||
@@ -167,9 +167,6 @@ dependencies: | |||
167 | ms: | 167 | ms: |
168 | specifier: 2.1.3 | 168 | specifier: 2.1.3 |
169 | version: 2.1.3 | 169 | version: 2.1.3 |
170 | node-fetch: | ||
171 | specifier: 2.6.11 | ||
172 | version: 2.6.11 | ||
173 | normalize-url: | 170 | normalize-url: |
174 | specifier: 6.1.0 | 171 | specifier: 6.1.0 |
175 | version: 6.1.0 | 172 | version: 6.1.0 |
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'); |