Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stacktracey

Package Overview
Dependencies
Maintainers
2
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stacktracey - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

stacktracey.d.ts

3

CHANGELOG.md
# Version 2.0 (breaking changes)
- All property accessors like `.clean` are now methods (e.g. `.clean ()`) for consistency reasons
- `.pretty` now `.asTable (opts?: { maxColumnWidths:? { callee, file, sourceLine } })`
- `.pretty` now `.asTable (opts?: { maxColumnWidths:? { callee, file, sourceLine } })`
- It is no longer `extends Array` due to non-working user subclassing with Babel ES5

@@ -7,0 +8,0 @@ - Use `.items` to access original array

{
"name": "stacktracey",
"version": "2.0.1",
"version": "2.0.2",
"description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.",
"main": "stacktracey",
"types": "./stacktracey.d.ts",
"scripts": {

@@ -7,0 +8,0 @@ "lint": "eslint stacktracey.js",

@@ -181,3 +181,3 @@ # StackTracey

## Using As Custom Exception Printer In Node
## Using As A Custom Exception Printer In Node

@@ -184,0 +184,0 @@ You can even replace the default NodeJS exception printer with this! This is how you can do it:

@@ -173,12 +173,11 @@ "use strict";

if (!resolved.sourceLine.error) {
if (resolved.sourceLine.includes ('// @hide')) {
resolved.sourceLine = resolved.sourceLine.replace ('// @hide', '')
resolved.hide = true
}
if (resolved.sourceLine.includes ('__webpack_require__') || // webpack-specific heuristics
resolved.sourceLine.includes ('/******/ ({')) {
resolved.thirdParty = true
}
if (resolved.sourceLine.includes ('// @hide')) {
resolved.sourceLine = resolved.sourceLine.replace ('// @hide', '')
resolved.hide = true
}
if (resolved.sourceLine.includes ('__webpack_require__') || // webpack-specific heuristics
resolved.sourceLine.includes ('/******/ ({')) {
resolved.thirdParty = true
}

@@ -185,0 +184,0 @@ return O.assign ({ sourceLine: '' }, loc, resolved)

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