Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "vue-axios", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "A small wrapper for integrating axios to Vuejs", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-axios.min.js", |
@@ -20,6 +20,6 @@ # vue-axios | ||
### Script: | ||
Just add 3 script in order: `vue`, `axios` and `vue-axios` to your `document`. | ||
Just add 3 scripts in order: `vue`, `axios` and `vue-axios` to your `document`. | ||
## Usage: | ||
This wrapper bind `axios` to var `Vue` or `this` if you're using single file component. | ||
This wrapper bind `axios` to `Vue` or `this` if you're using single file component. | ||
@@ -26,0 +26,0 @@ You can `axios` like this: |
@@ -0,1 +1,3 @@ | ||
(function () { | ||
/** | ||
@@ -88,6 +90,10 @@ * Copied from vue-resource | ||
if (typeof window !== 'undefined' && window.Vue && window.axios) { | ||
window.Vue.use(plugin, window.axios); | ||
if (typeof exports == "object") { | ||
module.exports = plugin; | ||
} else if (typeof define == "function" && define.amd) { | ||
define([], function(){ return plugin }); | ||
} else if (window.Vue && window.axios) { | ||
Vue.use(plugin, window.axios); | ||
} | ||
export default plugin; | ||
})(); |
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
31196
160