Socket
Socket
Sign inDemoInstall

web3-providers-http

Package Overview
Dependencies
Maintainers
4
Versions
420
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.6b2dbe3.0 to 4.1.1-dev.6b80cf0.0

6

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)
if (!response.ok) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
throw new web3_errors_1.ResponseError(yield response.json());
}
;
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)
if (!response.ok) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
throw new ResponseError(yield response.json());
}
;
return (yield response.json());

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

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

@@ -33,3 +33,3 @@ "main": "./lib/commonjs/index.js",

"build:check": "node -e \"require('./lib')\"",
"lint": "eslint --ext .js,.ts .",
"lint": "eslint --cache --cache-strategy content --ext .ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",

@@ -56,7 +56,7 @@ "format": "prettier --write '**/*'",

"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-extended": "^3.0.1",
"jest-fetch-mock": "^3.0.3",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.1",
"typescript": "^4.7.4"

@@ -66,7 +66,7 @@ },

"cross-fetch": "^4.0.0",
"web3-errors": "1.1.5-dev.6b2dbe3.0+6b2dbe3",
"web3-types": "1.3.2-dev.6b2dbe3.0+6b2dbe3",
"web3-utils": "4.1.1-dev.6b2dbe3.0+6b2dbe3"
"web3-errors": "1.2.1-dev.6b80cf0.0+6b80cf0",
"web3-types": "1.7.1-dev.6b80cf0.0+6b80cf0",
"web3-utils": "4.3.2-dev.6b80cf0.0+6b80cf0"
},
"gitHead": "6b2dbe312edef9377b8258105b69ba44f6fcb2ba"
"gitHead": "6b80cf0f00fba190eda18ab5c96ee0b110680da7"
}

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

});
if (!response.ok) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
throw new ResponseError(await response.json())
};
// 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