@homebound/graphql-id-linter
Advanced tools
Comparing version 1.7.0 to 2.8.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IdOnObjectSelectionSetRule = void 0; | ||
const graphql_1 = require("graphql"); | ||
@@ -41,3 +42,3 @@ function IdOnObjectSelectionSetRule(location) { | ||
function selectionSetIncludes(selectionNodes, fieldName) { | ||
return selectionNodes.some(selectionNode => { | ||
return selectionNodes.some((selectionNode) => { | ||
switch (selectionNode.kind) { | ||
@@ -44,0 +45,0 @@ case "Field": |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.plugin = void 0; | ||
const graphql_1 = require("graphql"); | ||
const IdOnObjectSelectionSetRule_1 = require("./IdOnObjectSelectionSetRule"); | ||
exports.plugin = async (schema, documents) => { | ||
const plugin = async (schema, documents) => { | ||
const errors = []; | ||
documents.forEach(d => { | ||
documents.forEach((d) => { | ||
const { document } = d; | ||
@@ -18,2 +19,3 @@ if (document) { | ||
}; | ||
exports.plugin = plugin; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@homebound/graphql-id-linter", | ||
"version": "1.7.0", | ||
"version": "2.8.0", | ||
"main": "./build/index.js", | ||
@@ -15,16 +15,14 @@ "types": "./build/", | ||
"dependencies": { | ||
"@graphql-codegen/plugin-helpers": "^1.17.8", | ||
"graphql": "^15.3.0" | ||
"@graphql-codegen/plugin-helpers": "^2.0.0", | ||
"graphql": "^15.5.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^25.1.4", | ||
"@graphql-codegen/cli": "^1.17.8", | ||
"@graphql-codegen/typescript-operations": "^1.17.8", | ||
"eslint-config-prettier": "^6.5.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"@types/jest": "^27.0.1", | ||
"@graphql-codegen/cli": "^2.0.1", | ||
"@graphql-codegen/typescript-operations": "^2.0.1", | ||
"husky": "^3.0.9", | ||
"jest": "^25.2.4", | ||
"prettier": "^1.18.2", | ||
"ts-jest": "^25.3.0", | ||
"typescript": "^3.8.3" | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"ts-jest": "^27.0.4", | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -31,0 +29,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
8
103
9739
+ Added@graphql-codegen/plugin-helpers@2.7.2(transitive)
+ Added@graphql-tools/utils@8.13.1(transitive)
+ Addedcapital-case@1.0.4(transitive)
+ Addedchange-case@4.1.2(transitive)
+ Addedchange-case-all@1.0.14(transitive)
+ Addedcommon-tags@1.8.2(transitive)
+ Addedconstant-case@3.0.4(transitive)
+ Addeddot-case@3.0.4(transitive)
+ Addedheader-case@2.0.4(transitive)
+ Addedis-lower-case@2.0.2(transitive)
+ Addedis-upper-case@2.0.2(transitive)
+ Addedlower-case-first@2.0.2(transitive)
+ Addedparam-case@3.0.4(transitive)
+ Addedpath-case@3.0.4(transitive)
+ Addedsentence-case@3.0.4(transitive)
+ Addedsnake-case@3.0.4(transitive)
+ Addedsponge-case@1.0.1(transitive)
+ Addedswap-case@2.0.2(transitive)
+ Addedtitle-case@3.0.3(transitive)
+ Addedtslib@2.4.1(transitive)
+ Addedupper-case@2.0.2(transitive)
+ Addedupper-case-first@2.0.2(transitive)
- Removed@ardatan/aggregate-error@0.0.6(transitive)
- Removed@graphql-codegen/plugin-helpers@1.18.8(transitive)
- Removed@graphql-tools/utils@7.10.0(transitive)
- Removedcommon-tags@1.8.0(transitive)
- Removedtslib@2.0.32.2.02.3.1(transitive)
Updatedgraphql@^15.5.1