Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

eth-query

Package Overview
Dependencies
3
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.1.0

11

index.js
const extend = require('xtend')
const async = require('async')
const createRandomId = require('json-rpc-random-id')()

@@ -111,11 +112,1 @@ module.exports = EthQuery

}
function createRandomId(){
const extraDigits = 3
// 13 time digits
var datePart = new Date().getTime()*Math.pow(10, extraDigits)
// 3 random digits
var extraPart = Math.floor(Math.random()*Math.pow(10, extraDigits))
// 16 digits
return datePart+extraPart
}

3

package.json
{
"name": "eth-query",
"version": "2.0.3",
"version": "2.1.0",
"description": "like web3 but for minimalists",

@@ -13,2 +13,3 @@ "main": "index.js",

"async": "^2.1.2",
"json-rpc-random-id": "^1.0.0",
"xtend": "^4.0.1"

@@ -15,0 +16,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc