File tree 3 files changed +28
-4
lines changed 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 71
71
"gatsby-react-router-scroll" : " ^2.0.7" ,
72
72
"gatsby-telemetry" : " ^1.0.7" ,
73
73
"glob" : " ^7.1.1" ,
74
+ "got" : " 8.0.0" ,
74
75
"graphql" : " ^14.1.1" ,
75
76
"graphql-compose" : " 6.0.3" ,
76
77
"graphql-playground-middleware-express" : " ^1.7.10" ,
108
109
"react-error-overlay" : " ^3.0.0" ,
109
110
"react-hot-loader" : " ^4.6.2" ,
110
111
"redux" : " ^4.0.0" ,
111
- "request" : " ^2.85.0" ,
112
112
"semver" : " ^5.6.0" ,
113
113
"shallow-compare" : " ^1.2.2" ,
114
114
"sift" : " ^5.1.0" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const graphqlHTTP = require(`express-graphql`)
10
10
const graphqlPlayground = require ( `graphql-playground-middleware-express` )
11
11
. default
12
12
const { formatError } = require ( `graphql` )
13
- const request = require ( `request ` )
13
+ const got = require ( `got ` )
14
14
const rl = require ( `readline` )
15
15
const webpack = require ( `webpack` )
16
16
const webpackConfig = require ( `../utils/webpack.config` )
@@ -210,7 +210,7 @@ async function startServer(program) {
210
210
const proxiedUrl = url + req . originalUrl
211
211
req
212
212
. pipe (
213
- request ( proxiedUrl ) . on ( `error` , err => {
213
+ got . stream ( proxiedUrl ) . on ( `error` , err => {
214
214
const message = `Error when trying to proxy request "${
215
215
req . originalUrl
216
216
} " to "${ proxiedUrl } "`
Original file line number Diff line number Diff line change @@ -10187,6 +10187,30 @@ googleapis@^29.0.0:
10187
10187
url-template "^2.0.8"
10188
10188
uuid "^3.2.1"
10189
10189
10190
+
10191
+ version "8.0.0"
10192
+ resolved "https://registry.yarnpkg.com/got/-/got-8.0.0.tgz#57a11f841edc58e3f3eba4b3ac220faf5133770f"
10193
+ integrity sha512-lqVA9ORcSGfJPHfMXh1RW451aYMP1NyXivpGqGggnfDqNz3QVfMl7MkuEz+dr70gK2X8dhLiS5YzHhCV3/3yOQ==
10194
+ dependencies:
10195
+ cacheable-request "^2.1.1"
10196
+ decompress-response "^3.3.0"
10197
+ duplexer3 "^0.1.4"
10198
+ get-stream "^3.0.0"
10199
+ into-stream "^3.1.0"
10200
+ is-plain-obj "^1.1.0"
10201
+ is-retry-allowed "^1.1.0"
10202
+ is-stream "^1.1.0"
10203
+ isurl "^1.0.0-alpha5"
10204
+ lowercase-keys "^1.0.0"
10205
+ mimic-response "^1.0.0"
10206
+ p-cancelable "^0.3.0"
10207
+ p-timeout "^1.2.0"
10208
+ pify "^3.0.0"
10209
+ safe-buffer "^5.1.1"
10210
+ timed-out "^4.0.1"
10211
+ url-parse-lax "^3.0.0"
10212
+ url-to-options "^1.0.1"
10213
+
10190
10214
got@^6.7.1:
10191
10215
version "6.7.1"
10192
10216
resolved "http://registry.npmjs.org/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0"
@@ -15728,7 +15752,7 @@ p-some@^2.0.0:
15728
15752
dependencies:
15729
15753
aggregate-error "^1.0.0"
15730
15754
15731
- p-timeout@^1.0.0, p-timeout@^1.1.1:
15755
+ p-timeout@^1.0.0, p-timeout@^1.1.1, p-timeout@^1.2.0 :
15732
15756
version "1.2.1"
15733
15757
resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.1.tgz#5eb3b353b7fce99f101a1038880bb054ebbea386"
15734
15758
integrity sha1-XrOzU7f86Z8QGhA4iAuwVOu+o4Y=
You can’t perform that action at this time.
0 commit comments