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.
@@ -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()) {
@@ -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()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libroadcast-cli",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "CLI to help with broadcast maintenance on Lichess",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [