asynctrace
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -10,3 +10,8 @@ 'use strict'; | ||
} | ||
var util = require('util'); | ||
try { | ||
var util = require('util'); | ||
var debug = util.debuglog('asynctrace'); | ||
} catch (e) { | ||
debug = console.error.bind(console); | ||
} | ||
var PATH_PREFIX = process.cwd().toLowerCase(); | ||
@@ -154,2 +159,3 @@ var sep = require('path').sep; | ||
.pop(); | ||
if (!mocha) return; | ||
var shimmer = require('shimmer'); | ||
@@ -166,5 +172,5 @@ shimmer.wrap(mocha.prototype, 'run', function (original) { | ||
} catch (e) { | ||
if (e.code !== 'MODULE_NOT_FOUND') console.error(e); | ||
if (e.code !== 'MODULE_NOT_FOUND') debug(e.stack); | ||
} | ||
} | ||
if (settings.mocha) setupForMocha(); |
@@ -50,3 +50,3 @@ { | ||
}, | ||
"version": "1.2.3" | ||
"version": "1.2.4" | ||
} |
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
100776
2653