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

web3-providers-http

Package Overview
Dependencies
Maintainers
0
Versions
488
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.2.1-dev.7a6e492.0 to 4.2.1-dev.7a8df69.0

lib/commonjs/tsconfig.cjs.tsbuildinfo

3

lib/commonjs/index.js

@@ -55,4 +55,4 @@ "use strict";

request(payload, requestOptions) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const providerOptionsCombined = Object.assign(Object.assign({}, (_a = this.httpProviderOptions) === null || _a === void 0 ? void 0 : _a.providerOptions), requestOptions);

@@ -64,3 +64,2 @@ 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) }));

}
;
return (yield response.json());

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

@@ -49,4 +49,4 @@ /*

request(payload, requestOptions) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
const providerOptionsCombined = Object.assign(Object.assign({}, (_a = this.httpProviderOptions) === null || _a === void 0 ? void 0 : _a.providerOptions), requestOptions);

@@ -58,3 +58,2 @@ 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) }));

}
;
return (yield response.json());

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

{
"name": "web3-providers-http",
"version": "4.2.1-dev.7a6e492.0+7a6e492",
"version": "4.2.1-dev.7a8df69.0+7a8df69",
"description": "HTTP provider for Web3 4.x.x",

@@ -60,11 +60,11 @@ "main": "./lib/commonjs/index.js",

"ts-jest": "^29.1.1",
"typescript": "^4.7.4"
"typescript": "^5.5.4"
},
"dependencies": {
"cross-fetch": "^4.0.0",
"web3-errors": "1.3.1-dev.7a6e492.0+7a6e492",
"web3-types": "1.7.1-dev.7a6e492.0+7a6e492",
"web3-utils": "4.3.2-dev.7a6e492.0+7a6e492"
"web3-errors": "1.3.1-dev.7a8df69.0+7a8df69",
"web3-types": "1.9.1-dev.7a8df69.0+7a8df69",
"web3-utils": "4.3.3-dev.7a8df69.0+7a8df69"
},
"gitHead": "7a6e49200949325f69a05b3bf465ce64eb41bb8d"
"gitHead": "7a8df69b8aca8718d4e862955a12c6944a701f6b"
}

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

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

@@ -87,0 +87,0 @@ return (await response.json()) as JsonRpcResponseWithResult<ResultType>;

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