graphile-build
Advanced tools
Comparing version 4.3.2-alpha.0 to 4.3.2-alpha.2
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.resolveNode = exports.MutationPayloadQueryPlugin = exports.ClientMutationIdDescriptionPlugin = exports.SubscriptionPlugin = exports.MutationPlugin = exports.QueryPlugin = exports.NodePlugin = exports.StandardTypesPlugin = exports.SwallowErrorsPlugin = exports.defaultPlugins = exports.buildSchema = exports.getBuilder = exports.LiveCoordinator = exports.LiveMonitor = exports.LiveProvider = exports.LiveSource = exports.singularize = exports.pluralize = exports.upperCamelCase = exports.constantCase = exports.camelCase = exports.upperFirst = exports.formatInsideUnderscores = exports.constantCaseAll = undefined; | ||
exports.resolveNode = exports.AddQueriesToSubscriptionsPlugin = exports.MutationPayloadQueryPlugin = exports.ClientMutationIdDescriptionPlugin = exports.SubscriptionPlugin = exports.MutationPlugin = exports.QueryPlugin = exports.NodePlugin = exports.StandardTypesPlugin = exports.SwallowErrorsPlugin = exports.defaultPlugins = exports.buildSchema = exports.getBuilder = exports.LiveCoordinator = exports.LiveMonitor = exports.LiveProvider = exports.LiveSource = exports.singularize = exports.pluralize = exports.upperCamelCase = exports.constantCase = exports.camelCase = exports.upperFirst = exports.formatInsideUnderscores = exports.constantCaseAll = undefined; | ||
@@ -122,3 +122,3 @@ var _utils = require("./utils"); | ||
const defaultPlugins = exports.defaultPlugins = [_plugins.SwallowErrorsPlugin, _plugins.StandardTypesPlugin, _plugins.NodePlugin, _plugins.QueryPlugin, _plugins.MutationPlugin, _plugins.SubscriptionPlugin, _plugins.ClientMutationIdDescriptionPlugin, _plugins.MutationPayloadQueryPlugin]; | ||
const defaultPlugins = exports.defaultPlugins = [_plugins.SwallowErrorsPlugin, _plugins.StandardTypesPlugin, _plugins.NodePlugin, _plugins.QueryPlugin, _plugins.MutationPlugin, _plugins.SubscriptionPlugin, _plugins.ClientMutationIdDescriptionPlugin, _plugins.MutationPayloadQueryPlugin, _plugins.AddQueriesToSubscriptionsPlugin]; | ||
@@ -133,3 +133,4 @@ exports.SwallowErrorsPlugin = _plugins.SwallowErrorsPlugin; | ||
exports.MutationPayloadQueryPlugin = _plugins.MutationPayloadQueryPlugin; | ||
exports.AddQueriesToSubscriptionsPlugin = _plugins.AddQueriesToSubscriptionsPlugin; | ||
exports.resolveNode = _resolveNode2.default; | ||
//# sourceMappingURL=index.js.map |
@@ -54,2 +54,3 @@ "use strict"; | ||
this.subscriptionReleasers = []; | ||
this.changeCallback = null; | ||
this.handleChange = (0, _lodash.debounce)(this.handleChange.bind(this), 250, { | ||
@@ -74,6 +75,10 @@ leading: true, | ||
// Tell Flow that we're okay with overwriting this | ||
handleChange() { | ||
if (this.changeCallback) { | ||
// Convince Flow this won't suddenly become null | ||
const cb = this.changeCallback; | ||
this.reset(); | ||
this.changeCallback(); | ||
cb(); | ||
} else { | ||
@@ -85,2 +90,4 @@ // eslint-disable-next-line no-console | ||
// Tell Flow that we're okay with overwriting this | ||
onChange(callback) { | ||
@@ -170,2 +177,4 @@ if (this.changeCallback) { | ||
// Tell Flow that we're okay with overwriting this | ||
subscribe(_parent, _args, context, _info) { | ||
@@ -182,3 +191,3 @@ const { monitor, context: additionalContext } = this.getMonitorAndContext(); | ||
onClose: release => { | ||
release(); | ||
if (release) release(); | ||
} | ||
@@ -185,0 +194,0 @@ }); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.SwallowErrorsPlugin = exports.StandardTypesPlugin = exports.QueryPlugin = exports.NodePlugin = exports.SubscriptionPlugin = exports.MutationPlugin = exports.MutationPayloadQueryPlugin = exports.ClientMutationIdDescriptionPlugin = undefined; | ||
exports.AddQueriesToSubscriptionsPlugin = exports.SwallowErrorsPlugin = exports.StandardTypesPlugin = exports.QueryPlugin = exports.NodePlugin = exports.SubscriptionPlugin = exports.MutationPlugin = exports.MutationPayloadQueryPlugin = exports.ClientMutationIdDescriptionPlugin = undefined; | ||
@@ -41,2 +41,6 @@ var _ClientMutationIdDescriptionPlugin = require("./ClientMutationIdDescriptionPlugin"); | ||
var _AddQueriesToSubscriptionsPlugin = require("./AddQueriesToSubscriptionsPlugin"); | ||
var _AddQueriesToSubscriptionsPlugin2 = _interopRequireDefault(_AddQueriesToSubscriptionsPlugin); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -52,2 +56,3 @@ | ||
exports.SwallowErrorsPlugin = _SwallowErrorsPlugin2.default; | ||
exports.AddQueriesToSubscriptionsPlugin = _AddQueriesToSubscriptionsPlugin2.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "graphile-build", | ||
"version": "4.3.2-alpha.0", | ||
"version": "4.3.2-alpha.2", | ||
"description": "Build a GraphQL schema from plugins", | ||
@@ -61,3 +61,3 @@ "main": "node8plus/index.js", | ||
], | ||
"gitHead": "cd0259fa685bd205cc535dd226861441644277fe" | ||
"gitHead": "f4f2765fd82939b32b7f73d55416660411549168" | ||
} |
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
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
305840
64
2191