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 +6 -2
- package/dist/index.js +6 -2
- package/package.json +1 -1
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
|
-
|
|
6499
|
-
|
|
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
|
-
|
|
6508
|
-
|
|
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 => {
|