bonsaif 1.10.21 → 1.10.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utl.js +13 -1
- package/package.json +1 -1
package/lib/utl.js
CHANGED
|
@@ -1416,6 +1416,17 @@ const masking_text=(text, start=0, end=4)=>{
|
|
|
1416
1416
|
return text;
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
|
+
const get_value_ignore_case = (obj, keyToFind)=>{
|
|
1420
|
+
const lowerCaseKeyToFind = keyToFind.toLowerCase();
|
|
1421
|
+
for (const key in obj) {
|
|
1422
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
1423
|
+
if (key.toLowerCase() === lowerCaseKeyToFind) {
|
|
1424
|
+
return obj[key];
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
return undefined; // Key not found
|
|
1429
|
+
}
|
|
1419
1430
|
|
|
1420
1431
|
module.exports={
|
|
1421
1432
|
log,
|
|
@@ -1491,5 +1502,6 @@ const masking_text=(text, start=0, end=4)=>{
|
|
|
1491
1502
|
date_part,
|
|
1492
1503
|
get_parameter,
|
|
1493
1504
|
health_check_services,
|
|
1494
|
-
masking_text
|
|
1505
|
+
masking_text,
|
|
1506
|
+
get_value_ignore_case
|
|
1495
1507
|
}
|