Skip to content

Commit

Permalink
fix: security upgrade axios from 0.21.4 to 1.6.0 (#262)
Browse files Browse the repository at this point in the history
* fix: package.json & package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459

* chore: npm i

* fix: temporary workaround for CJS Axios

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Kyle Huang Junyuan <kyle@hjunyuan.com>
  • Loading branch information
3 people committed Nov 3, 2023
1 parent 0ff4e85 commit ebe8714
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 36 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ module.exports = {
testEnvironment: "node",
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
testTimeout: 30000,
moduleNameMapper: {
axios: "axios/dist/node/axios.cjs", // Temporary workaround: Force Jest to import the CommonJS Axios build
},
};
92 changes: 57 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@govtechsg/document-store": "^2.2.3",
"@govtechsg/open-attestation": "^6.2.0",
"@govtechsg/token-registry": "^4.1.7",
"axios": "^0.21.4",
"axios": "^1.6.0",
"debug": "^4.3.1",
"did-resolver": "^3.1.0",
"ethers": "^5.1.4",
Expand Down

0 comments on commit ebe8714

Please sign in to comment.