vpndetection-web 1.2.1 → 1.2.2

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 CHANGED
@@ -246,11 +246,11 @@ The library is ES2022 and needs only what a browser has, `fetch` and, for PKCE,
246
246
 
247
247
  ### Absent is not false
248
248
 
249
- The Unlimited tier 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 free-plan key's answer carries `trialExpired`, true once its daily trial is spent. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
249
+ Unlimited 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 free-plan key's answer carries `trialExpired`, true once its daily trial is spent. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
250
250
 
251
251
  ```js
252
252
  result.isHosting ?? false // when you only want the flag
253
- result.isHosting === undefined // on the Unlimited tier: not in your plan
253
+ result.isHosting === undefined // on Unlimited: not in your plan
254
254
  result.trialExpired === true // a free-plan key's daily trial is spent
255
255
  ```
256
256
 
package/dist/client.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface CacheOptions {
18
18
  }
19
19
  export interface Options {
20
20
  /**
21
- * Your API key. Without one a lookup is on the Unlimited tier: `ip`,
21
+ * Your API key. Without one a lookup is on Unlimited, the free plan: `ip`,
22
22
  * `is_vpn`, the Tor and relay members, `location` and `asn`, with no daily
23
23
  * or monthly cap. A batch needs a key on a paid plan.
24
24
  * A key in a web page is readable by anyone who opens the page.
@@ -17,8 +17,8 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
17
17
  * Lookup
18
18
  *
19
19
  * Answers what is known about a single IPv4 or IPv6 address. Which fields
20
- * come back is decided by the presented key; with no key, the Unlimited
21
- * tier, the answer is `ip`, `is_vpn`, the Tor and relay members,
20
+ * come back is decided by the presented key; with no key, on Unlimited,
21
+ * the free plan, the answer is `ip`, `is_vpn`, the Tor and relay members,
22
22
  * `location` and `asn`.
23
23
  *
24
24
  */
@@ -5,8 +5,8 @@ import { urlSearchParamsBodySerializer } from './client/index.js';
5
5
  * Lookup
6
6
  *
7
7
  * Answers what is known about a single IPv4 or IPv6 address. Which fields
8
- * come back is decided by the presented key; with no key, the Unlimited
9
- * tier, the answer is `ip`, `is_vpn`, the Tor and relay members,
8
+ * come back is decided by the presented key; with no key, on Unlimited,
9
+ * the free plan, the answer is `ip`, `is_vpn`, the Tor and relay members,
10
10
  * `location` and `asn`.
11
11
  *
12
12
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpndetection-web",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Official browser client library for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN IPs.",
5
5
  "type": "module",
6
6
  "license": "MIT",