Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-form

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-form - npm Package Compare versions

Comparing version 4.5.0 to 4.5.1

2

package.json
{
"name": "vue-form",
"version": "4.5.0",
"version": "4.5.1",
"description": "Form validation for Vue.js",

@@ -5,0 +5,0 @@ "main": "dist/vue-form.js",

@@ -229,6 +229,12 @@ # vue-form

methods: {
customValidator: function (value) {
// return true to set input as $valid, false to set as $invalid
return value === 'custom';
}
customValidator: function (value) {
// return true to set input as $valid, false to set as $invalid
return value === 'custom';
}
},
// local custom validator can also be a data or computed property
computed: {
isEmailAvailable function () {
// return true to set input as $valid, false to set as $invalid
}
}

@@ -239,3 +245,3 @@ // ...

```html
<validate :custom="{customValidator: customValidator}">
<validate :custom="{customValidator: customValidator, 'email-available': isEmailAvailable}">
<input v-model="something" name="something" />

@@ -242,0 +248,0 @@ <!--

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc