Socket
Socket
Sign inDemoInstall

eslint-plugin-graphql

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-graphql - npm Package Compare versions

Comparing version 2.1.0-0 to 2.1.0

3

CHANGELOG.md
# Change log
### vNEXT
### v2.1.0
- Retrieves `.graphqlconfig` relative to the file being linted, which re-enables support for `vscode-eslint` using `.graphqlconfig` in [#108](https://github.com/apollographql/eslint-plugin-graphql/pull/108) by [Jon Wong][https://github.com/jnwng/]
- Cache schema reading/parsing results each time a rule is created in [#137](https://github.com/apollographql/eslint-plugin-graphql/pull/137) by [Kristján Oddsson](https://github.com/koddsson)

@@ -5,0 +8,0 @@ ### v2.0.0

@@ -286,3 +286,9 @@ 'use strict';

var schemaCache = {};
function parseOptions(optionGroup, context) {
var cacheHit = schemaCache[JSON.stringify(optionGroup)];
if (cacheHit) {
return cacheHit;
}
var schemaJson = optionGroup.schemaJson,

@@ -363,3 +369,5 @@ schemaJsonFilepath = optionGroup.schemaJsonFilepath,

});
return { schema: schema, env: env, tagName: tagName, validators: validators };
var results = { schema: schema, env: env, tagName: tagName, validators: validators };
schemaCache[JSON.stringify(optionGroup)] = results;
return results;
}

@@ -366,0 +374,0 @@

8

package.json
{
"name": "eslint-plugin-graphql",
"version": "2.1.0-0",
"version": "2.1.0",
"description": "GraphQL ESLint plugin.",

@@ -25,6 +25,6 @@ "author": "Sashko Stubailo",

"babel-preset-stage-0": "6.24.1",
"eslint": "4.2.0",
"mocha": "3.4.2",
"eslint": "4.19.1",
"mocha": "5.1.0",
"graphql": "0.13.2",
"graphql-tools": "2.23.1",
"graphql-tools": "2.24.0",
"test-all-versions": "3.3.2"

@@ -31,0 +31,0 @@ },

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