chess-moments 0.14.4 → 0.14.5

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.
@@ -12,7 +12,7 @@ const momentsToPgn = (moments) => {
12
12
  // Return empty PGN if no moments are provided
13
13
  if (!Array.isArray(moments) || moments.length === 0) {
14
14
  pgn += `[SetUp "1"]\n`;
15
- pgn += `[FEN "${initialMoment.fen}"]\n\n`;
15
+ pgn += `[FEN "${fen.initial}"]\n\n`;
16
16
  pgn += '*';
17
17
  return pgn;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chess-moments",
3
- "version": "0.14.4",
3
+ "version": "0.14.5",
4
4
  "description": "PGN parser that transforms PGN files into chess \"moments\"",
5
5
  "main": "dist/index.js",
6
6
  "files": [