@remult/core
Advanced tools
Comparing version 3.0.18 to 3.0.19
{ | ||
"name": "@remult/core", | ||
"schematics": "./schematics/collection.json", | ||
"version": "3.0.18", | ||
"version": "3.0.19", | ||
"description": "remult core lib", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -104,4 +104,14 @@ "use strict"; | ||
if (item) { | ||
this.repository.addToCache(item); | ||
this.id = item["id"]; | ||
if (typeof item === "string" || typeof item === "number") | ||
this.id = item; | ||
else { | ||
var eo = remult3_1.getEntityOf(item, false); | ||
if (eo) { | ||
this.repository.addToCache(item); | ||
this.id = eo.getId(); | ||
} | ||
else { | ||
this.id = item[this.repository.defs.idField.key]; | ||
} | ||
} | ||
} | ||
@@ -108,0 +118,0 @@ else { |
@@ -130,3 +130,3 @@ import { FieldDefinitions, FieldSettings, ValueConverter, ValueListItem } from "../column-interfaces"; | ||
} | ||
export declare function getEntityOf<T>(item: T): rowHelper<T>; | ||
export declare function getEntityOf<T>(item: T, throwException?: boolean): rowHelper<T>; | ||
export declare const CaptionHelper: { | ||
@@ -133,0 +133,0 @@ determineCaption: (context: Context, key: string, caption: string) => string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1222097
18889