1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Change node deprecation message

This commit is contained in:
Nicholas O'Leary 2013-10-31 16:41:52 +00:00
parent 8891548909
commit b12b02ebb9
5 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
function SocketIn(n) { function SocketIn(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.warn("node type deprecated - will be moved to node-red-nodes project at next point update"); this.warn("node type deprecated - will be removed in a future release");
this.port = n.port; this.port = n.port;
this.topic = n.topic; this.topic = n.topic;
this.trans = (n.transport||n.trans||"").toLowerCase(); this.trans = (n.transport||n.trans||"").toLowerCase();

View File

@ -18,7 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
function SocketOut(n) { function SocketOut(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.warn("node type deprecated - will be moved to node-red-nodes project at next point update"); this.warn("node type deprecated - will be removed in a future release");
this.host = n.host; this.host = n.host;
this.port = n.port * 1; this.port = n.port * 1;
this.name = n.name; this.name = n.name;

View File

@ -20,7 +20,7 @@ var dgram = require('dgram');
// The Input Node // The Input Node
function MCastIn(n) { function MCastIn(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.warn("node type deprecated - will be moved to node-red-nodes project at next point update"); this.warn("node type deprecated - will be removed in a future release");
this.group = n.group; this.group = n.group;
this.port = n.port; this.port = n.port;
this.host = n.host || null; this.host = n.host || null;

View File

@ -19,7 +19,7 @@ var gpio = require("pi-gpio");
function GPIOInNode(n) { function GPIOInNode(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.warn("node type deprecated - will be moved to node-red-nodes project at next point update"); this.warn("node type deprecated - will be removed in a future release");
this.buttonState = -1; this.buttonState = -1;
this.pin = n.pin; this.pin = n.pin;
this.resistor = n.resistor; this.resistor = n.resistor;

View File

@ -19,7 +19,7 @@ var gpio = require("pi-gpio");
function GPIOOutNode(n) { function GPIOOutNode(n) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.warn("node type deprecated - will be moved to node-red-nodes project at next point update"); this.warn("node type deprecated - will be removed in a future release");
this.pin = n.pin; this.pin = n.pin;
var node = this; var node = this;