node-red-contrib-weatherflow-api-client
Advanced tools
Comparing version 1.0.1 to 1.2.1
@@ -37,8 +37,13 @@ module.exports = function (RED) { | ||
http | ||
.request(options, callback) | ||
.on("error", (e) => { | ||
done('problem with request: ${e.message}'); | ||
}) | ||
.end(); | ||
try { | ||
http | ||
.request(options, callback) | ||
.on("error", (e) => { | ||
done('problem with request: ${e.message}'); | ||
}) | ||
.end(); | ||
} catch (error) { | ||
done(error); | ||
} | ||
}); | ||
@@ -45,0 +50,0 @@ } |
{ | ||
"name": "node-red-contrib-weatherflow-api-client", | ||
"version": "1.0.1", | ||
"version": "1.2.1", | ||
"author": "Michael Rohrhirsch (https://github.com/CrunkA3)", | ||
@@ -20,3 +20,5 @@ "description": "A WeahterFlow Tempest API client for Node-RED", | ||
"weatherflow-stations": "nodes/stations/weatherflow-stations.js", | ||
"weatherflow-forecast": "nodes/forecast/weatherflow-forecast.js" | ||
"weatherflow-forecast": "nodes/forecast/weatherflow-forecast.js", | ||
"observations-device": "nodes/observations-device/observations-device.js", | ||
"observations-station": "nodes/observations-station/observations-station.js" | ||
} | ||
@@ -23,0 +25,0 @@ }, |
47352
19
303
3
4