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

is

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

2

index.js

@@ -425,3 +425,3 @@

is.decimal = function (value) {
return is.number(value) && !isActualNaN(value) && value % 1 !== 0;
return is.number(value) && !isActualNaN(value) && !is.infinite(value) && value % 1 !== 0;
};

@@ -428,0 +428,0 @@

@@ -26,3 +26,3 @@ {

"main": "index.js",
"version": "0.2.6",
"version": "0.2.7",
"scripts": {

@@ -32,4 +32,4 @@ "test": "node test/index.js"

"devDependencies": {
"tape": "~1.0.1",
"foreach": "~2.0.3"
"tape": "~2.3.2",
"foreach": "~2.0.4"
},

@@ -36,0 +36,0 @@ "testling": {

@@ -244,2 +244,3 @@ var test = require('tape');

t.notOk(is.decimal(NaN), 'NaN is not decimal');
t.notOk(is.decimal(Infinity), 'Infinity is not decimal');
t.end();

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