forgot to commit master
forgot to commit

--- a/onvif/snapshot.js
+++ b/onvif/snapshot.js
@@ -2,8 +2,9 @@
     "use strict";
     let onvif = require("node-onvif");
     let isSharpAvailable = false;
+    let sharp;
     try {
-        const sharp = require('sharp');
+        sharp = require('sharp');
         isSharpAvailable = true;
     }
     catch (ex) {}

--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "node-red-contrib-onvif",
-    "version": "1.0.2",
+    "version": "1.0.3",
     "description": "A Node-RED node that interacts with ip cameras using the ONVIF protocol",
     "repository": {
         "type": "git",

comments