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

2valid

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2valid - npm Package Compare versions

Comparing version 2.5.3 to 2.5.4

8

CHANGELOG.md
# 2valid changelog
## [2.5.4](http://github.com/ivanoff/2valid/tree/2.5.4) (2017-08-12)
[Full Changelog](http://github.com/ivanoff/2valid/compare/2.5.1...2.5.4)
**What Was Done:**
- update to remove cannot read property of undefined error
## [2.5.1](http://github.com/ivanoff/2valid/tree/2.5.1) (2017-06-24)

@@ -4,0 +12,0 @@ [Full Changelog](http://github.com/ivanoff/2valid/compare/2.4.1...2.5.1)

2

index.js

@@ -125,3 +125,3 @@ /*!

var fieldName = parents + '.' + key;
if (!modelObject[key]) {
if (!modelObject || !modelObject[key]) {
if (!errors.notRequired) errors.notRequired = [];

@@ -128,0 +128,0 @@ errors.notRequired.push(fieldName);

{
"name": "2valid",
"version": "2.5.3",
"version": "2.5.4",
"description": "JavaScript simple data validator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,3 +15,3 @@

v2.5.3
v2.5.4

@@ -18,0 +18,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