Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serialport/binding-mock

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/binding-mock - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

18

binding-mock.js

@@ -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"
}
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