Socket
Socket
Sign inDemoInstall

chai-as-promised

Package Overview
Dependencies
160
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.1.0

9

lib/chai-as-promised.js

@@ -8,2 +8,3 @@ "use strict";

const assert = chai.assert;
const proxify = utils.proxify;

@@ -40,2 +41,6 @@ // If we are using a version of Chai that has checkError on it,

function proxifyIfSupported(assertion) {
return proxify === undefined ? assertion : proxify(assertion);
}
function method(name, asserter) {

@@ -51,3 +56,3 @@ utils.addMethod(Assertion.prototype, name, function () {

assertIsAboutPromise(this);
return asserter.apply(this, arguments);
return proxifyIfSupported(asserter.apply(this, arguments));
});

@@ -278,3 +283,3 @@ }

Assertion.overwriteProperty(getterName, originalGetter => function () {
return doAsserterAsyncAndAddThen(originalGetter, this);
return proxifyIfSupported(doAsserterAsyncAndAddThen(originalGetter, this));
});

@@ -281,0 +286,0 @@ }

@@ -14,3 +14,3 @@ {

],
"version": "7.0.0",
"version": "7.1.0",
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me)",

@@ -17,0 +17,0 @@ "license": "WTFPL",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc