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

web3-providers-http

Package Overview
Dependencies
Maintainers
4
Versions
458
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-providers-http - npm Package Compare versions

Comparing version 4.1.1-dev.fd2982d.0 to 4.2.0

8

lib/commonjs/index.js

@@ -59,5 +59,7 @@ "use strict";

const response = yield (0, cross_fetch_1.default)(this.clientUrl, Object.assign(Object.assign({}, providerOptionsCombined), { method: 'POST', headers: Object.assign(Object.assign({}, providerOptionsCombined.headers), { 'Content-Type': 'application/json' }), body: JSON.stringify(payload) }));
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
if (!response.ok)
throw new web3_errors_1.ResponseError(yield response.json());
if (!response.ok) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
throw new web3_errors_1.ResponseError(yield response.json(), undefined, undefined, response.status);
}
;
return (yield response.json());

@@ -64,0 +66,0 @@ });

@@ -53,5 +53,7 @@ /*

const response = yield fetch(this.clientUrl, Object.assign(Object.assign({}, providerOptionsCombined), { method: 'POST', headers: Object.assign(Object.assign({}, providerOptionsCombined.headers), { 'Content-Type': 'application/json' }), body: JSON.stringify(payload) }));
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
if (!response.ok)
throw new ResponseError(yield response.json());
if (!response.ok) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
throw new ResponseError(yield response.json(), undefined, undefined, response.status);
}
;
return (yield response.json());

@@ -58,0 +60,0 @@ });

{
"name": "web3-providers-http",
"version": "4.1.1-dev.fd2982d.0+fd2982d",
"version": "4.2.0",
"description": "HTTP provider for Web3 4.x.x",

@@ -64,7 +64,7 @@ "main": "./lib/commonjs/index.js",

"cross-fetch": "^4.0.0",
"web3-errors": "1.2.1-dev.fd2982d.0+fd2982d",
"web3-types": "1.6.1-dev.fd2982d.0+fd2982d",
"web3-utils": "4.3.1-dev.fd2982d.0+fd2982d"
"web3-errors": "^1.3.0",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.1"
},
"gitHead": "fd2982d1afacd6bf89084324b478ec04af18052e"
"gitHead": "4ce72be200d92ca6b2247c52c09f1e456723c0a3"
}

@@ -81,6 +81,7 @@ /*

});
if (!response.ok) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
throw new ResponseError(await response.json(), undefined, undefined, response.status);
};
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
if (!response.ok) throw new ResponseError(await response.json());
return (await response.json()) as JsonRpcResponseWithResult<ResultType>;

@@ -87,0 +88,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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