diff --git a/packages/node_modules/@node-red/nodes/core/analysis/72-sentiment.html b/packages/node_modules/@node-red/nodes/core/analysis/72-sentiment.html deleted file mode 100644 index f51705d5f..000000000 --- a/packages/node_modules/@node-red/nodes/core/analysis/72-sentiment.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - diff --git a/packages/node_modules/@node-red/nodes/core/analysis/72-sentiment.js b/packages/node_modules/@node-red/nodes/core/analysis/72-sentiment.js deleted file mode 100644 index ff0cf33e8..000000000 --- a/packages/node_modules/@node-red/nodes/core/analysis/72-sentiment.js +++ /dev/null @@ -1,23 +0,0 @@ - -module.exports = function(RED) { - "use strict"; - var sentiment = require('sentiment'); - - function SentimentNode(n) { - RED.nodes.createNode(this,n); - this.property = n.property||"payload"; - var node = this; - - this.on("input", function(msg) { - var value = RED.util.getMessageProperty(msg,node.property); - if (value !== undefined) { - sentiment(value, msg.overrides || null, function (err, result) { - msg.sentiment = result; - node.send(msg); - }); - } - else { node.send(msg); } // If no matching property - just pass it on. - }); - } - RED.nodes.registerType("sentiment",SentimentNode); -} diff --git a/packages/node_modules/@node-red/nodes/core/storage/28-tail.html b/packages/node_modules/@node-red/nodes/core/storage/28-tail.html deleted file mode 100644 index 2386dec0f..000000000 --- a/packages/node_modules/@node-red/nodes/core/storage/28-tail.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - diff --git a/packages/node_modules/@node-red/nodes/core/storage/28-tail.js b/packages/node_modules/@node-red/nodes/core/storage/28-tail.js deleted file mode 100644 index 801169955..000000000 --- a/packages/node_modules/@node-red/nodes/core/storage/28-tail.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Copyright JS Foundation and other contributors, http://js.foundation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - **/ - -module.exports = function(RED) { - "use strict"; - var spawn = require('child_process').spawn; - var plat = require('os').platform(); - - if (plat.match(/^win/)) { - throw RED._("tail.errors.windowsnotsupport"); - } - - function TailNode(n) { - RED.nodes.createNode(this,n); - - this.filename = n.filename; - this.filetype = n.filetype || "text"; - this.split = n.split || false; - var node = this; - - var err = ""; - // TODO: rewrite to use node-tail - var tail = spawn("tail", ["-F", "-n", "0", this.filename]); - tail.stdout.on("data", function (data) { - var msg = { topic:node.filename }; - if (node.filetype === "text") { - if (node.split) { - // TODO: allow customisation of the line break - as we do elsewhere - var strings = data.toString().split("\n"); - for (var s in strings) { - //TODO: should we really filter blanks? Is that expected? - if (strings[s] !== "") { - node.send({ - topic: node.filename, - payload: strings[s] - }); - } - } - } - else { - msg.payload = data.toString(); - node.send(msg); - } - } - else { - msg.payload = data; - node.send(msg); - } - }); - - tail.stderr.on("data", function(data) { - node.error(data.toString()); - }); - - this.on("close", function() { - /* istanbul ignore else */ - if (tail) { tail.kill(); } - }); - } - - RED.nodes.registerType("tail",TailNode); -} diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/analysis/72-sentiment.html b/packages/node_modules/@node-red/nodes/locales/en-US/analysis/72-sentiment.html deleted file mode 100644 index 66efa6a87..000000000 --- a/packages/node_modules/@node-red/nodes/locales/en-US/analysis/72-sentiment.html +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json index 6e71d8a10..006cd5799 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json @@ -824,21 +824,6 @@ "pythoncommandnotfound": "nrpgio python command not running" } }, - "tail": { - "tail": "tail", - "label": { - "filename": "Filename", - "type": "File type", - "splitlines": "Split lines on \\n?" - }, - "action": { - "text": "Text - returns String", - "binary": "Binary - returns Buffer" - }, - "errors": { - "windowsnotsupport": "Not currently supported on Windows." - } - }, "file": { "label": { "filename": "Filename", diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/storage/28-tail.html b/packages/node_modules/@node-red/nodes/locales/en-US/storage/28-tail.html deleted file mode 100644 index 36c1fcb15..000000000 --- a/packages/node_modules/@node-red/nodes/locales/en-US/storage/28-tail.html +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/node_modules/@node-red/nodes/locales/ja/analysis/72-sentiment.html b/packages/node_modules/@node-red/nodes/locales/ja/analysis/72-sentiment.html deleted file mode 100644 index 413e87893..000000000 --- a/packages/node_modules/@node-red/nodes/locales/ja/analysis/72-sentiment.html +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/packages/node_modules/@node-red/nodes/locales/ja/messages.json b/packages/node_modules/@node-red/nodes/locales/ja/messages.json index 4aad7bf0d..61fa0b603 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/ja/messages.json @@ -822,21 +822,6 @@ "pythoncommandnotfound": "nrpgio python コマンドが実行されていません" } }, - "tail": { - "tail": "tail", - "label": { - "filename": "ファイル名", - "type": "ファイル形式", - "splitlines": "改行でメッセージを分割" - }, - "action": { - "text": "文字列", - "binary": "バイナリバッファ" - }, - "errors": { - "windowsnotsupport": "現在Windows上での動作は対応していません" - } - }, "file": { "label": { "filename": "ファイル名", diff --git a/packages/node_modules/@node-red/nodes/locales/ja/storage/28-tail.html b/packages/node_modules/@node-red/nodes/locales/ja/storage/28-tail.html deleted file mode 100644 index 513038593..000000000 --- a/packages/node_modules/@node-red/nodes/locales/ja/storage/28-tail.html +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/node_modules/@node-red/nodes/locales/zh-CN/messages.json b/packages/node_modules/@node-red/nodes/locales/zh-CN/messages.json index cc5a4cf64..c946d6529 100644 --- a/packages/node_modules/@node-red/nodes/locales/zh-CN/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/zh-CN/messages.json @@ -784,20 +784,6 @@ "pythoncommandnotfound": "nrpgio python命令未处于运行状态" } }, - "tail": { - "label": { - "filename": "文件名", - "type": "文件类型", - "splitlines": "以\\n来拆分行?" - }, - "action": { - "text": "文本 - 返回字符串", - "binary": "二进制 - 返回Buffer" - }, - "errors": { - "windowsnotsupport": "Windows目前不支持." - } - }, "file": { "label": { "filename": "文件名",