fix(core): update
This commit is contained in:
parent
5abf3bc0aa
commit
fd9211393b
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiclient.xyz/abuse.ch',
|
name: '@apiclient.xyz/abuse.ch',
|
||||||
version: '1.0.10',
|
version: '1.0.11',
|
||||||
description: 'an unofficial client to retrieve abuse.ch data'
|
description: 'an unofficial client to retrieve abuse.ch data'
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ export class FeodoTracker {
|
|||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
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
|
// Ensure the data is an array and has the expected structure
|
||||||
if (!Array.isArray(data) || !data.every(item =>
|
if (!Array.isArray(data) || !data.every(item =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user