stacktracey
Advanced tools
Comparing version 2.0.1 to 2.0.2
# 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) |
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
38640
16
471