New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eosjs-api

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eosjs-api - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

package.json
{
"name": "eosjs-api",
"version": "1.0.4",
"version": "1.0.5",
"description": "Application programming interface to EOS blockchain nodes.",

@@ -33,5 +33,5 @@ "scripts": {

"camel-case": "^3.0.0",
"eosjs-json": "^1.0.2",
"eosjs-json": "^1.0.3",
"isomorphic-fetch": "^2.2.1"
}
}

@@ -22,2 +22,4 @@ module.exports = {

const chainDate = new Date(info.head_block_time + 'Z')
const refBlockNum = (info.head_block_number - 3) & 0xFFFF
console.log('refBlockNum', refBlockNum)
// Back-up 3 blocks to help avoid mini-forks. The getBlock call does not return

@@ -29,7 +31,9 @@ // its own block id but the next block has 'previous'.

const headers = Object.assign({
refBlockNum,
refBlockPrefix: new Buffer(headBlockId, 'hex').readUInt32LE(4),
expiration: expiration.toISOString().split('.')[0],
tapos: new Buffer(headBlockId, 'hex').readUInt32LE(4),
scope: [],
messages: [],
permissions: [],
signatures: []
signatures: [],
authorizations: [],
})

@@ -36,0 +40,0 @@ callback(null, headers)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc