Skip to content

Commit

Permalink
Remove unsued dependeny, and variable - Axios (gatsbyjs#12749)
Browse files Browse the repository at this point in the history
<!--
  Have any questions? Check out the contributing docs at https://gatsby.dev/contribute, or
  ask in this Pull Request and a Gatsby maintainer will be happy to help :)
-->

## Description

<!-- Write a brief description of the changes introduced by this PR -->

## Related Issues

<!--
  Link to the issue that is fixed by this PR (if there is one)
  e.g. Fixes gatsbyjs#1234, Addresses gatsbyjs#1234, Related to gatsbyjs#1234, etc.
-->
  • Loading branch information
prashant-andani authored and wardpeet committed Mar 22, 2019
1 parent e529e54 commit 963d6ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
1 change: 0 additions & 1 deletion infrastructure/functions/onGithubWebhook/handler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// handler.js

"use strict"
const axios = require("axios")
const Libhoney = require("libhoney").default
const flatten = require("flat")
const GraphQLClient = require("graphql-request").GraphQLClient
Expand Down
1 change: 0 additions & 1 deletion infrastructure/functions/onGithubWebhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.17.0",
"flat": "^4.0.0",
"graphql-request": "^1.4.0",
"libhoney": "^1.0.0-beta.10"
Expand Down
17 changes: 2 additions & 15 deletions infrastructure/functions/onGithubWebhook/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ async@^1.5.2:
version "1.5.2"
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"

axios@^0.17.0:
version "0.17.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.0.tgz#7da747916db803f761651d6091d708789b953c6a"
dependencies:
follow-redirects "^1.2.3"
is-buffer "^1.1.5"

combined-stream@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009"
Expand All @@ -38,7 +31,7 @@ [email protected]:
node-fetch "1.7.3"
whatwg-fetch "2.0.3"

debug@^2.2.0, debug@^2.6.9:
debug@^2.2.0:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
dependencies:
Expand Down Expand Up @@ -68,12 +61,6 @@ flat@^4.0.0:
dependencies:
is-buffer "~1.1.5"

follow-redirects@^1.2.3:
version "1.2.5"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.5.tgz#ffd3e14cbdd5eaa72f61b6368c1f68516c2a26cc"
dependencies:
debug "^2.6.9"

[email protected]:
version "1.0.0-rc4"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-1.0.0-rc4.tgz#05ac6bc22227b43e4461f488161554699d4f8b5e"
Expand All @@ -100,7 +87,7 @@ inherits@~2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"

is-buffer@^1.1.5, is-buffer@~1.1.5:
is-buffer@~1.1.5:
version "1.1.6"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"

Expand Down
4 changes: 2 additions & 2 deletions www/src/templates/template-starter-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class StarterTemplate extends React.Component {
// preprocessing of dependencies
const { miscDependencies = [], gatsbyDependencies = [] } = starterShowcase
const allDeps = [
...gatsbyDependencies.map(([name, ver]) => name),
...miscDependencies.map(([name, ver]) => name),
...gatsbyDependencies.map(([name]) => name),
...miscDependencies.map(([name]) => name),
]
const shownDeps = this.state.showAllDeps ? allDeps : allDeps.slice(0, 15)
const showMore =
Expand Down

0 comments on commit 963d6ca

Please sign in to comment.