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 - 1.12.x
node_js: 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 # 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. # 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", "author": "elisescu",
"license": "elisescu", "license": "elisescu",
"dependencies": { "dependencies": {
"copy-webpack-plugin": "4.5.1", "copy-webpack-plugin": "^6.0.0",
"css-loader": "^3.0.0", "css-loader": "^3.6.0",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"ts-loader": "^6.0.2", "ts-loader": "^6.2.2",
"typescript": "^3.5.2", "typescript": "^3.9.7",
"webpack": "^4.34.0", "webpack": "^4.44.2",
"webpack-cli": "^3.3.4", "webpack-cli": "^3.3.12",
"xterm": "3.14.4" "xterm": "^4.9.0"
} }
} }

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

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

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

Loading…
Cancel
Save