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

codemirror-graphql

Package Overview
Dependencies
Maintainers
5
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.0 to 0.12.1

4

CHANGELOG.md

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

## [0.12.1](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.0...codemirror-graphql@0.12.1) (2020-08-06)
**Note:** Version bump only for package codemirror-graphql
# [0.12.0](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.0-alpha.11...codemirror-graphql@0.12.0) (2020-06-11)

@@ -8,0 +12,0 @@

2

hint.js

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

type: typeMap[frag.typeCondition.name.value],
documentation: `fragment ${frag.name.value} on ${frag.typeCondition.name.value}`
documentation: "fragment ".concat(frag.name.value, " on ").concat(frag.typeCondition.name.value)
})));

@@ -286,0 +286,0 @@ }

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

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

],
"homepage": "https://github.com/graphql/graphiql/tree/master/packages/codemirror-graphql#readme",
"homepage": "https://github.com/graphql/graphiql/tree/main/packages/codemirror-graphql#readme",
"repository": "https://github.com/graphql/graphiql",

@@ -54,4 +54,4 @@ "bugs": {

"dependencies": {
"graphql-language-service-interface": "^2.4.0",
"graphql-language-service-parser": "^1.6.0"
"graphql-language-service-interface": "^2.4.1",
"graphql-language-service-parser": "^1.6.1"
},

@@ -70,3 +70,3 @@ "devDependencies": {

},
"gitHead": "294fd834efe485132744c0cd9d24690a61b45501"
"gitHead": "0fc7c7caac890198118c6a19ae77f10944987ed2"
}

@@ -10,3 +10,3 @@ # GraphQL mode for CodeMirror

![Demo .gif of GraphQL Codemirror Mode](https://raw.githubusercontent.com/graphql/graphiql/master/packages/codemirror-graphql/resources/example.gif)
![Demo .gif of GraphQL Codemirror Mode](https://raw.githubusercontent.com/graphql/graphiql/main/packages/codemirror-graphql/resources/example.gif)

@@ -13,0 +13,0 @@ ### Getting Started

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

throw syntaxError(`Expected ${str} but found ${found}.`);
throw syntaxError("Expected ".concat(str, " but found ").concat(found, "."));
}

@@ -154,0 +154,0 @@

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

return (0, _hintList.default)(cur, token, variableNames.map(name => ({
text: `"${name}": `,
text: "\"".concat(name, "\": "),
type: variableToType[name]

@@ -88,3 +88,3 @@ })));

return (0, _hintList.default)(cur, token, inputFields.map(field => ({
text: `"${field.name}": `,
text: "\"".concat(field.name, "\": "),
type: field.type,

@@ -108,3 +108,3 @@ description: field.description

return (0, _hintList.default)(cur, token, values.map(value => ({
text: `"${value.name}"`,
text: "\"".concat(value.name, "\""),
type: namedInputType,

@@ -111,0 +111,0 @@ description: value.description

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

if (!type) {
errors.push(lintError(editor, member.key, `Variable "$${variableName}" does not appear in any GraphQL query.`));
errors.push(lintError(editor, member.key, "Variable \"$".concat(variableName, "\" does not appear in any GraphQL query.")));
} else {

@@ -87,3 +87,3 @@ validateValue(type, member.value).forEach(([node, message]) => {

if (valueAST.kind === 'Null') {
return [[valueAST, `Type "${type}" is non-nullable and cannot be null.`]];
return [[valueAST, "Type \"".concat(type, "\" is non-nullable and cannot be null.")]];
}

@@ -112,3 +112,3 @@

if (valueAST.kind !== 'Object') {
return [[valueAST, `Type "${type}" must be an Object.`]];
return [[valueAST, "Type \"".concat(type, "\" must be an Object.")]];
} // Validate each field in the input object.

@@ -124,3 +124,3 @@

if (!inputField) {
return [[member.key, `Type "${type}" does not have a field "${fieldName}".`]];
return [[member.key, "Type \"".concat(type, "\" does not have a field \"").concat(fieldName, "\".")]];
}

@@ -137,3 +137,3 @@

if (fieldType instanceof _graphql.GraphQLNonNull) {
fieldErrors.push([valueAST, `Object of type "${type}" is missing required field "${fieldName}".`]);
fieldErrors.push([valueAST, "Object of type \"".concat(type, "\" is missing required field \"").concat(fieldName, "\".")]);
}

@@ -148,3 +148,3 @@ }

valueAST.kind !== 'Number' || (valueAST.value | 0) !== valueAST.value)) {
return [[valueAST, `Expected value of type "${type}".`]];
return [[valueAST, "Expected value of type \"".concat(type, "\".")]];
} // Validate enums and custom scalars.

@@ -155,3 +155,3 @@

if (valueAST.kind !== 'String' && valueAST.kind !== 'Number' && valueAST.kind !== 'Boolean' && valueAST.kind !== 'Null' || isNullish(type.parseValue(valueAST.value))) {
return [[valueAST, `Expected value of type "${type}".`]];
return [[valueAST, "Expected value of type \"".concat(type, "\".")]];
}

@@ -158,0 +158,0 @@ }

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