apollo-utilities
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -764,3 +764,4 @@ (function (global, factory) { | ||
for (var key in b) { | ||
if (!Object.prototype.hasOwnProperty.call(a, key)) { | ||
if (Object.prototype.hasOwnProperty.call(b, key) && | ||
!Object.prototype.hasOwnProperty.call(a, key)) { | ||
return false; | ||
@@ -767,0 +768,0 @@ } |
@@ -23,3 +23,4 @@ export function isEqual(a, b) { | ||
for (var key in b) { | ||
if (!Object.prototype.hasOwnProperty.call(a, key)) { | ||
if (Object.prototype.hasOwnProperty.call(b, key) && | ||
!Object.prototype.hasOwnProperty.call(a, key)) { | ||
return false; | ||
@@ -26,0 +27,0 @@ } |
{ | ||
"name": "apollo-utilities", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "Utilities for working with GraphQL ASTs", | ||
@@ -57,3 +57,3 @@ "author": "James Baxley <james@meteor.com>", | ||
}, | ||
"gitHead": "45d1902c7c7948ef6a34184afbf2cf3120e44503" | ||
"gitHead": "31b0ee4a027c60394cf9297df8f9eeeda3918272" | ||
} |
@@ -86,2 +86,9 @@ import { isEqual } from '../isEqual'; | ||
}); | ||
it('should correctly handle modified prototypes', () => { | ||
Array.prototype.foo = null; | ||
expect(isEqual([1, 2, 3], [1, 2, 3])).toBe(true); | ||
expect(!isEqual([1, 2, 3], [1, 2, 4])).toBe(true); | ||
delete Array.prototype.foo; | ||
}); | ||
}); |
@@ -35,3 +35,6 @@ /** | ||
for (const key in b) { | ||
if (!Object.prototype.hasOwnProperty.call(a, key)) { | ||
if ( | ||
Object.prototype.hasOwnProperty.call(b, key) && | ||
!Object.prototype.hasOwnProperty.call(a, key) | ||
) { | ||
return false; | ||
@@ -38,0 +41,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
277463
5029