@rh-support/utils 2.0.6 → 2.0.7
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/cjs/productsUtils.js
CHANGED
|
@@ -49,9 +49,9 @@ var handleProductSearchResponse = function (productsResultAll, productsResultEnt
|
|
|
49
49
|
if (topCount === void 0) { topCount = 5; }
|
|
50
50
|
var productsResultEntitledMap = {};
|
|
51
51
|
forEach_1.default(productsResultEntitled, function (p) {
|
|
52
|
-
//
|
|
52
|
+
// If (p.supportedForCustomer)
|
|
53
|
+
// Needs confirmation froom CCM team before adding
|
|
53
54
|
productsResultEntitledMap["" + p.name] = p;
|
|
54
|
-
// }
|
|
55
55
|
});
|
|
56
56
|
var productsResult = map_1.default(productsResultAll, function (product) {
|
|
57
57
|
var _c, _d;
|
|
@@ -61,7 +61,7 @@ var handleProductSearchResponse = function (productsResultAll, productsResultEnt
|
|
|
61
61
|
? product.featuredVersion
|
|
62
62
|
: (_d = product === null || product === void 0 ? void 0 : product.versions[0]) !== null && _d !== void 0 ? _d : '' });
|
|
63
63
|
});
|
|
64
|
-
//
|
|
64
|
+
// We get products based on the highest number of support cases
|
|
65
65
|
var topProducts = getTopProducts(productsResult, topCount);
|
|
66
66
|
var productsResultSorted = orderBy_1.default(productsResult, ['product'], ['asc']);
|
|
67
67
|
return {
|
package/lib/esm/productsUtils.js
CHANGED
|
@@ -9,9 +9,9 @@ import { isNumber } from './validatorUtils';
|
|
|
9
9
|
export const handleProductSearchResponse = (productsResultAll, productsResultEntitled = [], topCount = 5) => {
|
|
10
10
|
const productsResultEntitledMap = {};
|
|
11
11
|
forEach(productsResultEntitled, (p) => {
|
|
12
|
-
//
|
|
12
|
+
// If (p.supportedForCustomer)
|
|
13
|
+
// Needs confirmation froom CCM team before adding
|
|
13
14
|
productsResultEntitledMap[`${p.name}`] = p;
|
|
14
|
-
// }
|
|
15
15
|
});
|
|
16
16
|
const productsResult = map(productsResultAll, (product) => {
|
|
17
17
|
var _c, _d;
|
|
@@ -21,7 +21,7 @@ export const handleProductSearchResponse = (productsResultAll, productsResultEnt
|
|
|
21
21
|
? product.featuredVersion
|
|
22
22
|
: (_d = product === null || product === void 0 ? void 0 : product.versions[0]) !== null && _d !== void 0 ? _d : '' });
|
|
23
23
|
});
|
|
24
|
-
//
|
|
24
|
+
// We get products based on the highest number of support cases
|
|
25
25
|
const topProducts = getTopProducts(productsResult, topCount);
|
|
26
26
|
const productsResultSorted = orderBy(productsResult, ['product'], ['asc']);
|
|
27
27
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@cee-eng/hydrajs": "4.15.81",
|
|
63
63
|
"@cee-eng/ui-toolkit": "1.1.6",
|
|
64
|
-
"@rh-support/types": "2.0.
|
|
64
|
+
"@rh-support/types": "2.0.2",
|
|
65
65
|
"dompurify": "^2.2.6",
|
|
66
66
|
"dot": "^1.1.3",
|
|
67
67
|
"i18next": "^19.0.1",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"@types/react-dom": "^17.0.9",
|
|
85
85
|
"moment-timezone": "^0.5.40"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "c05aa6c2542ab83bfc1984ec113a116f0885d123"
|
|
88
88
|
}
|