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

eslint-plugin-graphql

Package Overview
Dependencies
Maintainers
2
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 0.3.0 to 0.3.1

7

lib/index.js

@@ -91,3 +91,3 @@ 'use strict';

// Check for single identifier, like 'gql'
if (node.tag.type === 'Identifier' && node.tag.name !== tagName) {
if (node.tag.type !== 'Identifier' || node.tag.name !== tagName) {
return;

@@ -97,5 +97,8 @@ }

// Check for dotted identifier, like 'Relay.QL'
if (node.tag.type === 'MemberExpression' && node.tag.object.name + '.' + node.tag.property.name !== tagName) {
if (node.tag.type !== 'MemberExpression' || node.tag.object.name + '.' + node.tag.property.name !== tagName) {
return;
}
} else {
// We don't currently support 3 segments so ignore
return;
}

@@ -102,0 +105,0 @@

{
"name": "eslint-plugin-graphql",
"version": "0.3.0",
"version": "0.3.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