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

nanomessage-rpc

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanomessage-rpc - npm Package Compare versions

Comparing version 4.2.1 to 4.3.0

4

CHANGELOG.md

@@ -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)

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