mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Change node deprecation message
This commit is contained in:
		@@ -18,7 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
 | 
			
		||||
 | 
			
		||||
function SocketIn(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.topic = n.topic;
 | 
			
		||||
    this.trans = (n.transport||n.trans||"").toLowerCase();
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ var RED = require(process.env.NODE_RED_HOME+"/red/red");
 | 
			
		||||
 | 
			
		||||
function SocketOut(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.port = n.port * 1;
 | 
			
		||||
    this.name = n.name;
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@ var dgram = require('dgram');
 | 
			
		||||
// The Input Node
 | 
			
		||||
function MCastIn(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.port = n.port;
 | 
			
		||||
    this.host = n.host || null;
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ var gpio = require("pi-gpio");
 | 
			
		||||
 | 
			
		||||
function GPIOInNode(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.pin = n.pin;
 | 
			
		||||
    this.resistor = n.resistor;
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ var gpio = require("pi-gpio");
 | 
			
		||||
 | 
			
		||||
function GPIOOutNode(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;
 | 
			
		||||
 | 
			
		||||
    var node = this;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user