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

unexpected

Package Overview
Dependencies
Maintainers
2
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 5.1.4 to 5.1.5

coverage/coverage.json

2

lib/Unexpected.js

@@ -244,3 +244,3 @@ /*global setTimeout*/

} else {
var message = arg || "explicit failure";
var message = arg ? String(arg) : 'explicit failure';
var args = Array.prototype.slice.call(arguments, 1);

@@ -247,0 +247,0 @@ var tokens = message.split(placeholderSplitRegexp);

@@ -64,3 +64,3 @@ var stringDiff = require('diff');

isError: function (err) {
return typeof err === 'object' && Object.prototype.toString.call(err) === '[object Error]';
return typeof err === 'object' && (Object.prototype.toString.call(err) === '[object Error]' || err instanceof Error);
},

@@ -86,3 +86,3 @@

});
// The 'message' property of Error instances is enumerable for some reason, but we want
// The 'message' property of Error instances is not enumerable for some reason, but we want
// to include it in the set when comparing:

@@ -89,0 +89,0 @@ if (Object.prototype.toString.call(object) === '[object Error]') {

{
"name": "unexpected",
"version": "5.1.4",
"version": "5.1.5",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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