3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 22:05:01 +00:00

Bot now connects, lint fixes

This commit is contained in:
Dark 2021-06-02 19:35:44 +02:00
parent d0a1beb809
commit edcfd2333f
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
16 changed files with 29 additions and 24 deletions

View file

@ -123,7 +123,7 @@ export function decodeAndValidateStrict<T extends t.HasProps>(
err => report(validationResult),
result => {
// Make sure there are no extra properties
if (debug)
if (debug) {
console.log(
"JSON.stringify() check:",
JSON.stringify(value) === JSON.stringify(result)
@ -131,6 +131,7 @@ export function decodeAndValidateStrict<T extends t.HasProps>(
: "they are not the same, might have excess",
result,
);
}
if (JSON.stringify(value) !== JSON.stringify(result)) {
const diff = deepDiff(result, value);
const errors = diff.filter(d => d.kind === "N").map(d => `Unknown property <${d.path.join(".")}>`);