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

modbus-serial

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modbus-serial - npm Package Compare versions

Comparing version 5.2.14 to 5.2.15

23

index.js

@@ -137,4 +137,4 @@ "use strict";

*/
function _writeBufferToPort(buffer) {
var transaction = this._transactions[this._port._transactionIdWrite];
function _writeBufferToPort(buffer, transactionId) {
var transaction = this._transactions[transactionId];

@@ -207,5 +207,2 @@ this._port.write(buffer);

} else {
/* On serial port open OK call next function */
if (callback)
callback(error);

@@ -326,2 +323,6 @@ /* init ports transaction id and counter */

});
/* On serial port open OK call next function with no error */
if (callback)
callback(error);
}

@@ -406,3 +407,3 @@ });

// write buffer to serial port
_writeBufferToPort.call(this, buf);
_writeBufferToPort.call(this, buf, this._port._transactionIdWrite);
};

@@ -460,3 +461,3 @@

// write buffer to serial port
_writeBufferToPort.call(this, buf);
_writeBufferToPort.call(this, buf, this._port._transactionIdWrite);
};

@@ -506,3 +507,3 @@

// write buffer to serial port
_writeBufferToPort.call(this, buf);
_writeBufferToPort.call(this, buf, this._port._transactionIdWrite);
};

@@ -548,3 +549,3 @@

// write buffer to serial port
_writeBufferToPort.call(this, buf);
_writeBufferToPort.call(this, buf, this._port._transactionIdWrite);
};

@@ -605,3 +606,3 @@

// write buffer to serial port
_writeBufferToPort.call(this, buf);
_writeBufferToPort.call(this, buf, this._port._transactionIdWrite);
};

@@ -651,3 +652,3 @@

// write buffer to serial port
_writeBufferToPort.call(this, buf);
_writeBufferToPort.call(this, buf, this._port._transactionIdWrite);
};

@@ -654,0 +655,0 @@

{
"name": "modbus-serial",
"version": "5.2.14",
"version": "5.2.15",
"description": "A pure JavaScript implemetation of MODBUS-RTU (Serial and TCP) for NodeJS.",

@@ -5,0 +5,0 @@ "main": "index.js",

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