Comparing version
@@ -65,2 +65,3 @@ 'use strict'; | ||
this.schema = schema; | ||
// EmbeddedDocument schematype options | ||
this.schemaOptions = schemaOptions || {}; | ||
@@ -87,5 +88,3 @@ this.$isMongooseDocumentArray = true; | ||
this.$embeddedSchemaType = new DocumentArrayElement(key + '.$', { | ||
required: this && | ||
this.schemaOptions && | ||
this.schemaOptions.required || false, | ||
...(schemaOptions || {}), | ||
$parentSchemaType | ||
@@ -92,0 +91,0 @@ }); |
{ | ||
"name": "mongoose", | ||
"description": "Mongoose MongoDB ODM", | ||
"version": "8.16.2", | ||
"version": "8.16.3", | ||
"author": "Guillermo Rauch <guillermo@learnboost.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -761,3 +761,3 @@ declare module 'mongoose' { | ||
select<RawDocTypeOverride extends { [P in keyof RawDocType]?: any } = {}>( | ||
arg: string | string[] | Record<string, number | boolean | string | object> | ||
arg: string | readonly string[] | Record<string, number | boolean | string | object> | ||
): QueryWithHelpers< | ||
@@ -764,0 +764,0 @@ IfEquals< |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2571950
054682
0