nanomessage-rpc
Advanced tools
Comparing version 4.2.1 to 4.3.0
@@ -9,2 +9,4 @@ # Changelog | ||
## 4.3.0 - 2021-07-02 [YANKED] | ||
## 4.2.1 - 2021-07-02 [YANKED] | ||
@@ -49,3 +51,3 @@ | ||
## 1.0.0 - 2020-03-11 [YANKED] | ||
[Unreleased]: https://github.com/geut/nanomessage-rpc/compare/v4.2.1...HEAD | ||
[Unreleased]: https://github.com/geut/nanomessage-rpc/compare/v4.3.0...HEAD | ||
[4.0.0]: https://github.com/geut/nanomessage-rpc/compare/v3.2.0...v4.0.0 |
{ | ||
"name": "nanomessage-rpc", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Tiny rpc on top of nanomessage", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -138,2 +138,4 @@ import { EventEmitter } from 'events' | ||
_onMessage (message, info) {} | ||
async _open () { | ||
@@ -201,5 +203,7 @@ await this[kNanomessage].open() | ||
async [kOnmessage] (message) { | ||
async [kOnmessage] (message, info) { | ||
this.ee.emit('message', message) | ||
try { | ||
message = this._onMessage(message, info) || message | ||
if (message.event) { | ||
@@ -206,0 +210,0 @@ await this[kEmittery].emit(message.name, message.data) |
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
21152
380