mocha-custom-stack-trace-reporter
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -11,4 +11,4 @@ "use strict"; | ||
process.on("unhandledRejection", (reason, promise) => { | ||
console.log("ERROR: the execution failed due to an unhandled promise rejection, details: %s", reason.stack || reason); | ||
process.exit(process.exitCode | 100); | ||
var reason_stack_or_reason = reason.stack || reason; | ||
throw new Error(`the execution failed due to an unhandled promise rejection, details: ${reason_stack_or_reason}`); | ||
}); | ||
@@ -15,0 +15,0 @@ }); |
{ | ||
"author": "Unscrambl", | ||
"name": "mocha-custom-stack-trace-reporter", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Expand Mocha error reports with custom stack traces", | ||
@@ -6,0 +6,0 @@ "main": "built/src/mochaCustomStackTraceReporter.js", |
@@ -15,4 +15,4 @@ import { reporters, Runner } from "mocha"; | ||
process.on("unhandledRejection", (reason, promise) => { | ||
console.log("ERROR: the execution failed due to an unhandled promise rejection, details: %s", reason.stack || reason); | ||
process.exit(process.exitCode | 100); | ||
var reason_stack_or_reason = reason.stack || reason | ||
throw new Error(`the execution failed due to an unhandled promise rejection, details: ${reason_stack_or_reason}`); | ||
}); | ||
@@ -19,0 +19,0 @@ }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18812
0