libroadcast-cli 1.10.1 → 1.10.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.
- package/dist/cmd/setPGN.js +1 -3
- package/dist/cmd/setPGNMulti.js +1 -3
- package/package.json +1 -1
package/dist/cmd/setPGN.js
CHANGED
|
@@ -10,9 +10,7 @@ const getInfoBroadcast_1 = require("../utils/getInfoBroadcast");
|
|
|
10
10
|
const colors_1 = __importDefault(require("../utils/colors"));
|
|
11
11
|
const setPGN = async (rounds, urlRound, setRoundFilter, setSliceFilter = null, roundsToFix) => {
|
|
12
12
|
const roundsWithIndex = rounds.map((el, i) => ({ ...el, index: i }));
|
|
13
|
-
let filteredRounds = roundsWithIndex
|
|
14
|
-
.filter((_, i) => !roundsToFix?.length || roundsToFix.includes(i + 1))
|
|
15
|
-
.filter((el) => el.startsAt !== undefined);
|
|
13
|
+
let filteredRounds = roundsWithIndex.filter((_, i) => !roundsToFix?.length || roundsToFix.includes(i + 1));
|
|
16
14
|
if (filteredRounds.length === 0)
|
|
17
15
|
filteredRounds = roundsWithIndex;
|
|
18
16
|
for (const [_, round] of filteredRounds.entries()) {
|
package/dist/cmd/setPGNMulti.js
CHANGED
|
@@ -10,9 +10,7 @@ const getInfoBroadcast_1 = require("../utils/getInfoBroadcast");
|
|
|
10
10
|
const colors_1 = __importDefault(require("../utils/colors"));
|
|
11
11
|
const setPGN = async (rounds, urlsRound, gamesNum, setRoundFilter, setSliceFilter = null, roundsToFix) => {
|
|
12
12
|
const roundsWithIndex = rounds.map((el, i) => ({ ...el, index: i }));
|
|
13
|
-
let filteredRounds = roundsWithIndex
|
|
14
|
-
.filter((_, i) => !roundsToFix?.length || roundsToFix.includes(i + 1))
|
|
15
|
-
.filter((el) => el.startsAt !== undefined);
|
|
13
|
+
let filteredRounds = roundsWithIndex.filter((_, i) => !roundsToFix?.length || roundsToFix.includes(i + 1));
|
|
16
14
|
if (filteredRounds.length === 0)
|
|
17
15
|
filteredRounds = roundsWithIndex;
|
|
18
16
|
for (const [_, round] of filteredRounds.entries()) {
|