Skip to content

Commit

Permalink
chore: Update axios to 0.19.0 preventing potential DoS (gatsbyjs#14444)
Browse files Browse the repository at this point in the history
* 🔒 Security patch

* chore: update yarn.lock

* ➖ Remove unused dependency
  • Loading branch information
rayriffy authored and pieh committed May 31, 2019
1 parent 7836e09 commit 808a463
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/using-gatsby-without-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve": "gatsby serve"
},
"dependencies": {
"axios": "^0.18.0",
"axios": "^0.19.0",
"gatsby": "^2.0.0",
"react": "^16.5.1",
"react-dom": "^16.5.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/using-js-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
},
"dependencies": {
"axios": "^0.18.0",
"axios": "^0.19.0",
"gatsby": "^2.0.104",
"js-search": "^1.4.2",
"react": "^16.5.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/using-local-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve": "gatsby serve"
},
"dependencies": {
"axios": "^0.18.0",
"axios": "^0.19.0",
"gatsby": "^2.0.0",
"react": "^16.5.1",
"react-dom": "^16.5.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-remark-images-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"axios": "^0.19.0",
"cheerio": "^1.0.0-rc.2",
"is-relative-url": "^2.0.0",
"lodash": "^4.17.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"axios": "^0.19.0",
"base64-img": "^1.0.3",
"bluebird": "^3.5.0",
"chalk": "^2.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-drupal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"axios": "^0.19.0",
"bluebird": "^3.5.0",
"gatsby-source-filesystem": "^2.0.37",
"lodash": "^4.17.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-hacker-news/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"axios": "^0.19.0",
"lodash": "^4.17.10"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-lever/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bundledDependencies": [],
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"axios": "^0.19.0",
"bluebird": "^3.5.0",
"deep-map": "^1.5.0",
"deep-map-keys": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-medium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0"
"axios": "^0.19.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-wikipedia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0"
"axios": "^0.19.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"bundledDependencies": [],
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"axios": "^0.19.0",
"better-queue": "^3.8.6",
"bluebird": "^3.5.0",
"deep-map": "^1.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-transformer-screenshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"dependencies": {
"axios": "^0.18.0",
"axios": "^0.19.0",
"better-queue": "^3.8.10"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/gatsby-transformer-sqip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"axios": "^0.18.0",
"fs-extra": "^4.0.2",
"gatsby-plugin-sharp": "^2.1.3",
"mini-svg-data-uri": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@reach/skip-nav": "^0.1.1",
"@reach/visually-hidden": "^0.1.2",
"@xstate/react": "^0.2.1",
"axios": "^0.18.0",
"axios": "^0.19.0",
"bluebird": "^3.5.1",
"dotenv": "^6.0.0",
"email-validator": "^1.1.1",
Expand Down
17 changes: 16 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3981,6 +3981,14 @@ axios@^0.18.0:
follow-redirects "^1.3.0"
is-buffer "^1.1.5"

axios@^0.19.0:
version "0.19.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.0.tgz#8e09bff3d9122e133f7b8101c8fbdd00ed3d2ab8"
integrity sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==
dependencies:
follow-redirects "1.5.10"
is-buffer "^2.0.2"

axobject-query@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.0.1.tgz#05dfa705ada8ad9db993fa6896f22d395b0b0a07"
Expand Down Expand Up @@ -9725,6 +9733,13 @@ fn-name@~2.0.1:
resolved "https://registry.yarnpkg.com/fn-name/-/fn-name-2.0.1.tgz#5214d7537a4d06a4a301c0cc262feb84188002e7"
integrity sha1-UhTXU3pNBqSjAcDMJi/rhBiAAuc=

[email protected]:
version "1.5.10"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a"
integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==
dependencies:
debug "=3.1.0"

follow-redirects@^1.0.0, follow-redirects@^1.2.5, follow-redirects@^1.3.0:
version "1.5.8"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.8.tgz#1dbfe13e45ad969f813e86c00e5296f525c885a1"
Expand Down Expand Up @@ -11853,7 +11868,7 @@ is-buffer@^1.1.4, is-buffer@^1.1.5, is-buffer@~1.1.1:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==

is-buffer@^2.0.0, is-buffer@~2.0.3:
is-buffer@^2.0.0, is-buffer@^2.0.2, is-buffer@~2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725"
integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==
Expand Down

0 comments on commit 808a463

Please sign in to comment.