investira.sdk 2.4.21 → 2.4.22

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.
@@ -1084,9 +1084,12 @@ const dates = {
1084
1084
  }
1085
1085
  if (pSchedule?.workingDay) {
1086
1086
  xNextDate = dates.addWorkingDays(xNextDate, 0);
1087
- //Adiciona um dia, para casos qu deva-se processar no dia seguinte a um dia útil
1087
+ //Adiciona um dia, para casos que deva-se processar no dia seguinte a um dia útil
1088
1088
  if (pSchedule?.nextDay) {
1089
- xNextDate = dates.addDays(xNextDate, 1);
1089
+ const xND = dates.addDays(xNextDate, 1);
1090
+ if (!dates.isWorkingDay(xND)) {
1091
+ xNextDate = xND;
1092
+ }
1090
1093
  }
1091
1094
  }
1092
1095
  return xNextDate;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "investira.sdk",
3
- "version": "2.4.21",
3
+ "version": "2.4.22",
4
4
  "author": "Investira",
5
5
  "description": "Investira SDK",
6
6
  "main": "index.js",
7
7
  "type": "commonjs",
8
8
  "registry": true,
9
- "raw": "investira.sdk@2.4.21",
9
+ "raw": "investira.sdk@2.4.22",
10
10
  "escapedName": "investira.sdk",
11
- "rawSpec": "2.4.21",
11
+ "rawSpec": "2.4.22",
12
12
  "saveSpec": null,
13
- "fetchSpec": "2.4.21",
13
+ "fetchSpec": "2.4.22",
14
14
  "homepage": "https://investira.com.br/",
15
15
  "engines": {
16
16
  "node": ">=11.11.0 <=18.12",