chore: v3.0.0-beta.17

This commit is contained in:
Guillaume Chau
2018-06-14 01:24:05 +02:00
parent e235c92e88
commit 1de5d5dcd4
4 changed files with 26 additions and 6 deletions
+12 -2
View File
@@ -822,7 +822,7 @@ var SmartQuery = function (_SmartApollo) {
args[_key] = arguments[_key];
}
return this.callHandlers.apply(this, [[this.options.watchLoading, this.vm.$apollo.watchLoading, this.vm.$apollo.provider.watchLoading]].concat(args));
return this.callHandlers.apply(this, [[this.options.watchLoading, this.vm.$apollo.watchLoading, this.vm.$apollo.provider.watchLoading]].concat(args, [this]));
}
}, {
key: 'applyLoadingModifier',
@@ -925,6 +925,16 @@ var SmartQuery = function (_SmartApollo) {
return (_observer4 = this.observer).stopPolling.apply(_observer4, arguments);
}
}
}, {
key: 'destroy',
value: function destroy() {
get(SmartQuery.prototype.__proto__ || Object.getPrototypeOf(SmartQuery.prototype), 'destroy', this).call(this);
if (this.loading) {
this.watchLoading(false, -1);
}
this.loading = false;
}
}, {
key: 'client',
get: function get$$1() {
@@ -2015,7 +2025,7 @@ function install(Vue, options) {
ApolloProvider.install = install;
// eslint-disable-next-line no-undef
ApolloProvider.version = "3.0.0-beta.16";
ApolloProvider.version = "3.0.0-beta.17";
// Apollo provider
var ApolloProvider$1 = ApolloProvider;
+1 -1
View File
File diff suppressed because one or more lines are too long
+12 -2
View File
@@ -828,7 +828,7 @@ var SmartQuery = function (_SmartApollo) {
args[_key] = arguments[_key];
}
return this.callHandlers.apply(this, [[this.options.watchLoading, this.vm.$apollo.watchLoading, this.vm.$apollo.provider.watchLoading]].concat(args));
return this.callHandlers.apply(this, [[this.options.watchLoading, this.vm.$apollo.watchLoading, this.vm.$apollo.provider.watchLoading]].concat(args, [this]));
}
}, {
key: 'applyLoadingModifier',
@@ -931,6 +931,16 @@ var SmartQuery = function (_SmartApollo) {
return (_observer4 = this.observer).stopPolling.apply(_observer4, arguments);
}
}
}, {
key: 'destroy',
value: function destroy() {
get(SmartQuery.prototype.__proto__ || Object.getPrototypeOf(SmartQuery.prototype), 'destroy', this).call(this);
if (this.loading) {
this.watchLoading(false, -1);
}
this.loading = false;
}
}, {
key: 'client',
get: function get$$1() {
@@ -2021,7 +2031,7 @@ function install(Vue, options) {
ApolloProvider.install = install;
// eslint-disable-next-line no-undef
ApolloProvider.version = "3.0.0-beta.16";
ApolloProvider.version = "3.0.0-beta.17";
// Apollo provider
var ApolloProvider$1 = ApolloProvider;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "vue-apollo",
"version": "3.0.0-beta.16",
"version": "3.0.0-beta.17",
"description": "Use Apollo and GraphQL with Vue.js",
"main": "dist/vue-apollo.umd.js",
"module": "dist/vue-apollo.esm.js",