eth-block-tracker
Advanced tools
Comparing version 2.3.0 to 3.0.0
{ | ||
"name": "eth-block-tracker", | ||
"version": "2.3.0", | ||
"version": "3.0.0", | ||
"description": "This module walks the Ethereum blockchain, keeping track of the latest block. It uses a web3 provider as a data source and will continuously poll for the next block.", | ||
"main": "dist/index.js", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "npm run compile && browserify test/basic.js | node", | ||
"compile": "babel --presets es2015,stage-3 --plugins transform-runtime -d dist/ lib/", | ||
"prepublishOnly": "npm run compile" | ||
"test": "npm run build && node test/index.js", | ||
"prepublish": "npm run build", | ||
"build": "mkdir -p ./dist && npm run bundle", | ||
"bundle": "babel src -d dist/es5/ && npm run bundle-main", | ||
"bundle-main": "browserify -s EthBlockTracker -e src/index.js -t [ babelify --presets [ es2015 ] ] > dist/EthBlockTracker.js" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"author": "kumavis", | ||
"license": "MIT", | ||
"dependencies": { | ||
"async-eventemitter": "ahultgren/async-eventemitter#fa06e39e56786ba541c180061dbf2c0a5bbf951c", | ||
"eth-query": "^2.1.0", | ||
@@ -16,0 +17,0 @@ "ethereumjs-tx": "^1.3.3", |
@@ -32,2 +32,7 @@ | ||
##### awaitCurrentBlock() | ||
Returns a promise. asynchronously returns the current block. | ||
if not yet available, it will wait until it has the latest block. | ||
##### start({ fromBlock }) | ||
@@ -37,2 +42,3 @@ | ||
`fromBlock` should be a number as a hex encoded string. | ||
Returns a promise which is rejected if an error in encountered. | ||
@@ -86,2 +92,2 @@ ```js | ||
Does not currently handle forks. | ||
Does not currently handle block reorgs. |
const createScaffoldMiddleware = require('json-rpc-engine/src/createScaffoldMiddleware') | ||
const EthTx = require('ethereumjs-tx') | ||
const ethUtil = require('ethereumjs-util') | ||
const incrementHexNumber = require('../../lib/hexUtils').incrementHexNumber | ||
const formatHex = require('../../lib/hexUtils').formatHex | ||
const incrementHexNumber = require('../../src/hexUtils').incrementHexNumber | ||
const formatHex = require('../../src/hexUtils').formatHex | ||
@@ -7,0 +7,0 @@ |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
118087
7
14
3228
0
91
0
2