@homebound/graphql-id-linter
Advanced tools
Comparing version 2.10.0 to 2.11.0
@@ -11,9 +11,9 @@ "use strict"; | ||
// Unwrap NonNull types | ||
if (graphql_1.isNonNullType(type)) { | ||
if ((0, graphql_1.isNonNullType)(type)) { | ||
type = type.ofType; | ||
} | ||
// Unwrap Lists | ||
if (graphql_1.isListType(type)) { | ||
if ((0, graphql_1.isListType)(type)) { | ||
type = type.ofType; | ||
if (graphql_1.isNonNullType(type)) { | ||
if ((0, graphql_1.isNonNullType)(type)) { | ||
type = type.ofType; | ||
@@ -23,3 +23,3 @@ } | ||
// Ensure this is an object type (meaning it has fields) | ||
if (!graphql_1.isObjectType(type)) { | ||
if (!(0, graphql_1.isObjectType)(type)) { | ||
return undefined; | ||
@@ -26,0 +26,0 @@ } |
@@ -11,3 +11,3 @@ "use strict"; | ||
if (document) { | ||
errors.push(...graphql_1.validate(schema, document, [IdOnObjectSelectionSetRule_1.IdOnObjectSelectionSetRule(d.location)])); | ||
errors.push(...(0, graphql_1.validate)(schema, document, [(0, IdOnObjectSelectionSetRule_1.IdOnObjectSelectionSetRule)(d.location)])); | ||
} | ||
@@ -14,0 +14,0 @@ }); |
{ | ||
"name": "@homebound/graphql-id-linter", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"main": "./build/index.js", | ||
@@ -14,15 +14,18 @@ "types": "./build/", | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^15.0.0 || ^16.0.0" | ||
}, | ||
"dependencies": { | ||
"@graphql-codegen/plugin-helpers": "^2.0.0", | ||
"graphql": "^15.5.1" | ||
"@graphql-codegen/plugin-helpers": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^27.0.1", | ||
"@graphql-codegen/cli": "^2.0.1", | ||
"@graphql-codegen/typescript-operations": "^2.0.1", | ||
"@graphql-codegen/cli": "^2.13.7", | ||
"@graphql-codegen/typescript-operations": "^2.5.5", | ||
"graphql": "^16.6.0", | ||
"husky": "^3.0.9", | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"prettier": "^2.7.1", | ||
"ts-jest": "^27.0.4", | ||
"typescript": "^4.3.5" | ||
"typescript": "^4.8.4" | ||
}, | ||
@@ -29,0 +32,0 @@ "husky": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9884
9
+ Addedgraphql@16.9.0(transitive)
- Removedgraphql@^15.5.1
- Removedgraphql@15.9.0(transitive)