mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
|
import { ImportErrors } from './types';
|
||
|
|
||
|
export default function(previousErrors: ImportErrors, newErrors: ImportErrors): boolean {
|
||
|
if (Object.keys(previousErrors).length !== Object.keys(newErrors).length) return true;
|
||
|
|
||
|
for (const packageName of Object.keys(previousErrors)) {
|
||
|
if (newErrors[packageName] !== previousErrors[packageName]) return true;
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
}
|