Socket
Socket
Sign inDemoInstall

is

Package Overview
Dependencies
0
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 3.0.1

11

CHANGELOG.md

@@ -0,1 +1,12 @@

3.0.1 / 2015-02-22
==================
* Version bump to resolve npm bug with v3.0.0
3.0.0 / 2015-02-21
==================
* is.empty should return true for falsy values ([#13](https://github.com/enricomarino/is/issues/13), [#14](https://github.com/enricomarino/is/issues/14))
* All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`.
* Test on `iojs` `v1.2` and `v1.3`, `node` `v0.12`; speed up builds; allow failures on all but two latest minor versions.
* Update `jscs`
2.2.1 / 2015-02-06

@@ -2,0 +13,0 @@ ==================

3

index.js

@@ -91,3 +91,3 @@

return false;
return !value;
};

@@ -764,2 +764,1 @@

};
{
"name": "is",
"version": "2.2.1",
"version": "3.0.1",
"main": "index.js",

@@ -35,6 +35,6 @@ "scripts": {

"devDependencies": {
"tape": "~3.5.0",
"foreach": "~2.0.5",
"covert": "1.0.0",
"jscs": "~1.10.0"
"tape": "^3.5.0",
"foreach": "^2.0.5",
"covert": "^1.0.1",
"jscs": "^1.11.3"
},

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

@@ -53,6 +53,11 @@ var test = require('tape');

t.ok(is.empty({}), 'empty object is empty');
t.ok(is.empty(null), 'null is empty');
t.ok(is.empty(), 'undefined is empty');
t.ok(is.empty(undefined), 'undefined is empty');
t.ok(is.empty(false), 'false is empty');
t.ok(is.empty(0), '0 is empty');
t.ok(is.empty(NaN), 'nan is empty');
(function () { t.ok(is.empty(arguments), 'empty arguments is empty'); }());
t.notOk(is.empty({ a: 1 }), 'nonempty object is not empty');
t.notOk(is.empty(true), 'true is not empty');
t.notOk(is.empty(false), 'false is not empty');
t.notOk(is.empty(/a/g), 'regex is not empty');

@@ -92,3 +97,3 @@ t.notOk(is.empty(new Date()), 'date is not empty');

dt.end();
}, 1);
}, 10);
});

@@ -620,2 +625,1 @@

});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc