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 4.4.3 to 4.5.0

6

apis/connection.js

@@ -40,6 +40,8 @@ 'use strict';

}
// disable auto open, as we handle the open
options.autoOpen = false;
// create the SerialPort
var SerialPort = require("serialport").SerialPort;
this._port = new SerialPort(path, options, false);
var SerialPort = require("serialport");
this._port = new SerialPort(path, options);

@@ -46,0 +48,0 @@ // open and call next

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

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

@@ -5,3 +5,3 @@ 'use strict';

var EventEmitter = events.EventEmitter || events;
var SerialPort = require("serialport").SerialPort;
var SerialPort = require("serialport");

@@ -94,2 +94,5 @@ var crc16 = require('./../utils/crc16');

// disable auto open, as we handle the open
options.autoOpen = false;
// internal buffer

@@ -102,3 +105,3 @@ this._buffer = new Buffer(0);

// create the SerialPort
this._client= new SerialPort(path, options, false);
this._client= new SerialPort(path, options);

@@ -105,0 +108,0 @@ // register the port data event

@@ -5,3 +5,3 @@ 'use strict';

var EventEmitter = events.EventEmitter || events;
var SerialPort = require("serialport").SerialPort;
var SerialPort = require("serialport");

@@ -19,2 +19,5 @@ var EXCEPTION_LENGTH = 5;

// disable auto open, as we handle the open
options.autoOpen = false;
// internal buffer

@@ -27,3 +30,3 @@ this._buffer = new Buffer(0);

// create the SerialPort
this._client= new SerialPort(path, options, false);
this._client= new SerialPort(path, options);

@@ -30,0 +33,0 @@ // register the port data event

@@ -10,5 +10,5 @@ 'use strict';

*/
var SerialPortMock = function(path, options, openImmediately, callback) {
var SerialPortMock = function(path, options, callback) {
EventEmitter.call(this);
this._openFlag = openImmediately;
this._openFlag = false;
if (callback) {

@@ -51,2 +51,2 @@ callback(null);

module.exports.SerialPort = SerialPortMock;
module.exports = SerialPortMock;
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