Socket
Socket
Sign inDemoInstall

@graphql-inspector/core

Package Overview
Dependencies
Maintainers
1
Versions
420
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-inspector/core - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

1

dist/diff/changes/type.d.ts

@@ -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)];

2

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

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