stacktracey
Advanced tools
Comparing version 1.0.54 to 1.0.55
{ | ||
"name": "stacktracey", | ||
"version": "1.0.54", | ||
"version": "1.0.55", | ||
"description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.", | ||
@@ -5,0 +5,0 @@ "main": "stacktracey", |
@@ -32,3 +32,3 @@ # StackTracey | ||
Captures current call stack: | ||
Captures the current call stack: | ||
@@ -39,3 +39,3 @@ ```javascript | ||
Parses stacks from `Error` object: | ||
Parses stacks from an `Error` object: | ||
@@ -55,3 +55,3 @@ ```javascript | ||
Each item exposes: | ||
...where each item exposes: | ||
@@ -102,3 +102,3 @@ ```javascript | ||
To learn about `sourceFile` object, read [get-source](https://github.com/xpl/get-source#get-source) docs. | ||
To learn about the `sourceFile` object, read the [get-source](https://github.com/xpl/get-source#get-source) docs. | ||
@@ -111,7 +111,7 @@ ## Cleaning output | ||
1. Excludes locations marked with `isThirdParty` (library calls) | ||
2. Excludes locations marked with `// @hide` comment (user defined exclusion) | ||
3. Merges repeated lines (via `.mergeRepeatedLines`) | ||
1. Excludes locations marked with the `isThirdParty` flag (library calls) | ||
2. Excludes locations marked with a `// @hide` comment (user defined exclusion) | ||
3. Merges repeated lines (via the `.mergeRepeatedLines`) | ||
You can augment `isThirdParty` predicate with new rules: | ||
You can augment the global `isThirdParty` predicate with new rules: | ||
@@ -125,3 +125,3 @@ ```javascript | ||
P.S. It is better to call `.clean` on stacks supplied with sources (i.e. after calling `.withSources`), to make `// @hide` magic work, and to make `isThirdParty` work by recognizing proper file names, if your source is compiled from other sources and has a sourcemap attached. | ||
P.S. It is better to call `.clean` on stacks supplied with sources (i.e. after the `.withSources`), to make the `// @hide` magic work, and to make third-party recognition work by reading proper file names in case if your source is compiled from other sources (and has a sourcemap attached). | ||
@@ -128,0 +128,0 @@ ## Pretty printing |
27097