Comparing version 4.1.2 to 4.1.3
15
index.js
@@ -395,4 +395,11 @@ 'use strict'; | ||
function getNonEnumerableSymbols(target) { | ||
var keys = Object.getOwnPropertySymbols(target); | ||
function getEnumerableSymbols(target) { | ||
var keys = []; | ||
var allKeys = Object.getOwnPropertySymbols(target); | ||
for (var i = 0; i < allKeys.length; i += 1) { | ||
var key = allKeys[i]; | ||
if (Object.getOwnPropertyDescriptor(target, key).enumerable) { | ||
keys.push(key); | ||
} | ||
} | ||
return keys; | ||
@@ -436,4 +443,4 @@ } | ||
var rightHandKeys = getEnumerableKeys(rightHandOperand); | ||
var leftHandSymbols = getNonEnumerableSymbols(leftHandOperand); | ||
var rightHandSymbols = getNonEnumerableSymbols(rightHandOperand); | ||
var leftHandSymbols = getEnumerableSymbols(leftHandOperand); | ||
var rightHandSymbols = getEnumerableSymbols(rightHandOperand); | ||
leftHandKeys = leftHandKeys.concat(leftHandSymbols); | ||
@@ -440,0 +447,0 @@ rightHandKeys = rightHandKeys.concat(rightHandSymbols); |
{ | ||
"name": "deep-eql", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Improved deep equality testing for Node.js and the browser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24238
452