New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongoskin

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoskin - npm Package Compare versions

Comparing version

to
0.2.1

test/collection.test.js

4

History.md

@@ -0,1 +1,5 @@

0.2.1 / 2011-11-18
==================
* add ObjectId support for XXXXById
0.2.0 / 2011-11-06

@@ -2,0 +6,0 @@ ==================

15

lib/mongoskin/collection.js

@@ -46,2 +46,3 @@ /**

this.skinDb = skinDb;
this.ObjectID = this.skinDb.db.bson_serializer.ObjectID;
this.collectionName = collectionName;

@@ -62,3 +63,3 @@ this.collection;

this.emitter = new events.EventEmitter();
}
};

@@ -128,3 +129,3 @@ /**

this.state = STATE_CLOSE;
}
};

@@ -180,2 +181,5 @@ SkinCollection.prototype.drop = function(fn) {

SkinCollection.prototype.id = function(hex) {
if(hex instanceof this.ObjectID) {
return hex;
}
return this.skinDb.db.bson_serializer.ObjectID.createFromHexString(hex);

@@ -185,3 +189,8 @@ };

/**
* use hex id as first argument
* use hex id as first argument, support ObjectID and String id
*
* @param {String/ObjectID} id
* @param {Function} callback
* @return {Object} cursor
* @api public
*/

@@ -188,0 +197,0 @@ SkinCollection.prototype.findById = function() {

{
"name": "mongoskin",
"description": "The future layer above node-mongodb-native",
"version": "0.2.0",
"version": "0.2.1",
"author": "Jason Green <guileen@gmail.com>",

@@ -24,3 +24,6 @@ "repository": {

},
"devDependencies": {},
"devDependencies": {
"expresso": "0.9.2",
"should": "0.3.2"
},
"directories": {

@@ -27,0 +30,0 @@ "lib": "lib/mongoskin"