@canboat/canboatjs 2.4.1 → 2.4.3

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/bin/analyzerjs CHANGED
@@ -18,7 +18,7 @@ Options:
18
18
  const Parser = require('../index').FromPgn
19
19
  var parser = new Parser( {
20
20
  returnNulls: argv['n'] === true,
21
- checkForInvalidFields: argv['n']
21
+ checkForInvalidFields: argv['c'] !== true
22
22
  })
23
23
 
24
24
  parser.on('error', (pgn, error) => {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { Transform } = require('stream');
4
- const SerialPort = require('serialport')
4
+ const { SerialPort } = require('serialport')
5
5
 
6
6
  if ( process.argv.length < 3 ) {
7
7
  console.error('Please specify a device')
@@ -13,10 +13,12 @@ let device = process.argv[2]
13
13
 
14
14
  let baud = process.argv.length > 3 ? Number(process.argv[3]) : 230400
15
15
 
16
- let serial = new SerialPort(device, {
16
+ let serial = new SerialPort({
17
+ path:device,
17
18
  baudRate: baud
18
19
  })
19
20
 
21
+
20
22
  const toStringTr = new Transform({
21
23
  objectMode: true,
22
24
 
package/ios.js CHANGED
@@ -59,7 +59,7 @@ global.parsePDGY = (pdgy) => {
59
59
  }
60
60
 
61
61
  global.parseActisenseN2KASCII = (n2k) => {
62
- return parser.parseActisenseN2KASCII(pdgy)
62
+ return parser.parseActisenceN2KAscii(n2k)
63
63
  }
64
64
 
65
65
  //global.toPgn: require('./lib/toPgn').toPgn,