Comparing version 0.3.3 to 0.3.4
@@ -6,2 +6,6 @@ Changelog | ||
<tr> | ||
<td>v0.3.4</td> | ||
<td>Merge #219 - Support reporting within symlink/junction. Thanks to @dougwilson</td> | ||
</tr> | ||
<tr> | ||
<td>v0.3.3</td> | ||
@@ -8,0 +12,0 @@ <td>Merge #268 - per file coverage enforcement. Thanks to @ryan-roemer</td> |
@@ -6,3 +6,5 @@ /* | ||
var fileset = require('fileset'), | ||
var async = require('async'), | ||
fileset = require('fileset'), | ||
fs = require('fs'), | ||
path = require('path'), | ||
@@ -21,2 +23,3 @@ seq = 0; | ||
excludes = options.excludes, | ||
realpath = options.realpath, | ||
relative = options.relative, | ||
@@ -34,6 +37,14 @@ opts; | ||
if (err) { return callback(err); } | ||
if (!relative) { | ||
if (relative) { return callback(err, files); } | ||
if (!realpath) { | ||
files = files.map(function (file) { return path.resolve(root, file); }); | ||
return callback(err, files); | ||
} | ||
callback(err, files); | ||
var realPathCache = module.constructor._realpathCache || {}; | ||
async.map(files, function (file, done) { | ||
fs.realpath(path.resolve(root, file), realPathCache, done); | ||
}, callback); | ||
}); | ||
@@ -50,2 +61,3 @@ } | ||
options.relative = false; //force absolute paths | ||
options.realpath = true; //force real paths (to match Node.js module paths) | ||
@@ -52,0 +64,0 @@ filesFor(options, function (err, files) { |
{ | ||
"name": "istanbul", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale", | ||
@@ -39,3 +39,4 @@ "keywords": [ "coverage", "code coverage", "JS code coverage", "JS coverage" ], | ||
"Fabio Crisci @piuccio <piuccio@gmail.com>", | ||
"Ryan Roemer @ryan-roemer <ryan@loose-bits.com>" | ||
"Ryan Roemer @ryan-roemer <ryan@loose-bits.com>", | ||
"Douglas Christopher Wilson @dougwilson" | ||
], | ||
@@ -42,0 +43,0 @@ "preferGlobal": true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
285152
5965
28