Comparing version
@@ -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 @@ ================== |
@@ -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" |
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
41985
5.78%15
7.14%890
6.97%0
-100%2
Infinity%