fastest-validator
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -0,0 +0,0 @@ { |
@@ -5,3 +5,3 @@ "use strict"; | ||
if (schema.convert === true && typeof value !== "number") { | ||
value = parseFloat(value); | ||
value = Number(value); | ||
} | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "fastest-validator", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "balanced-match": { |
{ | ||
"name": "fastest-validator", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "The fastest JS validator library for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,10 +38,12 @@ "use strict"; | ||
expect(check(null, s)).toEqual(err); | ||
expect(check(undefined, s)).toEqual(err); | ||
expect(check("", s)).toEqual(err); | ||
expect(check([], s)).toEqual(err); | ||
expect(check({}, s)).toEqual(err); | ||
expect(check(false, s)).toEqual(err); | ||
expect(check(true, s)).toEqual(err); | ||
expect(check("25abc", s)).toEqual(err); | ||
expect(check(null, s)).toEqual(true); | ||
expect(check("", s)).toEqual(true); | ||
expect(check([], s)).toEqual(true); | ||
expect(check(false, s)).toEqual(true); | ||
expect(check(true, s)).toEqual(true); | ||
expect(check("100", s)).toEqual(true); | ||
@@ -48,0 +50,0 @@ expect(check("34.76", s)).toEqual(true); |
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
166378
1721