@matchlighter/common_library
Advanced tools
Comparing version 1.2.11 to 1.2.12
@@ -22,4 +22,5 @@ export declare const mapObject: <K extends string | number, V = any>(obj: { | ||
export declare function addHiddenProp(object: any, propName: PropertyKey, value: any): void; | ||
export declare function getInheritedHiddenProp<T>(target: any, propName: PropertyKey, type: 'prototypical'): Record<any, T>; | ||
export declare function getInheritedHiddenProp<T>(target: any, propName: PropertyKey, defaultValue: Record<any, T> | 'object'): Record<any, T>; | ||
export declare function getInheritedHiddenProp<T>(target: any, propName: PropertyKey, defaultValue: T[] | 'array'): T[]; | ||
export declare function getInheritedHiddenProp<T>(target: any, propName: PropertyKey, defaultValue: 'set'): Set<T>; |
@@ -64,2 +64,7 @@ export const mapObject = (obj, valueTransform, keyTransform) => { | ||
} | ||
else if (defaultValue == 'prototypical') { | ||
newValue = {}; | ||
if (inherited) | ||
Object.setPrototypeOf(newValue, inherited); | ||
} | ||
addHiddenProp(target, propName, newValue); | ||
@@ -66,0 +71,0 @@ } |
{ | ||
"name": "@matchlighter/common_library", | ||
"version": "1.2.11", | ||
"version": "1.2.12", | ||
"description": "Shared Functions, Helpers, Patterns & Utilities for Apps and Libraries", | ||
@@ -5,0 +5,0 @@ "author": "Matchlighter", |
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
140675
122
2192