web3-providers-http
Advanced tools
Comparing version 4.1.1-dev.ca31f6a.0 to 4.1.1-dev.cbbbd84.0
@@ -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.ca31f6a.0+ca31f6a", | ||
"version": "4.1.1-dev.cbbbd84.0+cbbbd84", | ||
"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 .", | ||
@@ -65,7 +65,7 @@ "format": "prettier --write '**/*'", | ||
"cross-fetch": "^4.0.0", | ||
"web3-errors": "1.1.5-dev.ca31f6a.0+ca31f6a", | ||
"web3-types": "1.4.1-dev.ca31f6a.0+ca31f6a", | ||
"web3-utils": "4.2.1-dev.ca31f6a.0+ca31f6a" | ||
"web3-errors": "1.2.2-dev.cbbbd84.0+cbbbd84", | ||
"web3-types": "1.7.1-dev.cbbbd84.0+cbbbd84", | ||
"web3-utils": "4.3.2-dev.cbbbd84.0+cbbbd84" | ||
}, | ||
"gitHead": "ca31f6a264a51f2c522e085c2d19c116fe9dcc06" | ||
"gitHead": "cbbbd84bac7051b57ec636b857e06adcc3da05f6" | ||
} |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
27431
392