New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

j-forms

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j-forms - npm Package Compare versions

Comparing version 0.0.58 to 0.0.59

2

fields.js

@@ -108,3 +108,3 @@ var widgets = require('./widgets'),

this.errors.push('this field is required');
for(var i=0; i<this.validators; i++)
for(var i=0; i<this.validators.length; i++)
{

@@ -111,0 +111,0 @@ var result = this.validators[i](this.value);

@@ -131,4 +131,9 @@ var Class = require('sji')

this.handle_error = options.error;
},
handle: function(options) {
this.handle_empty = options.empty || this.handle_empty;
this.handle_success = options.success || this.handle_success;
this.handle_error = options.error || this.handle_error;
var self = this;
if(request.method.toUpperCase() == 'GET' && this.handle_empty)
if(self.request.method.toUpperCase() == 'GET' && this.handle_empty)
{

@@ -140,3 +145,3 @@ self.render_ready(function(err)

}
if(request.method.toUpperCase() == 'POST' && this.handle_success && this.handle_error)
if(self.request.method.toUpperCase() == 'POST' && this.handle_success && this.handle_error)
{

@@ -179,3 +184,3 @@ function on_error(error)

},
render_head : function(res)
render_head : function()
{

@@ -349,3 +354,3 @@ var self = this;

render_fields(Object.keys(self.fields));
if(_.indexOf(self.exclude,'id') == -1)
if(_.indexOf(self.exclude,'id') == -1 && self.instance)
res.write('<input type="hidden" id="document_id" name="_id" value="' + (self.instance.isNew ? '' : self.instance.id) + '" />');

@@ -582,3 +587,7 @@ },

self.errors = err.errors;
callback({message:'failed'});
else {
console.error(err);
console.trace();
}
callback({message:'failed'});
}

@@ -585,0 +594,0 @@ else

{
"name": "j-forms",
"description": "jewish forms creation from fields or from mongoose models",
"version": "0.0.58",
"version": "0.0.59",
"author": "Ishai Jaffe <ishai@empeeric.com>",

@@ -6,0 +6,0 @@ "dependencies": {

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