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

vue-formular

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-formular - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

32

lib/methods/submit.js

@@ -7,24 +7,26 @@ var getSubmitter = require('./get-submitter');

if (this.errors.length>0)
return handleErrors(this);
setTimeout(function() {
if (this.sending || (this.options.sendOnlyDirtyFields && this.pristine)) {
return false;
}
if (this.errors.length>0)
return handleErrors(this);
var beforeSubmit = this.options.beforeSubmit(this);
if (this.sending || (this.options.sendOnlyDirtyFields && this.pristine)) {
return false;
}
if (typeof beforeSubmit=='boolean' && beforeSubmit)
return getSubmitter(this).submit(e);
var beforeSubmit = this.options.beforeSubmit(this);
var resolveMethod = beforeSubmit.done?'done':'then';
var rejectMethod = beforeSubmit.catch?'catch':'fail';
if (typeof beforeSubmit=='boolean' && beforeSubmit)
return getSubmitter(this).submit(e);
beforeSubmit[resolveMethod](function() {
return getSubmitter(this).submit(e);
}.bind(this))
[rejectMethod](function() {
var resolveMethod = beforeSubmit.done?'done':'then';
var rejectMethod = beforeSubmit.catch?'catch':'fail';
});
beforeSubmit[resolveMethod](function() {
return getSubmitter(this).submit(e);
}.bind(this))
[rejectMethod](function() {
});
}.bind(this),0);
}

@@ -31,0 +33,0 @@

{
"name": "vue-formular",
"description": "a comprehensive vue.js form component",
"version": "1.1.3",
"version": "1.1.4",
"keywords": [

@@ -6,0 +6,0 @@ "vue",

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