Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-axios

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-axios - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

2

package.json
{
"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;
})();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc