update dependencies
- addresses vulnerabilities warnings - add typing to `axios`
This commit is contained in:
Родитель
71b6d09500
Коммит
c0ac254dad
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -646,13 +646,14 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@types/jexl": "^2.2.0",
|
||||
"axios": "^0.19.2",
|
||||
"axios": "^0.21.1",
|
||||
"jexl": "^2.3.0",
|
||||
"mobx": "^5.14.2",
|
||||
"throttle-debounce": "^3.0.1",
|
||||
"vsls": "^1.0.2532"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/axios": "^0.14.0",
|
||||
"@types/node": "^8.10.66",
|
||||
"@types/throttle-debounce": "^2.1.0",
|
||||
"@types/vscode": "^1.56.0",
|
||||
|
|
|
@ -233,8 +233,8 @@ export function registerPlayerCommands() {
|
|||
}
|
||||
|
||||
try {
|
||||
const axios = require("axios").default;
|
||||
const response = await axios.get(url);
|
||||
const axios = await import("axios");
|
||||
const response = await axios.default.get<CodeTour>(url);
|
||||
const tour = response.data;
|
||||
tour.id = url;
|
||||
startCodeTour(tour);
|
||||
|
|
Загрузка…
Ссылка в новой задаче