New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

is-error

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-error - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

3

index.js

@@ -10,2 +10,5 @@ 'use strict';

function isError(err) {
if (typeof err !== 'object') {
return false;
}
while (err) {

@@ -12,0 +15,0 @@ if (objectToString.call(err) === ERROR_TYPE) {

2

package.json
{
"name": "is-error",
"version": "2.1.0",
"version": "2.2.0",
"description": "Detect whether a value is an error",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -23,2 +23,6 @@ 'use strict';

assert.equal(isError({message: 'hi'}), false);
assert.equal(isError(true), false);
assert.equal(isError(false), false);
assert.equal(isError(1), false);
assert.equal(isError('string'), false);
assert.end();

@@ -25,0 +29,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