node-red-contrib-ipgeolocation 1.0.0 → 1.0.1

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
@@ -223,9 +223,9 @@ Seven lookup modes:
223
223
  | IP address | `ip` | `8.8.8.8` |
224
224
  | Address / city | `location` | `Paris, France` |
225
225
  | Coordinates | `lat` + `long` | `48.8566`, `2.3522` |
226
- | IATA airport | `iata` | `CDG` |
227
- | ICAO airport | `icao` | `LFPG` |
228
- | UN/LOCODE | `location` | `FRPAR` |
226
+ | IATA airport | `iata_code` | `CDG` |
227
+ | ICAO airport | `icao_code` | `LFPG` |
228
+ | UN/LOCODE | `lo_code` | `FRPAR` |
229
229
 
230
230
  Returns `INVALID_INPUT` when the value required for the chosen mode is missing.
231
231
 
@@ -32,9 +32,9 @@ const MODE_PARAM = {
32
32
  ip: 'ip',
33
33
  location: 'location',
34
34
  coords: null, // lat + lng are separate params
35
- iata: 'iata',
36
- icao: 'icao',
37
- unlocode: 'location', // UN/LO code is passed as 'location'
35
+ iata: 'iata_code',
36
+ icao: 'icao_code',
37
+ unlocode: 'lo_code', // UN/LO code is passed as 'location'
38
38
  };
39
39
 
40
40
  module.exports = function (RED) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-ipgeolocation",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Node-RED nodes for the IPGeolocation.io v3 API: IP geolocation, security and threat intelligence (VPN, proxy, and TOR detection), abuse contacts, ASN lookup, bulk IP processing, timezone, astronomy, and user-agent parsing.",
5
5
  "keywords": [
6
6
  "node-red",
@@ -69,4 +69,4 @@
69
69
  "coverage": "nyc --reporter=text --reporter=html mocha",
70
70
  "prepublishOnly": "npm test"
71
71
  }
72
- }
72
+ }