Compare commits

..

No commits in common. "master" and "v1.0.10" have entirely different histories.

3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/abuse.ch",
"version": "1.0.12",
"version": "1.0.10",
"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.12',
version: '1.0.10',
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() as IFeodoTrackerData[];
const data: IFeodoTrackerData[] = await response.json();
// Ensure the data is an array and has the expected structure
if (!Array.isArray(data) || !data.every(item =>