Permalink
Browse files

collapse node_modules code context by default

  • Loading branch information...
1 parent e0a215f commit 73176e2def9d9c0bee70f066f26385e9c16dd863 @mjpizz committed Feb 1, 2013
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
@@ -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
@@ -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
@@ -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": {

0 comments on commit 73176e2

Please sign in to comment.