@serialport/bindings
Advanced tools
Comparing version 8.0.3 to 8.0.4
@@ -6,2 +6,14 @@ # Change Log | ||
## [8.0.4](https://github.com/serialport/node-serialport/compare/v8.0.3...v8.0.4) (2019-10-27) | ||
### Bug Fixes | ||
* learn now needs the package-lock.json files ([4b8fc24](https://github.com/serialport/node-serialport/commit/4b8fc248778b69f7afde17ab9ef791ef8867c4a5)) | ||
* npmignore should ignore .DS_Store files ([#1954](https://github.com/serialport/node-serialport/issues/1954)) ([eb6b57b](https://github.com/serialport/node-serialport/commit/eb6b57bffe33c9bc7775bb6b0fdf1081db86ebcc)) | ||
## [8.0.3](https://github.com/serialport/node-serialport/compare/v8.0.2...v8.0.3) (2019-10-03) | ||
@@ -8,0 +20,0 @@ |
@@ -68,13 +68,9 @@ const { promisify } = require('util') | ||
async write(buffer) { | ||
this.writeOperation = super | ||
.write(buffer) | ||
.then(() => { | ||
if (buffer.length === 0) { | ||
return | ||
} | ||
return unixWrite.call(this, buffer) | ||
}) | ||
.then(() => { | ||
this.writeOperation = null | ||
}) | ||
this.writeOperation = super.write(buffer).then(async () => { | ||
if (buffer.length === 0) { | ||
return | ||
} | ||
await unixWrite.call(this, buffer) | ||
this.writeOperation = null | ||
}) | ||
return this.writeOperation | ||
@@ -81,0 +77,0 @@ } |
@@ -68,13 +68,9 @@ const { promisify } = require('util') | ||
async write(buffer) { | ||
this.writeOperation = super | ||
.write(buffer) | ||
.then(() => { | ||
if (buffer.length === 0) { | ||
return | ||
} | ||
return unixWrite.call(this, buffer) | ||
}) | ||
.then(() => { | ||
this.writeOperation = null | ||
}) | ||
this.writeOperation = super.write(buffer).then(async () => { | ||
if (buffer.length === 0) { | ||
return | ||
} | ||
await unixWrite.call(this, buffer) | ||
this.writeOperation = null | ||
}) | ||
return this.writeOperation | ||
@@ -81,0 +77,0 @@ } |
@@ -81,13 +81,9 @@ const binding = require('bindings')('bindings.node') | ||
async write(buffer) { | ||
this.writeOperation = super | ||
.write(buffer) | ||
.then(() => { | ||
if (buffer.length === 0) { | ||
return | ||
} | ||
return asyncWrite(this.fd, buffer) | ||
}) | ||
.then(() => { | ||
this.writeOperation = null | ||
}) | ||
this.writeOperation = super.write(buffer).then(async () => { | ||
if (buffer.length === 0) { | ||
return | ||
} | ||
await asyncWrite(this.fd, buffer) | ||
this.writeOperation = null | ||
}) | ||
return this.writeOperation | ||
@@ -94,0 +90,0 @@ } |
{ | ||
"name": "@serialport/bindings", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"main": "lib", | ||
@@ -9,11 +9,11 @@ "keywords": [ | ||
"dependencies": { | ||
"@serialport/binding-abstract": "^8.0.3", | ||
"@serialport/parser-readline": "^8.0.3", | ||
"@serialport/binding-abstract": "^8.0.4", | ||
"@serialport/parser-readline": "^8.0.4", | ||
"bindings": "^1.5.0", | ||
"debug": "^4.1.1", | ||
"nan": "^2.13.2", | ||
"nan": "^2.14.0", | ||
"prebuild-install": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
"@serialport/binding-mock": "^8.0.3" | ||
"@serialport/binding-mock": "^8.0.4" | ||
}, | ||
@@ -49,3 +49,3 @@ "engines": { | ||
}, | ||
"gitHead": "6a73db38345ef4193b1c68495519ca999cd8411f" | ||
"gitHead": "db21188f86f958cb53b39e753c5cf019965e0695" | ||
} |
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
111759
27
628
Updatednan@^2.14.0