
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@vue-use-form/v-form
Advanced tools
Directive for vue-use-form
npm i @vue-use-form/v-form -D
// vite.config.ts
import VForm from '@vue-use-form/v-form'
export default defineConfig({
plugins: [
VForm({ /* options */ }),
],
})
// rollup.config.js
import VForm from '@vue-use-form/v-form'
export default {
plugins: [
VForm({}),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('@vue-use-form/v-form/webpack')({ /* options */ })
]
}
// nuxt.config.js
export default {
buildModules: [
['@vue-use-form/v-form/nuxt', { /* options */ }],
],
}
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('@vue-use-form/v-form/webpack')({ /* options */ }),
],
},
}
<script setup lang="ts">
import {useForm} from 'vue-use-form'
const {
register,
formState: {errors},
} = useForm<{
email: string
age: number
}>({
mode: 'onChange',
})
</script>
<template>
<input v-form="register('email', {
required: true
})">
<input v-form="register('age', {
required: true,
})">
</template>
Will compiled to
<script setup lang="ts">
import {useForm} from 'vue-use-form'
const {
register,
formState: {errors},
} = useForm<{
email: string
age: number
}>({
mode: 'onChange',
})
const [emailField, emailRef] = register('email', {
required: true
})
const [ageField, ageRef] = register('age', {
required: true,
})
</script>
<template>
<input v-model="emailField" ref="emailRef">
<input v-model="ageField" ref="ageRef">
</template>
⚠️ please make sure use
v-form
in static, it can't do dynamic analysis.
<template v-for="field in ['age', 'email']">
<input v-form="register(field)" /> <!--⚠️⚠️⚠️ can't be analysed-->
</template>
<input v-form="register('email')" />
<input v-form="register('age')" /> <!--can be analysed-->
FAQs
unplugin plugin use for vue-use-form
The npm package @vue-use-form/v-form receives a total of 0 weekly downloads. As such, @vue-use-form/v-form popularity was classified as not popular.
We found that @vue-use-form/v-form 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.