From 30ef981a00f63bddb235a5d35ff1aadf8b6f62bf Mon Sep 17 00:00:00 2001 From: jeudy Date: Tue, 25 Jun 2019 10:38:15 -0400 Subject: [PATCH] removed es6 syntax and bumped version --- bower.json | 2 +- strata.js | 48 ++++++++++++++++++++++++++---------------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/bower.json b/bower.json index 6995393..d9138e3 100644 --- a/bower.json +++ b/bower.json @@ -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", diff --git a/strata.js b/strata.js index d10c615..141628e 100644 --- a/strata.js +++ b/strata.js @@ -95,7 +95,7 @@ addCaseSbrs, removeCaseSbrs; - strata.version = '1.6.7'; + strata.version = '1.6.8'; redhatClientID = 'stratajs-' + strata.version; function getIsTokenExpired() { @@ -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: {