summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-10-31 01:32:44 -0600
committerLibravatar GitHub <noreply@github.com>2023-10-31 07:32:44 +0000
commit79cdbe639cc45df6f7ae6116ba8ecf77fe869843 (patch)
treecfcf8f435353e14f5e3cd07a1c32327bedd32e15 /src
parent6.6.1-nightly.1 [skip ci] (diff)
downloadferdium-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.ts1
-rw-r--r--src/internal-server/app/Controllers/Http/RecipeController.js1
-rw-r--r--src/internal-server/app/Controllers/Http/UserController.js1
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 @@
1import fetch from 'node-fetch';
2import translateGoogle from 'google-translate-api-x'; 1import translateGoogle from 'google-translate-api-x';
3import { LIVE_API_FERDIUM_LIBRETRANSLATE } from '../config'; 2import { 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');
3const { validateAll } = use('Validator'); 3const { validateAll } = use('Validator');
4const Env = use('Env'); 4const Env = use('Env');
5 5
6const fetch = require('node-fetch');
7const debug = require('../../../../preload-safe-debug')( 6const 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');
5const { validateAll } = use('Validator'); 5const { validateAll } = use('Validator');
6 6
7const crypto = require('node:crypto'); 7const crypto = require('node:crypto');
8const fetch = require('node-fetch');
9const { v4: uuid } = require('uuid'); 8const { v4: uuid } = require('uuid');
10const { DEFAULT_APP_SETTINGS } = require('../../../../config'); 9const { DEFAULT_APP_SETTINGS } = require('../../../../config');
11const { convertToJSON } = require('../../../../jsUtils'); 10const { convertToJSON } = require('../../../../jsUtils');