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.3.0 to 1.0.0

3

LICENSE.md
(The MIT License)
Copyright (c) 2013 Enrico Marino
Copyright (c) 2013 Enrico Marino
Copyright (c) 2014 Enrico Marino and Jordan Harband

@@ -5,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining

{
"name": "is",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "node test/index.js",
"coverage": "covert test/index.js",
"coverage-quiet": "covert test/index.js --quiet"
},
"author": {

@@ -9,2 +16,6 @@ "name": "Enrico Marino",

"homepage": "https://github.com/enricomarino/is",
"repository": {
"type": "git",
"url": "git://github.com/enricomarino/is.git"
},
"keywords": [

@@ -22,17 +33,6 @@ "util",

"dependencies": {},
"repository": {
"type": "git",
"url": "git://github.com/enricomarino/is.git"
},
"main": "index.js",
"version": "0.3.0",
"scripts": {
"test": "node test/index.js",
"coverage": "covert test/index.js",
"coverage-quiet": "covert test/index.js --quiet"
},
"devDependencies": {
"tape": "~2.5.0",
"tape": "~2.14.0",
"foreach": "~2.0.4",
"covert": "~0.3.1"
"covert": "~0.4.0"
},

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

@@ -108,3 +108,4 @@ # is

Copyright (c) 2013 Enrico Marino
Copyright (c) 2013 Enrico Marino
Copyright (c) 2014 Enrico Marino and Jordan Harband

@@ -111,0 +112,0 @@ Permission is hereby granted, free of charge, to any person obtaining

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

var forEach = require('foreach');
var toStr = Object.prototype.toString;

@@ -53,2 +54,7 @@ test('is.type', function (t) {

(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');
t.notOk(is.empty(new Date()), 'date is not empty');
t.end();

@@ -71,2 +77,3 @@ });

at.notOk(is.equal([1, 2], [2, 3]), 'inequal arrays are not equal');
at.notOk(is.equal([1, 2, 3], [2, 3]), 'inequal length arrays are not equal');

@@ -273,3 +280,5 @@ var arr = [1, 2];

t.notOk(is.error({}), 'object is not error');
t.notOk(is.error({ toString: function () { return '[object Error]'; } }), 'object with error\'s toString is not error');
var objWithErrorToString = { toString: function () { return '[object Error]'; } };
t.equal(String(objWithErrorToString), toStr.call(new Error()), 'obj has Error\'s toString');
t.notOk(is.error(objWithErrorToString), 'object with Error\'s toString is not error');
t.end();

@@ -276,0 +285,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