node-red-contrib-viseo-file
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -27,2 +27,3 @@ const helper = require('node-red-viseo-helper'); | ||
const input = (node, data, config) => { | ||
let lines = Number(config.lines) || 100; | ||
@@ -45,3 +46,4 @@ let filepath = helper.resolve(config.file); | ||
.then(function(count) { | ||
helper.setByString(data, config.output || "payload", myarray); | ||
let result = (myarray.length <= lines) ? myarray : myarray.slice(Math.max(myarray.length - lines, 1)); | ||
helper.setByString(data, config.output || "payload", result); | ||
return node.send(data); | ||
@@ -48,0 +50,0 @@ }) |
{ | ||
"name": "node-red-contrib-viseo-file", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Jean-Philippe Encausse <jp@encausse.net> (http://encausse.net/)", | ||
@@ -5,0 +5,0 @@ "description": "Utility nodes for SARAH", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13043
74
0