From 8d7f0e19fd3e48ffa7cb4d605fc2e7abb116f229 Mon Sep 17 00:00:00 2001 From: Benjamin Main Date: Tue, 2 Mar 2021 08:03:28 -0600 Subject: [PATCH] feat(Logging): Fix up logging to log correctly in noArrayOrderingRequired scenarios. --- src/serially-equivalent.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/serially-equivalent.ts b/src/serially-equivalent.ts index 3442cfd..1148a10 100644 --- a/src/serially-equivalent.ts +++ b/src/serially-equivalent.ts @@ -161,7 +161,13 @@ function objectEquivalence( } } else { if ( - !internalSeriallyEquivalent(propA, propB, expandedPath, true, options) + !internalSeriallyEquivalent( + propA, + propB, + expandedPath, + shouldLog, + options, + ) ) { return false; }