Skip to content

Commit

Permalink
removed es6 syntax and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeudy100 committed Jun 25, 2019
1 parent 588b13e commit 30ef981
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stratajs",
"description": "JavaScript Library to interact with the Red Hat Customer Portal API",
"version": "1.6.7",
"version": "1.6.8",
"main": "strata.js",
"repository": {
"type": "git",
Expand Down
48 changes: 26 additions & 22 deletions strata.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
addCaseSbrs,
removeCaseSbrs;

strata.version = '1.6.7';
strata.version = '1.6.8';
redhatClientID = 'stratajs-' + strata.version;

function getIsTokenExpired() {
Expand Down Expand Up @@ -1116,27 +1116,31 @@
url.addQueryParam('partnerSearch', partnerSearch);
caseFields && caseFields.length > 0 && url.addQueryParam('fl', caseFields.join(','));

var mapResponse = (caseDocs, totalCases) => ({
total_count: totalCases,
case: caseDocs.map((kase) => $.extend({}, kase, {
created_by: kase.case_createdByName,
created_date: kase.case_createdDate,
last_modified_by: kase.case_lastModifiedByName,
last_modified_date: kase.case_lastModifiedDate,
summary: kase.case_summary,
status: kase.case_status,
product: kase.case_product[0],
version: kase.case_version,
account_number: kase.case_accountNumber,
contact_name: kase.case_contactName,
owner: kase.case_owner,
severity: kase.case_severity,
last_public_update_at: kase.case_last_public_update_date,
last_public_update_by: kase.case_last_public_update_by,
case_number: kase.case_number,
folder_name: kase && kase.case_folderName ? kase.case_folderName : ''
}))
});
var mapResponse = function (caseDocs, totalCases) {
return ({
total_count: totalCases,
case: caseDocs.map(function (kase) {
return $.extend({}, kase, {
created_by: kase.case_createdByName,
created_date: kase.case_createdDate,
last_modified_by: kase.case_lastModifiedByName,
last_modified_date: kase.case_lastModifiedDate,
summary: kase.case_summary,
status: kase.case_status,
product: kase.case_product[0],
version: kase.case_version,
account_number: kase.case_accountNumber,
contact_name: kase.case_contactName,
owner: kase.case_owner,
severity: kase.case_severity,
last_public_update_at: kase.case_last_public_update_date,
last_public_update_by: kase.case_last_public_update_by,
case_number: kase.case_number,
folder_name: kase && kase.case_folderName ? kase.case_folderName : ''
})
})
});
};

searchCases = handleJWTandCallAjax({
headers: {
Expand Down

0 comments on commit 30ef981

Please sign in to comment.