{"library":"vue-axios-interceptors","type":"library","category":null,"description":"A lightweight Vue.js plugin that registers global Axios response interceptors and exposes a global event bus (window.intercepted) to catch and handle AJAX errors uniformly across the application. Version 0.3.2 (no recent releases) is designed for Vue 2 and requires Axios and Vue to be available on the window object. It emits events by status code category (e.g., 'response:4xx', 'response:500') and specific codes (e.g., 'response:404'), with special parsing for Laravel 5.5+ 422 validation errors (body becomes a key-value object). Differentiates from manual interceptors by providing a ready-made event system; minimal setup but limited to Vue 2 and global window dependencies.","language":"javascript","status":"active","version":"0.3.2","tags":["javascript","vue","axios","interceptors","laravel","validation errors","ajax errors","error handling"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install vue-axios-interceptors","imports":["window.Vue = require('vue'); require('vue-axios-interceptors');","window.intercepted.$on('response', callback)","window.intercepted.$on('response:422', callback)"]},{"cmd":"yarn add vue-axios-interceptors","imports":[]},{"cmd":"pnpm add vue-axios-interceptors","imports":[]}],"homepage":"https://github.com/mattias-persson/vue-axios-interceptors#readme","github":"https://github.com/mattias-persson/vue-axios-interceptors","docs":null,"changelog":null,"pypi":null,"npm":"vue-axios-interceptors","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}