@serialport/parser-readline
Advanced tools
Comparing version 1.0.5 to 2.0.1
{ | ||
"name": "@serialport/parser-readline", | ||
"main": "readline.js", | ||
"version": "1.0.5", | ||
"version": "2.0.1", | ||
"dependencies": { | ||
"@serialport/parser-delimiter": "^1.0.5", | ||
"safe-buffer": "^5.1.1" | ||
"@serialport/parser-delimiter": "^2.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"publishConfig": { | ||
@@ -15,4 +17,5 @@ "access": "public" | ||
"type": "git", | ||
"url": "git://github.com/node-serialport/parsers.git" | ||
} | ||
"url": "git://github.com/node-serialport/node-serialport.git" | ||
}, | ||
"gitHead": "40a06fb71d659940ed5058316b594b9da9957c2f" | ||
} |
@@ -1,3 +0,1 @@ | ||
'use strict' | ||
const Buffer = require('safe-buffer').Buffer | ||
const DelimiterParser = require('@serialport/parser-delimiter') | ||
@@ -17,7 +15,10 @@ | ||
class ReadLineParser extends DelimiterParser { | ||
constructor (options) { | ||
const opts = Object.assign({ | ||
delimiter: Buffer.from('\n', 'utf8'), | ||
encoding: 'utf8' | ||
}, options) | ||
constructor(options) { | ||
const opts = Object.assign( | ||
{ | ||
delimiter: Buffer.from('\n', 'utf8'), | ||
encoding: 'utf8', | ||
}, | ||
options | ||
) | ||
@@ -24,0 +25,0 @@ if (typeof opts.delimiter === 'string') { |
@@ -1,1 +0,1 @@ | ||
See our api docs https://node-serialport.github.io/parsers/ReadLineParser.html | ||
See our api docs https://node-serialport.github.io/node-serialport/ReadLineParser.html |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3143
1
5
28
+ Added@serialport/parser-delimiter@2.0.2(transitive)
- Removedsafe-buffer@^5.1.1
- Removed@serialport/parser-delimiter@1.0.5(transitive)
- Removedsafe-buffer@5.2.1(transitive)