ethjs-query
Advanced tools
Comparing version 0.0.5 to 0.1.0
139
package.json
{ | ||
"name": "ethjs-query", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "A simple query layer for the Ethereum RPC.", | ||
"main": "./src/index.js", | ||
"main": "lib/index.js", | ||
"browser": "dist/ethjs-query.js", | ||
"files": [ | ||
"dist", | ||
"internals", | ||
"lib", | ||
"src" | ||
], | ||
"scripts": { | ||
"start": "npm test", | ||
"test": "mocha src/tests/**/*.js -R spec --timeout 2000000", | ||
"release": "npmpub", | ||
"pretest": "npm run lint", | ||
"prepublish": "npm run build", | ||
"prebuild": "npm run build:clean && npm run test", | ||
"build:clean": "npm run test:clean && rimraf ./dist", | ||
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files", | ||
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress", | ||
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress", | ||
"build": "npm run build:commonjs && npm run test:lib && npm run build:umd && npm run build:umd:min", | ||
"lint": "npm run lint:js", | ||
"lint:eslint": "eslint --ignore-path .gitignore", | ||
"lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern **/**.min.js", | ||
"lint:js": "npm run lint:eslint -- . ", | ||
"lint:staged": "lint-staged", | ||
"test:clean": "rimraf ./coverage", | ||
"test": "mocha ./src/tests/**/*.js -R spec --timeout 2000000", | ||
"test:lib": "mocha ./lib/tests/**/*.js -R spec --timeout 2000000", | ||
"test-travis": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- src/tests/**/*.js -R spec --timeout 2000000", | ||
@@ -38,8 +54,104 @@ "coveralls": "npm run test-travis && cat ./coverage/lcov.info | coveralls" | ||
"homepage": "https://github.com/ethjs/ethjs-query#readme", | ||
"babel": { | ||
"plugins": [ | ||
[ | ||
"transform-es2015-template-literals", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"transform-es2015-literals", | ||
"transform-es2015-function-name", | ||
"transform-es2015-arrow-functions", | ||
"transform-es2015-block-scoped-functions", | ||
[ | ||
"transform-es2015-classes", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"transform-es2015-object-super", | ||
"transform-es2015-shorthand-properties", | ||
[ | ||
"transform-es2015-computed-properties", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
[ | ||
"transform-es2015-for-of", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"transform-es2015-sticky-regex", | ||
"transform-es2015-unicode-regex", | ||
"check-es2015-constants", | ||
[ | ||
"transform-es2015-spread", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"transform-es2015-parameters", | ||
[ | ||
"transform-es2015-destructuring", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"transform-es2015-block-scoping", | ||
"transform-object-rest-spread", | ||
"transform-es3-member-expression-literals", | ||
"transform-es3-property-literals" | ||
], | ||
"env": { | ||
"commonjs": { | ||
"plugins": [ | ||
[ | ||
"transform-es2015-modules-commonjs", | ||
{ | ||
"loose": true | ||
} | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
"json-rpc-random-id": "1.0.0", | ||
"ethjs-format": "0.0.9" | ||
"ethjs-format": "0.1.0", | ||
"json-rpc-random-id": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "6.18.0", | ||
"babel-core": "6.18.2", | ||
"babel-eslint": "7.1.0", | ||
"babel-loader": "6.2.8", | ||
"babel-plugin-check-es2015-constants": "6.8.0", | ||
"babel-plugin-transform-es2015-arrow-functions": "6.8.0", | ||
"babel-plugin-transform-es2015-block-scoped-functions": "6.8.0", | ||
"babel-plugin-transform-es2015-block-scoping": "6.18.0", | ||
"babel-plugin-transform-es2015-classes": "6.18.0", | ||
"babel-plugin-transform-es2015-computed-properties": "6.8.0", | ||
"babel-plugin-transform-es2015-destructuring": "6.19.0", | ||
"babel-plugin-transform-es2015-for-of": "6.18.0", | ||
"babel-plugin-transform-es2015-function-name": "6.9.0", | ||
"babel-plugin-transform-es2015-literals": "6.8.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "6.18.0", | ||
"babel-plugin-transform-es2015-object-super": "6.8.0", | ||
"babel-plugin-transform-es2015-parameters": "6.18.0", | ||
"babel-plugin-transform-es2015-shorthand-properties": "6.18.0", | ||
"babel-plugin-transform-es2015-spread": "6.8.0", | ||
"babel-plugin-transform-es2015-sticky-regex": "6.8.0", | ||
"babel-plugin-transform-es2015-template-literals": "6.8.0", | ||
"babel-plugin-transform-es2015-unicode-regex": "6.11.0", | ||
"babel-plugin-transform-es3-member-expression-literals": "6.5.0", | ||
"babel-plugin-transform-es3-property-literals": "6.5.0", | ||
"babel-plugin-transform-object-rest-spread": "6.19.0", | ||
"babel-register": "6.18.0", | ||
"check-es3-syntax-cli": "0.1.3", | ||
"webpack": "2.1.0-beta.15", | ||
"json-loader": "0.5.4", | ||
"rimraf": "2.3.4", | ||
"cross-env": "1.0.7", | ||
"bignumber.js": "3.0.1", | ||
@@ -62,17 +174,2 @@ "chai": "3.5.0", | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015" | ||
], | ||
"plugins": [ | ||
[ | ||
"module-resolver", | ||
{ | ||
"root": [ | ||
"./src" | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
"lint-staged": { | ||
@@ -79,0 +176,0 @@ "lint:eslint": "*.js" |
@@ -51,4 +51,5 @@ ## ethjs-query | ||
```js | ||
const HttpProvider = require('ethjs-provider-http'); | ||
const Eth = require('ethjs-query'); | ||
const eth = new Eth(providerObject); | ||
const eth = new Eth(new HttpProvider('http://localhost:8545')); | ||
@@ -96,2 +97,4 @@ eth.getBalance('0x407d73d8a49eeb85d32cf465507dd71d507100c1', cb); | ||
`ethjs-query` supports all Ethereum spec RPC methods. | ||
``` | ||
@@ -147,10 +150,8 @@ getBalance | ||
<!-- | ||
## Guides | ||
You'll find more detailed information on using default and tailoring it to your needs in our guides: | ||
You'll find more detailed information on using `ethjs-query` and tailoring it to your needs in our guides: | ||
- [User guide](docs/user-guide.md) - Usage, configuration, FAQ and complementary tools. | ||
- [Developer guide](docs/developer-guide.md) - Contributing to wafr and writing your own plugins & formatters. | ||
--> | ||
- [Developer guide](docs/developer-guide.md) - Contributing to `ethjs-query` and writing your own code and coverage. | ||
@@ -157,0 +158,0 @@ ## Help out |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
588135
7227
204
47
12
1
1
+ Addedethjs-format@0.1.0(transitive)
+ Addedethjs-util@0.1.1(transitive)
- Removedassert@1.4.1(transitive)
- Removedethjs-filter@0.0.1(transitive)
- Removedethjs-format@0.0.9(transitive)
- Removedethjs-util@0.0.3(transitive)
- Removedinherits@2.0.1(transitive)
- Removedutil@0.10.3(transitive)
Updatedethjs-format@0.1.0