Skip to content

Commit 60b8cd0

Browse files
committed
update package.json
1 parent 0d38d3d commit 60b8cd0

File tree

10 files changed

+2910
-1280
lines changed

10 files changed

+2910
-1280
lines changed

Gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ gulp.task('default', () => {
88
.pipe(babel({
99
presets: ['es2015']
1010
}))
11-
.pipe(rename('vue-axios.es5.js'))
11+
.pipe(rename('vve-vue-axios.es5.js'))
1212
.pipe(gulp.dest('dist'))
1313
.pipe(uglify())
14-
.pipe(rename('vue-axios.min.js'))
14+
.pipe(rename('vve-vue-axios.min.js'))
1515
.pipe(gulp.dest('dist'));
1616
});

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Nguyen Quoc Anh
3+
Copyright (c) 2019 nianqin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# vue-axios
1+
# vve-vue-axios
22
A small wrapper for integrating axios to Vuejs
33

44
## How to install:
55
### CommonJS:
66
```bash
7-
npm install --save axios vue-axios
7+
npm install --save axios vve-vue-axios
88
```
99

1010
And in your entry file:
1111
```js
1212
import Vue from 'vue'
1313
import axios from 'axios'
14-
import VueAxios from 'vue-axios'
14+
import VueAxios from 'vve-vue-axios'
1515

1616
Vue.use(VueAxios, axios)
1717
```
1818

1919
### Script:
20-
Just add 3 scripts in order: `vue`, `axios` and `vue-axios` to your `document`.
20+
Just add 3 scripts in order: `vue`, `axios` and `vve-vue-axios` to your `document`.
2121

2222
## Usage:
2323
This wrapper bind `axios` to `Vue` or `this` if you're using single file component.

dist/vue-axios.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/vue-axios.es5.js renamed to dist/vve-vue-axios.es5.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3232
}
3333
},
3434

35+
$axios: {
36+
get: function get() {
37+
return axios;
38+
}
39+
},
40+
3541
$http: {
3642
get: function get() {
3743
return axios;

dist/vve-vue-axios.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ declare module "vue/types/vue" {
55

66
interface Vue {
77
axios: AxiosInstance;
8+
$axios: AxiosInstance;
89
$http: AxiosInstance;
910
}
1011

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy