You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

web3-core

Package Overview
Dependencies
Maintainers
2
Versions
413
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.37 to 1.0.0-beta.38

dist/web3-core.cjs.js

30

package.json
{
"name": "web3-core",
"namespace": "ethereum",
"version": "1.0.0-beta.37",
"version": "1.0.0-beta.38",
"description": "Web3 core tools for sub packages. This is an internal package.",
"repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-core",
"license": "LGPL-3.0",
"main": "src/index.js",
"main": "dist/web3-core.cjs.js",
"module": "dist/web3-core.esm.js",
"browser": "dist/web3-core.umd.js",
"types": "types",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "jest",
"dtslint": "dtslint types --onlyTestTsNext"
},
"dependencies": {
"web3-core-helpers": "1.0.0-beta.37",
"web3-core-method": "1.0.0-beta.37",
"web3-core-requestmanager": "1.0.0-beta.37",
"web3-utils": "1.0.0-beta.37"
}
"lodash": "^4.17.11",
"web3-utils": "1.0.0-beta.38"
},
"devDependencies": {
"dtslint": "^0.4.2",
"web3-eth-accounts": "1.0.0-beta.38",
"web3-providers": "1.0.0-beta.38"
},
"files": [
"dist",
"types/index.d.ts"
]
}
# web3-core
This is a sub package of [web3.js][repo]
This is a sub module of [web3.js][repo]
The core package contains core functions for [web3.js][repo] packages.
Please read the [documentation][docs] for more.
The ```web3-core``` contains the AbstractWeb3Module.
This should be used if someone wants to implement a new web3 module.
## Installation
### Node.js
```bash

@@ -16,29 +14,15 @@ npm install web3-core

## Usage
```js
// in node.js
var core = require('web3-core');
import {AbstractWeb3Module} from 'web3-core';
var CoolLib = function CoolLib() {
new AbstractWeb3Module(...);
```
// sets _requestmanager and adds basic functions
core.packageInit(this, arguments);
};
## Types
All the typescript typings are placed in the types folder.
CoolLib.providers;
CoolLib.givenProvider;
CoolLib.setProvider();
CoolLib.BatchRequest();
CoolLib.extend();
...
```
[docs]: http://web3js.readthedocs.io/en/1.0/
[repo]: https://github.com/ethereum/web3.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc