Comparing version 2.0.1 to 2.0.2
@@ -18,2 +18,3 @@ "use strict"; | ||
} | ||
plugin.installed = true; | ||
@@ -20,0 +21,0 @@ if (!axios) { |
@@ -1,1 +0,1 @@ | ||
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};!function(){function o(e,t){if(!o.installed){if(!t)return void console.error("You have to install axios");e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})}}"object"==("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=o:"function"==typeof define&&define.amd?define([],function(){return o}):window.Vue&&window.axios&&Vue.use(o,window.axios)}(); | ||
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};!function(){function o(e,t){if(!o.installed){if(o.installed=!0,!t)return void console.error("You have to install axios");e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})}}"object"==("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=o:"function"==typeof define&&define.amd?define([],function(){return o}):window.Vue&&window.axios&&Vue.use(o,window.axios)}(); |
{ | ||
"name": "vue-axios", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A small wrapper for integrating axios to Vuejs", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-axios.min.js", |
@@ -34,2 +34,6 @@ # vue-axios | ||
}) | ||
this.$http.get(api).then((response) => { | ||
console.log(response.data) | ||
}) | ||
``` |
@@ -12,4 +12,5 @@ (function () { | ||
if (plugin.installed) { | ||
return; | ||
return | ||
} | ||
plugin.installed = true | ||
@@ -27,3 +28,3 @@ if (!axios) { | ||
get() { | ||
return axios; | ||
return axios | ||
} | ||
@@ -34,17 +35,17 @@ }, | ||
get() { | ||
return axios; | ||
return axios | ||
} | ||
} | ||
}); | ||
}) | ||
} | ||
if (typeof exports == "object") { | ||
module.exports = plugin; | ||
module.exports = plugin | ||
} else if (typeof define == "function" && define.amd) { | ||
define([], function(){ return plugin }); | ||
define([], function(){ return plugin }) | ||
} else if (window.Vue && window.axios) { | ||
Vue.use(plugin, window.axios); | ||
Vue.use(plugin, window.axios) | ||
} | ||
})(); |
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
5163
77
39