Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 28, 2020
1 parent 74b1db1 commit 0d2a398
Show file tree
Hide file tree
Showing 4 changed files with 611 additions and 1,461 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,27 @@
},
"homepage": "https://github.com/APIs-guru/graphql-faker#readme",
"devDependencies": {
"@types/body-parser": "1.17.1",
"@types/body-parser": "1.19.0",
"@types/cors": "2.8.6",
"@types/express": "4.17.1",
"@types/faker": "4.1.6",
"@types/yargs": "13.0.3",
"nodemon": "1.19.4",
"@types/express": "4.17.6",
"@types/faker": "4.1.12",
"@types/yargs": "15.0.5",
"nodemon": "2.0.4",
"prettier": "^2.0.5",
"ts-node": "8.4.1",
"typescript": "3.6.4"
"ts-node": "8.10.1",
"typescript": "3.9.3"
},
"dependencies": {
"body-parser": "1.19.0",
"chalk": "2.4.2",
"chalk": "4.0.0",
"cors": "2.8.5",
"express": "4.17.1",
"express-graphql": "0.9.0",
"faker": "4.1.0",
"graphql": "14.5.8",
"moment": "2.24.0",
"moment": "2.26.0",
"node-fetch": "2.6.0",
"open": "7.0.0",
"yargs": "14.2.0"
"open": "7.0.4",
"yargs": "15.3.1"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as fs from 'fs';
import * as path from 'path';
import * as express from 'express';
import * as graphqlHTTP from 'express-graphql';
import chalk from 'chalk';
import * as chalk from 'chalk';
import * as open from 'open';
import * as cors from 'cors';
import * as bodyParser from 'body-parser';
Expand Down
4 changes: 2 additions & 2 deletions src/proxy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Request } from 'express';
import { IncomingMessage } from 'http';
import {
Kind,
print,
Expand All @@ -19,7 +19,7 @@ export function getProxyExecuteFn(url, headers, forwardHeaders) {
return (args: ExecutionArgs) => {
const { schema, document, contextValue, operationName } = args;

const request = contextValue as Request;
const request = contextValue as IncomingMessage;
const proxyHeaders = Object.create(null);
for (const name of forwardHeaders) {
proxyHeaders[name] = request.headers[name];
Expand Down
Loading

0 comments on commit 0d2a398

Please sign in to comment.