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

nuxt-resource-module

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-resource-module - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

10

dist/templates/plugin.template.js

@@ -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();
});
};

2

package.json
{
"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",

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