next-chessground 0.13.3 → 0.13.4

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/index.es.js CHANGED
@@ -6495,8 +6495,12 @@ const Chessboard = (props, ref) => {
6495
6495
  var Chessboard$1 = /*#__PURE__*/forwardRef(Chessboard);
6496
6496
 
6497
6497
  const sideToMove = fen => {
6498
- const fenOrientation = fen.split(' ')[1];
6499
- return fenOrientation === 'w' ? 'white' : 'black';
6498
+ try {
6499
+ const fenOrientation = fen.split(' ')[1];
6500
+ return fenOrientation === 'w' ? 'white' : 'black';
6501
+ } catch {
6502
+ return 'white';
6503
+ }
6500
6504
  };
6501
6505
 
6502
6506
  const getOrientation = props => {
package/dist/index.js CHANGED
@@ -6504,8 +6504,12 @@ const Chessboard = (props, ref) => {
6504
6504
  var Chessboard$1 = /*#__PURE__*/React.forwardRef(Chessboard);
6505
6505
 
6506
6506
  const sideToMove = fen => {
6507
- const fenOrientation = fen.split(' ')[1];
6508
- return fenOrientation === 'w' ? 'white' : 'black';
6507
+ try {
6508
+ const fenOrientation = fen.split(' ')[1];
6509
+ return fenOrientation === 'w' ? 'white' : 'black';
6510
+ } catch {
6511
+ return 'white';
6512
+ }
6509
6513
  };
6510
6514
 
6511
6515
  const getOrientation = props => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-chessground",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "React and Next wrapper for Chessground with chessboard and pieces out of the box",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",