Comparing version 7.4.1 to 7.4.2
@@ -23,3 +23,2 @@ 'use strict'; | ||
const now = originalModel.base.now(); | ||
if (op['insertOne']) { | ||
@@ -70,3 +69,5 @@ return (callback) => { | ||
applyTimestampsToChildren(now, op['updateOne']['update'], model.schema); | ||
if (op['updateOne'].timestamps !== false) { | ||
applyTimestampsToChildren(now, op['updateOne']['update'], model.schema); | ||
} | ||
@@ -122,5 +123,6 @@ if (op['updateOne'].setDefaultsOnInsert !== false) { | ||
} | ||
if (op['updateMany'].timestamps !== false) { | ||
applyTimestampsToChildren(now, op['updateMany']['update'], model.schema); | ||
} | ||
applyTimestampsToChildren(now, op['updateMany']['update'], model.schema); | ||
_addDiscriminatorToObject(schema, op['updateMany']['filter']); | ||
@@ -127,0 +129,0 @@ |
@@ -15,2 +15,5 @@ 'use strict'; | ||
} | ||
if (schema.aliases && schema.aliases.id) { | ||
return schema; | ||
} | ||
schema.virtual('id').get(idGetter); | ||
@@ -17,0 +20,0 @@ schema.virtual('id').set(idSetter); |
{ | ||
"name": "mongoose", | ||
"description": "Mongoose MongoDB ODM", | ||
"version": "7.4.1", | ||
"version": "7.4.2", | ||
"author": "Guillermo Rauch <guillermo@learnboost.com>", | ||
@@ -31,6 +31,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/core": "7.22.5", | ||
"@babel/preset-env": "7.22.5", | ||
"@babel/core": "7.22.9", | ||
"@babel/preset-env": "7.22.9", | ||
"@typescript-eslint/eslint-plugin": "5.61.0", | ||
"@typescript-eslint/parser": "5.61.0", | ||
"@typescript-eslint/parser": "5.62.0", | ||
"acquit": "1.3.0", | ||
@@ -50,3 +50,3 @@ "acquit-ignore": "0.2.1", | ||
"dox": "1.0.0", | ||
"eslint": "8.44.0", | ||
"eslint": "8.46.0", | ||
"eslint-plugin-markdown": "^3.0.0", | ||
@@ -74,3 +74,3 @@ "eslint-plugin-mocha-no-only": "1.1.1", | ||
"uuid": "9.0.0", | ||
"webpack": "5.88.1" | ||
"webpack": "5.88.2" | ||
}, | ||
@@ -77,0 +77,0 @@ "directories": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2623585
49700