Skip to content

Commit 658300f

Browse files
committed
feat: update to Node.js 18
1 parent fefa564 commit 658300f

File tree

7 files changed

+13
-63
lines changed

7 files changed

+13
-63
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

backend/package-lock.json

+7-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"moment-timezone": "^0.5.21",
5656
"multer": "^1.4.3",
5757
"mysql": "^2.16.0",
58-
"node-fetch": "^2.6.7",
5958
"parse-color": "^1.0.0",
6059
"passport": "^0.4.0",
6160
"passport-custom": "^1.0.5",
@@ -87,8 +86,7 @@
8786
"@types/lodash.at": "^4.6.3",
8887
"@types/moment-timezone": "^0.5.6",
8988
"@types/multer": "^1.4.7",
90-
"@types/node": "^14.0.14",
91-
"@types/node-fetch": "^2.5.12",
89+
"@types/node": "^18.16.3",
9290
"@types/passport": "^1.0.0",
9391
"@types/passport-oauth2": "^1.4.8",
9492
"@types/passport-strategy": "^0.2.35",

backend/src/data/Phisherman.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import crypto from "crypto";
22
import moment from "moment-timezone";
3-
import fetch, { Headers } from "node-fetch";
43
import { getRepository, Repository } from "typeorm";
54
import { env } from "../env";
65
import { DAYS, DBDateFormat, HOURS, MINUTES } from "../utils";

backend/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ connect().then(async () => {
291291

292292
return Array.from(plugins.keys()).filter((pluginName) => {
293293
if (basePluginNames.includes(pluginName)) return true;
294-
return configuredPlugins[pluginName] && configuredPlugins[pluginName].enabled !== false;
294+
return configuredPlugins[pluginName] && (configuredPlugins[pluginName] as any).enabled !== false;
295295
});
296296
},
297297

docker/development/devenv/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ RUN echo "ubuntu:${DOCKER_DEV_SSH_PASSWORD}" | chpasswd
2020
RUN mkdir -p /home/ubuntu/zeppelin /home/ubuntu/.vscode-remote /home/ubuntu/.vscode-server /home/ubuntu/.cache/JetBrains
2121
RUN chown -R ubuntu /home/ubuntu
2222

23-
# Install Node.js 16 and packages needed to build native packages
24-
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
23+
# Install Node.js 18 and packages needed to build native packages
24+
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
2525
RUN apt-get install -y nodejs gcc g++ make python3
2626

2727
CMD /usr/sbin/sshd -D -e

docker/production/node/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.16
1+
FROM node:18
22

33
ARG DOCKER_USER_UID
44
ARG DOCKER_USER_GID

0 commit comments

Comments
 (0)