Comparing version 0.2.1 to 0.3.0
@@ -233,9 +233,2 @@ const { | ||
module.exports = (BSON) => { | ||
ObjectIdView.BSON = BSON.ObjectId; | ||
BinaryView.BSON = BSON.Binary; | ||
CodeView.BSON = BSON.Code; | ||
LongView.BSON = BSON.Long; | ||
TimestampView.BSON = BSON.Timestamp; | ||
return BSONView; | ||
}; | ||
module.exports = BSONView; |
@@ -10,4 +10,4 @@ const { ArrayViewMixin } = require('structurae'); | ||
BinaryView.BSON = undefined; | ||
BinaryView.BSON = globalThis.BSON && globalThis.BSON.Binary; | ||
module.exports = BinaryView; |
@@ -10,4 +10,4 @@ const { StringView } = require('structurae'); | ||
CodeView.BSON = undefined; | ||
CodeView.BSON = globalThis.BSON && globalThis.BSON.Code; | ||
module.exports = CodeView; |
@@ -10,4 +10,4 @@ const { TypeViewMixin } = require('structurae'); | ||
LongView.BSON = undefined; | ||
LongView.BSON = globalThis.BSON && globalThis.BSON.Long; | ||
module.exports = LongView; |
@@ -68,4 +68,4 @@ | ||
ObjectIdView.BSON = undefined; | ||
ObjectIdView.BSON = globalThis.BSON && globalThis.BSON.ObjectId; | ||
module.exports = ObjectIdView; |
@@ -10,4 +10,4 @@ const { TypeViewMixin } = require('structurae'); | ||
TimestampView.BSON = undefined; | ||
TimestampView.BSON = globalThis.BSON && globalThis.BSON.Timestamp; | ||
module.exports = TimestampView; |
{ | ||
"name": "bsonview", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Schema-based BSON using structurae's ObjectView binary protocol.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
13631
340