Skip to content

Commit

Permalink
Fix dependencies in 3.x (#45)
Browse files Browse the repository at this point in the history
 - Refactor to use core + http for pouchdb to remove the need for
   leveldown in package-lock
 - As well as updating to a version of couch2pg that does the same
 - Adds a missing dependency that was being pulled in by dev deps
  • Loading branch information
SCdF authored Mar 19, 2019
1 parent 1069b31 commit 1b46d08
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 1,027 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ module.exports = function(grunt) {
grunt.initConfig({
eslint: {
options: {
configFile: ".eslintrc"
configFile: '.eslintrc'
},
src: [
"libs/**/*.js",
"tests/**/*.js",
"index.js"
'libs/**/*.js',
'tests/**/*.js',
'index.js'
]
},
mochaTest: {
Expand Down
2 changes: 1 addition & 1 deletion libs/couch2pg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const urlParser = require('url'),
PouchDB = require('pouchdb'),
PouchDB = require('./db'),
couch2pg = require('couch2pg');

// Removes credentials from couchdb url
Expand Down
4 changes: 4 additions & 0 deletions libs/db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const PouchDB = require('pouchdb-core');
PouchDB.plugin(require('pouchdb-adapter-http'));

module.exports = PouchDB;
Loading

0 comments on commit 1b46d08

Please sign in to comment.