Skip to content

Commit

Permalink
Fix dependencies (#46)
Browse files Browse the repository at this point in the history
Move to only importing those pieces of PouchDB we need
  • Loading branch information
SCdF authored Mar 19, 2019
1 parent 1b639f8 commit e626c89
Show file tree
Hide file tree
Showing 3 changed files with 450 additions and 1,631 deletions.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

var log = require('loglevel-message-prefix')(require('loglevel'), {
prefixes: ['timestamp', 'level']
});
Expand All @@ -6,7 +8,10 @@ var Promise = require('rsvp').Promise,
env = require('./env')(),
xmlformsMigrator = require('./libs/xmlforms/migrator');

var couchdb = require('pouchdb')(env.couchdbUrl),
var PouchDB = require('pouchdb-core');
PouchDB.plugin(require('pouchdb-adapter-http'));

var couchdb = PouchDB(env.couchdbUrl),
db = require('pg-promise')({ 'promiseLib': Promise })(env.postgresqlUrl);

var couch2pg = require('couch2pg'),
Expand Down
Loading

0 comments on commit e626c89

Please sign in to comment.