abuseipdb-client 2.0.83 → 2.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/types/index.d.ts +13 -2
  2. package/package.json +25 -25
@@ -75,7 +75,7 @@ interface APICheckEndpointResponse {
75
75
  totalReports: number;
76
76
  numDistinctUsers: number;
77
77
  lastReportedAt: string;
78
- reports: Array<ReportsEntity>;
78
+ reports: Array<ReportsCheckEntity>;
79
79
  };
80
80
  }
81
81
  /**
@@ -202,6 +202,17 @@ interface ReportsEntity {
202
202
  reporterCountryCode: string;
203
203
  reporterCountryName: string;
204
204
  }
205
+ /**
206
+ * @group AbuseIPDB API Response
207
+ */
208
+ interface ReportsCheckEntity {
209
+ reportedAt: string;
210
+ comment: string;
211
+ categories: NonEmptyArr<ReportCategory>;
212
+ reporterId: number;
213
+ fromIpCountryName: string;
214
+ fromIpCountryCode: string;
215
+ }
205
216
  /**
206
217
  * @group AbuseIPDB API Response
207
218
  */
@@ -579,4 +590,4 @@ declare const BASE_URL = "https://api.abuseipdb.com/api/v2";
579
590
  declare const isArrISO31661Alpha2: (arr: Array<string>) => boolean;
580
591
 
581
592
  export { AbuseIPDBClient, BASE_URL, ReportCategory, abuseIPDBClientSchema, blacklistSchema, bulkReportSchema, checkBlockSchema, checkSchema, clearAddressSchema, isArrISO31661Alpha2, reportSchema, reportsSchema };
582
- export type { APIBlacklistEndpointResponse, APIBlacklistEndpointTextResponse, APIBulkReportEndpointResponse, APICheckBlockEndpointResponse, APICheckEndpointResponse, APIClearAddressEndpointResponse, APIReportEndpointResponse, APIReportsEndpointResponse, APIResponse, APIResponseError, APIServerErrorResultResponse, AbuseIPDBClientConfig, AbuseIPDBClientOptions, BlacklistOptions, CheckBlockOptions, CheckOptions, ClientAPIHeaders, ClientAPIRateLimitHTTPHeaders, ClientFetchResponseHeaders, ClientHeaders, ClientResponse, EndpointURIS, InvalidReportsEntity, NonEmptyArr, ReportOptions, ReportedAddressEntity, ReportsEntity, ReportsOptions, UsageType };
593
+ export type { APIBlacklistEndpointResponse, APIBlacklistEndpointTextResponse, APIBulkReportEndpointResponse, APICheckBlockEndpointResponse, APICheckEndpointResponse, APIClearAddressEndpointResponse, APIReportEndpointResponse, APIReportsEndpointResponse, APIResponse, APIResponseError, APIServerErrorResultResponse, AbuseIPDBClientConfig, AbuseIPDBClientOptions, BlacklistOptions, CheckBlockOptions, CheckOptions, ClientAPIHeaders, ClientAPIRateLimitHTTPHeaders, ClientFetchResponseHeaders, ClientHeaders, ClientResponse, EndpointURIS, InvalidReportsEntity, NonEmptyArr, ReportOptions, ReportedAddressEntity, ReportsCheckEntity, ReportsEntity, ReportsOptions, UsageType };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "abuseipdb-client",
3
- "version": "2.0.83",
3
+ "version": "2.0.85",
4
4
  "private": false,
5
5
  "description": "AbuseIPDB Node.js API client.",
6
6
  "author": "Arthur Melo <contact@arthurmelo.com>",
7
7
  "homepage": "https://github.com/arthur-melo/abuseipdb-client",
8
8
  "license": "MIT",
9
9
  "engines": {
10
- "node": ">=20"
10
+ "node": ">=24"
11
11
  },
12
12
  "sideEffects": false,
13
13
  "types": "./dist/types/index.d.ts",
@@ -39,48 +39,48 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "jsonapi-typescript": "^0.1.3",
42
- "validator": "^13.15.20",
43
- "zod": "^4.1.12"
42
+ "validator": "^13.15.35",
43
+ "zod": "^4.3.6"
44
44
  },
45
45
  "devDependencies": {
46
- "@jest/globals": "^30.2.0",
47
- "@rollup/plugin-commonjs": "^29.0.0",
46
+ "@jest/globals": "^30.3.0",
47
+ "@rollup/plugin-commonjs": "^29.0.2",
48
48
  "@rollup/plugin-json": "^6.1.0",
49
49
  "@rollup/plugin-node-resolve": "^16.0.3",
50
50
  "@semantic-release/changelog": "^6.0.3",
51
51
  "@semantic-release/git": "^10.0.1",
52
- "@semantic-release/npm": "^13.1.1",
52
+ "@semantic-release/npm": "^13.1.5",
53
53
  "@types/jest": "^30.0.0",
54
- "@types/validator": "^13.15.4",
55
- "@typescript-eslint/eslint-plugin": "^8.46.3",
56
- "@typescript-eslint/parser": "^8.46.3",
57
- "conventional-changelog-conventionalcommits": "^9.1.0",
54
+ "@types/validator": "^13.15.10",
55
+ "@typescript-eslint/eslint-plugin": "^8.58.0",
56
+ "@typescript-eslint/parser": "^8.58.0",
57
+ "conventional-changelog-conventionalcommits": "^9.3.1",
58
58
  "cross-env": "^10.1.0",
59
59
  "cz-conventional-changelog": "^3.3.0",
60
- "dotenv": "^17.2.3",
61
- "eslint": "^10.0.0",
60
+ "dotenv": "^17.4.0",
61
+ "eslint": "^10.1.0",
62
62
  "eslint-config-prettier": "^10.1.8",
63
- "eslint-plugin-jest": "^29.0.1",
64
- "eslint-plugin-prettier": "^5.5.4",
63
+ "eslint-plugin-jest": "^29.15.1",
64
+ "eslint-plugin-prettier": "^5.5.5",
65
65
  "husky": "^9.1.7",
66
66
  "is-ci": "^4.1.0",
67
- "jest": "^30.2.0",
67
+ "jest": "^30.3.0",
68
68
  "jest-extended": "^7.0.0",
69
69
  "jest-fetch-mock": "^3.0.3",
70
- "lint-staged": "^16.2.6",
71
- "prettier": "^3.6.2",
72
- "rimraf": "^6.1.0",
73
- "rollup": "^4.53.1",
70
+ "lint-staged": "^16.4.0",
71
+ "prettier": "^3.8.1",
72
+ "rimraf": "^6.1.3",
73
+ "rollup": "^4.60.1",
74
74
  "rollup-plugin-bundle-size": "^1.0.3",
75
- "rollup-plugin-dts": "^6.2.3",
75
+ "rollup-plugin-dts": "^6.4.1",
76
76
  "rollup-plugin-typescript2": "^0.37.0",
77
- "semantic-release": "^25.0.2",
78
- "ts-jest": "^29.4.5",
77
+ "semantic-release": "^25.0.3",
78
+ "ts-jest": "^29.4.9",
79
79
  "ts-node": "^10.9.2",
80
80
  "tslib": "^2.8.1",
81
- "typedoc": "^0.28.14",
81
+ "typedoc": "^0.28.18",
82
82
  "typedoc-plugin-replace-text": "^4.2.0",
83
- "typescript": "^5.9.3"
83
+ "typescript": "^6.0.2"
84
84
  },
85
85
  "repository": {
86
86
  "type": "git",