web3-core-method
Advanced tools
Comparing version 1.0.0-beta.55 to 1.0.0
{ | ||
"name": "web3-core-method", | ||
"namespace": "ethereum", | ||
"version": "1.0.0-beta.55", | ||
"description": "Handles the JSON-RPC methods. This package is also internally used by web3.", | ||
"repository": "https://github.com/ethereum/web3.js/tree/1.0/packages/web3-core-method", | ||
"version": "1.0.0", | ||
"description": "Creates the methods on the web3 modules. This is an internal package.", | ||
"repository": "https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-method", | ||
"license": "LGPL-3.0", | ||
"main": "dist/web3-core-method.cjs.js", | ||
"module": "dist/web3-core-method.esm.js", | ||
"browser": "dist/web3-core-method.umd.js", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"dev": "rollup -c -w", | ||
"test": "jest", | ||
"test:watch": "jest --watchAll", | ||
"dtslint": "dtslint types --onlyTestTsNext" | ||
"engines": { | ||
"node": ">=8.0.0 <=11.15.0" | ||
}, | ||
"types": "types/index.d.ts", | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"eventemitter3": "3.1.0", | ||
"lodash": "^4.17.11", | ||
"rxjs": "^6.4.0", | ||
"web3-core": "1.0.0-beta.55", | ||
"web3-core-helpers": "1.0.0-beta.55", | ||
"web3-core-subscriptions": "1.0.0-beta.55", | ||
"web3-utils": "1.0.0-beta.55" | ||
}, | ||
"devDependencies": { | ||
"definitelytyped-header-parser": "^1.0.1", | ||
"dtslint": "0.4.2", | ||
"web3-providers": "1.0.0-beta.55" | ||
}, | ||
"files": [ | ||
"dist", | ||
"types/index.d.ts" | ||
], | ||
"gitHead": "37347fd46344f45d1c57104920bdda0779f0d51c" | ||
"underscore": "1.9.1", | ||
"web3-core-helpers": "1.0.0", | ||
"web3-core-promievent": "1.0.0", | ||
"web3-core-subscriptions": "1.0.0", | ||
"web3-utils": "1.0.0" | ||
} | ||
} |
# web3-core-method | ||
This is a sub module of [web3.js][repo] | ||
This is a sub package of [web3.js][repo] | ||
The Method module abstracts the JSON-RPC method and is used within most [web3.js][repo] modules. | ||
The Method package used within most [web3.js][repo] packages. | ||
Please read the [documentation][docs] for more. | ||
## Installation | ||
### Node.js | ||
```bash | ||
@@ -13,7 +16,35 @@ npm install web3-core-method | ||
## Types | ||
### In the Browser | ||
All the typescript typings are placed in the types folder. | ||
Build running the following in the [web3.js][repo] repository: | ||
```bash | ||
npm run-script build-all | ||
``` | ||
Then include `dist/web3-core-method.js` in your html file. | ||
This will expose the `Web3Method` object on the window object. | ||
## Usage | ||
```js | ||
// in node.js | ||
var Web3Method = require('web3-core-method'); | ||
var method = new Web3Method({ | ||
name: 'sendTransaction', | ||
call: 'eth_sendTransaction', | ||
params: 1, | ||
inputFormatter: [inputTransactionFormatter] | ||
}); | ||
method.attachToObject(myCoolLib); | ||
myCoolLib.sendTransaction({...}, function(){ ... }); | ||
``` | ||
[docs]: http://web3js.readthedocs.io/en/1.0/ | ||
[repo]: https://github.com/ethereum/web3.js | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5
0
1
50
22171
3
493
1
+ Addedunderscore@1.9.1
+ Addedweb3-core-promievent@1.0.0
+ Addedany-promise@1.3.0(transitive)
+ Addedeth-lib@0.2.7(transitive)
+ Addedeventemitter3@3.1.2(transitive)
+ Addedrandomhex@0.1.5(transitive)
+ Addedunderscore@1.9.1(transitive)
+ Addedutf8@3.0.0(transitive)
+ Addedweb3-core-helpers@1.0.0(transitive)
+ Addedweb3-core-promievent@1.0.0(transitive)
+ Addedweb3-core-subscriptions@1.0.0(transitive)
+ Addedweb3-eth-iban@1.0.0(transitive)
+ Addedweb3-utils@1.0.0(transitive)
- Removed@babel/runtime@^7.3.1
- Removedeventemitter3@3.1.0
- Removedlodash@^4.17.11
- Removedrxjs@^6.4.0
- Removedweb3-core@1.0.0-beta.55
- Removed@babel/runtime@7.25.6(transitive)
- Removed@types/bn.js@4.11.6(transitive)
- Removed@types/node@10.17.60(transitive)
- Removedbufferutil@4.0.8(transitive)
- Removedcookiejar@2.1.4(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedeth-lib@0.2.8(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedeventemitter3@3.1.0(transitive)
- Removedext@1.7.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedms@2.0.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp-build@4.8.2(transitive)
- Removedquerystringify@2.2.0(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrequires-port@1.0.0(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtype@2.7.3(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedurl-parse@1.4.4(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removedutf8@2.1.1(transitive)
- Removedweb3-core@1.0.0-beta.55(transitive)
- Removedweb3-core-helpers@1.0.0-beta.55(transitive)
- Removedweb3-core-subscriptions@1.0.0-beta.55(transitive)
- Removedweb3-eth-iban@1.0.0-beta.55(transitive)
- Removedweb3-providers@1.0.0-beta.55(transitive)
- Removedweb3-utils@1.0.0-beta.55(transitive)
- Removedwebsocket@1.0.35(transitive)
- Removedxhr2-cookies@1.1.0(transitive)
- Removedyaeti@0.0.6(transitive)
Updatedweb3-core-helpers@1.0.0
Updatedweb3-utils@1.0.0