This is an automated email from the ASF dual-hosted git repository.
dubeejw pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-cloudant.git
The following commit(s) were added to refs/heads/master by this push:
new 633065b use nano instead of @cloudant (#204)
633065b is described below
commit 633065b32b45bafefa499f45e88be0417bbc60e5
Author: Jason Peterson <[email protected]>
AuthorDate: Thu Apr 18 14:19:47 2019 -0400
use nano instead of @cloudant (#204)
---
package.json | 1 +
provider/app.js | 2 +-
provider/lib/utils.js | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 6214f12..7b970ed 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"lodash": "^3.10.1",
"request": "^2.83.0",
"@cloudant/cloudant": "3.0.0",
+ "nano": "8.0.1",
"json-stringify-safe": "^5.0.1",
"http-status-codes": "^1.0.5",
"request-promise": "^1.0.2",
diff --git a/provider/app.js b/provider/app.js
index c4e7f7f..ad37994 100644
--- a/provider/app.js
+++ b/provider/app.js
@@ -66,7 +66,7 @@ function createDatabase() {
var method = 'createDatabase';
logger.info(method, 'creating the trigger database');
- var cloudant = require('@cloudant/cloudant')(dbProtocol + '://' +
dbUsername + ':' + dbPassword + '@' + dbHost);
+ var cloudant = require('nano')(dbProtocol + '://' + dbUsername + ':' +
dbPassword + '@' + dbHost);
if (cloudant !== null) {
return new Promise(function (resolve, reject) {
diff --git a/provider/lib/utils.js b/provider/lib/utils.js
index 5cbbb99..fbb727f 100644
--- a/provider/lib/utils.js
+++ b/provider/lib/utils.js
@@ -62,7 +62,7 @@ module.exports = function(logger, triggerDB, redisClient) {
if (triggerData.port) {
url += ':' + triggerData.port;
}
- cloudantConnection = Cloudant(url);
+ cloudantConnection = require('nano')(url);
}
try {