You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-use-async

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-use-async - npm Package Compare versions

Comparing version

to
0.2.5

10

package.json
{
"name": "vue-use-async",
"version": "0.2.4",
"version": "0.2.5",
"description": "Xhr and async helpers",

@@ -45,3 +45,3 @@ "repository": {

"babel-eslint": "^10.1.0",
"babel-jest": "^25.3.0",
"babel-jest": "^25.4.0",
"babel-loader": "^8.1.0",

@@ -59,6 +59,6 @@ "babel-plugin-module-resolver": "^4.0.0",

"husky": "^4.2.5",
"jest": "^25.3.0",
"lint-staged": "^10.1.3",
"jest": "^25.4.0",
"lint-staged": "^10.1.7",
"vue": "^2.6.11",
"webpack": "^4.42.1",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"

@@ -65,0 +65,0 @@ },

@@ -50,2 +50,3 @@ # Xhr helpers to use in client (VueJS) projects

const func = () => Promise.resolve('ok');
const { data } = useAsync(func, [params, condition]);

@@ -57,3 +58,3 @@

- useSpinner, useFull to bind the `isPending` to a spinner icon. A minimum duration
- useSpinner, useful to bind the `isPending` to a spinner icon. A minimum duration
```javascript

@@ -63,4 +64,4 @@ import { useAsync, useSpinner } from 'vue-use-async';

export default function () {
const func = () => Promise.resolve('ok');
const { data, isPending } = useAsync(func, [params, condition]);

@@ -67,0 +68,0 @@