graphile-build
Advanced tools
Comparing version 4.1.0-rc.0 to 4.1.0-rc.1
@@ -26,2 +26,6 @@ "use strict"; | ||
var _semver = require("semver"); | ||
var _semver2 = _interopRequireDefault(_semver); | ||
var _utils = require("./utils"); | ||
@@ -213,2 +217,11 @@ | ||
graphileBuildVersion: _package.version, | ||
versions: { | ||
graphql: require("graphql/package.json").version, | ||
"graphile-build": _package.version | ||
}, | ||
hasVersion(packageName, range) { | ||
const packageVersion = this.versions[packageName]; | ||
if (!packageVersion) return false; | ||
return _semver2.default.satisfies(packageVersion, range); | ||
}, | ||
graphql, | ||
@@ -215,0 +228,0 @@ parseResolveInfo: _graphqlParseResolveInfo.parseResolveInfo, |
@@ -32,3 +32,3 @@ "use strict"; | ||
return { | ||
Type: this.getTypeByName(nodeTypeNameByAlias[alias] || alias), | ||
Type: this.getNodeType(alias), | ||
identifiers | ||
@@ -35,0 +35,0 @@ }; |
@@ -103,2 +103,3 @@ import { | ||
): void; | ||
hook(hookName: "finalize", fn: Hook<GraphQLSchema>): void; | ||
@@ -105,0 +106,0 @@ /* |
@@ -66,2 +66,7 @@ "use strict"; | ||
// 'finalize' phase is called once the schema is built; typically you | ||
// shouldn't use this, but it's useful for interfacing with external | ||
// libraries that mutate an already constructed schema. | ||
finalize: [], | ||
// Add 'query', 'mutation' or 'subscription' types in this hook: | ||
@@ -201,6 +206,7 @@ GraphQLSchema: [], | ||
const build = this.createBuild(); | ||
this._generatedSchema = build.newWithHooks(GraphQLSchema, {}, { | ||
const schema = build.newWithHooks(GraphQLSchema, {}, { | ||
__origin: `GraphQL built-in`, | ||
isSchema: true | ||
}); | ||
this._generatedSchema = this.applyHooks(build, "finalize", schema, {}, "Finalising GraphQL schema"); | ||
} | ||
@@ -207,0 +213,0 @@ if (!this._generatedSchema) { |
{ | ||
"name": "graphile-build", | ||
"version": "4.1.0-rc.0", | ||
"version": "4.1.0-rc.1", | ||
"description": "Build a GraphQL schema from plugins", | ||
@@ -36,6 +36,7 @@ "main": "node8plus/index.js", | ||
"debug": ">=2 <3", | ||
"graphql-parse-resolve-info": "4.1.0-rc.0", | ||
"graphql-parse-resolve-info": "4.1.0-rc.1", | ||
"lodash": ">=4 <5", | ||
"lru-cache": ">=4 <5", | ||
"pluralize": "^7.0.0" | ||
"pluralize": "^7.0.0", | ||
"semver": "^5.6.0" | ||
}, | ||
@@ -61,3 +62,3 @@ "engines": { | ||
], | ||
"gitHead": "699debee312279fe204c374554ace43a18691214" | ||
"gitHead": "9f4096b3553f2de709591b2bd4e49e91b3a3d4a4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
256541
1714
9
+ Addedsemver@^5.6.0
+ Addedgraphql-parse-resolve-info@4.1.0-rc.1(transitive)
+ Addedsemver@5.7.2(transitive)
- Removedgraphql-parse-resolve-info@4.1.0-rc.0(transitive)