Comparing version 0.7.1 to 0.7.2
@@ -45,3 +45,3 @@ 'use strict'; | ||
_positions = nodes.filter(function (node) { | ||
return node.loc !== null; | ||
return Boolean(node.loc); | ||
}).map(function (node) { | ||
@@ -48,0 +48,0 @@ return node.loc.start; |
@@ -632,2 +632,7 @@ 'use strict'; | ||
// If resolveType returns a string, we assume it's a GraphQLObjectType name. | ||
if (typeof runtimeType === 'string') { | ||
runtimeType = exeContext.schema.getType(runtimeType); | ||
} | ||
if (!(runtimeType instanceof _definition.GraphQLObjectType)) { | ||
@@ -634,0 +639,0 @@ throw new _error.GraphQLError('Abstract type ' + returnType.name + ' must resolve to an Object type at ' + ('runtime for field ' + info.parentType.name + '.' + info.fieldName + ' with ') + ('value "' + String(result) + '", received "' + String(runtimeType) + '".'), fieldASTs); |
@@ -494,2 +494,8 @@ 'use strict'; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'findBreakingChanges', { | ||
enumerable: true, | ||
get: function get() { | ||
return _utilities.findBreakingChanges; | ||
} | ||
}); |
@@ -1,1 +0,1 @@ | ||
{"name":"graphql","version":"0.7.1","description":"A Query Language and Runtime which can target any service.","contributors":["Lee Byron <lee@leebyron.com> (http://leebyron.com/)","Nicholas Schrock <schrockn@fb.com>","Daniel Schafer <dschafer@fb.com>"],"license":"BSD-3-Clause","main":"index.js","homepage":"https://github.com/graphql/graphql-js","bugs":{"url":"https://github.com/graphql/graphql-js/issues"},"repository":{"type":"git","url":"http://github.com/graphql/graphql-js.git"},"dependencies":{"iterall":"1.0.2"}} | ||
{"name":"graphql","version":"0.7.2","description":"A Query Language and Runtime which can target any service.","contributors":["Lee Byron <lee@leebyron.com> (http://leebyron.com/)","Nicholas Schrock <schrockn@fb.com>","Daniel Schafer <dschafer@fb.com>"],"license":"BSD-3-Clause","main":"index.js","homepage":"https://github.com/graphql/graphql-js","bugs":{"url":"https://github.com/graphql/graphql-js/issues"},"repository":{"type":"git","url":"http://github.com/graphql/graphql-js.git"},"dependencies":{"iterall":"1.0.2"}} |
@@ -334,8 +334,3 @@ 'use strict'; | ||
type: { type: new _definition.GraphQLNonNull(__Type) }, | ||
isDeprecated: { | ||
type: new _definition.GraphQLNonNull(_scalars.GraphQLBoolean), | ||
resolve: function resolve(field) { | ||
return field.isDeprecated; | ||
} | ||
}, | ||
isDeprecated: { type: new _definition.GraphQLNonNull(_scalars.GraphQLBoolean) }, | ||
deprecationReason: { | ||
@@ -374,8 +369,3 @@ type: _scalars.GraphQLString | ||
description: { type: _scalars.GraphQLString }, | ||
isDeprecated: { | ||
type: new _definition.GraphQLNonNull(_scalars.GraphQLBoolean), | ||
resolve: function resolve(enumValue) { | ||
return enumValue.isDeprecated; | ||
} | ||
}, | ||
isDeprecated: { type: new _definition.GraphQLNonNull(_scalars.GraphQLBoolean) }, | ||
deprecationReason: { | ||
@@ -382,0 +372,0 @@ type: _scalars.GraphQLString |
@@ -173,2 +173,11 @@ 'use strict'; | ||
} | ||
}); | ||
var _findBreakingChanges = require('./findBreakingChanges'); | ||
Object.defineProperty(exports, 'findBreakingChanges', { | ||
enumerable: true, | ||
get: function get() { | ||
return _findBreakingChanges.findBreakingChanges; | ||
} | ||
}); |
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
396539
81
10365