Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.11.0 to 0.12.0

1

dist/diff/changes/type.d.ts

@@ -7,2 +7,1 @@ import { GraphQLNamedType } from 'graphql';

export declare function typeDescriptionChanged(oldType: GraphQLNamedType, newType: GraphQLNamedType): Change;
export declare function getKind(type: GraphQLNamedType): string;

8

dist/diff/changes/type.js
"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

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