internetdata-express 1.0.8 → 1.0.10

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 +3 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm install internetdata-express
15
15
 
16
16
  Requires Node.js 22 or newer and Express 4.18 or newer. TypeScript types are included.
17
17
 
18
- Without an API key a lookup is on Unlimited, the free plan: the country, the network and the company behind the address, Tor, relay, anycast, carrier and satellite space and the service flags, with no daily or monthly cap. Every lookup your app makes comes from your server's one address, though, so a busy site will see bursts refused. A paid plan answers every field, VPN, the proxy flags, hosting, CDN and the city among them; create a key in the [console](https://app.internetdata.io). A free account tries every field.
18
+ Without an API key a lookup is on Unlimited, the free plan: the country, the network and the company behind the address, Tor, relay, bot, anycast, carrier and satellite space and the service flags, with no daily or monthly cap. Every lookup your app makes comes from your server's one address, though, so a busy site will see bursts refused. A paid plan answers every field, VPN, the proxy flags, hosting, CDN and the city among them; create a key in the [console](https://app.internetdata.io). A free account tries every field.
19
19
 
20
20
  ```js
21
21
  import express from 'express';
@@ -45,11 +45,12 @@ app.use(internetdata({
45
45
  }));
46
46
  ```
47
47
 
48
- A condition is written in the shape of a result, and only the members you name are considered, so it can refuse on anything in the answer. The country works on every plan, and so do the first two of these:
48
+ A condition is written in the shape of a result, and only the members you name are considered, so it can refuse on anything in the answer. The country works on every plan, and so do the first three of these:
49
49
 
50
50
  ```js
51
51
  blockCondition: { asn: { type: 'hosting' } } // the network's type
52
52
  blockCondition: [{ isAnycast: true }, { isSatellite: true }] // anycast and satellite space
53
+ blockCondition: { isBot: true } // crawlers, monitors and scanners
53
54
  blockCondition: [{ isHosting: true }, { isCdn: true }] // traffic from servers, not people
54
55
  blockCondition: [{ isVpn: true }, { isTor: true }, { isResproxy: true }] // anonymity: a list is OR
55
56
  blockCondition: { isVpn: true, vpn: { provider: 'nordvpn' } } // one provider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "internetdata-express",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Official Express middleware for the InternetData API. Look up the visitor behind every request: location, network, VPN, proxy, Tor and hosting.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "node": ">=22"
45
45
  },
46
46
  "dependencies": {
47
- "@internetdata/internetdata": "^2.15.0"
47
+ "@internetdata/internetdata": "^2.16.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "express": ">=4.18"