🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-async-methods

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-async-methods - npm Package Compare versions

Comparing version

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 @@ }

2

package.json
{
"name": "vue-async-methods",
"version": "0.2.0",
"version": "0.3.0",
"description": "Vue async methods support",

@@ -5,0 +5,0 @@ "license": "MIT",