Socket
Socket
Sign inDemoInstall

mongoose-lean-virtuals

Package Overview
Dependencies
288
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.2 to 0.7.3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

0.7.3 / 2020-11-12
==================
* fix: skip non-existent virtuals when passing a list of virtual names to `lean()` #42
0.7.2 / 2020-10-12

@@ -2,0 +6,0 @@ ==================

5

index.js

@@ -159,2 +159,5 @@ 'use strict';

const virtual = virtuals[i];
if (schema.virtuals[virtual] == null) {
continue;
}
const sp = Array.isArray(virtual) ? virtual : virtual.split('.');

@@ -168,2 +171,2 @@ let cur = doc;

}
}
}
{
"name": "mongoose-lean-virtuals",
"version": "0.7.2",
"version": "0.7.3",
"description": "Attach virtuals to the results of mongoose queries when using `.lean()`",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc