Skip to content

Commit

Permalink
dependency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glynnbird committed Jul 3, 2018
1 parent b895a77 commit 1f03886
Show file tree
Hide file tree
Showing 4 changed files with 1,009 additions and 10 deletions.
7 changes: 1 addition & 6 deletions app.js
Expand Up @@ -18,7 +18,7 @@ var app = new shell( { chdir: __dirname } )
// Middleware registration
app.configure(function() {
app.use(function(req, res, next){
app.client = require('cloudant')(process.env.COUCH_URL);
app.client = require('@cloudant/cloudant')(process.env.COUCH_URL);
next()
});
app.use(shell.history({
Expand Down Expand Up @@ -66,7 +66,6 @@ var convertToURL = function(x) {
app.cmd('ls', 'List dbs/documents', function(req, res, next){
if (appsettings.cloudantdb) {
appsettings.cloudantdb.list( { limit: 10 }, function(err, data){
console.log(err,data);
if(err){ res.cyan(formatErr(err)); res.prompt(); return }
res.cyan(formatDocs(data.rows, ' ')+'\n'||'no documents');
res.prompt();
Expand Down Expand Up @@ -461,10 +460,6 @@ app.cmd('fsck :id', 'Repair document (remove conflicts)', function(req, res, nex
}
});





// Event notification
app.on('quit', function(){
process.exit();
Expand Down
2 changes: 1 addition & 1 deletion completer.js
Expand Up @@ -24,7 +24,7 @@ module.exports = (settings) ->
*/

var longestCommonPrefix = require('./longest-common-prefix');
var nano = require('cloudant');
var nano = require('@cloudant/cloudant');

function processSuggestions(suggestions, startkey, text, cb) {
if(suggestions.length) {
Expand Down

0 comments on commit 1f03886

Please sign in to comment.