You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/10/31 22:52:56 UTC

[GitHub] jasonpet closed pull request #139: Switch to cloudant-nano (nano fork containing latest cloudant-follow)

jasonpet closed pull request #139: Switch to cloudant-nano (nano fork containing latest cloudant-follow)
URL: https://github.com/apache/incubator-openwhisk-package-cloudant/pull/139
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/package.json b/package.json
index 9134707..cacd03c 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
     "moment": "^2.11.1",
     "lodash": "^3.10.1",
     "request": "2.69.0",
-    "nano": "6.4.2",
+    "cloudant-nano": "6.7.0",
     "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 3d90fd3..0cdf137 100644
--- a/provider/app.js
+++ b/provider/app.js
@@ -47,7 +47,7 @@ function createDatabase() {
     var method = 'createDatabase';
     logger.info(method, 'creating the trigger database');
 
-    var nano = require('nano')(dbProtocol + '://' + dbUsername + ':' + dbPassword + '@' + dbHost);
+    var nano = require('cloudant-nano')(dbProtocol + '://' + dbUsername + ':' + dbPassword + '@' + dbHost);
 
     if (nano !== null) {
         return new Promise(function (resolve, reject) {
diff --git a/provider/lib/utils.js b/provider/lib/utils.js
index ea6d906..5304c82 100644
--- a/provider/lib/utils.js
+++ b/provider/lib/utils.js
@@ -40,7 +40,7 @@ module.exports = function(
         }
 
         try {
-            var nanoConnection = require('nano')(dbURL);
+            var nanoConnection = require('cloudant-nano')(dbURL);
             var triggeredDB = nanoConnection.use(dataTrigger.dbname);
 
             // Listen for changes on this database.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services