get-credit-rating-description
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -57,3 +57,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
'use strict'; | ||
@@ -65,3 +65,5 @@ module.exports = { | ||
setRatingAgencyData: setRatingAgencyData, | ||
setDefaultAgency: setDefaultAgency | ||
setDefaultAgency: setDefaultAgency, | ||
setRatingDescription: setRatingDescription, | ||
setUnknownResponse: setUnknownResponse | ||
}; | ||
@@ -96,2 +98,16 @@ | ||
function setRatingDescription(response, rating, agency) { | ||
if (agency) { | ||
data[agency][rating] = response; | ||
} else { | ||
Object.keys(data).forEach(function (agencyKey) { | ||
return setRatingDescription(response, rating, agencyKey); | ||
}); | ||
} | ||
} | ||
function setUnknownResponse(response, agency) { | ||
setRatingDescription(response, 'default', agency); | ||
} | ||
/***/ } | ||
@@ -98,0 +114,0 @@ /******/ ]) |
14
index.js
@@ -7,2 +7,4 @@ module.exports = { | ||
setDefaultAgency, | ||
setRatingDescription, | ||
setUnknownResponse, | ||
} | ||
@@ -34,1 +36,13 @@ | ||
} | ||
function setRatingDescription(response, rating, agency) { | ||
if (agency) { | ||
data[agency][rating] = response; | ||
} else { | ||
Object.keys(data).forEach((agencyKey) => setRatingDescription(response, rating, agencyKey)); | ||
} | ||
} | ||
function setUnknownResponse(response, agency) { | ||
setRatingDescription(response, 'default', agency); | ||
} |
{ | ||
"name": "get-credit-rating-description", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A small utility package to get credit rating descriptions in a standardized agency credit rating description data file", | ||
@@ -5,0 +5,0 @@ "main": "./bundle/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8032
220