@serialport/parser-ready
Advanced tools
Comparing version 1.0.5 to 2.0.1
{ | ||
"name": "@serialport/parser-ready", | ||
"main": "ready.js", | ||
"version": "1.0.5", | ||
"dependencies": { | ||
"safe-buffer": "^5.1.1" | ||
"version": "2.0.1", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
@@ -14,4 +14,5 @@ "publishConfig": { | ||
"type": "git", | ||
"url": "git://github.com/node-serialport/parsers.git" | ||
} | ||
"url": "git://github.com/node-serialport/node-serialport.git" | ||
}, | ||
"gitHead": "40a06fb71d659940ed5058316b594b9da9957c2f" | ||
} |
@@ -1,1 +0,1 @@ | ||
See our api docs https://node-serialport.github.io/parsers/ReadyParser.html | ||
See our api docs https://node-serialport.github.io/node-serialport/ReadyParser.html |
@@ -1,3 +0,1 @@ | ||
'use strict' | ||
const Buffer = require('safe-buffer').Buffer | ||
const Transform = require('stream').Transform | ||
@@ -23,4 +21,3 @@ | ||
*/ | ||
constructor (options) { | ||
options = options || {} | ||
constructor(options = {}) { | ||
if (options.delimiter === undefined) { | ||
@@ -40,3 +37,3 @@ throw new TypeError('"delimiter" is not a bufferable object') | ||
_transform (chunk, encoding, cb) { | ||
_transform(chunk, encoding, cb) { | ||
if (this.ready) { | ||
@@ -43,0 +40,0 @@ this.push(chunk) |
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
4056
0
5
58
- Removedsafe-buffer@^5.1.1
- Removedsafe-buffer@5.2.1(transitive)