modbus-serial
Advanced tools
Comparing version 4.6.1 to 5.0.1
'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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
140622
35
3470
0