Socket
Socket
Sign inDemoInstall

shallowequal

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

LICENSE

11

modules/index.js

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

module.exports = function shallowEqual(objA, objB, compare, compareContext) {
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
if (ret !== void 0) {
return !!ret;
}
if (objA === objB) {

@@ -35,4 +42,4 @@ return true;

var ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
if (ret === false || ret === void 0 && valueA !== valueB) {
var _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
if (_ret === false || _ret === void 0 && valueA !== valueB) {
return false;

@@ -39,0 +46,0 @@ }

9

package.json
{
"name": "shallowequal",
"version": "0.2.1",
"version": "0.2.2",
"description": "Like lodash isEqual but for shallow equal",

@@ -29,7 +29,10 @@ "main": "modules/index.js",

"devDependencies": {
"babel": "^5.5.6"
"babel": "^5.8.21",
"chai": "^3.2.0",
"lodash": "^3.10.1",
"mocha": "^2.2.5"
},
"dependencies": {
"lodash.keys": "^3.1.1"
"lodash.keys": "^3.1.2"
}
}
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