Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

collapse node_modules code context by default

  • Loading branch information...
commit 73176e2def9d9c0bee70f066f26385e9c16dd863 1 parent e0a215f
@mjpizz authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  README.md
  2. +1 −1  better-stack-traces.js
  3. +1 −1  package.json
View
2  README.md
@@ -81,7 +81,7 @@ require("better-stack-traces").install({
before: 2, // number of lines to show above the error
after: 3, // number of lines to show below the error
maxColumns: 80, // maximum number of columns to output in code snippets
- collapseLibraries: false, // set to true to omit code snippets from node_modules
+ collapseLibraries: true, // omit code snippets from node_modules
})
```
View
2  better-stack-traces.js
@@ -42,7 +42,7 @@ function BetterStackTrace(error, frames, opt) {
// Parse flags.
opt = opt || {};
- this._collapseLibraries = opt.collapseLibraries;
+ this._collapseLibraries = fallback(opt.collapseLibraries, true);
this._linesBefore = fallback(opt.before, LINES_BEFORE);
this._linesAfter = fallback(opt.after, LINES_AFTER);
this._maxColumns = opt.maxColumns || MAX_COLUMNS;
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "better-stack-traces",
"description": "Detailed stack traces with code snippets.",
- "version": "0.0.3",
+ "version": "0.0.4",
"author": "Matt Pizzimenti",
"url": "https://github.com/mjpizz/better-stack-traces",
"repository": {
Please sign in to comment.
Something went wrong with that request. Please try again.