Skip to content

Commit 3dff60a

Browse files
authored
Merge pull request #134 from woocommerce/renovate/npm-axios-vulnerability
Update dependency axios to v1 [SECURITY]
2 parents f5c05d2 + 58d725d commit 3dff60a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: jest.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ module.exports = {
6767
moduleFileExtensions: ["js", "mjs"],
6868

6969
// A map from regular expressions to module names that allow to stub out resources with a single module
70-
// moduleNameMapper: {},
70+
moduleNameMapper: {
71+
axios: "axios/dist/node/axios.cjs"
72+
},
7173

7274
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
7375
// modulePathIgnorePatterns: [],

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"index.d.ts"
2828
],
2929
"dependencies": {
30-
"axios": "^0.21.1",
30+
"axios": "^1.6.0",
3131
"create-hmac": "^1.1.7",
3232
"oauth-1.0a": "^2.2.6",
3333
"url-parse": "^1.4.7"

0 commit comments

Comments
 (0)