Socket
Socket
Sign inDemoInstall

coffee-coverage

Package Overview
Dependencies
9
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

12

lib/coffeeCoverage.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -249,3 +249,3 @@ var CoverageError, EXTENSIONS, INSTRUMENTORS, NodeWrapper, SkipVisitor, _, assert, coffeeScript, events, excludeFile, factoryDefaults, fs, getInstrumentorClass, mkdirs, path, ref, statFile, util,

exports._runInstrumentor = function(instrumentor, fileName, source, options) {
var answer, ast, coffeeOptions, err, init, js, ref1, ref2, runVisitor, token, tokens, wrappedAST;
var answer, ast, coffeeOptions, err, error, error1, init, js, ref1, ref2, runVisitor, token, tokens, wrappedAST;
if (options == null) {

@@ -278,4 +278,4 @@ options = {};

ast = coffeeScript.nodes(tokens);
} catch (_error) {
err = _error;
} catch (error) {
err = error;
throw new CoverageError("Could not parse " + fileName + ": " + err.stack);

@@ -319,4 +319,4 @@ }

js = ast.compile(coffeeOptions);
} catch (_error) {
err = _error;
} catch (error1) {
err = error1;

@@ -323,0 +323,0 @@ /* !pragma coverage-skip-block */

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -96,3 +96,3 @@ var CoverageInstrumentor, DEFAULT_INSTRUMENTOR, INSTRUMENTORS, _, executableName, fs, mkdirs, parseArgs, path, ref, ref1, stripLeadingDotOrSlash, version;

exports.main = function(args) {
var coverageInstrumentor, err, options, ref2, result;
var coverageInstrumentor, err, error, options, ref2, result;
try {

@@ -135,4 +135,4 @@ options = parseArgs(args.slice(2));

}
} catch (_error) {
err = _error;
} catch (error) {
err = error;
if (err.constructor.name === "CoverageError") {

@@ -139,0 +139,0 @@ console.error("Error: " + err.message);

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ var CompiledCache, EXTENSIONS, _, fs, getRelativeFilename, mkdirs, path, ref;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ exports.EXTENSIONS = {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ exports.register = require('./register');

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ var Istanbul, NodeWrapper, _, assert, compareLocations, fileToLines, findInCode, minLocation, nodeToLocation, ref, toQuotedString;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ var JSCoverage, _, fileToLines, generateUniqueName, getRelativeFilename, path, ref, stripLeadingDotOrSlash, toQuotedString,

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ var NodeWrapper, _, assert, coffeeScript, compile, forNodeAndChildren;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -31,3 +31,3 @@ var CompiledCache, StringStream, _, coffeeCoverage, excludeFile, fs, getRelativeFilename, mkdirs, path, ref;

module.exports = function(options) {
var compiledCache, coverage, defaults, err, instrumentFile, instrumentorClass, module, origStreamineCoffeeHandler, replaceHandler, streamlineTransform;
var compiledCache, coverage, defaults, err, error, instrumentFile, instrumentorClass, module, origStreamineCoffeeHandler, replaceHandler, streamlineTransform;
if (options == null) {

@@ -96,4 +96,4 @@ options = {};

streamlineTransform = require('streamline/lib/callbacks/transform');
} catch (_error) {
err = _error;
} catch (error) {
err = error;
throw new Error("Could not load streamline transformer < 1.x");

@@ -149,3 +149,3 @@ }

return process.on('exit', function() {
var dirName, ref1;
var dirName, error1, ref1;
try {

@@ -155,4 +155,4 @@ dirName = path.dirname(options.writeOnExit);

return fs.writeFileSync(options.writeOnExit, JSON.stringify(global[options.coverageVar]));
} catch (_error) {
err = _error;
} catch (error1) {
err = error1;
return console.error("Failed to write coverage data", (ref1 = err.stack) != null ? ref1 : err);

@@ -159,0 +159,0 @@ }

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ var NodeWrapper, PRAGMAS, PRAGMA_PREFIX, SkipVisitor, _;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {

@@ -3,0 +3,0 @@ exports.fileToLines = function(source) {

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.9.2
// Generated by CoffeeScript 1.10.0
(function() {
var EXTENSIONS, _, assert, fs, glob, path, statFile,
var EXTENSIONS, _, assert, fs, minimatch, path, statFile,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -16,3 +16,3 @@

glob = require('glob');
minimatch = require('minimatch');

@@ -77,11 +77,5 @@ exports.stripLeadingDotOrSlash = function(pathName) {

exclude.map(function(pattern) {
return glob.sync(pattern, {
dot: true,
cwd: basePath,
root: basePath
}).forEach(function(file) {
if (relativeFilename === path.normalize(file)) {
return excluded = true;
}
});
if (minimatch(relativeFilename, pattern)) {
return excluded = true;
}
});

@@ -88,0 +82,0 @@ components = relativeFilename.split(path.sep);

@@ -15,3 +15,3 @@ {

],
"version": "1.0.0",
"version": "1.0.1",
"author": "Benbria (http://www.benbria.com/)",

@@ -49,3 +49,3 @@ "contributors": [

"lodash": "^3.7.0",
"glob": "^6.0.4",
"minimatch": "^3.0.0",
"pkginfo": ">=0.2.3"

@@ -59,2 +59,3 @@ },

"sinon": "^1.14.1",
"benchmark": "^2.0.0",
"streamline": "^0.12.1"

@@ -61,0 +62,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc