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

codemirror-graphql

Package Overview
Dependencies
Maintainers
10
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-graphql - npm Package Compare versions

Comparing version 0.12.2 to 0.12.3

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [0.12.3](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.2...codemirror-graphql@0.12.3) (2020-10-20)
### Bug Fixes
- **codemirror-graphql:** give interface field name suggestions ([#1695](https://github.com/graphql/graphiql/issues/1695)) ([669b301](https://github.com/graphql/graphiql/commit/669b3013fc679eca7c4e5c8ed6b0cd2fb2dbf2dc))
## [0.12.2](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.2-alpha.2...codemirror-graphql@0.12.2) (2020-09-18)

@@ -8,0 +14,0 @@

4

hint.esm.js

@@ -14,3 +14,3 @@ /**

import { canUseDirective, getDefinitionState, getFragmentDefinitions, getTypeInfo, hintList, objectValues } from 'graphql-language-service-interface';
import { assertAbstractType, doTypesOverlap, getNamedType, isAbstractType, isCompositeType, isInputType, isObjectType, GraphQLBoolean, GraphQLEnumType, GraphQLInterfaceType, GraphQLSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef } from 'graphql';
import { assertAbstractType, doTypesOverlap, getNamedType, isAbstractType, isCompositeType, isInputType, isObjectType, GraphQLBoolean, GraphQLEnumType, GraphQLInterfaceType, GraphQLSchema, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, isInterfaceType } from 'graphql';

@@ -171,3 +171,3 @@ /**

const parentType = typeInfo.parentType;
const fields = isObjectType(parentType) && 'getFields' in parentType ? objectValues(parentType.getFields()) : [];
const fields = isObjectType(parentType) || isInterfaceType(parentType) ? objectValues(parentType.getFields()) : [];

@@ -174,0 +174,0 @@ if (isCompositeType(parentType)) {

@@ -179,3 +179,3 @@ "use strict";

const parentType = typeInfo.parentType;
const fields = (0, _graphql.isObjectType)(parentType) && 'getFields' in parentType ? (0, _graphqlLanguageServiceInterface.objectValues)(parentType.getFields()) : [];
const fields = (0, _graphql.isObjectType)(parentType) || (0, _graphql.isInterfaceType)(parentType) ? (0, _graphqlLanguageServiceInterface.objectValues)(parentType.getFields()) : [];

@@ -182,0 +182,0 @@ if ((0, _graphql.isCompositeType)(parentType)) {

{
"name": "codemirror-graphql",
"version": "0.12.2",
"version": "0.12.3",
"description": "GraphQL mode and helpers for CodeMirror.",

@@ -68,3 +68,3 @@ "contributors": [

},
"gitHead": "71ee5fa6d57d55c231925601f4dcbf6c1824b373"
"gitHead": "96a387b4b205780d11add31a6dbe720cd534a933"
}

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