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.50 to 0.0.51

8

fields.js

@@ -104,5 +104,5 @@ var widgets = require('./widgets'),

{
if(this.value == '')
if(this.value === '')
this.value = null;
if((this.value == null || this.value == []) && this.required)
if((this.value === null || this.value === []) && this.required)
this.errors.push('this field is required');

@@ -221,3 +221,3 @@ for(var i=0; i<this.validators; i++)

// this.value = null || this['default'];
if(this.value == '')
if(this.value === '')
this.value = null;

@@ -274,3 +274,3 @@ this._super(req,callback);

{
if(this.value === null && this.value == '' && !this.required)
if(this.value === null && this.value === '' && !this.required)
this.value = null;

@@ -277,0 +277,0 @@ else

{
"name": "j-forms",
"description": "jewish forms creation from fields or from mongoose models",
"version": "0.0.50",
"version": "0.0.51",
"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