@serialport/parser-delimiter
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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) |
@@ -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 @@ } |
{ | ||
"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 |
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
3840
42