ethereum-block-by-date
Advanced tools
Comparing version 1.4.4 to 1.4.5
@@ -7,3 +7,3 @@ "use strict"; | ||
constructor(web3) { | ||
this.web3 = web3.constructor.name === 'Web3' ? web3 : { | ||
this.web3 = typeof web3.eth != 'undefined' ? web3 : { | ||
eth: web3 | ||
@@ -10,0 +10,0 @@ }; |
{ | ||
"name": "ethereum-block-by-date", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"description": "Get Ethereum block number by a given date. Or blocks by a given period duration.", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"dependencies": { | ||
"moment": "^2.29.1" | ||
"moment": "^2.29.2" | ||
}, | ||
@@ -44,3 +44,3 @@ "scripts": { | ||
"mocha": "^9.2.2", | ||
"prettier": "^2.6.1", | ||
"prettier": "^2.6.2", | ||
"rimraf": "^3.0.2", | ||
@@ -47,0 +47,0 @@ "web3": "^1.7.1" |
@@ -137,2 +137,8 @@ # Ethereum Block By Date | ||
If you need any help, please contact me via GitHub issues page: [GitHub](https://github.com/monosux/ethereum-block-by-date/issues) | ||
If you need any help, please contact me via GitHub issues page: [GitHub](https://github.com/monosux/ethereum-block-by-date/issues) | ||
## Donations | ||
If you like my package and you want to support the development or buy me a cup of coffee, you could donate to me via Ethereum: 0x18F54b91f7e19c51fA701E7ed5628fA45441d872 | ||
Thanks ❤️ |
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
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
11759
143
Updatedmoment@^2.29.2