flit-modulo-exportacoes 2.0.9 → 2.0.10

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/dist/utils.js +1 -1
  2. package/package.json +1 -1
package/dist/utils.js CHANGED
@@ -118,7 +118,7 @@ function retornarDiferencaMinutosHorarios(dataHora1, dataHora2) {
118
118
  function retornaNumeroMinutosPrevistosEscala(periodosJornadaPrevista) {
119
119
  let totalMinutosEscala = 0;
120
120
  let ultimaDataHora = undefined;
121
- periodosJornadaPrevista.forEach(periodo => {
121
+ (periodosJornadaPrevista ?? []).forEach(periodo => {
122
122
  if (periodo?.entrada?.hora && periodo?.saida?.hora) {
123
123
  let horaEntradaEscala = new Date(0, 0, 0, 0, 0, 0, 0);
124
124
  horaEntradaEscala.setHours(Number.parseInt(periodo.entrada.hora.split(':')[0]), Number.parseInt(periodo.entrada.hora.split(':')[1]), 0, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-modulo-exportacoes",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "",
5
5
  "main": "dist/lib/index.js",
6
6
  "directories": {