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.