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

noice-json-rpc

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noice-json-rpc - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

lib/json-rpc2.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

3

lib/noice-json-rpc.d.ts

@@ -9,8 +9,5 @@ /// <reference types="node" />

removeListener(event: string, cb: Function): any;
on(event: 'open', cb: (ws: LikeSocket) => void): any;
on(event: 'message', cb: (data: string) => void): any;
}
export interface LikeSocketServer {
on(event: string, cb: Function): any;
on(event: 'connection', cb: (ws: LikeSocket) => void): any;
clients?: LikeSocket[];

@@ -17,0 +14,0 @@ }

"use strict";
const events_1 = require('events');
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
/**

@@ -27,3 +28,3 @@ * Creates a RPC Client.

});
socket.on('message', message => this.processMessage(message));
socket.on('message', (message) => this.processMessage(message));
}

@@ -166,4 +167,4 @@ processMessage(messageStr) {

this._socketServer = server;
server.on('connection', socket => {
socket.on('message', message => this.processMessage(message, socket));
server.on('connection', (socket) => {
socket.on('message', (message) => this.processMessage(message, socket));
});

@@ -170,0 +171,0 @@ }

{
"name": "noice-json-rpc",
"version": "1.0.1",
"version": "1.0.2",
"description": "Noice Json RPC exposes a clean ES6 Proxy and Promise based interface for JSON-RPC2 Clients and Servers",

@@ -5,0 +5,0 @@ "main": "lib/noice-json-rpc.js",

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