@graphql-inspector/core
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -7,2 +7,1 @@ import { GraphQLNamedType } from 'graphql'; | ||
export declare function typeDescriptionChanged(oldType: GraphQLNamedType, newType: GraphQLNamedType): Change; | ||
export declare function getKind(type: GraphQLNamedType): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var change_1 = require("./change"); | ||
var graphql_1 = require("../../utils/graphql"); | ||
function typeRemoved(type) { | ||
@@ -33,3 +34,3 @@ return { | ||
type: change_1.ChangeType.TypeKindChanged, | ||
message: "'" + oldType.name + "' kind changed from '" + getKind(oldType) + "' to '" + getKind(newType) + "'", | ||
message: "'" + oldType.name + "' kind changed from '" + graphql_1.getKind(oldType) + "' to '" + graphql_1.getKind(newType) + "'", | ||
path: oldType.name, | ||
@@ -50,7 +51,2 @@ }; | ||
exports.typeDescriptionChanged = typeDescriptionChanged; | ||
function getKind(type) { | ||
var node = type.astNode; | ||
return (node && node.kind) || ''; | ||
} | ||
exports.getKind = getKind; | ||
//# sourceMappingURL=type.js.map |
@@ -1,4 +0,5 @@ | ||
import { GraphQLInputType, GraphQLOutputType, GraphQLNamedType, GraphQLSchema, GraphQLError, DocumentNode } from 'graphql'; | ||
import { GraphQLInputType, GraphQLOutputType, GraphQLNamedType, KindEnum, GraphQLSchema, GraphQLError, DocumentNode } from 'graphql'; | ||
export declare function safeChangeForField(oldType: GraphQLOutputType, newType: GraphQLOutputType): boolean; | ||
export declare function safeChangeForInputValue(oldType: GraphQLInputType, newType: GraphQLInputType): boolean; | ||
export declare function getKind(type: GraphQLNamedType): KindEnum; | ||
export declare function getTypePrefix(type: GraphQLNamedType): string; | ||
@@ -5,0 +6,0 @@ export declare function isPrimitive(type: GraphQLNamedType | string): boolean; |
@@ -34,5 +34,10 @@ "use strict"; | ||
exports.safeChangeForInputValue = safeChangeForInputValue; | ||
function getKind(type) { | ||
var node = type.astNode; | ||
return (node && node.kind) || ''; | ||
} | ||
exports.getKind = getKind; | ||
function getTypePrefix(type) { | ||
var _a; | ||
var kind = type.astNode.kind; | ||
var kind = getKind(type); | ||
var kindsMap = (_a = {}, | ||
@@ -39,0 +44,0 @@ _a[graphql_1.Kind.SCALAR_TYPE_DEFINITION] = 'scalar', |
{ | ||
"name": "@graphql-inspector/core", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.", | ||
@@ -32,2 +32,5 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"dependency-graph": "0.8.0" | ||
}, | ||
"devDependencies": { | ||
@@ -40,6 +43,3 @@ "@types/graphql": "14.0.3", | ||
"typescript": "3.2.2" | ||
}, | ||
"dependencies": { | ||
"dependency-graph": "0.8.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
788094
1689