Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

graphql-yoga

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-yoga - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

@@ -64,2 +64,11 @@ "use strict";

}
if (typeof this.context === 'function') {
app.post(endpoint, bodyParser.json(), apollo_server_express_1.graphqlExpress(function (request) { return ({
schema: _this.schema,
context: _this.context({ request: request }),
}); }));
}
else {
app.post(endpoint, bodyParser.json(), apollo_server_express_1.graphqlExpress({ schema: this.schema, context: this.context }));
}
app.post(endpoint, bodyParser.json(), apollo_upload_server_1.apolloUploadExpress(uploads), apollo_server_express_1.graphqlExpress(function (request) { return ({

@@ -66,0 +75,0 @@ schema: _this.schema,

{
"name": "graphql-yoga",
"version": "0.1.3",
"version": "0.1.4",
"main": "dist/src/index.js",

@@ -5,0 +5,0 @@ "typings": "./dist/src/index.d.ts",

Sorry, the diff of this file is not supported yet