🚀 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
3
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
4.2.3

9

lib/parse-native.js

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

if (type.name === 'String') {
// crop strings at 10k characters
if (value.length > 10000) {
value = value.slice(0, 10000);
// crop strings at 1k characters
if (value.length > 1000) {
value = value.slice(0, 1000);
}

@@ -63,4 +63,3 @@ }

} else {
type.values = _.get(type, 'values', type.name === 'String' ?
new Reservoir(100) : new Reservoir(10000));
type.values = _.get(type, 'values', new Reservoir(1000));
addToValue(type, value);

@@ -67,0 +66,0 @@ }

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

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