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

enable

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enable - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

5

History.md
1.3.1 / 2014-11-10
==================
* Number method checks.
1.3.0 / 2014-11-10

@@ -3,0 +8,0 @@ ==================

@@ -23,2 +23,6 @@ /**!

function isNumber(attr) {
return typeof attr === 'number';
}
/**

@@ -75,1 +79,11 @@ * Module dependencies.

};
exports.Number = {
isFinite: isFunction(Number.isFinite),
isInteger: isFunction(Number.isInteger),
isSafeInteger: isFunction(Number.isSafeInteger),
isNaN: isFunction(Number.isNaN),
EPSILON: isNumber(Number.EPSILON),
MIN_SAFE_INTEGER: isNumber(Number.MIN_SAFE_INTEGER),
MAX_SAFE_INTEGER: isNumber(Number.MAX_SAFE_INTEGER)
};

2

package.json
{
"name": "enable",
"version": "1.3.0",
"version": "1.3.1",
"description": "Detect es6 features enable or not.",

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

@@ -101,2 +101,30 @@ enable

if (Number.isFinite) {
console.log('supports `Number.isFinite`');
}
if (Number.isInteger) {
console.log('supports `Number.isInteger`');
}
if (Number.isSafeInteger) {
console.log('supports `Number.isSafeInteger`');
}
if (Number.isNaN) {
console.log('supports `Number.isNaN`');
}
if (Number.EPSILON) {
console.log('supports `Number.EPSILON`');
}
if (Number.MIN_SAFE_INTEGER) {
console.log('supports `Number.MIN_SAFE_INTEGER`');
}
if (Number.MAX_SAFE_INTEGER) {
console.log('supports `Number.MAX_SAFE_INTEGER`');
}
```

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