Socket
Socket
Sign inDemoInstall

web3-providers-http

Package Overview
Dependencies
Maintainers
4
Versions
432
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.0.0 to 4.0.1-alpha.0

dist/index.d.ts

86

package.json
{
"name": "web3-providers-http",
"version": "4.0.0",
"description": "Ethereum HTTP provider for Web3 4.x.x",
"main": "lib/src/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"lib/**/*"
],
"scripts": {
"build": "yarn clean && yarn compile",
"clean": "rimraf lib && rimraf buildcache",
"compile": "tsc --build",
"lint": "yarn prettier --write . && eslint \"./src/**/*.ts\" --max-warnings=0",
"lint:check": "yarn prettier --check . && eslint \"./src/**/*.ts\" --max-warnings=0",
"test": "jest",
"test:integration": "jest ./test/integration",
"test:unit": "jest ./test/unit"
},
"devDependencies": {
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.22.1",
"jest": "^26.6.3",
"prettier": "^2.3.0",
"ts-jest": "^26.5.4",
"typescript": "^4.2.4"
},
"dependencies": {
"axios": "^0.21.1",
"web3-providers-base": "^1.0.0"
}
"name": "web3-providers-http",
"version": "4.0.1-alpha.0",
"description": "HTTP provider for Web3 4.x.x",
"main": "dist/index.js",
"repository": "https://github.com/ChainSafe/web3.js",
"author": "ChainSafe Systems",
"license": "LGPL-3.0",
"files": [
"dist/**/*"
],
"scripts": {
"clean": "rimraf dist",
"prebuild": "rimraf dist",
"build": "tsc --build",
"build:check": "node -e \"require('./dist')\"",
"lint": "eslint --ext .js,.ts .",
"lint:fix": "eslint --fix --ext .js,.ts .",
"format": "prettier --write '**/*'",
"test": "jest --config=./test/unit/jest.config.js",
"test:coverage": "jest --config=./test/unit/jest.config.js --coverage=true --coverage-reporters=text",
"test:ci": "jest --coverage=true --coverage-reporters=json --verbose",
"test:watch": "npm test -- --watch",
"test:unit": "jest --config=./test/unit/jest.config.js",
"test:integration": "jest --config=./test/integration/jest.config.js --runInBand",
"test:e2e:electron": "npx cypress run --headless --browser electron",
"test:e2e:chrome": "npx cypress run --headless --browser chrome",
"test:e2e:firefox": "npx cypress run --headless --browser firefox"
},
"devDependencies": {
"@types/jest": "^28.1.6",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-web3-base": "0.1.0",
"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.3",
"jest-extended": "^3.0.1",
"jest-fetch-mock": "^3.0.3",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"typescript": "^4.7.4"
},
"dependencies": {
"cross-fetch": "^3.1.5",
"web3-errors": "^0.1.1-alpha.0",
"web3-types": "^0.1.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0"
},
"gitHead": "766ebd976ef71458eaebf7a6108b268881e30552"
}
<p align="center">
<img src="../../assets/logo/web3js.jpg" width="200" alt="web3.js" />
<img src="assets/logo/web3js.jpg" width="500" alt="web3.js" />
</p>
# web3.js - Providers HTTP
# web3.js - Http Provider
## Installation
![ES Version](https://img.shields.io/badge/ES-2020-yellow)
![Node Version](https://img.shields.io/badge/node-14.x-green)
[![NPM Package][npm-image]][npm-url]
[![Dependency Status][deps-image]][deps-url]
[![Dev Dependency Status][deps-dev-image]][deps-dev-url]
This is a sub-package of [web3.js][repo].
`web3-providers-http` contains the Web3.js provider for the HTTP protocol.
###### Get it from the NPM Registry
```bash

@@ -13,11 +23,32 @@ yarn add web3-providers-http

## Getting Started
- :writing_hand: If you have questions [submit an issue](https://github.com/ChainSafe/web3.js/issues/new/choose) or join us on [Discord](https://discord.gg/yjyvFRP)
![Discord](https://img.shields.io/discord/593655374469660673.svg?label=Discord&logo=discord)
## Prerequisites
- :gear: [NodeJS](https://nodejs.org/) (LTS/Fermium)
- :toolbox: [Yarn](https://yarnpkg.com/)/[Lerna](https://lerna.js.org/)
## Package.json Scripts
- `build`: Runs `yarn clean` and `yarn compile`
- `clean`: Uses `rimraf` to remove `lib/` and `buildcache/`
- `compile`: Uses `tsc` to build package and depedenent packages
- `lint`: Uses `prettier` and `eslint` to lint package
- `lint:check`: Uses prettier and `eslint` to check if package has been linted
- `test`: Uses `jest` to run all tests
- `test:integration`: Uses `jest` to run tests under `/test/integration`
- `test:unit`: Uses `jest` to run tests under `/test/unit`
| Script | Description |
| ---------------- | -------------------------------------------------- |
| clean | Uses `rimraf` to remove `dist/` |
| build | Uses `tsc` to build package and dependent packages |
| lint | Uses `eslint` to lint package |
| lint:fix | Uses `eslint` to check and fix any warnings |
| format | Uses `prettier` to format the code |
| test | Uses `jest` to run unit tests |
| test:integration | Uses `jest` to run tests under `/test/integration` |
| test:unit | Uses `jest` to run tests under `/test/unit` |
[docs]: http://web3js.readthedocs.io/en/4.0/
[repo]: https://github.com/ethereum/web3.js
[npm-image]: https://img.shields.io/npm/v/web3-providers-http.svg
[npm-url]: https://npmjs.org/packages/web3-providers-http
[deps-image]: https://david-dm.org/ethereum/web3.js/4.x/status.svg?path=tools/web3-providers-http
[deps-url]: https://david-dm.org/ethereum/web3.js/4.x?path=tools/web3-providers-http
[deps-dev-image]: https://david-dm.org/ethereum/web3.js/4.x/dev-status.svg?path=tools/web3-providers-http
[deps-dev-url]: https://david-dm.org/ethereum/web3.js/4.x?type=dev&path=tools/web3-providers-http
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