mongodb-schema
Advanced tools
Comparing version
@@ -15,3 +15,3 @@ var es = require('event-stream'); | ||
var extractStringValueFromBSON = function(value) { | ||
if (_.has(value, '_bsontype')) { | ||
if (value && value._bsontype) { | ||
if (_.includes([ 'Decimal128', 'Long' ], value._bsontype)) { | ||
@@ -196,3 +196,3 @@ return value.toString(); | ||
var T; | ||
if (_.has(value, '_bsontype')) { | ||
if (value && value._bsontype) { | ||
T = value._bsontype; | ||
@@ -199,0 +199,0 @@ } else { |
{ | ||
"name": "mongodb-schema", | ||
"description": "Infer the probabilistic schema for a MongoDB collection.", | ||
"version": "8.2.2", | ||
"version": "8.2.3", | ||
"author": "Thomas Rueckstiess <thomas@rueckstiess.net>", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
44297
0