Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unexpected

Package Overview
Dependencies
Maintainers
3
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 10.26.0 to 10.26.1

6

lib/Unexpected.js

@@ -568,3 +568,3 @@ var createStandardErrorMessage = require('./createStandardErrorMessage');

if (pattern !== pattern.trim()) {
throw new Error("Assertion patterns can't start or end with whitespace");
throw new Error("Assertion patterns can't start or end with whitespace:\n\n " + JSON.stringify(pattern));
}

@@ -605,3 +605,3 @@ }

if (handler.length - 2 > maxNumberOfArgs) {
throw new Error('The provided assertion handler takes ' + (handler.length - 2) + ' parameters, but the type signature specifies a maximum of ' + maxNumberOfArgs);
throw new Error('The provided assertion handler takes ' + (handler.length - 2) + ' parameters, but the type signature specifies a maximum of ' + maxNumberOfArgs + ':\n\n ' + JSON.stringify(patterns));
}

@@ -691,3 +691,3 @@

extendedType.inspect = function (obj, depth, output, inspect) {
if (arguments.length < 2) {
if (arguments.length < 2 || (!output || !output.isMagicPen)) {
return 'type: ' + type.name;

@@ -694,0 +694,0 @@ } else {

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

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

Sorry, the diff of this file is not supported yet

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