From aa68bf132d2e4793b4da784c30ae8f306560da8c Mon Sep 17 00:00:00 2001 From: Andreas Richter <708186+richtera@users.noreply.github.com> Date: Fri, 23 Feb 2024 10:26:29 -0500 Subject: [PATCH] fix: Add check for pretty printed and non-pretty printed versions of JSON --- src/lib/getDataFromExternalSources.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/getDataFromExternalSources.ts b/src/lib/getDataFromExternalSources.ts index 5d5e4721..49fb121b 100644 --- a/src/lib/getDataFromExternalSources.ts +++ b/src/lib/getDataFromExternalSources.ts @@ -132,6 +132,9 @@ export const getDataFromExternalSources = ( if (isDataAuthentic(value, urlDataWithHash.verification)) { return { ...dataEntry, value }; } + if (isDataAuthentic(receivedData, urlDataWithHash.verification)) { + return { ...dataEntry, value }; + } throw new Error('result did not correctly validate'); } } catch {