@canboat/canboatjs 2.5.1 → 2.5.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.
Files changed (2) hide show
  1. package/lib/fromPgn.js +1 -1
  2. package/package.json +1 -1
package/lib/fromPgn.js CHANGED
@@ -517,7 +517,7 @@ function getField(pgn, index, data) {
517
517
 
518
518
  if ( pgnList.length > 1 ) {
519
519
  let idx = 0
520
- while ( idx < pgn.Fields.count )
520
+ while ( idx < pgn.Fields.length )
521
521
  {
522
522
  field = pgn.Fields[idx]
523
523
  var hasMatch = !_.isUndefined(field.Match)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canboat/canboatjs",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Native javascript version of canboat",
5
5
  "main": "index.js",
6
6
  "scripts": {