vue-async-methods
Advanced tools
Comparing version 0.6.1 to 0.7.0
10
index.js
@@ -10,3 +10,3 @@ 'use strict' | ||
module.exports = { | ||
install(Vue, options) { | ||
install: function(Vue, options) { | ||
options = options || {} | ||
@@ -126,3 +126,3 @@ options.getComputedName = options.getComputedName || function (vm, funcName) { | ||
}, | ||
data() { | ||
data: function() { | ||
return { | ||
@@ -132,3 +132,3 @@ error: null | ||
}, | ||
created() { | ||
created: function() { | ||
this.method.handleErrorInView = true | ||
@@ -144,3 +144,3 @@ | ||
methods: { | ||
catchError() { | ||
catchError: function() { | ||
this.error = null | ||
@@ -156,3 +156,3 @@ | ||
Vue.mixin({ | ||
beforeCreate() { | ||
beforeCreate: function() { | ||
for (const key in this.$options.asyncMethods || {}) { | ||
@@ -159,0 +159,0 @@ Vue.util.defineReactive(this, key, { |
{ | ||
"name": "vue-async-methods", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Vue async methods support", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
10109