graphql-language-service-interface
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -41,2 +41,3 @@ 'use strict'; | ||
var customRules = arguments[2]; | ||
var isRelayCompatMode = arguments[3]; | ||
@@ -62,3 +63,3 @@ var ast = null; | ||
var validationErrorAnnotations = mapCat((0, _graphqlLanguageServiceUtils.validateWithCustomRules)(schema, ast, customRules), function (error) { | ||
var validationErrorAnnotations = mapCat((0, _graphqlLanguageServiceUtils.validateWithCustomRules)(schema, ast, customRules, isRelayCompatMode), function (error) { | ||
return annotations(error, SEVERITY.ERROR, 'Validation'); | ||
@@ -65,0 +66,0 @@ }); |
@@ -38,3 +38,3 @@ 'use strict'; | ||
GraphQLLanguageService.prototype.getDiagnostics = function getDiagnostics(query, uri) { | ||
GraphQLLanguageService.prototype.getDiagnostics = function getDiagnostics(query, uri, isRelayCompatMode) { | ||
var source, appName, schema, customRules, fragmentDefinitions, fragmentDependencies, dependenciesSource, customRulesModulePath, rulesPath; | ||
@@ -58,3 +58,3 @@ return regeneratorRuntime.async(function getDiagnostics$(_context) { | ||
_context.next = 7; | ||
return regeneratorRuntime.awrap(this._graphQLCache.getSchema(this._graphQLConfig.getSchemaPath(appName))); | ||
return regeneratorRuntime.awrap(this._graphQLCache.getSchema(this._graphQLConfig.getSchemaPath(appName), appName)); | ||
@@ -94,3 +94,3 @@ case 7: | ||
case 18: | ||
return _context.abrupt('return', (0, _getDiagnostics.getDiagnostics)(source, schema, customRules)); | ||
return _context.abrupt('return', (0, _getDiagnostics.getDiagnostics)(source, schema, customRules, isRelayCompatMode)); | ||
@@ -120,3 +120,3 @@ case 19: | ||
_context2.next = 5; | ||
return regeneratorRuntime.awrap(this._graphQLCache.getSchema(this._graphQLConfig.getSchemaPath(appName))); | ||
return regeneratorRuntime.awrap(this._graphQLCache.getSchema(this._graphQLConfig.getSchemaPath(appName), appName)); | ||
@@ -123,0 +123,0 @@ case 5: |
{ | ||
"name": "graphql-language-service-interface", | ||
"repository": "https://github.com/graphql/graphql-language-service", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Interface to the GraphQL Language Service", | ||
@@ -30,7 +30,7 @@ "contributors": [ | ||
"graphql": "^0.10.1", | ||
"graphql-language-service-config": "0.0.17", | ||
"graphql-language-service-parser": "0.0.15", | ||
"graphql-language-service-types": "0.0.21", | ||
"graphql-language-service-utils": "0.0.17" | ||
"graphql-language-service-config": "0.0.18", | ||
"graphql-language-service-parser": "0.0.16", | ||
"graphql-language-service-types": "0.0.22", | ||
"graphql-language-service-utils": "0.0.18" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
90389
1212
16
+ Addedgraphql-language-service-config@0.0.18(transitive)
+ Addedgraphql-language-service-parser@0.0.16(transitive)
+ Addedgraphql-language-service-types@0.0.22(transitive)
+ Addedgraphql-language-service-utils@0.0.18(transitive)
- Removedgraphql-language-service-config@0.0.17(transitive)
- Removedgraphql-language-service-parser@0.0.15(transitive)
- Removedgraphql-language-service-types@0.0.21(transitive)
- Removedgraphql-language-service-utils@0.0.17(transitive)