Socket
Socket
Sign inDemoInstall

mongoose

Package Overview
Dependencies
Maintainers
4
Versions
884
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose - npm Package Compare versions

Comparing version 8.1.2 to 8.1.3

8

lib/cursor/aggregationCursor.js

@@ -60,2 +60,6 @@ /*!

model.hooks.execPre('aggregate', agg, function() {
if (typeof agg.options?.cursor?.transform === 'function') {
c._transforms.push(agg.options.cursor.transform);
}
c.cursor = model.collection.aggregate(agg._pipeline, agg.options || {});

@@ -67,2 +71,6 @@ c.emit('cursor', c.cursor);

model.hooks.execPre('aggregate', agg, function() {
if (typeof agg.options?.cursor?.transform === 'function') {
c._transforms.push(agg.options.cursor.transform);
}
c.cursor = model.collection.aggregate(agg._pipeline, agg.options || {});

@@ -69,0 +77,0 @@ c.emit('cursor', c.cursor);

3

lib/helpers/populate/getModelsMapForPopulate.js

@@ -497,3 +497,3 @@ 'use strict';

while (k--) {
const modelName = modelNames[k];
let modelName = modelNames[k];
if (modelName == null) {

@@ -508,2 +508,3 @@ continue;

Model = modelName;
modelName = Model.modelName;
} else {

@@ -510,0 +511,0 @@ try {

@@ -14,3 +14,4 @@ 'use strict';

flattenDecimals: false,
useProjection: false
useProjection: false,
versionKey: true
};

@@ -88,3 +88,3 @@ 'use strict';

if (source.$set != null) {
destination.$set = Object.assign(destination.$set || {}, source.$set);
destination.$set = Array.isArray(source.$set) ? [...source.$set] : Object.assign({}, source.$set);
}

@@ -91,0 +91,0 @@

{
"name": "mongoose",
"description": "Mongoose MongoDB ODM",
"version": "8.1.2",
"version": "8.1.3",
"author": "Guillermo Rauch <guillermo@learnboost.com>",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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