Socket
Socket
Sign inDemoInstall

express-graphql

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-graphql - npm Package Compare versions

Comparing version 0.6.7 to 0.6.11

4

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc