Skip to content

Commit

Permalink
Update dependency axios to v1 [SECURITY] (#3343)
Browse files Browse the repository at this point in the history
* Update dependency axios to v1 [SECURITY]

* Fix jest build for axios

* Fix axios import for vue-server-renderer

axios/axios#5243

* Fix axios mock adapter import

---------

Co-authored-by: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com>
  • Loading branch information
openverse-bot and sarayourfriend committed Nov 15, 2023
1 parent be5c94d commit 671f0f2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 32 deletions.
2 changes: 1 addition & 1 deletion automations/js/package.json
Expand Up @@ -5,7 +5,7 @@
"version": "0.0.0",
"dependencies": {
"@octokit/rest": "19.0.7",
"axios": "^0.27.0",
"axios": "^1.0.0",
"js-yaml": "^4.1.0",
"k6": "0.0.0",
"nunjucks": "^3.2.4"
Expand Down
3 changes: 2 additions & 1 deletion frontend/jest.config.js
Expand Up @@ -12,6 +12,7 @@ module.exports = {
"^~~/(.*)$": "<rootDir>/$1",
"^vue$": "vue/dist/vue.common.js",
"(.*svg)(\\?inline)$": "<rootDir>/test/unit/test-utils/svgTransform.js",
"^axios$": "axios/dist/node/axios.cjs",
},
setupFiles: ["<rootDir>/test/unit/setup.js"],
setupFilesAfterEnv: ["<rootDir>/test/unit/setup-after-env.js"],
Expand All @@ -22,7 +23,7 @@ module.exports = {
"^.+\\.svg$": "<rootDir>/test/unit/svg-transform.js",
},
testPathIgnorePatterns: ["/playwright/", "/storybook/", ".remake"],
collectCoverage: true,
collectCoverage: false,
coverageDirectory: "<rootDir>/test/unit/coverage",
collectCoverageFrom: [
"<rootDir>/src/**/*.vue",
Expand Down
1 change: 1 addition & 0 deletions frontend/nuxt.config.ts
Expand Up @@ -261,6 +261,7 @@ const config: NuxtConfig = {
// Enables use of IDE debuggers
config.devtool = ctx.isClient ? "source-map" : "inline-source-map"
},
transpile: [({ isLegacy }) => (isLegacy ? "axios" : undefined)],
},
typescript: {
typeCheck: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Expand Up @@ -70,7 +70,7 @@
"@vueuse/core": "^10.2.1",
"@wordpress/is-shallow-equal": "^4.6.0",
"async-mutex": "^0.3.2",
"axios": "^0.27.0",
"axios": "^1.0.0",
"axios-mock-adapter": "^1.20.0",
"clipboard": "^2.0.11",
"cookie-universal-nuxt": "^2.1.5",
Expand Down
52 changes: 23 additions & 29 deletions pnpm-lock.yaml

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

0 comments on commit 671f0f2

Please sign in to comment.