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

mocha-custom-stack-trace-reporter

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-custom-stack-trace-reporter - npm Package Compare versions

Comparing version 1.0.6 to 2.0.0

2

built/src/mochaCustomStackTraceReporter.js

@@ -11,3 +11,3 @@ "use strict";

process.on("unhandledRejection", (reason, promise) => {
var reason_stack_or_reason = reason.stack || reason;
var reason_stack_or_reason = (reason === null || reason === void 0 ? void 0 : reason.stack) || reason;
throw new Error(`the execution failed due to an unhandled promise rejection, details: ${reason_stack_or_reason}`);

@@ -14,0 +14,0 @@ });

{
"author": "Unscrambl",
"name": "mocha-custom-stack-trace-reporter",
"version": "1.0.6",
"version": "2.0.0",
"description": "Expand Mocha error reports with custom stack traces",
"main": "built/src/mochaCustomStackTraceReporter.js",
"dependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.10",
"mocha": "5.2.0",
"tslint": "^5.11.0",
"typescript": "^3.1.6"
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.41",
"mocha": "^8.3.2",
"tslint": "^6.1.3",
"typescript": "^4.2.4"
},
"devDependencies": {
"chai": "4.1.2"
"chai": "^4.3.4"
},

@@ -17,0 +17,0 @@ "scripts": {

@@ -14,6 +14,6 @@ import { reporters, Runner } from "mocha";

runner.on("start", () => {
process.on("unhandledRejection", (reason, promise) => {
process.on("unhandledRejection", (reason : Error, promise) => {
// we are throwing an error here to avoid the process exiting with 0 exit code and not running subsequent
// tests in case of an unhandled promise rejection
var reason_stack_or_reason = reason.stack || reason
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}`);

@@ -31,1 +31,2 @@ });

export = MochaCustomStackTraceReporter;
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