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

isomorphic-rpc

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-rpc - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

5

index.js

@@ -7,2 +7,3 @@ const fetch = require('isomorphic-fetch')

this.id = 1
this.fetchOptions = fetchOptions
}

@@ -16,3 +17,3 @@ static get(obj,prop){

method: "POST",
headers: {"Content-Type": "application/json"},
headers: {"Content-Type": "application/json", "Accept": "application/json"},
body: JSON.stringify({

@@ -29,3 +30,3 @@ jsonrpc:"2.0",

if (response.error) {
throw new Error(response.error.message)
throw new Error(response.error)
}else{

@@ -32,0 +33,0 @@ return response.result

2

package.json
{
"name": "isomorphic-rpc",
"version": "1.1.1",
"version": "1.2.0",
"description": "A Javascript Object That Maps All Methods to RPC Calls as Promises (Isomorphic)",

@@ -5,0 +5,0 @@ "main": "index.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