@serialport/binding-mock
Advanced tools
Comparing version 3.0.0 to 8.0.1
@@ -29,2 +29,3 @@ const AbstractBinding = require('@serialport/binding-abstract') | ||
ports = {} | ||
serialNumber = 0 | ||
} | ||
@@ -152,6 +153,6 @@ | ||
const data = this.port.data.slice(0, length) | ||
const readLength = data.copy(buffer, offset) | ||
const bytesRead = data.copy(buffer, offset) | ||
this.port.data = this.port.data.slice(length) | ||
debug(this.serialNumber, 'read', readLength, 'bytes') | ||
return readLength | ||
debug(this.serialNumber, 'read', bytesRead, 'bytes') | ||
return { bytesRead, buffer } | ||
} | ||
@@ -158,0 +159,0 @@ |
@@ -6,10 +6,21 @@ # Change Log | ||
# [3.0.0](https://github.com/node-serialport/node-serialport/compare/@serialport/binding-mock@2.0.5...@serialport/binding-mock@3.0.0) (2019-05-16) | ||
## [8.0.1](https://github.com/serialport/node-serialport/compare/v6.2.2...v8.0.1) (2019-09-18) | ||
### Bug Fixes | ||
* stream read not working past 1 read ([#1925](https://github.com/serialport/node-serialport/issues/1925)) ([3a13279](https://github.com/serialport/node-serialport/commit/3a13279)) | ||
### chore | ||
* remove node6 support and upgrade codebase ([#1851](https://github.com/node-serialport/node-serialport/issues/1851)) ([d4f15c0](https://github.com/node-serialport/node-serialport/commit/d4f15c0)) | ||
* remove node6 support and upgrade codebase ([#1851](https://github.com/serialport/node-serialport/issues/1851)) ([d4f15c0](https://github.com/serialport/node-serialport/commit/d4f15c0)) | ||
### Features | ||
* add eslint mocha ([#1922](https://github.com/serialport/node-serialport/issues/1922)) ([afbc431](https://github.com/serialport/node-serialport/commit/afbc431)) | ||
* reset info.serialNumber when resetting mock ports ([#1899](https://github.com/serialport/node-serialport/issues/1899)) ([6acaac1](https://github.com/serialport/node-serialport/commit/6acaac1)) | ||
### BREAKING CHANGES | ||
@@ -23,4 +34,20 @@ | ||
## [2.0.5](https://github.com/node-serialport/node-serialport/compare/@serialport/binding-mock@2.0.4...@serialport/binding-mock@2.0.5) (2019-04-27) | ||
# [3.0.0](https://github.com/serialport/node-serialport/compare/@serialport/binding-mock@2.0.5...@serialport/binding-mock@3.0.0) (2019-05-16) | ||
### chore | ||
* remove node6 support and upgrade codebase ([#1851](https://github.com/serialport/node-serialport/issues/1851)) ([d4f15c0](https://github.com/serialport/node-serialport/commit/d4f15c0)) | ||
### BREAKING CHANGES | ||
* bindings now use async functions so they’ll never throw, only reject | ||
## [2.0.5](https://github.com/serialport/node-serialport/compare/@serialport/binding-mock@2.0.4...@serialport/binding-mock@2.0.5) (2019-04-27) | ||
**Note:** Version bump only for package @serialport/binding-mock | ||
@@ -32,3 +59,3 @@ | ||
## [2.0.4](https://github.com/node-serialport/node-serialport/compare/@serialport/binding-mock@2.0.3...@serialport/binding-mock@2.0.4) (2019-01-08) | ||
## [2.0.4](https://github.com/serialport/node-serialport/compare/@serialport/binding-mock@2.0.3...@serialport/binding-mock@2.0.4) (2019-01-08) | ||
@@ -41,3 +68,3 @@ **Note:** Version bump only for package @serialport/binding-mock | ||
## [2.0.3](https://github.com/node-serialport/node-serialport/compare/@serialport/binding-mock@2.0.2...@serialport/binding-mock@2.0.3) (2018-12-19) | ||
## [2.0.3](https://github.com/serialport/node-serialport/compare/@serialport/binding-mock@2.0.2...@serialport/binding-mock@2.0.3) (2018-12-19) | ||
@@ -50,3 +77,3 @@ **Note:** Version bump only for package @serialport/binding-mock | ||
## [2.0.2](https://github.com/node-serialport/node-serialport/compare/@serialport/binding-mock@2.0.1...@serialport/binding-mock@2.0.2) (2018-11-27) | ||
## [2.0.2](https://github.com/serialport/node-serialport/compare/@serialport/binding-mock@2.0.1...@serialport/binding-mock@2.0.2) (2018-11-27) | ||
@@ -60,3 +87,3 @@ **Note:** Version bump only for package @serialport/binding-mock | ||
<a name="2.0.1"></a> | ||
## [2.0.1](https://github.com/node-serialport/node-serialport/compare/@serialport/binding-mock@2.0.0...@serialport/binding-mock@2.0.1) (2018-08-29) | ||
## [2.0.1](https://github.com/serialport/node-serialport/compare/@serialport/binding-mock@2.0.0...@serialport/binding-mock@2.0.1) (2018-08-29) | ||
@@ -63,0 +90,0 @@ **Note:** Version bump only for package @serialport/binding-mock |
{ | ||
"name": "@serialport/binding-mock", | ||
"version": "3.0.0", | ||
"version": "8.0.1", | ||
"main": "binding-mock.js", | ||
@@ -9,3 +9,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@serialport/binding-abstract": "^3.0.0", | ||
"@serialport/binding-abstract": "^8.0.1", | ||
"debug": "^4.1.1" | ||
@@ -22,5 +22,5 @@ }, | ||
"type": "git", | ||
"url": "git://github.com/node-serialport/node-serialport.git" | ||
"url": "git://github.com/serialport/node-serialport.git" | ||
}, | ||
"gitHead": "524a2729003a94c9575904448d878a151f4f3790" | ||
"gitHead": "eae28d4a00df1cc44e054acd34b530377cdc62c6" | ||
} |
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
10972
230
+ Added@serialport/binding-abstract@8.0.6(transitive)
- Removed@serialport/binding-abstract@3.0.0(transitive)