Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
83fab5dbd3 | |||
174ba7f153 | |||
be520e9dac | |||
fd9211393b |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@apiclient.xyz/abuse.ch",
|
"name": "@apiclient.xyz/abuse.ch",
|
||||||
"version": "1.0.10",
|
"version": "1.0.12",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "an unofficial client to retrieve abuse.ch data",
|
"description": "an unofficial client to retrieve abuse.ch data",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -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.12',
|
||||||
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