vpndetection-express 2.0.22 → 2.0.24

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/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm install vpndetection-express
15
15
 
16
16
  Requires Node.js 22 or newer and Express 4.18 or newer. TypeScript types are included.
17
17
 
18
- You need an API key. Create one in the [console](https://app.vpndetection.io); without one the allowance is counted per source address, and a server is a single source address, so a key is what makes this usable in production rather than optional.
18
+ You need an API key. Create one in the [console](https://app.vpndetection.io); without one, lookups are limited to 60 a minute from each source address, and a server is a single source address, so a key is what makes this usable in production rather than optional.
19
19
 
20
20
  ```js
21
21
  import express from 'express';
@@ -138,7 +138,7 @@ Beyond a few million distinct visitors a day, stop calling the API per request:
138
138
 
139
139
  ## Absent is not false
140
140
 
141
- Without a key only `ip` and `isVpn` come back, and a free key adds Tor, relay, `location` and `asn`. A field your plan does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
141
+ Without a key a lookup leaves out `isHosting`, `isCdn` and the four proxy flags, and a free key leaves out `vpn` and the detail behind each flag. A field your plan does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
142
142
 
143
143
  ```js
144
144
  req.vpndetection.result.isHosting ?? false // when you only want the flag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpndetection-express",
3
- "version": "2.0.22",
3
+ "version": "2.0.24",
4
4
  "description": "Official Express middleware for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN visitors on every request.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "node": ">=22"
45
45
  },
46
46
  "dependencies": {
47
- "vpndetection": "^5.10.4"
47
+ "vpndetection": "^5.12.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "express": ">=4.18"