1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Better diff output

This commit is contained in:
Raymond Hill 2021-09-01 18:26:36 -04:00
parent 5dd91211ae
commit 6703ede9e8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -182,7 +182,13 @@ async function compare(results) {
const a = before.get(i);
const b = after.get(i);
if ( a.r === b.r ) { continue; }
diffs.push([ i, { before: a, after: b } ]);
diffs.push([ i, {
type: a.type,
url: a.url,
originURL: a.originURL,
before: { r: a.r, f: a.f, t: a.t },
after: { r: b.r, f: b.f, t: b.t },
}]);
}
return diffs;
}