@signalk/streams 2.0.2 → 2.0.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.
@@ -39,6 +39,8 @@ function Nmea0183ToSignalK(options) {
39
39
  Transform.call(this, {
40
40
  objectMode: true,
41
41
  })
42
+ this.debug = (options.createDebug || require('debug'))('signalk:streams:nmea0183-signalk')
43
+
42
44
 
43
45
  this.parser = new Parser(options)
44
46
  this.n2kParser = new FromPgn(options)
@@ -107,7 +109,7 @@ Nmea0183ToSignalK.prototype._transform = function (chunk, encoding, done) {
107
109
  }
108
110
  }
109
111
  } catch (e) {
110
- console.error(e)
112
+ this.debug(e)
111
113
  }
112
114
 
113
115
  done()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalk/streams",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Utilities for handling streams of Signal K data",
5
5
  "main": "index.js",
6
6
  "scripts": {