Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-autopopulate

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-autopopulate - npm Package Compare versions

Comparing version 0.12.2 to 0.12.3

4

index.js

@@ -70,3 +70,5 @@ 'use strict';

const docVal = this.get(options.path);
return docVal == null || pop.length !== docVal.length;
return docVal == null ||
pop.length !== docVal.length ||
pop.some(v => v == null);
}

@@ -73,0 +75,0 @@ return true;

{
"name": "mongoose-autopopulate",
"version": "0.12.2",
"version": "0.12.3",
"description": "Always populate() certain fields in your mongoose schemas",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,3 +18,3 @@ # mongoose-autopopulate

in your schema - your data will become unwieldy as the array grows and
you will eventually hit the [16mb document size limit](http://docs.mongodb.org/manual/reference/limits/#BSON-Document-Size).
you will eventually hit the [16 MB document size limit](http://docs.mongodb.org/manual/reference/limits/#BSON-Document-Size).
In general, think carefully when designing your schemas.

@@ -21,0 +21,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc