Comparing version 7.4.4 to 7.4.5
@@ -12,2 +12,3 @@ 'use strict'; | ||
const getConstructorName = require('../../helpers/getConstructorName'); | ||
const internalToObjectOptions = require('../../options').internalToObjectOptions; | ||
const stream = require('stream'); | ||
@@ -381,3 +382,3 @@ const util = require('util'); | ||
const clone = require('../../helpers/clone'); | ||
let x = clone(obj, { transform: false }); | ||
let x = clone(obj, internalToObjectOptions); | ||
const constructorName = getConstructorName(x); | ||
@@ -384,0 +385,0 @@ |
@@ -20,2 +20,3 @@ 'use strict'; | ||
const internalToObjectOptions = require('../options').internalToObjectOptions; | ||
const isExclusive = require('../helpers/projection/isExclusive'); | ||
const utils = require('../utils'); | ||
@@ -182,3 +183,4 @@ const InvalidSchemaOptionError = require('../error/invalidSchemaOption'); | ||
subdoc.$init(val); | ||
applyDefaults(subdoc, selected); | ||
const exclude = isExclusive(selected); | ||
applyDefaults(subdoc, selected, exclude); | ||
} else { | ||
@@ -185,0 +187,0 @@ options = Object.assign({}, options, { priorDoc: priorVal }); |
{ | ||
"name": "mongoose", | ||
"description": "Mongoose MongoDB ODM", | ||
"version": "7.4.4", | ||
"version": "7.4.5", | ||
"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
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
2631896
49934