diff --git a/parsers/what3words/package.json b/parsers/what3words/package.json index b6f18efa..5e6bd389 100644 --- a/parsers/what3words/package.json +++ b/parsers/what3words/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-what3words", - "version" : "0.0.1", + "version" : "0.0.2", "description" : "A Node-RED node to convert locations to/from what3words", "dependencies" : { "geo.what3words" : "0.0.2" diff --git a/parsers/what3words/what3words.js b/parsers/what3words/what3words.js index c1d8d9bf..9dac277a 100644 --- a/parsers/what3words/what3words.js +++ b/parsers/what3words/what3words.js @@ -18,7 +18,7 @@ module.exports = function(RED) { "use strict"; var What3Words = require('geo.what3words'); - function what3wordsNode(n) { + var what3wordsNode = function(n) { RED.nodes.createNode(this, n); this.lang = n.lang || "en"; var credentials = RED.nodes.getCredentials(n.id);