Comparing version 0.9.3 to 0.9.4
@@ -255,3 +255,3 @@ var mongodb = require('mongodb'); | ||
opts[tmp] = 1; | ||
}; | ||
} | ||
this._get(function(err, db) { | ||
@@ -258,0 +258,0 @@ if (err) return callback(err); |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"repository": "git://github.com/mafintosh/mongojs.git", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
# mongojs | ||
A [node.js](http://nodejs.org) module for mongodb, that emulates [the official mongodb API](http://www.mongodb.org/display/DOCS/Home) as much as possible. | ||
It wraps [mongodb-native](https://github.com/christkv/node-mongodb-native/) and is available through [npm](http://npmjs.org) | ||
It wraps [mongodb-native](https://github.com/mongodb/node-mongodb-native/) and is available through [npm](http://npmjs.org) | ||
npm install mongojs | ||
[![build status](https://secure.travis-ci.org/mafintosh/mongojs.png)](http://travis-ci.org/mafintosh/mongojs.png) | ||
[![build status](https://secure.travis-ci.org/mafintosh/mongojs.png)](http://travis-ci.org/mafintosh/mongojs) | ||
@@ -10,0 +10,0 @@ ## Usage |
@@ -9,18 +9,13 @@ var assert = require('assert'); | ||
var insertNextDoc = function() { | ||
db.a.insert(docs, function(err) { | ||
assert.ok(!err); | ||
if (!docs.length) { | ||
test(db, function() { | ||
db.a.remove(function(err) { | ||
assert.ok(!err); | ||
db.close(); | ||
}); | ||
test(db, function() { | ||
db.a.remove(function(err) { | ||
assert.ok(!err); | ||
db.close(); | ||
}); | ||
return; | ||
} | ||
db.a.save(docs.shift(), insertNextDoc); | ||
}; | ||
}); | ||
}); | ||
insertNextDoc(); | ||
}); | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26059
29
667