@memberjunction/core
Advanced tools
Comparing version
@@ -228,3 +228,3 @@ import { EntityFieldInfo, EntityInfo, EntityFieldTSType, EntityPermissionType, RecordChange, ValidationResult, EntityRelationshipInfo } from './entityInfo'; | ||
*/ | ||
GetFieldByName(fieldName: string): EntityField; | ||
GetFieldByName(fieldName: string): EntityField | null; | ||
/** | ||
@@ -231,0 +231,0 @@ * Returns true if the object is Dirty, meaning something has changed since it was last saved to the database, and false otherwise. For new records, this will always return true. |
@@ -395,2 +395,5 @@ "use strict"; | ||
GetFieldByName(fieldName) { | ||
if (!fieldName) { | ||
return null; | ||
} | ||
const lcase = fieldName.trim().toLowerCase(); // do this once as we will use it multiple times | ||
@@ -397,0 +400,0 @@ return this.Fields.find(f => f.Name.trim().toLowerCase() === lcase); |
{ | ||
"name": "@memberjunction/core", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "MemberJunction: Core Library including Metadata, Application, Entity Retrieval and Manipulation, and Utilities", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@memberjunction/global": "2.4.1", | ||
"@memberjunction/global": "2.5.0", | ||
"rxjs": "^7.8.1", | ||
@@ -25,0 +25,0 @@ "zod": "^3.23.8" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
591524
0.02%8536
0.04%+ Added
- Removed
Updated