Skip to content

Commit

Permalink
update node version
Browse files Browse the repository at this point in the history
  • Loading branch information
williamkapke committed May 14, 2019
1 parent df4eada commit 9490e0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
language: node_js
node_js:
- "6.14.2"
- "6.14.4"
- "8.16.0"
- "10.15.3"
- "12.2.0"
4 changes: 3 additions & 1 deletion objectid.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,14 @@ function buffer(str) {
return out;
}

var inspect = (Symbol && Symbol.for('nodejs.util.inspect.custom')) || 'inspect';

/**
* Converts to a string representation of this Id.
*
* @return {String} return the 24 byte hex string representation.
* @api private
*/
ObjectID.prototype.inspect = function() { return "ObjectID("+this+")" };
ObjectID.prototype[inspect] = function() { return "ObjectID("+this+")" };
ObjectID.prototype.toJSON = ObjectID.prototype.toHexString;
ObjectID.prototype.toString = ObjectID.prototype.toHexString;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bson-objectid",
"version": "1.2.4",
"version": "1.2.5",
"description": "Construct ObjectIDs without the mongodb driver or bson module",
"main": "objectid.js",
"typings": "./objectid.d.ts",
Expand Down

0 comments on commit 9490e0a

Please sign in to comment.