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

graphql-tag

Package Overview
Dependencies
Maintainers
6
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-tag - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

3

CHANGELOG.md
# Change log
### v2.4.0
- Add support for descriptors [jamiter](https://github.com/jamiter) in [PR #99](https://github.com/apollographql/graphql-tag/pull/99)
### v2.3.0

@@ -7,0 +4,0 @@ - Add flow support [michalkvasnicak](https://github.com/michalkvasnicak) in [PR #98](https://github.com/apollographql/graphql-tag/pull/98)

@@ -8,6 +8,4 @@ (function (global, factory) {

var parser = require('graphql/language/parser');
var buildASTSchema = require('graphql/utilities/buildASTSchema');
var parse = parser.parse;
var getDescription = buildASTSchema.getDescription;

@@ -95,10 +93,2 @@ // Strip insignificant whitespace

if (!doc.description) {
var description = getDescription(doc);
if (description) {
doc.description = description;
}
}
if (docType !== '[object Object]') {

@@ -105,0 +95,0 @@ throw new Error('Unexpected input.');

2

package.json
{
"name": "graphql-tag",
"version": "2.4.0",
"version": "2.4.1",
"description": "A JavaScript template literal tag that parses GraphQL queries",

@@ -5,0 +5,0 @@ "main": "./lib/graphql-tag.umd.js",

var parser = require('graphql/language/parser');
var buildASTSchema = require('graphql/utilities/buildASTSchema');
var parse = parser.parse;
var getDescription = buildASTSchema.getDescription;

@@ -88,10 +86,2 @@ // Strip insignificant whitespace

if (!doc.description) {
var description = getDescription(doc);
if (description) {
doc.description = description;
}
}
if (docType !== '[object Object]') {

@@ -98,0 +88,0 @@ throw new Error('Unexpected input.');

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