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 3.0.0 to 3.0.1

5

CHANGELOG.md
# Change log
### vNEXT
### v3.0.1
- Fix support for multi-schema workspaces [#179](https://github.com/apollographql/eslint-plugin-graphql/pull/179) by [Pat Sissons](https://github.com/patsissons)
### v3.0.0

@@ -5,0 +10,0 @@

24

lib/index.js

@@ -210,8 +210,5 @@ 'use strict';

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

@@ -225,4 +222,9 @@ schemaJsonFilepath = optionGroup.schemaJsonFilepath,

var cacheHit = schemaCache[JSON.stringify(optionGroup)];
if (cacheHit && env !== 'literal') {
return cacheHit;
}
// Validate and unpack schema
var schema = void 0;

@@ -247,3 +249,13 @@ if (schemaJson) {

}
schema = projectConfig.getSchema();
if (projectConfig) {
var key = config.configPath + '[' + projectConfig.projectName + ']';
schema = projectCache[key];
if (!schema) {
schema = projectConfig.getSchema();
projectCache[key] = schema;
}
}
if (cacheHit) {
return _extends({}, cacheHit, { schema: schema });
}
} catch (e) {

@@ -250,0 +262,0 @@ if (e instanceof _graphqlConfig.ConfigNotFoundError) {

{
"name": "eslint-plugin-graphql",
"version": "3.0.0",
"version": "3.0.1",
"description": "GraphQL ESLint plugin.",

@@ -5,0 +5,0 @@ "author": "Sashko Stubailo",

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