Update the node dependencies

Some APIs were broken (webpack-copy plugin and one xterm API removed)
pull/10/head^2
Vasile Popescu 4 years ago committed by Elis Popescu
parent 17387e2cdd
commit bae58e702c

@ -4,7 +4,7 @@ go:
- 1.12.x
node_js:
- 12.4.0
- 12.18.4
# make frontend all won't work. The frontend assets have to be already built at the time of
# evaluating the Makefile first time, so for now I do it in two turns.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -10,13 +10,13 @@
"author": "elisescu",
"license": "elisescu",
"dependencies": {
"copy-webpack-plugin": "4.5.1",
"css-loader": "^3.0.0",
"copy-webpack-plugin": "^6.0.0",
"css-loader": "^3.6.0",
"style-loader": "^0.23.1",
"ts-loader": "^6.0.2",
"typescript": "^3.5.2",
"webpack": "^4.34.0",
"webpack-cli": "^3.3.4",
"xterm": "3.14.4"
"ts-loader": "^6.2.2",
"typescript": "^3.9.7",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"xterm": "^4.9.0"
}
}

@ -1,4 +1,4 @@
import 'xterm/dist/xterm.css';
import 'xterm/css/xterm.css';
import './main.css';
import { Terminal } from 'xterm';

@ -60,8 +60,7 @@ class TTYReceiver {
}
}
// TODO: .on() is deprecated. Should be replaced.
this.xterminal.on('data', function (data) {
this.xterminal.onData(function (data:string) {
let writeMessage = {
Type: "Write",
Data: base64.encode(JSON.stringify({ Size: data.length, Data: base64.encode(data)})),

@ -33,12 +33,11 @@ let mainConfig = {
extensions: [".ts", ".tsx", ".js"],
},
plugins: [
new copyWebpackPlugin([
'static',
'templates',
], {
debug: 'info',
}),
new copyWebpackPlugin({
patterns: [
{from: 'static', },
{from: 'templates',},
]}),
],
};

Loading…
Cancel
Save