Socket
Socket
Sign inDemoInstall

@serialport/parser-readline

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/parser-readline - npm Package Compare versions

Comparing version 1.0.5 to 2.0.1

CHANGELOG.md

13

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc