🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

mongodb-schema

Package Overview
Dependencies
Maintainers
33
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-schema - npm Package Compare versions

Comparing version

to
8.0.1

9

lib/stream.js

@@ -285,3 +285,5 @@ var es = require('event-stream');

addToField = function(path, value, schema) {
var field = schema[path] = _.get(schema, path, {
var defaults = {};
defaults[path] = {
name: _.last(path.split('.')),

@@ -291,3 +293,6 @@ path: path,

types: {}
});
};
_.defaultsDeep(schema, defaults);
var field = schema[path];
field.count++;

@@ -294,0 +299,0 @@ // debug('added to field', field);

{
"name": "mongodb-schema",
"description": "Infer the probabilistic schema for a MongoDB collection.",
"version": "8.0.0",
"version": "8.0.1",
"author": "Thomas Rueckstiess <thomas@rueckstiess.net>",

@@ -6,0 +6,0 @@ "license": "Apache-2.0",