node-red-contrib-ipgeolocation 1.1.1 → 1.1.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
@@ -257,7 +257,7 @@ Optional parameters (all modes):
257
257
  |--------|-----------|-------------|
258
258
  | Date | `date` | `YYYY-MM-DD`; defaults to today at the location |
259
259
  | Time zone | `time_zone` | IANA name; converts all event times into this zone |
260
- | Elevation | `elevation` | meters above sea level, 0 to 10000; defaults to 0 |
260
+ | Elevation | `elevation` | Elevation above sea level in meters. Negative values are allowed. The maximum is 10,000 meters. Leave it blank to use the nearest known city's elevation, or 0 if no elevation data is available. |
261
261
  | Language | `lang` | language for the `location` object (paid plans) |
262
262
 
263
263
  The response nests results under an `astronomy` object alongside a `location` object, so read values such as `payload.astronomy.sunrise` and `payload.location.city`.
@@ -152,7 +152,7 @@
152
152
  <!-- Optional elevation -->
153
153
  <div class="form-row">
154
154
  <label for="node-input-elevationValue"><i class="fa fa-mountain"></i>&nbsp;Elevation</label>
155
- <input type="text" id="node-input-elevationValue" placeholder="metres, 0 to 10000 (optional)" style="width:70%"/>
155
+ <input type="text" id="node-input-elevationValue" placeholder="Elevation in meters (optional)" style="width:70%"/>
156
156
  <input type="hidden" id="node-input-elevationType"/>
157
157
  </div>
158
158
 
@@ -209,7 +209,7 @@
209
209
  <dt class="optional">Time zone <span class="property-type">string</span></dt>
210
210
  <dd>IANA name; converts event times into this zone.</dd>
211
211
  <dt class="optional">Elevation <span class="property-type">number | string</span></dt>
212
- <dd>Metres above sea level, 0 to 10000. Defaults to 0.</dd>
212
+ <dd>Elevation above sea level in meters. Negative values are allowed. The maximum is 10,000 meters. Leave it blank to use the nearest known city's elevation, or 0 if no elevation data is available.</dd>
213
213
  <dt class="optional">Language <span class="property-type">string</span></dt>
214
214
  <dd>Language for the <code>location</code> object (paid plans).</dd>
215
215
  </dl>
@@ -20,7 +20,7 @@
20
20
  * ──────────────────────────
21
21
  * date — "YYYY-MM-DD"; defaults to today at the location
22
22
  * time_zone — IANA timezone name; event times are converted to it
23
- * elevation — metres above sea level (0 to 10000); default 0
23
+ * elevation — meters above sea level, up to 10000; negatives allowed; blank = nearest known city's elevation (0 if none)
24
24
  * lang — response language for the location object (paid plans)
25
25
  *
26
26
  * Every value can be static (node config) or sourced dynamically from
@@ -67,7 +67,7 @@ module.exports = function (RED) {
67
67
  this.tzType = config.tzType || 'str';
68
68
  this.tzValue = config.tzValue || ''; // empty = API determines tz
69
69
  this.elevationType = config.elevationType || 'str';
70
- this.elevationValue = config.elevationValue || ''; // empty = API default (0)
70
+ this.elevationValue = config.elevationValue || ''; // empty = API uses the nearest known city's elevation
71
71
  this.langType = config.langType || 'str';
72
72
  this.langValue = config.langValue || ''; // empty = API default (en)
73
73
  this.outputProp = config.outputProp || 'payload';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-ipgeolocation",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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",
@@ -47,10 +47,10 @@
47
47
  "axios": "^1.21.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@node-red/editor-client": "^4.1.17",
50
+ "@node-red/editor-client": "^4.1.18",
51
51
  "mocha": "^12.0.2",
52
52
  "nock": "^13.5.6",
53
- "node-red": "^4.1.17",
53
+ "node-red": "^4.1.18",
54
54
  "node-red-node-test-helper": "^0.3.6",
55
55
  "nyc": "^18.0.0",
56
56
  "should": "^13.2.3",