Skip to content

Commit

Permalink
fix: Add check for pretty printed and non-pretty printed versions of …
Browse files Browse the repository at this point in the history
…JSON
  • Loading branch information
richtera committed Feb 23, 2024
1 parent d13be00 commit aa68bf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/getDataFromExternalSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit aa68bf1

Please sign in to comment.