Socket
Socket
Sign inDemoInstall

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.6.1 to 5.0.1

servers/tcpserver.js

2

index.js
'use strict';
/**
* Copyright (c) 2015, Yaacov Zamir <kobi.zamir@gmail.com>
* Copyright (c) 2015-2017, Yaacov Zamir <kobi.zamir@gmail.com>
*

@@ -5,0 +5,0 @@ * Permission to use, copy, modify, and/or distribute this software for any

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

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

"mockery": "^2.0.0",
"sinon": "^1.17.6",
"serialport": "^4.0.6"
"sinon": "^1.17.7",
"serialport": "^4.0.7"
}
}

@@ -78,3 +78,2 @@ 'use strict';

// emit data
this.emit('data', buffer);

@@ -143,9 +142,9 @@ this._buffer = this._buffer.slice(start + length);

// emit debug message
if (this.debug) { this.emit('debug', {action: 'send', data: data}); }
// send buffer to slave
this._client.write(data);
// emit debug message
if (this.debug) { this.emit('debug', {action: 'send', data: data}); }
};
module.exports = RTUBufferedPort;

Sorry, the diff of this file is not supported yet

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