Comparing version 0.2.6 to 0.3.0
@@ -144,2 +144,6 @@ var mongo = require('mongodb'); | ||
Collection.prototype.close = function() { | ||
this.close(); | ||
}; | ||
Object.keys(mongo.Collection.prototype).forEach(function(name) { // we just wanna proxy any remaining methods on collections | ||
@@ -146,0 +150,0 @@ if (!Collection.prototype[name] && typeof mongo.Collection.prototype[name] === 'function') { |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["mongo", "db", "mongodb"], | ||
"version":"0.2.6", | ||
"version":"0.3.0", | ||
"homepage" : "https://github.com/gett/mongojs", | ||
@@ -11,3 +11,3 @@ "author": "Ge.tt <hello@ge.tt>", | ||
"Mathias Buus Madsen <m@ge.tt>", | ||
"Ian Jorgensen <i@ge.tt" | ||
"Ian Jorgensen <i@ge.tt>" | ||
], | ||
@@ -14,0 +14,0 @@ "main":"./index.js", |
@@ -24,5 +24,9 @@ # mongojs | ||
var db = require('mongojs').connect('username:password@example.com/mydb', ['mycollection']); | ||
// connect now, and worry about collections later | ||
var db = require('mongojs').connect('mydb'); | ||
var mycollection = db.collection('mycollection'); | ||
``` | ||
After we connected to can query or update the database just how we would using the mongo API with the exception that we use a callback | ||
After we connected we can query or update the database just how we would using the mongo API with the exception that we use a callback | ||
The format for callbacks is always `callback(error, value)` where error is null if no exception has occured. | ||
@@ -29,0 +33,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
8749
4
210
63
0
1