Skip to content

Commit 6f4b1fd

Browse files
committed
Merge branch 'develop'
* develop: bump version update to cfenv package add .npmignore file
2 parents bbb793e + c80d166 commit 6f4b1fd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.editorconfig
2+
.cfignore

77-cloudant-cf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ module.exports = function(RED) {
1818

1919
var url = require('url');
2020
var querystring = require('querystring');
21-
var cfEnv = require("cf-env");
21+
var cfEnv = require("cfenv");
2222

2323
var MAX_ATTEMPTS = 3;
2424

25-
var cfCore = cfEnv.getCore();
25+
var appEnv = cfEnv.getAppEnv();
2626
var services = [];
2727

2828
// load the services bindded to this application
29-
for (var i in cfCore.services) {
29+
for (var i in appEnv.services) {
3030
// filter the services to include only the Cloudant ones
3131
if (i.match(/^(cloudant)/i)) {
32-
services = services.concat(cfCore.services[i].map(function(v) {
32+
services = services.concat(appEnv.services[i].map(function(v) {
3333
return { name: v.name, label: v.label };
3434
}));
3535
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name" : "node-red-node-cf-cloudant",
3-
"version" : "0.2.4",
3+
"version" : "0.2.6",
44
"description" : "A Node-RED node to access a Cloudant database on Bluemix",
55
"dependencies" : {
6+
"cfenv": "1.0.0",
67
"nano" : "5.10.0"
78
},
89
"repository" : {

0 commit comments

Comments
 (0)