New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@twoavy/vue-utils

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twoavy/vue-utils

Vue utils for easy interaction with the twoavy-api

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

@twoavy/vue-utils

Installation

yarn add @twoavy/vue-utils

Usage

import TwoavyUtils from '@twoavy/utils'

in main.js

Vue.use(TwoavyUtils, {
    url: 'http://twoavy.test',
    client_id: 13,
    client_secret: 'b2834basdk8asd278dahb49urf39da',
    logging: true,
    device_id: 5,
    showErrorsOnScreen: true, // directly handle errors and show them on-screen
    ready: initVue, // callback when axios is ready to use
    retries: 3 // number of axios retries before failing
})

// init Vue AFTER axios is set up
function initVue() {
    new Vue({
        store,
        render: h => h(App)
    }).$mount('#app')

in components

// make api calls
this.$axios.get('/dostuff')

// log events
this.$twoavy.log('log_type', 'log_message')

FAQs

Package last updated on 18 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts