Socket
Socket
Sign inDemoInstall

web3-core-requestmanager

Package Overview
Dependencies
71
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.10 to 1.2.11

12

package.json
{
"name": "web3-core-requestmanager",
"version": "1.2.10",
"version": "1.2.11",
"description": "Web3 module to handle requests to external providers.",

@@ -13,8 +13,8 @@ "repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-requestmanager",

"underscore": "1.9.1",
"web3-core-helpers": "1.2.10",
"web3-providers-http": "1.2.10",
"web3-providers-ipc": "1.2.10",
"web3-providers-ws": "1.2.10"
"web3-core-helpers": "1.2.11",
"web3-providers-http": "1.2.11",
"web3-providers-ipc": "1.2.11",
"web3-providers-ws": "1.2.11"
},
"gitHead": "c42b14e30c097c4e2c214f421ebc8fc7fd0965e8"
"gitHead": "87e668275ac7d9b8af7c909137fc0626c3866929"
}

@@ -162,3 +162,3 @@ /*

const onResult = function (err, result) {
const onJsonrpcResult = function (err, result) {
if(result && result.id && payload.id !== result.id) {

@@ -184,7 +184,7 @@ return callback(new Error(`Wrong response id ${result.id} (expected: ${payload.id}) in ${JSON.stringify(payload)}`));

if (this.provider.request) {
callbackify(this.provider.request.bind(this.provider))(payload, onResult);
callbackify(this.provider.request.bind(this.provider))(payload, callback);
} else if (this.provider.sendAsync) {
this.provider.sendAsync(payload, onResult);
this.provider.sendAsync(payload, onJsonrpcResult);
} else if (this.provider.send) {
this.provider.send(payload, onResult);
this.provider.send(payload, onJsonrpcResult);
} else {

@@ -191,0 +191,0 @@ throw new Error('Provider does not have a request or send method to use.');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc