@heliosgraphics/utils 6.0.0-alpha.13 → 6.0.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/equals.ts +1 -1
- package/package.json +1 -1
package/equals.ts
CHANGED
|
@@ -73,7 +73,7 @@ const _getIsEqual = <T extends FracturesComparable>(a: T, b: T, seen = new WeakM
|
|
|
73
73
|
if (a instanceof Date && b instanceof Date) return getAreDatesEqual(a, b)
|
|
74
74
|
if (a instanceof Error && b instanceof Error) return getAreErrorsEqual(a, b)
|
|
75
75
|
if (a instanceof RegExp && b instanceof RegExp) return getAreRegExpsEqual(a, b)
|
|
76
|
-
if (Buffer.isBuffer(a) && Buffer.isBuffer(b)) return getAreBuffersEqual(a, b)
|
|
76
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer(a) && Buffer.isBuffer(b)) return getAreBuffersEqual(a, b)
|
|
77
77
|
|
|
78
78
|
const keysA: Array<string | symbol> = [...Object.keys(a as object), ...Object.getOwnPropertySymbols(a as object)]
|
|
79
79
|
const keysB: Array<string | symbol> = [...Object.keys(b as object), ...Object.getOwnPropertySymbols(b as object)]
|