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

fastest-validator

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastest-validator - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

0

.vscode/launch.json

@@ -0,0 +0,0 @@ {

2

lib/rules/number.js

@@ -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);

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