conflux-web-core-method
Advanced tools
Comparing version 0.1.22-alpha.0 to 1.2.2-alpha.0
{ | ||
"name": "conflux-web-core-method", | ||
"version": "0.1.22-alpha.0", | ||
"description": "Handles the JSON-RPC methods. This package is also internally used by ConfluxWeb.", | ||
"repository": "https://github.com/Conflux-Chain/ConfluxWeb/tree/master/packages/conflux-web-core-method", | ||
"version": "1.2.2-alpha.0", | ||
"description": "Creates the methods on the conflux-web modules. This is an internal package.", | ||
"repository": "https://github.com/Conflux-Chain/ConfluxWeb/tree/conflux-web-1.2.1/package/conflux-web-core-method", | ||
"license": "LGPL-3.0", | ||
"main": "dist/conflux-web-core-method.cjs.js", | ||
"module": "dist/conflux-web-core-method.esm.js", | ||
"browser": "dist/conflux-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" | ||
}, | ||
"types": "types/index.d.ts", | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1", | ||
"conflux-web-core-subscriptions": "0.1.15-alpha.0", | ||
"eventemitter3": "3.1.0", | ||
"lodash": "^4.17.11", | ||
"rxjs": "^6.4.0" | ||
"conflux-web-core-helpers": "1.2.2-alpha.0", | ||
"conflux-web-core-promievent": "1.2.2-alpha.0", | ||
"conflux-web-core-subscriptions": "1.2.2-alpha.0", | ||
"conflux-web-utils": "1.2.2-alpha.0", | ||
"underscore": "1.9.1" | ||
}, | ||
"devDependencies": { | ||
"conflux-web-core": "0.1.22-alpha.0", | ||
"conflux-web-core-helpers": "0.1.15-alpha.0", | ||
"conflux-web-core-subscriptions": "*", | ||
"conflux-web-providers": "0.1.15-alpha.0", | ||
"conflux-web-utils": "0.1.15-alpha.0", | ||
"definitelytyped-header-parser": "^1.0.1", | ||
"dtslint": "0.4.2" | ||
}, | ||
"files": [ | ||
"dist", | ||
"types/index.d.ts" | ||
], | ||
"gitHead": "cf3d7a75d7e3a6445361ae9690ff23e4c21b216a" | ||
"gitHead": "5867aaed668598b8531a372128e7c0b84d975e99" | ||
} |
# conflux-web-core-method | ||
This is a sub package of [ConfluxWeb.js][repo] | ||
This is a sub package of [conflux-web][repo] | ||
The Method module abstracts the JSON-RPC method and is used within most [ConfluxWeb.js][repo] packages. | ||
The Method package used within most [conflux-web][repo] packages. | ||
Please read the [documentation][docs] for more. | ||
## Installation | ||
### Node.js | ||
```bash | ||
@@ -13,6 +16,35 @@ npm install conflux-web-core-method | ||
## Types | ||
### In the Browser | ||
All the typescript typings are placed in the types folder. | ||
Build running the following in the [conflux-web][repo] repository: | ||
[repo]: https://github.com/Conflux-Chain/ConfluxWeb | ||
```bash | ||
npm run-script build-all | ||
``` | ||
Then include `dist/conflux-web-core-method.js` in your html file. | ||
This will expose the `ConfluxWebMethod` object on the window object. | ||
## Usage | ||
```js | ||
// in node.js | ||
var ConfluxWebMethod = require('conflux-web-core-method'); | ||
var method = new ConfluxWebMethod({ | ||
name: 'sendTransaction', | ||
call: 'cfx_sendTransaction', | ||
params: 1, | ||
inputFormatter: [inputTransactionFormatter] | ||
}); | ||
method.attachToObject(myCoolLib); | ||
myCoolLib.sendTransaction({...}, function(){ ... }); | ||
``` | ||
[docs]: https://phabricator.conflux-chain.org/w/javascript_api/ | ||
[repo]: https://github.com/Conflux-Chain/ConfluxWeb/tree/conflux-web-1.2.1 | ||
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
0
50
23614
4
501
1
+ Addedunderscore@1.9.1
+ Addedany-promise@1.3.0(transitive)
+ Addedbn.js@4.11.64.11.84.12.1(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedbuffer-to-arraybuffer@0.0.5(transitive)
+ Addedconflux-web-cfx-iban@1.2.2-alpha.0(transitive)
+ Addedconflux-web-core-helpers@1.2.2-alpha.0(transitive)
+ Addedconflux-web-core-promievent@1.2.2-alpha.0(transitive)
+ Addedconflux-web-core-subscriptions@1.2.2-alpha.0(transitive)
+ Addedconflux-web-utils@1.2.2-alpha.0(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addeddom-walk@0.1.2(transitive)
+ Addedelliptic@6.6.1(transitive)
+ Addedeth-lib@0.2.7(transitive)
+ Addedethjs-unit@0.1.6(transitive)
+ Addedeventemitter3@3.1.2(transitive)
+ Addedglobal@4.4.0(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-function@1.0.2(transitive)
+ Addedis-hex-prefixed@1.0.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addedmin-document@2.19.0(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addednumber-to-bn@1.7.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedparse-headers@2.0.5(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedquery-string@5.1.1(transitive)
+ Addedrandomhex@0.1.5(transitive)
+ Addedsimple-concat@1.0.1(transitive)
+ Addedsimple-get@2.8.2(transitive)
+ Addedstrict-uri-encode@1.1.0(transitive)
+ Addedstrip-hex-prefix@1.0.0(transitive)
+ Addedtimed-out@4.0.1(transitive)
+ Addedunderscore@1.9.1(transitive)
+ Addedurl-set-query@1.0.0(transitive)
+ Addedutf8@3.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedxhr@2.6.0(transitive)
+ Addedxhr-request@1.1.0(transitive)
+ Addedxhr-request-promise@0.1.3(transitive)
+ Addedxtend@4.0.2(transitive)
- Removed@babel/runtime@^7.3.1
- Removedeventemitter3@3.1.0
- Removedlodash@^4.17.11
- Removedrxjs@^6.4.0
- Removed@babel/runtime@7.26.0(transitive)
- Removedconflux-web-core-subscriptions@0.1.15-alpha.0(transitive)
- Removedeventemitter3@3.1.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedtslib@1.14.1(transitive)