node-red-contrib-nexmo
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -11,9 +11,4 @@ module.exports = function (RED) { | ||
RED.nodes.registerType("nexmo-credentials", nexmoCredentialNode, { | ||
credentials: { | ||
"api_key": { type: "password" }, | ||
"api_secret": { type: "password" } | ||
} | ||
}); | ||
RED.nodes.registerType("nexmo-credentials", nexmoCredentialNode); | ||
} |
@@ -10,3 +10,4 @@ module.exports = function (RED) { | ||
this.topic = n.topic; | ||
this.auth = RED.nodes.getNode(n.auth); | ||
this.cred = RED.nodes.getNode(n.cred); | ||
this.auth = this.auth = RED.nodes.getNode(n.auth) | ||
@@ -22,4 +23,4 @@ let node = this; | ||
'api_secret': this.auth.credentials.api_secret, | ||
'to': this.auth.number, | ||
'from': this.auth.from, | ||
'to': this.cred.number, | ||
'from': this.cred.from, | ||
'text': msg.payload | ||
@@ -26,0 +27,0 @@ }, |
{ | ||
"name": "node-red-contrib-nexmo", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "This node let you send SMS via the Nexmo API", | ||
"author": "Nicolas FRBEZAR <nicolas.frbezar@actemium.com>", | ||
"keywords": [ | ||
"node-red", | ||
"node-red", | ||
"sms", | ||
@@ -20,5 +20,6 @@ "Nexmo", | ||
"nexmo": "nodes/nexmo.js", | ||
"nexmo-credentials": "nodes/nexmo-credentials.js" | ||
"nexmo-credentials": "nodes/nexmo-credentials.js", | ||
"nexmo-auth": "nodes/nexmo-auth.js" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25703
11
53