Skip to content

Commit

Permalink
(#1387) - prototype based plugins api
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed Feb 26, 2014
1 parent d48cde2 commit e4c409f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PouchDB.adapter('https', httpAdapter);

PouchDB.adapter('idb', require('./adapters/idb'));
PouchDB.adapter('websql', require('./adapters/websql'));
PouchDB.plugin('mapreduce', require('pouchdb-mapreduce'));
PouchDB.plugin('query', require('pouchdb-mapreduce'));

if (!process.browser) {
var ldbAdapter = require('./adapters/leveldb');
Expand Down
2 changes: 1 addition & 1 deletion lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ PouchDB.adapter = function (id, obj) {
};

PouchDB.plugin = function (id, obj) {
PouchDB.plugins[id] = obj;
PouchDB.prototype[id] = obj;
};

module.exports = PouchDB;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"dependencies": {
"request": "~2.28.0",
"pouchdb-mapreduce": "0.6.2",
"pouchdb-mapreduce": "git:https://github.com/pouchdb/mapreduce.git#prototype",
"bluebird": "~1.0.0",
"level-sublevel": "~5.2.0",
"levelup": "~0.18.2",
Expand Down

0 comments on commit e4c409f

Please sign in to comment.