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

4

lib/assertions.js

@@ -40,3 +40,3 @@ var utils = require('./utils');

expect.addAssertion('[not] to be undefined', function (expect, subject) {
expect(typeof subject, '[not] to be', 'undefined');
expect(typeof subject === 'undefined', '[not] to be truthy');
});

@@ -48,3 +48,3 @@

expect.addAssertion('number', '[not] to be NaN', function (expect, subject) {
expect.addAssertion(['number', 'NaN'], '[not] to be NaN', function (expect, subject) {
expect(isNaN(subject), '[not] to be truthy');

@@ -51,0 +51,0 @@ });

@@ -853,2 +853,9 @@ var utils = require('./utils');

expect.addType({
name: 'NaN',
identify: function (value) {
return typeof value === 'number' && isNaN(value);
}
});
expect.addType({
name: 'boolean',

@@ -855,0 +862,0 @@ identify: function (value) {

@@ -480,2 +480,3 @@ /*global setTimeout*/

delete newError.createDiff;
delete newError.label;
return newError;

@@ -482,0 +483,0 @@ case 'default':

{
"name": "unexpected",
"version": "5.3.0",
"version": "5.4.0",
"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