graphql-language-service-utils
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -41,3 +41,8 @@ 'use strict'; | ||
if (errors.length > 0) { | ||
return errors; | ||
return errors.filter(function (error) { | ||
if (error.message.indexOf('Unknown directive') === -1) { | ||
return true; | ||
} | ||
return !(error.nodes && error.nodes.length === 1 && error.nodes[0].name.value === 'arguments' || error.nodes[0].name.value === 'argumentDefinition'); | ||
}); | ||
} | ||
@@ -44,0 +49,0 @@ |
{ | ||
"name": "graphql-language-service-utils", | ||
"repository": "https://github.com/graphql/graphql-language-service", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Utilities to support the GraphQL Language Service", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
13667
209