Skip to content

Commit 864a9e7

Browse files
authored
Merge pull request #1999 from cdr/update
Update dependencies in package.json
2 parents a839da3 + 3912e9e commit 864a9e7

File tree

6 files changed

+1610
-1432
lines changed

6 files changed

+1610
-1432
lines changed

.eslintrc.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ rules:
2323
no-dupe-class-members: off
2424
"@typescript-eslint/no-use-before-define": off
2525
"@typescript-eslint/no-non-null-assertion": off
26+
"@typescript-eslint/ban-types": off
27+
"@typescript-eslint/no-var-requires": off
28+
"@typescript-eslint/explicit-module-boundary-types": off
29+
"@typescript-eslint/no-explicit-any": off
2630
eqeqeq: error
2731
import/order:
2832
[error, { alphabetize: { order: "asc" }, groups: [["builtin", "external", "internal"], "parent", "sibling"] }]

package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,30 @@
3333
"@types/fs-extra": "^8.0.1",
3434
"@types/http-proxy": "^1.17.4",
3535
"@types/js-yaml": "^3.12.3",
36-
"@types/mocha": "^5.2.7",
36+
"@types/mocha": "^8.0.3",
3737
"@types/node": "^12.12.7",
3838
"@types/parcel-bundler": "^1.12.1",
3939
"@types/pem": "^1.9.5",
4040
"@types/safe-compare": "^1.1.0",
4141
"@types/semver": "^7.1.0",
42-
"@types/tar-fs": "^1.16.2",
43-
"@types/tar-stream": "^1.6.1",
44-
"@types/ws": "^6.0.4",
45-
"@typescript-eslint/eslint-plugin": "^2.0.0",
46-
"@typescript-eslint/parser": "^2.0.0",
42+
"@types/tar-fs": "^2.0.0",
43+
"@types/tar-stream": "^2.1.0",
44+
"@types/ws": "^7.2.6",
45+
"@typescript-eslint/eslint-plugin": "^3.10.1",
46+
"@typescript-eslint/parser": "^3.10.1",
4747
"doctoc": "^1.4.0",
48-
"eslint": "^6.2.0",
48+
"eslint": "^7.7.0",
4949
"eslint-config-prettier": "^6.0.0",
5050
"eslint-plugin-import": "^2.18.2",
5151
"eslint-plugin-prettier": "^3.1.0",
5252
"leaked-handles": "^5.2.0",
53-
"mocha": "^6.2.0",
53+
"mocha": "^8.1.2",
5454
"parcel-bundler": "^1.12.4",
5555
"prettier": "^2.0.5",
5656
"stylelint": "^13.0.0",
5757
"stylelint-config-recommended": "^3.0.0",
58-
"ts-node": "^8.4.1",
59-
"typescript": "3.7.2"
58+
"ts-node": "^9.0.0",
59+
"typescript": "4.0.2"
6060
},
6161
"resolutions": {
6262
"@types/node": "^12.12.7",
@@ -66,13 +66,14 @@
6666
"dependencies": {
6767
"@coder/logger": "1.1.16",
6868
"env-paths": "^2.2.0",
69-
"fs-extra": "^8.1.0",
69+
"fs-extra": "^9.0.1",
7070
"http-proxy": "^1.18.0",
7171
"httpolyglot": "^0.1.2",
7272
"js-yaml": "^3.13.1",
7373
"limiter": "^1.1.5",
7474
"pem": "^1.14.2",
7575
"rotating-file-stream": "^2.1.1",
76+
"safe-buffer": "^5.1.1",
7677
"safe-compare": "^1.1.4",
7778
"semver": "^7.1.3",
7879
"tar": "^6.0.1",

src/browser/pages/error.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
<div class="center-container">
2222
<div class="error-display">
2323
<h2 class="header">{{ERROR_HEADER}}</h2>
24-
<div class="body">
25-
{{ERROR_BODY}}
26-
</div>
24+
<div class="body">{{ERROR_BODY}}</div>
2725
<div class="links">
2826
<a class="link" href="{{BASE}}{{TO}}">go home</a>
2927
</div>

src/node/cli.ts

+3
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
365365
const config = yaml.safeLoad(configFile.toString(), {
366366
filename: configPath,
367367
})
368+
if (!config || typeof config === "string") {
369+
throw new Error(`invalid config: ${config}`)
370+
}
368371

369372
// We convert the config file into a set of flags.
370373
// This is a temporary measure until we add a proper CLI library.

src/node/entry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async function entry(): Promise<void> {
170170
CODE_SERVER_PARENT_PID: process.pid.toString(),
171171
},
172172
})
173-
vscode.once("message", (message) => {
173+
vscode.once("message", (message: any) => {
174174
logger.debug("Got message from VS Code", field("message", message))
175175
if (message.type !== "ready") {
176176
logger.error("Unexpected response waiting for ready response")

0 commit comments

Comments
 (0)