Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "mongot", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "MongoT is a modern ODM library for MongoDb.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -36,3 +36,11 @@ "use strict"; | ||
static getSchemaMetadata(target) { | ||
return StoreType.get(target); | ||
const maps = []; | ||
const proto = Object.getPrototypeOf(target); | ||
if (proto && proto !== target && StoreType.has(proto)) { | ||
maps.push(...this.getSchemaMetadata(proto)); | ||
} | ||
if (StoreType.has(target)) { | ||
maps.push(...StoreType.get(target)); | ||
} | ||
return new Map(maps); | ||
} | ||
@@ -39,0 +47,0 @@ static getSchemaPropertyMetadata(target, property) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
124043
1805