fix(core): update

This commit is contained in:
Philipp Kunz 2023-08-01 13:02:04 +02:00
parent 5abf3bc0aa
commit fd9211393b
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/abuse.ch',
version: '1.0.10',
version: '1.0.11',
description: 'an unofficial client to retrieve abuse.ch data'
}

View File

@ -29,7 +29,7 @@ export class FeodoTracker {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data: IFeodoTrackerData[] = await response.json();
const data: IFeodoTrackerData[] = await response.json() as IFeodoTrackerData[];
// Ensure the data is an array and has the expected structure
if (!Array.isArray(data) || !data.every(item =>