From 04ddf0c7a275147579382f80d25d26aaac396203 Mon Sep 17 00:00:00 2001 From: Jason Peterson Date: Tue, 31 Oct 2017 18:58:17 -0400 Subject: [PATCH] Switch to cloudant-nano (fork of nano with latest version of cloudant-follow) --- package.json | 2 +- provider/app.js | 2 +- provider/lib/utils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 f22909b..8446117 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.