bnstooltips 1.18.5 → 1.18.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/build/index.es.js +6 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +6 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -221,7 +221,11 @@ function ReplaceIconsInHtmlString(htmlString) {
|
|
|
221
221
|
}
|
|
222
222
|
function GetStatDisplayValue(value, percent) {
|
|
223
223
|
if (percent) {
|
|
224
|
-
|
|
224
|
+
var percentage = value / 100;
|
|
225
|
+
if (Number.isInteger(percentage)) {
|
|
226
|
+
return percentage.toFixed(1) + "%";
|
|
227
|
+
}
|
|
228
|
+
return percentage + "%";
|
|
225
229
|
}
|
|
226
230
|
return value.toString();
|
|
227
231
|
}
|
|
@@ -2837,7 +2841,7 @@ function throwException(message, status, response, headers, result) {
|
|
|
2837
2841
|
var ItemDownloadClient = /** @class */ (function () {
|
|
2838
2842
|
function ItemDownloadClient(region, patch) {
|
|
2839
2843
|
if (patch === void 0) { patch = ""; }
|
|
2840
|
-
this.apiV = "
|
|
2844
|
+
this.apiV = "v21";
|
|
2841
2845
|
this.patch = patch;
|
|
2842
2846
|
this.region = region;
|
|
2843
2847
|
var baseUrl = ItemDownloadClient.GetUrlBase();
|