Compare commits

...

4 Commits

Author SHA1 Message Date
83fab5dbd3 1.0.12 2023-08-01 15:05:26 +02:00
174ba7f153 fix(core): update 2023-08-01 15:05:25 +02:00
be520e9dac 1.0.11 2023-08-01 13:02:05 +02:00
fd9211393b fix(core): update 2023-08-01 13:02:04 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/abuse.ch",
"version": "1.0.10",
"version": "1.0.12",
"private": false,
"description": "an unofficial client to retrieve abuse.ch data",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/abuse.ch',
version: '1.0.10',
version: '1.0.12',
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 =>