node-red-contrib-twitter
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "node-red-contrib-twitter", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "NodeRED nodes to wrap the v1.1 of the Twitter API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,10 +34,12 @@ var Twitter = require('twitter'); | ||
var payload = typeof msg.payload === 'object' ? msg.payload : {}; | ||
var attrs = ['q','geocode','lang','result_type','count','until','since_id','max_id','include_entities']; | ||
for (var attr of attrs) { | ||
if (n[attr]) { | ||
msg.payload[attr] = n[attr]; | ||
payload[attr] = n[attr]; | ||
} | ||
} | ||
_internals.search(msg.payload, creds, function(err, result){ | ||
_internals.search(payload, creds, function(err, result){ | ||
@@ -44,0 +46,0 @@ msg.payload = result; |
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
9709
46