@serialport/bindings
Advanced tools
Comparing version 8.0.2 to 8.0.3
@@ -6,2 +6,15 @@ # Change Log | ||
## [8.0.3](https://github.com/serialport/node-serialport/compare/v8.0.2...v8.0.3) (2019-10-03) | ||
### Bug Fixes | ||
* Add missing asyncClose ([#1946](https://github.com/serialport/node-serialport/issues/1946)) ([4a3d2a0](https://github.com/serialport/node-serialport/commit/4a3d2a0)), closes [#1904](https://github.com/serialport/node-serialport/issues/1904) | ||
* enabling disabled tests rename all pkgs to lib ([#1941](https://github.com/serialport/node-serialport/issues/1941)) ([b1cc840](https://github.com/serialport/node-serialport/commit/b1cc840)) | ||
* unix reading ([#1953](https://github.com/serialport/node-serialport/issues/1953)) ([c7ca08f](https://github.com/serialport/node-serialport/commit/c7ca08f)) | ||
## [8.0.2](https://github.com/serialport/node-serialport/compare/v8.0.1...v8.0.2) (2019-09-24) | ||
@@ -8,0 +21,0 @@ |
@@ -21,3 +21,3 @@ const fs = require('fs') | ||
try { | ||
const bytesRead = await readAsync(this.fd, buffer, offset, length, null) | ||
const { bytesRead } = await readAsync(this.fd, buffer, offset, length, null) | ||
if (bytesRead === 0) { | ||
@@ -28,3 +28,3 @@ return this.read(buffer, offset, length) | ||
logger('Finished read', bytesRead, 'bytes') | ||
return bytesRead | ||
return { bytesRead, buffer } | ||
} catch (err) { | ||
@@ -31,0 +31,0 @@ if (err.code === 'EAGAIN' || err.code === 'EWOULDBLOCK' || err.code === 'EINTR') { |
@@ -8,2 +8,3 @@ const binding = require('bindings')('bindings.node') | ||
const asyncOpen = promisify(binding.open) | ||
const asyncClose = promisify(binding.close) | ||
const asyncRead = promisify(binding.read) | ||
@@ -10,0 +11,0 @@ const asyncWrite = promisify(binding.write) |
{ | ||
"name": "@serialport/bindings", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"main": "lib", | ||
@@ -9,4 +9,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@serialport/binding-abstract": "^8.0.1", | ||
"@serialport/parser-readline": "^8.0.1", | ||
"@serialport/binding-abstract": "^8.0.3", | ||
"@serialport/parser-readline": "^8.0.3", | ||
"bindings": "^1.5.0", | ||
@@ -18,3 +18,3 @@ "debug": "^4.1.1", | ||
"devDependencies": { | ||
"@serialport/binding-mock": "^8.0.1" | ||
"@serialport/binding-mock": "^8.0.3" | ||
}, | ||
@@ -50,3 +50,3 @@ "engines": { | ||
}, | ||
"gitHead": "53e208576b4d01ba0d000d1cfc8157bab5141a91" | ||
"gitHead": "6a73db38345ef4193b1c68495519ca999cd8411f" | ||
} |
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
127813
29
640