node-red-bluemix-nodes
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -35,8 +35,15 @@ /** | ||
var services = cfenv.getAppEnv().services, | ||
service; | ||
var apikey; | ||
var service = cfenv.getAppEnv().getServiceCreds(/alchemy/i); | ||
var apikey = service ? service.apikey : null; | ||
if (service) { | ||
apikey = service.apikey; | ||
} | ||
RED.httpAdmin.get('/alchemy-feature-extract/vcap', function (req, res) { | ||
res.json(service); | ||
res.json(service ? {bound_service: true} : null); | ||
}); | ||
@@ -54,3 +61,3 @@ | ||
apikey = apikey || config.apikey; | ||
apikey = apikey || this.credentials.apikey; | ||
@@ -90,3 +97,7 @@ if (!apikey) { | ||
RED.nodes.registerType('alchemy-feature-extract', AlchemyFeatureExtractNode); | ||
RED.nodes.registerType('alchemy-feature-extract', AlchemyFeatureExtractNode, { | ||
credentials: { | ||
apikey: {type:"password"} | ||
} | ||
}); | ||
}; |
@@ -27,8 +27,15 @@ /** | ||
var services = cfenv.getAppEnv().services, | ||
service; | ||
var apikey; | ||
var service = cfenv.getAppEnv().getServiceCreds(/alchemy/i); | ||
var apikey = service ? service.apikey : null; | ||
if (service) { | ||
apikey = service.apikey; | ||
} | ||
RED.httpAdmin.get('/alchemy-image-analysis/vcap', function (req, res) { | ||
res.json(service); | ||
res.json(service ? {bound_service: true} : null); | ||
}); | ||
@@ -46,3 +53,3 @@ | ||
apikey = apikey || config.apikey; | ||
apikey = apikey || this.credentials.apikey; | ||
@@ -70,3 +77,7 @@ if (!apikey) { | ||
RED.nodes.registerType('alchemy-image-analysis', AlchemyImageAnalysisNode); | ||
RED.nodes.registerType('alchemy-image-analysis', AlchemyImageAnalysisNode, { | ||
credentials: { | ||
apikey: {type:"password"} | ||
} | ||
}); | ||
}; |
{ | ||
"name": "node-red-bluemix-nodes", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "A collection of extra Node-RED nodes for IBM Bluemix.", | ||
@@ -16,4 +16,3 @@ "dependencies": { | ||
"watson-developer-cloud": "^0.9.23", | ||
"when": "~3.x", | ||
"xml2js": "^0.4.6" | ||
"when": "~3.x" | ||
}, | ||
@@ -20,0 +19,0 @@ "repository": { |
@@ -73,7 +73,4 @@ /** | ||
var parseString = require('xml2js').parseString; | ||
parseString(response, function (err, result) { | ||
msg.relationships = result; | ||
node.send(msg); | ||
}); | ||
msg.relationships = response; | ||
node.send(msg); | ||
}); | ||
@@ -80,0 +77,0 @@ }); |
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
222076
11
1958
- Removedxml2js@^0.4.6
- Removedsax@1.4.1(transitive)
- Removedxml2js@0.4.23(transitive)
- Removedxmlbuilder@11.0.1(transitive)