akeyless-client-commons 1.0.187 → 1.0.188
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/dist/components/index.js
CHANGED
|
@@ -1718,14 +1718,18 @@ var TableProvider = function(props) {
|
|
|
1718
1718
|
var filtered = data;
|
|
1719
1719
|
if (includeSearch && debouncedSearchQuery.length > 0) {
|
|
1720
1720
|
var cleanString = function(str) {
|
|
1721
|
-
return str.
|
|
1721
|
+
return str.toLowerCase().trim();
|
|
1722
1722
|
};
|
|
1723
1723
|
var normalizedSearchQuery = cleanString(debouncedSearchQuery);
|
|
1724
1724
|
filtered = data.filter(function(item) {
|
|
1725
1725
|
return allKeys.filter(function(val) {
|
|
1726
1726
|
return !noneSearchKeys.includes(val);
|
|
1727
1727
|
}).some(function(key) {
|
|
1728
|
-
|
|
1728
|
+
var res = cleanString(String(item[key])).includes(normalizedSearchQuery);
|
|
1729
|
+
if (res) {
|
|
1730
|
+
console.log("searching ".concat(key, " with value ").concat(item[key], " and result is ").concat(res));
|
|
1731
|
+
}
|
|
1732
|
+
return res;
|
|
1729
1733
|
});
|
|
1730
1734
|
});
|
|
1731
1735
|
}
|
|
@@ -1502,14 +1502,18 @@ var TableProvider = function(props) {
|
|
|
1502
1502
|
var filtered = data;
|
|
1503
1503
|
if (includeSearch && debouncedSearchQuery.length > 0) {
|
|
1504
1504
|
var cleanString = function(str) {
|
|
1505
|
-
return str.
|
|
1505
|
+
return str.toLowerCase().trim();
|
|
1506
1506
|
};
|
|
1507
1507
|
var normalizedSearchQuery = cleanString(debouncedSearchQuery);
|
|
1508
1508
|
filtered = data.filter(function(item) {
|
|
1509
1509
|
return allKeys.filter(function(val) {
|
|
1510
1510
|
return !noneSearchKeys.includes(val);
|
|
1511
1511
|
}).some(function(key) {
|
|
1512
|
-
|
|
1512
|
+
var res = cleanString(String(item[key])).includes(normalizedSearchQuery);
|
|
1513
|
+
if (res) {
|
|
1514
|
+
console.log("searching ".concat(key, " with value ").concat(item[key], " and result is ").concat(res));
|
|
1515
|
+
}
|
|
1516
|
+
return res;
|
|
1513
1517
|
});
|
|
1514
1518
|
});
|
|
1515
1519
|
}
|