From fcbff315eaa14d68151b34c4dca301b5785b0f57 Mon Sep 17 00:00:00 2001 From: Tom Mayne Date: Wed, 7 Feb 2024 16:11:38 +0000 Subject: [PATCH] fix: update axios version to fix vulnerability --- jest.config.js | 3 +++ package.json | 10 +++++----- tsconfig.json | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/jest.config.js b/jest.config.js index 039da88..f8cdc48 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,4 +3,7 @@ module.exports = { testEnvironment: 'node', collectCoverageFrom: ['lib/**/*.ts'], coverageReporters: ['text-summary', 'html'], + moduleNameMapper: { + '^axios$': 'axios/dist/node/axios.cjs', + }, }; diff --git a/package.json b/package.json index f3ea4bf..41ea902 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@types/babel__traverse": "7.17.1", "@types/debug": "^4.1.7", "@types/uuid": "^7.0.3", - "axios": "0.27.2", + "axios": "1.6.7", "chalk": "^4.0.0", "debug": "^4.1.1", "global-agent": "3.0.0", @@ -50,7 +50,7 @@ }, "devDependencies": { "@types/global-agent": "^2.1.1", - "@types/jest": "^25.1.1", + "@types/jest": "^26.0.24", "@types/lodash": "4.14.186", "@types/node": "^12.12.26", "@types/proxy-from-env": "^1.0.2", @@ -58,13 +58,13 @@ "@typescript-eslint/parser": "^2.18.0", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", - "jest": "^25.1.0", + "jest": "^26.6.3", "nock": "^12.0.3", "prettier": "^1.19.1", - "ts-jest": "^25.1.0", + "ts-jest": "^26.5.6", "ts-node": "8.6.2", "tsc-watch": "^4.1.0", - "typescript": "^3.7.5" + "typescript": "^4.7.4" }, "pkg": { "scripts": [ diff --git a/tsconfig.json b/tsconfig.json index d304d32..eca7da1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,8 @@ "sourceMap": true, "declaration": true, "importHelpers": true, - "strict": true + "strict": true, + "useUnknownInCatchVariables": false }, "include": ["./src/lib/**/*"] }