Skip to content

Commit c356a5a

Browse files
committed
feat(ext-json): export EJSON at top level of module
1 parent 2097d09 commit c356a5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: lib/bson.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const MaxKey = require('./max_key');
1616
const DBRef = require('./db_ref');
1717
const Binary = require('./binary');
1818
const constants = require('./constants');
19+
const EJSON = require('./extended_json');
1920

2021
// Parts of the parser
2122
const internalDeserialize = require('./parser/deserializer');
@@ -234,5 +235,8 @@ module.exports = Object.assign({}, constants, {
234235
setInternalBufferSize,
235236

236237
// legacy support
237-
ObjectID: ObjectId
238+
ObjectID: ObjectId,
239+
240+
// Extended JSON
241+
EJSON
238242
});

0 commit comments

Comments
 (0)