Socket
Socket
Sign inDemoInstall

sinon

Package Overview
Dependencies
9
Maintainers
4
Versions
204
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.3.1 to 6.3.2

5

History.md
6.3.2 / 2018-09-13
==================
* Adds guard for empty properties in deepEqual when a matcher is provided (#1901)
6.3.1 / 2018-09-12

@@ -3,0 +8,0 @@ ==================

5

lib/sinon/util/core/deep-equal.js

@@ -41,7 +41,8 @@ "use strict";

if (matcher) {
var allKeysMatch = every(Object.keys(a), function (key) {
var keys = Object.keys(a);
var allKeysMatch = every(keys, function (key) {
return matcher(a[key], b[key]);
});
return allKeysMatch;
return keys.length > 0 && allKeysMatch;
}

@@ -48,0 +49,0 @@

2

package.json
{
"name": "sinon",
"description": "JavaScript test spies, stubs and mocks.",
"version": "6.3.1",
"version": "6.3.2",
"homepage": "https://sinonjs.org/",

@@ -6,0 +6,0 @@ "author": "Christian Johansen",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc