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.25.0 to 10.26.0

8

lib/Unexpected.js

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

var assertionHandlers = [];
var maxNumberOfArgs = 0;
patterns.forEach(function (pattern) {

@@ -588,3 +589,5 @@ var assertionDeclarations = that.parseAssertion(pattern);

});
maxNumberOfArgs = Math.max(maxNumberOfArgs, assertionDeclaration.args.reduce(function (previous, argDefinition) {
return previous + (argDefinition.maximum === null ? Infinity : argDefinition.maximum);
}, 0));
assertionHandlers.push({

@@ -602,2 +605,5 @@ handler: handler,

});
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);
}

@@ -604,0 +610,0 @@ assertionHandlers.forEach(function (handler) {

2

package.json
{
"name": "unexpected",
"version": "10.25.0",
"version": "10.26.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