Socket
Socket
Sign inDemoInstall

deep-equal-in-any-order

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-equal-in-any-order - npm Package Compare versions

Comparing version 1.1.20 to 2.0.0

13

build/index.js

@@ -28,12 +28,5 @@ 'use strict';

utils.addMethod(Assertion.prototype, 'equalInAnyOrder', function equalInAnyOrder(b, m) {
const a = this.__flags.object;
const { negate, message } = this.__flags;
const msg = m || message;
if (negate) {
new Assertion(sortDeep(a), msg).to.not.deep.equal(sortDeep(b));
} else {
new Assertion(sortDeep(a), msg).to.deep.equal(sortDeep(b));
}
const a = utils.flag(this, 'object');
utils.flag(this, 'object', sortDeep(a));
this.equal(sortDeep(b), m);
});

@@ -40,0 +33,0 @@

{
"name": "deep-equal-in-any-order",
"version": "1.1.20",
"version": "2.0.0",
"description": "chai plugin to match objects and arrays deep equality with arrays (including nested ones) being in any order",

@@ -45,2 +45,3 @@ "main": "build/index.js",

"chai-as-promised": "^7.1.1",
"chai-roughly-v2": "^2.0.12",
"chai-subset": "^1.6.0",

@@ -47,0 +48,0 @@ "dirty-chai": "^2.0.1",

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