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

@serialport/stream

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/stream - npm Package Compare versions

Comparing version 8.0.6 to 9.0.0

8

CHANGELOG.md

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

# [9.0.0](https://github.com/serialport/node-serialport/compare/v8.0.8...v9.0.0) (2020-05-10)
**Note:** Version bump only for package @serialport/stream
## [8.0.6](https://github.com/serialport/node-serialport/compare/v8.0.5...v8.0.6) (2019-12-25)

@@ -8,0 +16,0 @@

30

lib/index.js

@@ -196,3 +196,3 @@ const stream = require('stream')

SerialPort.prototype._error = function(error, callback) {
SerialPort.prototype._error = function (error, callback) {
if (callback) {

@@ -205,3 +205,3 @@ callback.call(this, error)

SerialPort.prototype._asyncError = function(error, callback) {
SerialPort.prototype._asyncError = function (error, callback) {
process.nextTick(() => this._error(error, callback))

@@ -221,3 +221,3 @@ }

*/
SerialPort.prototype.open = function(openCallback) {
SerialPort.prototype.open = function (openCallback) {
if (this.isOpen) {

@@ -257,3 +257,3 @@ return this._asyncError(new Error('Port is already open'), openCallback)

*/
SerialPort.prototype.update = function(options, callback) {
SerialPort.prototype.update = function (options, callback) {
if (typeof options !== 'object') {

@@ -307,3 +307,3 @@ throw TypeError('"options" is not an object')

const superWrite = SerialPort.prototype.write
SerialPort.prototype.write = function(data, encoding, callback) {
SerialPort.prototype.write = function (data, encoding, callback) {
if (Array.isArray(data)) {

@@ -315,3 +315,3 @@ data = Buffer.from(data)

SerialPort.prototype._write = function(data, encoding, callback) {
SerialPort.prototype._write = function (data, encoding, callback) {
if (!this.isOpen) {

@@ -338,3 +338,3 @@ return this.once('open', function afterOpenWrite() {

SerialPort.prototype._writev = function(data, callback) {
SerialPort.prototype._writev = function (data, callback) {
debug('_writev', `${data.length} chunks of data`)

@@ -358,3 +358,3 @@ const dataV = data.map(write => write.chunk)

SerialPort.prototype._read = function(bytesToRead) {
SerialPort.prototype._read = function (bytesToRead) {
if (!this.isOpen) {

@@ -405,3 +405,3 @@ debug('_read', 'queueing _read for after open')

SerialPort.prototype._disconnected = function(err) {
SerialPort.prototype._disconnected = function (err) {
if (!this.isOpen) {

@@ -430,3 +430,3 @@ debug('disconnected aborted because already closed', err)

*/
SerialPort.prototype.close = function(callback, disconnectError) {
SerialPort.prototype.close = function (callback, disconnectError) {
disconnectError = disconnectError || null

@@ -473,3 +473,3 @@

*/
SerialPort.prototype.set = function(options, callback) {
SerialPort.prototype.set = function (options, callback) {
if (typeof options !== 'object') {

@@ -506,3 +506,3 @@ throw TypeError('"options" is not an object')

*/
SerialPort.prototype.get = function(callback) {
SerialPort.prototype.get = function (callback) {
if (!this.isOpen) {

@@ -533,3 +533,3 @@ debug('get attempted, but port is not open')

*/
SerialPort.prototype.flush = function(callback) {
SerialPort.prototype.flush = function (callback) {
if (!this.isOpen) {

@@ -569,3 +569,3 @@ debug('flush attempted, but port is not open')

*/
SerialPort.prototype.drain = function(callback) {
SerialPort.prototype.drain = function (callback) {
debug('drain')

@@ -659,3 +659,3 @@ if (!this.isOpen) {

*/
SerialPort.list = async function(callback) {
SerialPort.list = async function (callback) {
debug('.list')

@@ -662,0 +662,0 @@ if (!SerialPort.Binding) {

{
"name": "@serialport/stream",
"version": "8.0.6",
"version": "9.0.0",
"main": "lib",

@@ -9,3 +9,3 @@ "dependencies": {

"devDependencies": {
"@serialport/binding-mock": "^8.0.6"
"@serialport/binding-mock": "^9.0.0"
},

@@ -23,3 +23,3 @@ "engines": {

},
"gitHead": "1a087da8a6d4321745dd805945694446afd14637"
"gitHead": "36d3abcaa9f11ab0ae12c6f9862e472cb427ee16"
}
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