Socket
Socket
Sign inDemoInstall

deep-eql

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-eql - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

index.js

@@ -408,2 +408,9 @@ 'use strict';

function objectEqual(leftHandOperand, rightHandOperand, options) {
// This block can be removed once support for Node v0.10 is dropped because
// buffers are properly detected as iterables in later versions.
if (typeof Buffer === 'function' &&
typeof Buffer.isBuffer === 'function' &&
Buffer.isBuffer(leftHandOperand)) {
return iterableEqual(leftHandOperand, rightHandOperand, options);
}
var leftHandKeys = getEnumerableKeys(leftHandOperand);

@@ -410,0 +417,0 @@ var rightHandKeys = getEnumerableKeys(rightHandOperand);

2

package.json

@@ -88,3 +88,3 @@ {

},
"version": "1.0.2"
"version": "1.0.3"
}

@@ -102,4 +102,7 @@ <h1 align=center>

- `eql(-0, +0).should.be.false;`
- All own and inherited enumerable properties are considered:
- `eql(Object.create({ foo: { a: 1 } }), Object.create({ foo: { a: 1 } })).should.be.true;`
- `eql(Object.create({ foo: { a: 1 } }), Object.create({ foo: { a: 2 } })).should.be.false;`
- Arguments are not Arrays:
- `eql([], arguments).should.be.false;`
- `eql([], Array.prototype.slice.call(arguments)).should.be.true;`
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