Socket
Socket
Sign inDemoInstall

eth-gas-reporter

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-gas-reporter - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

12

CHANGELOG.md
## Changelog: eth-gas-reporter
0.0.6 / 2017-10-14
================
* Stop showing zero gas usage in mocha output
* Show currency rates and gwei gas price rates in table header
* Alphabetize table
* Fix bug caused by unused methods reporting NaN
* Fix failure to round avg gas use in table
* Update dev deps to truffle4 beta
0.0.5 / 2017-10-12

@@ -17,3 +27,3 @@ =================

* Abi encoding map.
0.0.4 / 2017-10-01

@@ -20,0 +30,0 @@ ==================

13

gasStats.js

@@ -127,14 +127,9 @@ /**

// Sort rows and push
// Sort rows by contract, then method and push
rows.sort((a,b) => {
if( a[0] < b[0]) return -1;
if( a[0] === b[0]) return 0;
if( a[0] > b[0]) return 1;
const contractName = a[0].localeCompare(b[0]);
const methodName = a[1].localeCompare(b[1]);
return contractName || methodName;
});
rows.sort((a,b) => {
if(a[0] !== b[0]) return 0;
if(a[1] < b[1]) return -1;
if(a[1] > b[1]) return 1;
});
rows.forEach(row => table.push(row));

@@ -141,0 +136,0 @@

@@ -83,3 +83,3 @@ const mocha = require('mocha')

} else {
limitString = color('pass', ' (%d% of limit) ')
limitString = ' (%d% of limit) '
}

@@ -111,4 +111,4 @@ fmt = indent() +

runner.on('end', () => {
self.epilogue();
stats.generateGasStatsReport (methodMap)
self.epilogue()
})

@@ -115,0 +115,0 @@ }

{
"name": "eth-gas-reporter",
"version": "0.0.5",
"version": "0.0.6",
"description": "Mocha reporter which shows gas used per unit test.",

@@ -5,0 +5,0 @@ "main": "index.js",

{
"name": "eth-gas-reporter",
"version": "0.0.6",
"version": "0.0.7",
"description": "Mocha reporter which shows gas used per unit test.",

@@ -5,0 +5,0 @@ "main": "index.js",

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