Skip to content
Browse files

fix bson link

  • Loading branch information...
1 parent 3b19bd2 commit 4f109c82162a9590ba69970f528832a4479f9804 @phzbox committed Oct 5, 2012
Showing with 2 additions and 7 deletions.
  1. +1 −6 lib/plugins/useTimestamps.js
  2. +1 −1 package.json
View
7 lib/plugins/useTimestamps.js
@@ -1,11 +1,6 @@
var mongoose = require('mongoose')
, ObjectID = mongoose.ObjectID
- , BinaryParser = require('mongoose/node_modules/mongodb/node_modules/bson').BinaryParser;
-
- // FIX:
- // Before: BinaryParser = mongoose.mongo.BinaryParser;
- // New: , BinaryParser = require('mongoose/node_modules/mongodb/node_modules/bson').BinaryParser;
- // Why: BinaryParser is not exported by mongo anymore.
+ , BinaryParser = require('bson').BinaryParser;
exports.useTimestamps = function (schema, options) {
if (schema.path('_id')) {
View
2 package.json
@@ -2,7 +2,7 @@
, "description": "More types for mongoose"
, "version": "1.0.3"
, "author": "Brian Noguchi"
-, "dependencies": { "mongoose": ">= 1.0.16"}
+, "dependencies": { "mongoose": ">= 1.0.16", "bson": "0.1.5" }
, "keywords": [ "mongoose", "mongo", "mongodb", "types" ]
, "scripts": { "test": "make test" }
, "engines": { "node": ">= 0.1.101" }

0 comments on commit 4f109c8

Please sign in to comment.
Something went wrong with that request. Please try again.