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

buster-istanbul

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buster-istanbul - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

19

lib/buster-istanbul.js

@@ -70,7 +70,10 @@ /*

if (instrument === false) return;
group.sources.forEach(function(pattern) {
glob.sync(pattern).forEach(function(fPath) {
var excluded = isExcluded(fPath, excludes);
group.on('load:sources', function(rs){
var rootPath = rs.rootPath
rs.forEach(function(resource){
var resourcePath = resource.path.replace(/\//, '');
var excluded = isExcluded(resourcePath, excludes);
if (!excluded) {
coverage.addInstrumentCandidate(fPath);
coverage.addInstrumentCandidate(path.join(rootPath, resourcePath));
}

@@ -95,8 +98,10 @@ });

group.on('load:sources', function(rs){
var rootPath = rs.rootPath;
if (instrument === false) return;
rs.addProcessor(function(resource, content){
var path = resource.path.replace(/\//, '');
var excluded = isExcluded(path, excludes);
// properly join the path, using the rootPath
var resourcePath = resource.path.replace(/\//, '');
var excluded = isExcluded(resourcePath, excludes);
return excluded ? content : coverage.instrumentCode(content, path);
return excluded ? content : coverage.instrumentCode(content, path.join(rootPath, resourcePath));
});

@@ -103,0 +108,0 @@ });

{
"name": "buster-istanbul",
"description": "buster extension for istanbul code coverage.",
"version": "0.1.14",
"version": "0.1.15",
"homepage": "https://github.com/englishtown/buster-istanbul",

@@ -6,0 +6,0 @@ "author": {

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