Update npm packages to address vulnerabilities

This commit is contained in:
Michael Henderson 2024-05-31 09:24:38 -07:00
parent 70b70342ae
commit fd1635e047
3 changed files with 8455 additions and 11815 deletions

20222
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "setup-msbuild", "name": "setup-msbuild",
"version": "2.0.0", "version": "2.1.0",
"private": true, "private": true,
"description": "Helps set up specific MSBuild tool into PATH for later usage.", "description": "Helps set up specific MSBuild tool into PATH for later usage.",
"main": "lib/main.js", "main": "lib/main.js",
@ -28,23 +28,23 @@
"author": "Microsoft", "author": "Microsoft",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.1",
"@actions/exec": "^1.0.3", "@actions/exec": "^1.1.1",
"@actions/tool-cache": "^1.3.0" "@actions/tool-cache": "^1.7.2"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^24.0.23", "@types/jest": "^24.9.1",
"@types/node": "^12.12.25", "@types/node": "^12.20.55",
"@typescript-eslint/parser": "^2.8.0", "@typescript-eslint/parser": "^7.11.0",
"@zeit/ncc": "^0.20.5", "@zeit/ncc": "^0.20.5",
"eslint": "^5.16.0", "eslint": "^8.57.0",
"eslint-plugin-github": "^2.0.0", "eslint-plugin-github": "^5.0.0-2",
"eslint-plugin-jest": "^22.21.0", "eslint-plugin-jest": "^28.5.0",
"jest": "^24.9.0", "jest": "^29.7.0",
"jest-circus": "^24.9.0", "jest-circus": "^24.9.0",
"js-yaml": "^3.13.1", "js-yaml": "^3.14.1",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"ts-jest": "^24.2.0", "ts-jest": "29.1.4",
"typescript": "^3.6.4" "typescript": "^5.4.5"
} }
} }

View File

@ -128,7 +128,11 @@ async function run(): Promise<void> {
core.addPath(toolFolderPath) core.addPath(toolFolderPath)
core.debug(`Tool path added to PATH: ${toolFolderPath}`) core.debug(`Tool path added to PATH: ${toolFolderPath}`)
} catch (error) { } catch (error) {
core.setFailed(error.message) let errorMessage = "Failed to do something exceptional";
if (error instanceof Error) {
errorMessage = error.message;
}
console.log(errorMessage);
} }
} }