Comparing version 2.1.4 to 2.1.5
import Vue, {PluginFunction, PluginObject} from "vue"; | ||
import {AxiosInstance} from "axios"; | ||
import { AxiosStatic } from "axios"; | ||
@@ -7,8 +7,8 @@ declare module "vue/types/vue" { | ||
interface Vue { | ||
axios: AxiosInstance; | ||
$http: AxiosInstance; | ||
axios: AxiosStatic; | ||
$http: AxiosStatic; | ||
} | ||
interface VueConstructor { | ||
axios: AxiosInstance; | ||
axios: AxiosStatic; | ||
} | ||
@@ -18,5 +18,5 @@ } | ||
declare class VueAxios { | ||
static install: PluginFunction<AxiosInstance>; | ||
static install: PluginFunction<AxiosStatic>; | ||
} | ||
export default VueAxios; |
{ | ||
"name": "vue-axios", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "A small wrapper for integrating axios to Vuejs", | ||
@@ -32,10 +32,10 @@ "main": "dist/vue-axios.min.js", | ||
"devDependencies": { | ||
"axios": "^0.17.1", | ||
"babel-core": "^6.18.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"axios": "^0.19.0", | ||
"babel-core": "^6.26.3", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-rename": "^1.2.2", | ||
"babel-preset-es2015": "^6.24.1", | ||
"gulp-rename": "^1.4.0", | ||
"gulp-uglifyjs": "^0.6.2", | ||
"vue": "^2.5.13" | ||
"vue": "^2.6.10" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
@@ -25,3 +25,3 @@ # vue-axios | ||
You can `axios` like this: | ||
You can use `axios` like this: | ||
```js | ||
@@ -40,1 +40,3 @@ Vue.axios.get(api).then((response) => { | ||
``` | ||
Please kindly check full documention of [axios](https://github.com/axios/axios) too |
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
5734
41