mastercheck
Advanced tools
Comparing version 0.1.0 to 0.1.2
@@ -41,3 +41,3 @@ /** | ||
this.check = function(data) { | ||
if (!option.required && typeof data === 'undefined') { | ||
if (!option.required && (data === null || data === undefined)) { | ||
return true; | ||
@@ -72,3 +72,3 @@ } | ||
this.check = function(data) { | ||
if (!option.required && typeof data === 'undefined') { | ||
if (!option.required && (data === null || data === undefined)) { | ||
return true; | ||
@@ -106,3 +106,3 @@ } | ||
this.check = function(data) { | ||
if (!option.required && typeof data === 'undefined') { | ||
if (!option.required && (data === null || data === undefined)) { | ||
return true; | ||
@@ -126,3 +126,3 @@ } | ||
this.check = function(data) { | ||
if (!option.required && typeof data === 'undefined') { | ||
if (!option.required && ( data === null || data === undefined)) { | ||
return true; | ||
@@ -129,0 +129,0 @@ } |
{ | ||
"name": "mastercheck", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"description": "mastercheck", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ MasterCheck | ||
``` | ||
npm install mastercheck.git | ||
npm install mastercheck | ||
``` | ||
@@ -11,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29107