Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jdesboeufs/connect-mongo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: HashGo/connect-mongo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 11 commits
  • 2 files changed
  • 1 contributor

Commits on Jun 16, 2012

  1. Copy the full SHA
    ff2509a View commit details
  2. Reverted to most recent connect-mongo version in order to integrate w…

    …ith current connect version
    chalaschek committed Jun 16, 2012
    Copy the full SHA
    13f627a View commit details
  3. Package test

    chalaschek committed Jun 16, 2012
    Copy the full SHA
    5f0df9e View commit details
  4. Copy the full SHA
    2866e09 View commit details
  5. Rolled back to 0.1.9

    chalaschek committed Jun 16, 2012
    Copy the full SHA
    88ad1e1 View commit details
  6. Testing package tweak

    chalaschek committed Jun 16, 2012
    Copy the full SHA
    d1b7ac8 View commit details
  7. Copy the full SHA
    a345c7d View commit details
  8. Copy the full SHA
    e1c83b0 View commit details
  9. Copy the full SHA
    f1659cc View commit details
  10. Bumbed version

    chalaschek committed Jun 16, 2012
    Copy the full SHA
    6de8f88 View commit details
  11. Bumbed version

    chalaschek committed Jun 16, 2012
    Copy the full SHA
    bb8b823 View commit details
Showing with 15 additions and 10 deletions.
  1. +9 −8 lib/connect-mongo.js
  2. +6 −2 package.json
17 changes: 9 additions & 8 deletions lib/connect-mongo.js
Original file line number Diff line number Diff line change
@@ -79,14 +79,15 @@ module.exports = function(connect) {
throw new Error('Required MongoStore option `db` missing');
}

this.db = new mongo.Db(options.db,
new mongo.Server(
options.host || defaultOptions.host,
options.port || defaultOptions.port,
{
auto_reconnect: options.auto_reconnect ||
defaultOptions.auto_reconnect
}));
var _serverConfig = options.serverConfig? options.serverConfig : new mongo.Server(
options.host || defaultOptions.host,
options.port || defaultOptions.port,
{
auto_reconnect: options.auto_reconnect ||
defaultOptions.auto_reconnect
});

this.db = new mongo.Db(options.db, _serverConfig, options.mongoOptions);

this.db_collection_name = options.collection || defaultOptions.collection;

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "connect-mongo",
"version": "0.1.9",
"version": "0.2.0",
"description": "MongoDB session store for Connect",
"keywords": ["connect", "mongo", "mongodb", "session", "express"],
"author": "Casey Banner <kcbanner@gmail.com>",
"repository": {
"type": "git",
"url": "git@github.com:HashGo/connect-mongo.git"
},
"dependencies": {
"mongodb": "0.9.x"
"mongodb": "*"
},
"devDependencies": {
"mocha": "1.x",