Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serialport/parser-delimiter

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-delimiter - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.0.2](https://github.com/node-serialport/node-serialport/compare/@serialport/parser-delimiter@2.0.1...@serialport/parser-delimiter@2.0.2) (2018-11-27)
**Note:** Version bump only for package @serialport/parser-delimiter
<a name="2.0.1"></a>

@@ -8,0 +16,0 @@ ## [2.0.1](https://github.com/node-serialport/node-serialport/compare/@serialport/parser-delimiter@2.0.0...@serialport/parser-delimiter@2.0.1) (2018-08-29)

10

delimiter.js

@@ -26,4 +26,3 @@ const Transform = require('stream').Transform

this.includeDelimiter =
options.includeDelimiter !== undefined ? options.includeDelimiter : false
this.includeDelimiter = options.includeDelimiter !== undefined ? options.includeDelimiter : false
this.delimiter = Buffer.from(options.delimiter)

@@ -37,8 +36,3 @@ this.buffer = Buffer.alloc(0)

while ((position = data.indexOf(this.delimiter)) !== -1) {
this.push(
data.slice(
0,
position + (this.includeDelimiter ? this.delimiter.length : 0)
)
)
this.push(data.slice(0, position + (this.includeDelimiter ? this.delimiter.length : 0)))
data = data.slice(position + this.delimiter.length)

@@ -45,0 +39,0 @@ }

4

package.json
{
"name": "@serialport/parser-delimiter",
"main": "delimiter.js",
"version": "2.0.1",
"version": "2.0.2",
"engines": {

@@ -16,3 +16,3 @@ "node": ">=6.0.0"

},
"gitHead": "40a06fb71d659940ed5058316b594b9da9957c2f"
"gitHead": "d59fe44fcc1ba52a51805375481ef339f3f83de4"
}

@@ -1,1 +0,1 @@

See our api docs https://node-serialport.github.io/node-serialport/DelimiterParser.html
See our api docs https://serialport.io/docs/api-parser-delimiter
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