New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.7.0 to 10.8.0

2

lib/makePromise.js

@@ -95,3 +95,3 @@ /*global Promise:true*/

var originalFn = Promise[staticMethodName];
if (!originalFn && staticMethodName === 'settle') {
if (staticMethodName === 'settle') {
originalFn = function (promises) {

@@ -98,0 +98,0 @@ return Promise.all(promises.map(function (promise) {

@@ -214,2 +214,15 @@ var createStandardErrorMessage = require('./createStandardErrorMessage');

});
}) && !groupEvaluations.some(function (groupEvaluation) {
// If one of the or groups has a bubbleThrough error as the
// first failing assertion, fail the whole expect.it:
for (var i = 0 ; i < groupEvaluation.length ; i += 1) {
var evaluation = groupEvaluation[i];
if (evaluation.promise.isRejected()) {
if (evaluation.promise.reason().errorMode === 'bubbleThrough') {
return true;
} else {
break;
}
}
}
});

@@ -915,3 +928,2 @@

message: function (output) {
output.error("Unknown assertion '").jsString(testDescriptionString)

@@ -918,0 +930,0 @@ .error("', did you mean: '").jsString(bestMatch.assertion).error("'");

{
"name": "unexpected",
"version": "10.7.0",
"version": "10.8.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