codemirror-graphql
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -86,5 +86,5 @@ import CodeMirror from 'codemirror'; | ||
Object.keys(type.getFields()).forEach(fieldName => { | ||
const field = type.getFields()[fieldName]; | ||
if (!providedFields[fieldName]) { | ||
const fieldType = type.getFields()[fieldName].type; | ||
if (fieldType instanceof GraphQLNonNull) { | ||
if (field.type instanceof GraphQLNonNull && !field.defaultValue) { | ||
fieldErrors.push([ | ||
@@ -91,0 +91,0 @@ valueAST, |
{ | ||
"name": "codemirror-graphql", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "GraphQL mode and helpers for CodeMirror.", | ||
@@ -52,4 +52,5 @@ "contributors": [ | ||
}, | ||
"// TEMPORARILY PINNED until we fix graphql 15 support": "", | ||
"dependencies": { | ||
"graphql-language-service": "^5.1.0" | ||
"graphql-language-service": "5.0.6" | ||
}, | ||
@@ -56,0 +57,0 @@ "devDependencies": { |
@@ -173,5 +173,5 @@ /** | ||
Object.keys(type.getFields()).forEach(fieldName => { | ||
const field = type.getFields()[fieldName]; | ||
if (!providedFields[fieldName]) { | ||
const fieldType = type.getFields()[fieldName].type; | ||
if (fieldType instanceof GraphQLNonNull) { | ||
if (field.type instanceof GraphQLNonNull && !field.defaultValue) { | ||
fieldErrors.push([ | ||
@@ -178,0 +178,0 @@ valueAST, |
@@ -86,5 +86,5 @@ import CodeMirror from 'codemirror'; | ||
Object.keys(type.getFields()).forEach(fieldName => { | ||
const field = type.getFields()[fieldName]; | ||
if (!providedFields[fieldName]) { | ||
const fieldType = type.getFields()[fieldName].type; | ||
if (fieldType instanceof GraphQLNonNull) { | ||
if (field.type instanceof GraphQLNonNull && !field.defaultValue) { | ||
fieldErrors.push([ | ||
@@ -91,0 +91,0 @@ valueAST, |
@@ -131,5 +131,5 @@ "use strict"; | ||
Object.keys(type.getFields()).forEach(function (fieldName) { | ||
var field = type.getFields()[fieldName]; | ||
if (!providedFields_1[fieldName]) { | ||
var fieldType = type.getFields()[fieldName].type; | ||
if (fieldType instanceof graphql_1.GraphQLNonNull) { | ||
if (field.type instanceof graphql_1.GraphQLNonNull && !field.defaultValue) { | ||
fieldErrors_1.push([ | ||
@@ -136,0 +136,0 @@ valueAST, |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
448605
+ Addedgraphql-language-service@5.0.6(transitive)
- Removeddebounce-promise@3.1.2(transitive)
- Removedgraphql-language-service@5.3.0(transitive)