27ba64c7e4
See #1532 for more context. - Errored JSON requests will get back the error in JSON instead of using the status text. This seems better to me because it seems more correct to utilize the response body over hijacking the status text. The caller is expecting JSON anyway. Worst of all I never actually set the status text like I thought I did so it wasn't working to begin with. - Allow the update error to propagate for JSON update requests. It was caught to show the error inline instead of an error page when using the update page but for JSON requests it meant there was no error and no error code so it looked like it succeeded. - Make errors for failed requests to GitHub less incomprehensible. Previously they would just be the code which is no context at all.
68 lines
1.9 KiB
JSON
68 lines
1.9 KiB
JSON
{
|
|
"name": "code-server",
|
|
"license": "MIT",
|
|
"version": "3.1.2",
|
|
"scripts": {
|
|
"clean": "ci/clean.sh",
|
|
"vscode": "ci/vscode.sh",
|
|
"vscode:patch": "cd ./lib/vscode && git apply ../../ci/vscode.patch",
|
|
"vscode:diff": "cd ./lib/vscode && git diff HEAD > ../../ci/vscode.patch",
|
|
"test": "mocha -r ts-node/register ./test/*.test.ts",
|
|
"lint": "ci/lint.sh",
|
|
"fmt": "ci/fmt.sh",
|
|
"runner": "cd ./ci && NODE_OPTIONS=--max_old_space_size=32384 ts-node ./build.ts",
|
|
"build": "yarn runner build",
|
|
"watch": "yarn runner watch"
|
|
},
|
|
"devDependencies": {
|
|
"@types/adm-zip": "^0.4.32",
|
|
"@types/fs-extra": "^8.0.1",
|
|
"@types/http-proxy": "^1.17.4",
|
|
"@types/mocha": "^5.2.7",
|
|
"@types/node": "^12.12.7",
|
|
"@types/parcel-bundler": "^1.12.1",
|
|
"@types/pem": "^1.9.5",
|
|
"@types/safe-compare": "^1.1.0",
|
|
"@types/semver": "^7.1.0",
|
|
"@types/tar-fs": "^1.16.2",
|
|
"@types/ssh2": "0.5.39",
|
|
"@types/ssh2-streams": "^0.1.6",
|
|
"@types/tar-stream": "^1.6.1",
|
|
"@types/ws": "^6.0.4",
|
|
"@typescript-eslint/eslint-plugin": "^2.0.0",
|
|
"@typescript-eslint/parser": "^2.0.0",
|
|
"eslint": "^6.2.0",
|
|
"eslint-config-prettier": "^6.0.0",
|
|
"eslint-plugin-import": "^2.18.2",
|
|
"eslint-plugin-prettier": "^3.1.0",
|
|
"leaked-handles": "^5.2.0",
|
|
"mocha": "^6.2.0",
|
|
"parcel-bundler": "^1.12.4",
|
|
"prettier": "^1.18.2",
|
|
"stylelint": "^13.0.0",
|
|
"stylelint-config-recommended": "^3.0.0",
|
|
"ts-node": "^8.4.1",
|
|
"typescript": "3.7.2"
|
|
},
|
|
"resolutions": {
|
|
"@types/node": "^12.12.7",
|
|
"safe-buffer": "^5.1.1",
|
|
"vfile-message": "^2.0.2"
|
|
},
|
|
"dependencies": {
|
|
"@coder/logger": "1.1.11",
|
|
"adm-zip": "^0.4.14",
|
|
"fs-extra": "^8.1.0",
|
|
"http-proxy": "^1.18.0",
|
|
"httpolyglot": "^0.1.2",
|
|
"node-pty": "^0.9.0",
|
|
"pem": "^1.14.2",
|
|
"safe-compare": "^1.1.4",
|
|
"semver": "^7.1.3",
|
|
"ssh2": "^0.8.7",
|
|
"tar": "^6.0.1",
|
|
"tar-fs": "^2.0.0",
|
|
"ws": "^7.2.0"
|
|
}
|
|
}
|