@cashub/utils 1.3.0 → 1.3.2

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.
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  const moveItemsAfter = (arr, targetItem, itemsToMove) => {
8
8
  if (!arr.includes(targetItem)) {
9
- return;
9
+ return arr;
10
10
  }
11
11
  const validItems = itemsToMove.filter(item => {
12
12
  return arr.includes(item);
13
13
  });
14
14
  if (validItems.length === 0) {
15
- return;
15
+ return arr;
16
16
  }
17
17
 
18
18
  // Remove items that want to move
@@ -33,6 +33,8 @@ const formatDate = function (timestamp) {
33
33
  return "".concat(year, "-").concat(month, "-").concat(day);
34
34
  case 'time':
35
35
  return "".concat(hour, ":").concat(minutes, ":").concat(second);
36
+ case 'dateTimeHM':
37
+ return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hour, ":").concat(minutes);
36
38
  default:
37
39
  return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(hour, ":").concat(minutes, ":").concat(second);
38
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/utils",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB utils library",