nuxt-resource-module
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -5,3 +5,3 @@ import Vue from 'vue'; | ||
export default ({ $axios }, inject) => { | ||
export default ({ app, $axios }, inject) => { | ||
if (typeof $axios === 'undefined') { | ||
@@ -15,4 +15,12 @@ throw new Error('Please install `@nuxt/aixos`.'); | ||
// add plugin | ||
Vue.use(ResroucePlugin); | ||
inject('_resource', resource); | ||
// clear delayed request | ||
const { router } = app; | ||
router.beforeEach((to, from, next) => { | ||
resources.clearDelayedRequest(); | ||
next(); | ||
}); | ||
}; |
{ | ||
"name": "nuxt-resource-module", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "@nuxtjs/axios based API request wrapper for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/module.js", |
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
20986
336