graphql-tag
Advanced tools
Comparing version 2.4.0 to 2.4.1
# 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.'); |
{ | ||
"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
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
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
71056
318