utiller 1.0.300 → 1.0.302

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.
@@ -160,7 +160,6 @@ var Utiller = /*#__PURE__*/function () {
160
160
  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "price";
161
161
  // 提取價格並找出最小值
162
162
  var minPrice = _lodash["default"].minBy(items, key)[key];
163
-
164
163
  // 確保回傳的最低價為 integer 型態
165
164
  return Math.floor(minPrice);
166
165
  });
@@ -186,7 +185,6 @@ var Utiller = /*#__PURE__*/function () {
186
185
  // 找出最小值和最大值
187
186
  var minV = _lodash["default"].minBy(items, key)[key];
188
187
  var maxV = _lodash["default"].maxBy(items, key)[key];
189
-
190
188
  // 判斷並返回字串
191
189
  return maxV === minV ? "$".concat(minV) : "".concat(sign).concat(minV, " - ").concat(sign).concat(maxV);
192
190
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.300",
3
+ "version": "1.0.302",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.11",
14
- "utiller": "^1.0.299",
14
+ "utiller": "^1.0.301",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.12",
17
17
  "lodash": "^4.17.20",