Skip to content

Commit a13a0f4

Browse files
authored
Merge pull request #80 from snyk-labs/fix/upgrade_axios_to_fix_vuln
fix: update axios version to fix vulnerability
2 parents 1d9c124 + fcbff31 commit a13a0f4

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ module.exports = {
33
testEnvironment: 'node',
44
collectCoverageFrom: ['lib/**/*.ts'],
55
coverageReporters: ['text-summary', 'html'],
6+
moduleNameMapper: {
7+
'^axios$': 'axios/dist/node/axios.cjs',
8+
},
69
};

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@types/babel__traverse": "7.17.1",
3737
"@types/debug": "^4.1.7",
3838
"@types/uuid": "^7.0.3",
39-
"axios": "0.27.2",
39+
"axios": "1.6.7",
4040
"chalk": "^4.0.0",
4141
"debug": "^4.1.1",
4242
"global-agent": "3.0.0",
@@ -50,21 +50,21 @@
5050
},
5151
"devDependencies": {
5252
"@types/global-agent": "^2.1.1",
53-
"@types/jest": "^25.1.1",
53+
"@types/jest": "^26.0.24",
5454
"@types/lodash": "4.14.186",
5555
"@types/node": "^12.12.26",
5656
"@types/proxy-from-env": "^1.0.2",
5757
"@typescript-eslint/eslint-plugin": "^2.18.0",
5858
"@typescript-eslint/parser": "^2.18.0",
5959
"eslint": "^6.8.0",
6060
"eslint-config-prettier": "^6.10.0",
61-
"jest": "^25.1.0",
61+
"jest": "^26.6.3",
6262
"nock": "^12.0.3",
6363
"prettier": "^1.19.1",
64-
"ts-jest": "^25.1.0",
64+
"ts-jest": "^26.5.6",
6565
"ts-node": "8.6.2",
6666
"tsc-watch": "^4.1.0",
67-
"typescript": "^3.7.5"
67+
"typescript": "^4.7.4"
6868
},
6969
"pkg": {
7070
"scripts": [

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"sourceMap": true,
88
"declaration": true,
99
"importHelpers": true,
10-
"strict": true
10+
"strict": true,
11+
"useUnknownInCatchVariables": false
1112
},
1213
"include": ["./src/lib/**/*"]
1314
}

0 commit comments

Comments
 (0)