@canboat/canboatjs 2.4.4 → 2.4.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.
Files changed (2) hide show
  1. package/lib/fromPgn.js +3 -0
  2. package/package.json +1 -1
package/lib/fromPgn.js CHANGED
@@ -243,6 +243,9 @@ class Parser extends EventEmitter {
243
243
  fields = pgnData.Fields
244
244
  //console.log(`using ${JSON.stringify(pgnData, null, 2)}`)
245
245
  value = pgnData.Fields[i].Description
246
+ if ( value == null ) {
247
+ value = pgnData.Fields[i].Match
248
+ }
246
249
  }
247
250
  }
248
251
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canboat/canboatjs",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "Native javascript version of canboat",
5
5
  "main": "index.js",
6
6
  "scripts": {