node-red-viseo-helper
Advanced tools
Comparing version 0.1.17 to 0.1.18
11
index.js
@@ -34,2 +34,13 @@ 'use strict'; | ||
const absURL = exports.absURL = (url) => { | ||
if (undefined === url) return url; | ||
if (url.startsWith('http')) return url; | ||
if(CONFIG.server === undefined || CONFIG.server.host === undefined) { | ||
console.log("To use relative url, please assign server.host in your configuration file"); | ||
return url; | ||
} | ||
return CONFIG.server.host + url; | ||
} | ||
// ------------------------------------------ | ||
@@ -36,0 +47,0 @@ // STRING |
{ | ||
"name" : "node-red-viseo-helper", | ||
"version" : "0.1.17", | ||
"version" : "0.1.18", | ||
"description" : "Utility libarary for Node-RED", | ||
@@ -5,0 +5,0 @@ "dependencies" : { }, |
22821
129