vue-async-methods
Advanced tools
Comparing version 0.2.0 to 0.3.0
16
index.js
@@ -19,2 +19,6 @@ 'use strict' | ||
function isFunction(func) { | ||
return typeof func === 'function' | ||
} | ||
function wrapMethod(func, vm, funcName) { | ||
@@ -51,3 +55,7 @@ function wrapped() { | ||
throw err | ||
if (isFunction(options.onError)) { | ||
options.onError(err) | ||
} else { | ||
throw err | ||
} | ||
}) | ||
@@ -71,3 +79,7 @@ } else { | ||
reject(err) | ||
if (isFunction(options.onError)) { | ||
options.onError(err) | ||
} else { | ||
reject(err) | ||
} | ||
}) | ||
@@ -74,0 +86,0 @@ } |
{ | ||
"name": "vue-async-methods", | ||
"version": "0.2.0", | ||
"version": "0.3.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
6631
94