Socket
Socket
Sign inDemoInstall

graphql-language-service-utils

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-language-service-utils - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

13

dist/validateWithCustomRules.js

@@ -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 @@

4

package.json
{
"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

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