express-graphql
Advanced tools
Comparing version 0.6.7 to 0.6.11
@@ -78,5 +78,3 @@ 'use strict'; | ||
// Then, resolve the Options to get OptionsData. | ||
return new Promise(function (resolve) { | ||
return resolve(typeof options === 'function' ? options(request, response, params) : options); | ||
}); | ||
return typeof options === 'function' ? options(request, response, params) : options; | ||
}).then(function (optionsData) { | ||
@@ -83,0 +81,0 @@ // Assert that optionsData is in fact an Object. |
{ | ||
"name": "express-graphql", | ||
"version": "0.6.7", | ||
"version": "0.6.11", | ||
"description": "Production ready GraphQL HTTP middleware.", | ||
@@ -76,13 +76,13 @@ "license": "BSD-3-Clause", | ||
"body-parser": "1.17.2", | ||
"chai": "4.1.0", | ||
"connect": "3.6.2", | ||
"chai": "4.1.1", | ||
"connect": "3.6.3", | ||
"coveralls": "2.13.1", | ||
"eslint": "4.3.0", | ||
"eslint": "4.4.1", | ||
"eslint-plugin-flowtype": "2.35.0", | ||
"express": "4.14.1", | ||
"express3": "*", | ||
"flow-bin": "0.51.1", | ||
"graphql": "0.10.5", | ||
"flow-bin": "0.52.0", | ||
"graphql": "0.11.2", | ||
"isparta": "4.0.0", | ||
"mocha": "3.4.2", | ||
"mocha": "3.5.0", | ||
"multer": "1.3.0", | ||
@@ -92,8 +92,8 @@ "prettier": "^1.3.1", | ||
"sane": "2.0.0", | ||
"sinon": "2.4.1", | ||
"sinon": "3.2.0", | ||
"supertest": "3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.10.0" | ||
"graphql": "^0.10.0 || ^0.11.0" | ||
} | ||
} |
@@ -243,3 +243,3 @@ GraphQL HTTP Server Middleware | ||
GraphQL's [validation phase](https://facebook.github.io/graphql/#sec-Validation) checks the query to ensure that it can be sucessfully executed against the schema. The `validationRules` option allows for additional rules to be run during this phase. Rules are applied to each node in an AST representing the query using the Visitor pattern. | ||
GraphQL's [validation phase](https://facebook.github.io/graphql/#sec-Validation) checks the query to ensure that it can be successfully executed against the schema. The `validationRules` option allows for additional rules to be run during this phase. Rules are applied to each node in an AST representing the query using the Visitor pattern. | ||
@@ -246,0 +246,0 @@ A validation rule is a function which returns a visitor for one or more node Types. Below is an example of a validation preventing the specific fieldname `metadata` from being queried. For more examples see the [`specifiedRules`](https://github.com/graphql/graphql-js/tree/master/src/validation/rules) in the [graphql-js](https://github.com/graphql/graphql-js) package. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
60554
427