Socket
Socket
Sign inDemoInstall

codemirror-graphql

Package Overview
Dependencies
Maintainers
10
Versions
248
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 2.0.0 to 2.0.1

4

esm/variables/lint.js

@@ -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

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