Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update Dependencies and Fix Pending Request Handling #2

Merged
merged 2 commits into from

2 participants

@srijs

Updated to use new versions of mongodb and node.

Fixed the handling of pending requests.

Sam Rijs added some commits
@jiem jiem merged commit 8f34ac8 into jiem:master
@jiem
Owner

Thx

@srijs srijs deleted the srijs:fix-pending branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2013
  1. Update dependencies.

    Sam Rijs authored
  2. Fix pending requests.

    Sam Rijs authored
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 8 deletions.
  1. +6 −3 index.js
  2. +5 −5 package.json
View
9 index.js
@@ -40,8 +40,11 @@ exports.open = function(a, b, c) {
collectionWrapper.connection = collection;
pendingRequests = collectionWrapper.pendingRequests;
COLLECTION[collection.collectionName] = collection;
- for (i = 0; request = pendingRequests[i]; i++)
- collection[request.method].apply(collection, request.arguments);
+ if (pendingRequests) {
+ pendingRequests.forEach(function (request) {
+ collection[request.method].apply(collection, request.arguments);
+ });
+ }
}
}
@@ -150,4 +153,4 @@ mongo.Collection.prototype.findAll = function() {
}
//==============================================================================
-init();
+init();
View
10 package.json
@@ -1,15 +1,15 @@
{
"name": "mongo-lazy",
"description": "Node-mongodb-native for lazy people. Don't ever open a collection again. Eat a piece of cake while doing parallel queries.",
- "version": "0.0.2",
+ "version": "0.0.3",
"author": "Jie Meng-Gerard <contact@jie.fr>",
"repository": "git://github.com/jiem/mongo-lazy",
"keywords": ["mongo", "mongodb", "mongodb-native", "db"],
- "main": "./index.js",
+ "main": "index.js",
"engines": {
- "node": ">=0.7.0"
+ "node": "~0.10.0"
},
"dependencies": {
- "mongodb": "1.0.x"
+ "mongodb": "~1.2.0"
}
-}
+}
Something went wrong with that request. Please try again.