abuseipdb-client 0.1.129 → 1.0.0

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.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 Arthur Melo <contact@arthurmelo.com>.
1
+ Copyright (c) 2025 Arthur Melo <contact@arthurmelo.com>.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4
4
  documentation files (the "Software"), to deal in the Software without restriction, including without
package/README.md CHANGED
@@ -166,6 +166,10 @@ $ git clone https://github.com/arthur-melo/abuseipdb-client
166
166
 
167
167
  Copy the `.env.example` file to `.env`, modifying it with your generated API Key.
168
168
 
169
+ ```bash
170
+ $ cp .env.example .env
171
+ ```
172
+
169
173
  Install dependencies:
170
174
 
171
175
  ```bash
@@ -180,13 +184,11 @@ $ npm run test
180
184
 
181
185
  ## Browser Support
182
186
 
183
- This project was built using libraries that allow browser usage, but as of this commit, AbuseIPDB doesn't support [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
184
-
185
- This limits how you can interact with the API, given that you need a proxy server in order to contact the service.
187
+ AbuseIPDB does not support CORS, and there are no plans in doing so.
186
188
 
187
- I'm not generating browser bundles at the moment, but I decided to keep the supporting code nevertheless.
189
+ Quoting from the [official documentation](https://docs.abuseipdb.com/#cross-origin-resource-sharing):
188
190
 
189
- I'll keep an eye whether the team behind AbuseIPDB adds support for this use case in the future.
191
+ > CORS headers cannot be set in order to prevent misimplementation. APIv2 keys should be treated as private and are not intented for client side calls.
190
192
 
191
193
  ## License
192
194