bare-channel
Advanced tools
Comparing version 4.1.0 to 4.1.1
12
index.js
@@ -47,3 +47,3 @@ /* global Bare */ | ||
this._ondrained = null | ||
this._ondestroyed = null | ||
this._onclosed = null | ||
this._onremoteclose = null | ||
@@ -55,3 +55,3 @@ | ||
this._onend, | ||
this._ondestroy | ||
this._onclose | ||
) | ||
@@ -145,6 +145,6 @@ | ||
const destroyed = new Promise((resolve) => { this._ondestroyed = resolve }) | ||
const destroyed = new Promise((resolve) => { this._onclosed = resolve }) | ||
binding.portDestroy(this._channel.handle, this._id) | ||
await destroyed | ||
this._ondestroyed = null | ||
this._onclosed = null | ||
@@ -218,4 +218,4 @@ Port._ports.delete(this) | ||
_ondestroy () { | ||
this._ondestroyed() | ||
_onclose () { | ||
this._onclosed() | ||
} | ||
@@ -222,0 +222,0 @@ |
{ | ||
"name": "bare-channel", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Inter-thread messaging for JavaScript", | ||
"exports": { | ||
".": "./index.js" | ||
".": "./index.js", | ||
"./package": "./package.json" | ||
}, | ||
@@ -8,0 +9,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
292362