sbd-npm 1.3.85 → 1.3.87

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.85",
3
+ "version": "1.3.87",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -2108,6 +2108,9 @@ const Util = {
2108
2108
  case "%m/%d":
2109
2109
  seconds_format = month + "/" + day;
2110
2110
  break;
2111
+ case "%m-%d":
2112
+ seconds_format = month + "-" + day;
2113
+ break;
2111
2114
  case "%Y":
2112
2115
  seconds_format = year;
2113
2116
  break;
@@ -3079,6 +3082,7 @@ const Util = {
3079
3082
  rate_val = -rate_val
3080
3083
  }
3081
3084
  }
3085
+ rate_val = rate_val === 0 ? "0.00" : Util.to_float(rate_val, 2);
3082
3086
  return "<b title='" + (year_price + " - " + price) + "' class='" + cls + "'>" + plus_sign + rate_val + "%</b>";
3083
3087
  },
3084
3088