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.
结合公司现有项目,对一些常用功能进行封装。
导出原始的 axios,以便特殊时刻使用。
vuex 中用于双向同步 sessionStorage 和 vuex 中的数据,便于统一管理维护,使用方法:
// store.js
import Vue from 'vue'
import Vuex from 'vuex'
import { storePlugin } from 'vp-tools'
export default new Vuex.Store({
modules: {},
getters: {},
plugins: [storePlugin],
strict: process.env.NODE_ENV === 'development'
})
暴露出的 $session方法,直接将以前写的$session方法更换成这个即可。
// globalPlugin.js
import { $session } from 'vp-tools'
function install (Vue, options) {
Vue.prototype.$session = $session
}
export default install
以后全局使用的插件,目前仅设置了$session挂在到vue实例上。
以后插码用的指令。
FAQs
custom npm init
The npm package vp-tools receives a total of 1 weekly downloads. As such, vp-tools popularity was classified as not popular.
We found that vp-tools demonstrated a healthy version release cadence and project activity because the last version was released less than 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.