abuseipdb-client 0.1.129 → 1.0.1
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 +1 -1
- package/README.md +7 -5
- package/dist/index.js +134 -4846
- package/dist/index.mjs +135 -165
- package/dist/types/index.d.ts +31 -2
- package/package.json +39 -43
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
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
|
-
|
|
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
|
-
|
|
189
|
+
Quoting from the [official documentation](https://docs.abuseipdb.com/#cross-origin-resource-sharing):
|
|
188
190
|
|
|
189
|
-
|
|
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
|
|