Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vue-offline
Advanced tools
This plugins notifies your application when online/offline status changes and allows to conditionally display components depending on the network status.
npm install vue-offline --save
import Vue from 'vue'
import VueOffline from 'vue-offline'
Vue.use(VueOffline)
v-online
directive - shows component only when onlinev-offline
directive - shows component only when offlineonline
event - available in every component, emitted when user changes from offline to onlineoffline
event - available in every component, emitted when user changes from online to offline<template>
<div id="app">
<div v-online>This part is visible only when user is online</div>
<div v-offline>This part is visible only if user is offline</div>
<div> {{ onlineState }} </div>
</div>
</template>
<script>
export default {
data () {
return {
onlineState: navigator.onLine
}
},
created () {
this.$on('online', function () {
this.onlineState = "I'm online now!"
})
this.$on('offline', function () {
this.onlineState = "I'm offline now!"
})
}
}
</script>
FAQs
Offline states and storage for Vue.js apps and Progressive Web Apps
The npm package vue-offline receives a total of 1,503 weekly downloads. As such, vue-offline popularity was classified as popular.
We found that vue-offline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.