New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@open-rpc/client-js

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-rpc/client-js - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

build/transports/WebSocketTransport.js

@@ -89,3 +89,3 @@ "use strict";

notifications = Request_1.getNotifications(data);
this.connection.send(this.parseData(data), function (err) {
this.connection.send(JSON.stringify(this.parseData(data)), function (err) {
if (err) {

@@ -92,0 +92,0 @@ var jsonError = new Error_1.JSONRPCError(err.message, Error_1.ERR_UNKNOWN, err);

@@ -0,1 +1,9 @@

## [1.2.3](https://github.com/open-rpc/client-js/compare/1.2.2...1.2.3) (2019-09-30)
### Bug Fixes
* readme single quote to double quote ([aa0e8b2](https://github.com/open-rpc/client-js/commit/aa0e8b2))
* websocket transport to serialize string prior to sending ([adee025](https://github.com/open-rpc/client-js/commit/adee025))
## [1.2.2](https://github.com/open-rpc/client-js/compare/1.2.1...1.2.2) (2019-09-23)

@@ -2,0 +10,0 @@

{
"name": "@open-rpc/client-js",
"version": "1.2.2",
"version": "1.2.3",
"description": " A browser-compatible JSON-RPC client with multiple transports.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -22,6 +22,6 @@ # OpenRPC Client JS

```javascript
import { RequestManager, HTTPTransport, Client } from '@open-rpc/client-js';
const transport = new HTTPTransport('http://localhost:8545');
import { RequestManager, HTTPTransport, Client } from "@open-rpc/client-js";
const transport = new HTTPTransport("http://localhost:8545");
const client = new Client(new RequestManager([transport]));
const result = await client.request(‘addition’, [2, 2]);
const result = await client.request("addition", [2, 2]);
// => { jsonrpc: '2.0', id: 1, result: 4 }

@@ -28,0 +28,0 @@ ```

@@ -32,3 +32,3 @@ import WS from "isomorphic-ws";

const notifications = getNotifications(data);
this.connection.send(this.parseData(data), (err?: Error) => {
this.connection.send(JSON.stringify(this.parseData(data)), (err?: Error) => {
if (err) {

@@ -35,0 +35,0 @@ const jsonError = new JSONRPCError(err.message, ERR_UNKNOWN, err);

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