diff --git a/README.md b/README.md index 222201b..536b7e5 100644 --- a/README.md +++ b/README.md @@ -316,6 +316,9 @@ You can try the following flow for testing the node behaviors after installing t ``` # Revision History +* 1.1.2 + - Fix an issue where MapNode failed to emit a raw type object (always null) + * 1.1.1 - Remove redundant dependency diff --git a/package.json b/package.json index e50d6dc..d42081f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-sequence-functions", - "version": "1.1.1", + "version": "1.1.2", "description": "Node-RED nodes for sequence processing functions", "license": "MIT", "repository": { diff --git a/src/sequence-functions.es6.js b/src/sequence-functions.es6.js index 539b50b..7e1fbe3 100644 --- a/src/sequence-functions.es6.js +++ b/src/sequence-functions.es6.js @@ -97,7 +97,7 @@ export default function(RED) { if (this.mapToString) { return String(result); } else { - result; + return result; } }; } catch (e) { diff --git a/tests/sequence-functions.test.es6.js b/tests/sequence-functions.test.es6.js index 66493be..3ee9e27 100644 --- a/tests/sequence-functions.test.es6.js +++ b/tests/sequence-functions.test.es6.js @@ -102,7 +102,7 @@ describe('sequence-functions module', () => { }); assert.equal('my-name', node.name); assert.isDefined(node.mapFunction); - assert.isNotString(node.mapFunction(1)); + assert.isNumber(node.mapFunction(1)); }); }); });