Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@sensorskit/vue-on-modify
Advanced tools
通用的「是否修改」监听逻辑:输入框失焦之后,字符相对输入框上次聚焦时发生变化
示例:
- 输入框聚焦,输入字符后失焦,算修改
- 输入框聚焦,输入字符后又把刚输入的字符删掉,再失焦,不算修改
yarn add @sensorskit/vue-on-modify
在 Vue.js 项目的入口处引入:
import VueOnModify from '@sensorskit/vue-on-modify'
Vue.use(VueOnModify)
// 如果需要自定义选项
Vue.use(VueOnModify, {
directive: 'your-custom-directive-name'
})
在需要绑定修改逻辑的地方引入自定义指令:
<input type="text" v-on-modify="onModify">
<!-- 如果自定义了directive name -->
<input type="text" v-your-custom-name="onModify">
FAQs
vue custom directive of modify binding
We found that @sensorskit/vue-on-modify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.