Skip to content

Commit

Permalink
extract couchdb wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tdebarochez committed Aug 10, 2012
1 parent 06aad4c commit 2d23874
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 302 deletions.
6 changes: 3 additions & 3 deletions lib/connect-couchdb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Couch = require('./couch');
var Couch = require('yacw');

module.exports = function(connect) {
var Store = connect.session.Store;
Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports = function(connect) {
}

ConnectCouchDB.prototype.__proto__ = Store.prototype;

ConnectCouchDB.prototype.setupOptions = function (opts, fn) {
this.db.putOpt('_revs_limit', opts.revs_limit, function(err) {
_check_error(err);
Expand Down Expand Up @@ -167,7 +167,7 @@ module.exports = function(connect) {
});
}
}
destroyDocAt(0);
destroyDocAt(0);
}

ConnectCouchDB.prototype.clear = function (fn) {
Expand Down
166 changes: 0 additions & 166 deletions lib/couch.js

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
"name": "connect-couchdb",
"description": "CouchDB session store for Connect",
"keywords" : [ "connect", "session", "couchdb", "middleware" ],
"version": "0.2.5",
"version": "0.3.0",
"author": "Thomas Debarochez <thomas.barochez+npm@gmail.com>",
"contributors": ["Ian Ward (https://github.com/ianshward)",
"Ryan Kirkman (https://github.com/ryankirkman)",
"Young Hahn (https://github.com/yhahn)",
"Ryan Kirkman (https://github.com/ryankirkman)",
"Dan VerWeire (https://github.com/wankdanker)",
"Pau Ramon Revilla (https://github.com/masylum)",
"Konstantin Käfer (https://github.com/kkaefer)",
"Daniel Bell (https://github.com/danbell)"],
"main": "./index.js",
"dependencies": {
"request": "2.x",
"connect": "*"
"connect": "*",
"yacw": "0.1.x"
},
"devDependencies": {
"expresso": "0.9.x"
Expand Down
124 changes: 0 additions & 124 deletions test/test.couch.js

This file was deleted.

Loading

0 comments on commit 2d23874

Please sign in to comment.