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 +2 -2
- package/dist/client.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +2 -2
- package/dist/generated/sdk.gen.js +2 -2
- package/package.json +1 -1
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
|
-
|
|
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
|
|
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
|
|
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,
|
|
21
|
-
*
|
|
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,
|
|
9
|
-
*
|
|
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