vpndetection-fastify 2.0.29 → 2.0.31
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/README.md +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ Beyond a few million distinct visitors a day, stop calling the API per request:
|
|
|
168
168
|
|
|
169
169
|
## Absent is not false
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
Unlimited, with a key or without one, leaves out `isHosting`, `isCdn` and the four proxy flags, and of the detail behind each flag it answers only Tor's and relay's. A field your plan does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
|
|
172
172
|
|
|
173
173
|
```js
|
|
174
174
|
request.vpndetection.result.isHosting ?? false // when you only want the flag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vpndetection-fastify",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
4
4
|
"description": "Official Fastify plugin for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN visitors on every request.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"fastify-plugin": "^5.0.1",
|
|
48
|
-
"vpndetection": "^5.
|
|
48
|
+
"vpndetection": "^5.14.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"fastify": "4.x || 5.x"
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "rm -rf dist && tsc",
|
|
62
|
+
"lint": "eslint",
|
|
62
63
|
"test": "pnpm run build && node --test test/*.test.mjs"
|
|
63
64
|
}
|
|
64
65
|
}
|