Socket
Socket
Sign inDemoInstall

ethjs

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethjs - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 0.3.4 -- getTransactionSuccess
1. Fix RPC unhandled promise rejection.
# 0.2.8 -- getTransactionSuccess

@@ -2,0 +6,0 @@

141

package.json
{
"name": "ethjs",
"version": "0.3.3",
"description": "A light-weight, highly optimised JS utility for Ethereum",
"main": "lib/index.js",
"files": [
"dist",
"internals",
"lib",
"src"
],
"scripts": {
"start": "npm test",
"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 --progress",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js --progress",
"build:stats": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js --progress --profile --json > dist/stats.json",
"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 --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",
"coveralls": "npm run test-travis && cat ./coverage/lcov.info | coveralls"
"author": {
"name": "Nick Dodson",
"email": "nick.dodson@consensys.net"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/ethjs/ethjs.git"
},
"dependencies": {
"bn.js": "4.11.6",
"ethjs-abi": "0.2.0",
"ethjs-contract": "0.1.9",
"ethjs-filter": "0.1.5",
"ethjs-provider-http": "0.1.6",
"ethjs-query": "0.3.3",
"ethjs-unit": "0.1.6",
"ethjs-util": "0.1.3",
"js-sha3": "0.5.5",
"number-to-bn": "1.7.0"
},
"babel": {

@@ -116,2 +72,20 @@ "plugins": [

},
"bugs": {
"url": "https://github.com/ethjs/ethjs-filter/issues"
},
"bundleDependencies": false,
"dependencies": {
"bn.js": "4.11.6",
"ethjs-abi": "0.2.0",
"ethjs-contract": "0.1.9",
"ethjs-filter": "0.1.5",
"ethjs-provider-http": "0.1.6",
"ethjs-query": "0.3.4",
"ethjs-unit": "0.1.6",
"ethjs-util": "0.1.3",
"js-sha3": "0.5.5",
"number-to-bn": "1.7.0"
},
"deprecated": false,
"description": "A light-weight, highly optimised JS utility for Ethereum",
"devDependencies": {

@@ -145,9 +119,6 @@ "babel-cli": "6.18.0",

"chai": "3.5.0",
"cross-env": "1.0.7",
"ethjs-account": "0.1.0",
"ethjs-signer": "0.1.0",
"check-es3-syntax-cli": "0.1.3",
"coveralls": "2.11.9",
"cross-env": "1.0.7",
"eslint": "2.10.1",
"web3": "0.17.0-beta",
"eslint-config-airbnb": "9.0.1",

@@ -159,2 +130,4 @@ "eslint-import-resolver-webpack": "0.2.4",

"ethereumjs-testrpc": "3.0.2",
"ethjs-account": "0.1.0",
"ethjs-signer": "0.1.0",
"eventsource-polyfill": "0.9.6",

@@ -167,22 +140,9 @@ "istanbul": "0.4.5",

"rimraf": "2.3.4",
"web3": "0.17.0-beta",
"webpack": "2.1.0-beta.15"
},
"engines": {
"npm": ">=3",
"node": ">=6.5.0"
"node": ">=6.5.0",
"npm": ">=3"
},
"keywords": [
"ethereum",
"events",
"rpc"
],
"author": "Nick Dodson <nick.dodson@consensys.net>",
"license": "MIT",
"bugs": {
"url": "https://github.com/ethjs/ethjs-filter/issues"
},
"homepage": "https://github.com/ethjs/ethjs-filter#readme",
"lint-staged": {
"lint:eslint": "*.js"
},
"eslintConfig": {

@@ -224,3 +184,48 @@ "parser": "babel-eslint",

},
"pre-commit": "build"
"files": [
"dist",
"internals",
"lib",
"src"
],
"homepage": "https://github.com/ethjs/ethjs-filter#readme",
"keywords": [
"ethereum",
"events",
"rpc"
],
"license": "MIT",
"lint-staged": {
"lint:eslint": "*.js"
},
"main": "lib/index.js",
"name": "ethjs",
"pre-commit": "build",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/ethjs/ethjs.git"
},
"scripts": {
"build": "npm run build:commonjs && npm run test:lib && npm run build:umd && npm run build:umd:min",
"build:clean": "npm run test:clean && rimraf ./dist",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files",
"build:stats": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js --progress --profile --json > dist/stats.json",
"build:umd": "cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js --progress",
"build:umd:min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js --progress",
"coveralls": "npm run test-travis && cat ./coverage/lcov.info | coveralls",
"lint": "npm run lint:js",
"lint:eslint": "eslint --ignore-path .gitignore --ignore-pattern **/**.min.js",
"lint:js": "npm run lint:eslint -- . ",
"lint:staged": "lint-staged",
"prebuild": "npm run build:clean && npm run test",
"prepublish": "npm run build",
"pretest": "npm run lint",
"release": "npmpub",
"start": "npm test",
"test": "mocha ./src/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",
"test:clean": "rimraf ./coverage",
"test:lib": "mocha ./lib/tests/**/*.js -R spec --timeout 2000000"
},
"version": "0.3.4"
}

@@ -42,3 +42,3 @@ ## ethjs

Only **103 kB** minified!
Only **106 kB** minified!

@@ -51,2 +51,10 @@ ## Install

## CDN
```
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ethjs@0.3.4/dist/ethjs.min.js"></script>
```
Note, exports to `window.Eth` global.
## Usage

@@ -58,3 +66,3 @@

eth.getBlockByNumber(45300, (err, block) => {
eth.getBlockByNumber(45300, true, (err, block) => {
// result null { ...block data... }

@@ -65,3 +73,3 @@ });

// result <BN ...>
// result <BN: 3e733628714200000>

@@ -83,7 +91,3 @@ const tokenABI = [{

token.transfer('0x...', 150).then((txHash) => {
eth.getTransactionSuccess(txHash).then(txReceipt => {
// result <Receipt { hash: '0x...', ... }>
});
});
// token.transfer( ... ).then(txHash => eth.getTransactionSuccess(txHash)).then(receipt => console.log(receipt));
```

@@ -90,0 +94,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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