graphql-language-service-utils
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -13,3 +13,3 @@ 'use strict'; | ||
*/ | ||
function validateWithCustomRules(schema, ast, customRules) { | ||
function validateWithCustomRules(schema, ast, customRules, isRelayCompatMode) { | ||
// Because every fragment is considered for determing model subsets that may | ||
@@ -21,4 +21,13 @@ // be used anywhere in the codebase they're all technically "used" by clients | ||
var rulesToSkip = [NoUnusedFragments]; | ||
if (isRelayCompatMode) { | ||
var _require2 = require('graphql/validation/rules/KnownFragmentNames'), | ||
KnownFragmentNames = _require2.KnownFragmentNames; | ||
rulesToSkip.push(KnownFragmentNames); | ||
} | ||
var rules = _graphql.specifiedRules.filter(function (rule) { | ||
return rule !== NoUnusedFragments; | ||
return !rulesToSkip.some(function (r) { | ||
return r === rule; | ||
}); | ||
}); | ||
@@ -25,0 +34,0 @@ |
{ | ||
"name": "graphql-language-service-utils", | ||
"repository": "https://github.com/graphql/graphql-language-service", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Utilities to support the GraphQL Language Service", | ||
@@ -30,4 +30,4 @@ "contributors": [ | ||
"graphql": "^0.10.1", | ||
"graphql-language-service-types": "0.0.21" | ||
"graphql-language-service-types": "0.0.22" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
13078
204
10
+ Addedgraphql-language-service-types@0.0.22(transitive)
- Removedgraphql-language-service-types@0.0.21(transitive)