@graphql-inspector/core
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -7,1 +7,2 @@ import { GraphQLNamedType } from 'graphql'; | ||
export declare function typeDescriptionChanged(oldType: GraphQLNamedType, newType: GraphQLNamedType): Change; | ||
export declare function getKind(type: GraphQLNamedType): string; |
@@ -33,3 +33,3 @@ "use strict"; | ||
type: change_1.ChangeType.TypeKindChanged, | ||
message: "'" + oldType.name + "' kind changed from '" + oldType.astNode.kind + "' to '" + newType.astNode.kind + "'", | ||
message: "'" + oldType.name + "' kind changed from '" + getKind(oldType) + "' to '" + getKind(newType) + "'", | ||
path: oldType.name, | ||
@@ -50,2 +50,7 @@ }; | ||
exports.typeDescriptionChanged = typeDescriptionChanged; | ||
function getKind(type) { | ||
var node = type.astNode; | ||
return (node && node.kind) || ''; | ||
} | ||
exports.getKind = getKind; | ||
//# sourceMappingURL=type.js.map |
@@ -120,2 +120,5 @@ "use strict"; | ||
} | ||
else if (graphql_1.isScalarType(oldType) && graphql_1.isScalarType(newType)) { | ||
// what to do with scalar types? | ||
} | ||
else { | ||
@@ -122,0 +125,0 @@ changes = [type_1.typeKindChanged(oldType, newType)]; |
{ | ||
"name": "@graphql-inspector/core", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
130148
1593