Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solidity-coverage

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidity-coverage - npm Package Compare versions

Comparing version 0.8.8 to 0.8.9-rc.0

5

CHANGELOG.md
# Changelog
0.8.8 / 2024-02-21
==================
* Coerce sources path to absolute path if necessary (https://github.com/sc-forks/solidity-coverage/issues/866)
* Only inject file-level instr. for first pragma in file (https://github.com/sc-forks/solidity-coverage/issues/865)
0.8.7 / 2024-02-09

@@ -4,0 +9,0 @@ ==================

10

lib/collector.js

@@ -31,2 +31,4 @@ /**

this.viaIR = viaIR;
this.pcZeroCounter = 0;
this.lastPcZeroCount = 0;
}

@@ -40,2 +42,4 @@

step(info){
if (info.pc === 0) this.pcZeroCounter++;
try {

@@ -45,3 +49,3 @@ if (this.validOpcodes[info.opcode.name] && info.stack.length > 0){

let hash = '0x' + info.stack[idx].toString(16);
this._registerHash(hash)
this._registerHash(hash);
}

@@ -72,4 +76,6 @@ } catch (err) { /*Ignore*/ };

// abi.encode (used to circumvent viaIR) sometimes puts the hash on the stack twice
if (this.lastHash !== hash) {
// We should only skip duplicate hashes *within* a transaction (see issue #863)
if (this.lastHash !== hash || this.lastPcZeroCount !== this.pcZeroCounter) {
this.lastHash = hash;
this.lastPcZeroCount = this.pcZeroCounter;
this.instrumentationData[hash].hits++

@@ -76,0 +82,0 @@ }

2

package.json
{
"name": "solidity-coverage",
"version": "0.8.8",
"version": "0.8.9-rc.0",
"description": "Code coverage for Solidity testing",

@@ -5,0 +5,0 @@ "main": "plugins/nomiclabs.plugin.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