@serialport/binding-mock
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,3 +0,3 @@ | ||
const debug = require('debug')('@serialport/binding-mock') | ||
const AbstractBinding = require('@serialport/binding-abstract') | ||
const debug = require('debug')('serialport/binding-mock') | ||
@@ -75,7 +75,3 @@ let ports = {} | ||
} | ||
debug( | ||
this.serialNumber, | ||
'emitting data - pending read:', | ||
Boolean(this.pendingRead) | ||
) | ||
debug(this.serialNumber, 'emitting data - pending read:', Boolean(this.pendingRead)) | ||
this.port.data = Buffer.concat([this.port.data, data]) | ||
@@ -96,7 +92,3 @@ if (this.pendingRead) { | ||
if (!port) { | ||
return Promise.reject( | ||
new Error( | ||
`Port does not exist - please call MockBinding.createPort('${path}') first` | ||
) | ||
) | ||
return Promise.reject(new Error(`Port does not exist - please call MockBinding.createPort('${path}') first`)) | ||
} | ||
@@ -178,5 +170,3 @@ this.serialNumber = port.info.serialNumber | ||
if (this.writeOperation) { | ||
throw new Error( | ||
'Overlapping writes are not supported and should be queued by the serialport object' | ||
) | ||
throw new Error('Overlapping writes are not supported and should be queued by the serialport object') | ||
} | ||
@@ -183,0 +173,0 @@ this.writeOperation = super |
@@ -6,2 +6,10 @@ # Change Log | ||
## [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) | ||
**Note:** Version bump only for package @serialport/binding-mock | ||
<a name="2.0.1"></a> | ||
@@ -8,0 +16,0 @@ ## [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) |
{ | ||
"name": "@serialport/binding-mock", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "binding-mock.js", | ||
"keywords": [ | ||
"serialport-binding" | ||
], | ||
"dependencies": { | ||
"@serialport/binding-abstract": "^2.0.1", | ||
"debug": "^3.1.0" | ||
"@serialport/binding-abstract": "^2.0.2", | ||
"debug": "^4.1.0" | ||
}, | ||
@@ -20,3 +23,3 @@ "engines": { | ||
}, | ||
"gitHead": "40a06fb71d659940ed5058316b594b9da9957c2f" | ||
"gitHead": "d59fe44fcc1ba52a51805375481ef339f3f83de4" | ||
} |
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
8673
225
- Removeddebug@3.2.7(transitive)
Updateddebug@^4.1.0