You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lockdown(); // stackFiltering defaults to 'concise'
635
635
// or
636
-
lockdown({ stackFiltering:'concise' }); // Preserve important deep stack info
636
+
lockdown({ stackFiltering:'concise' }); // Preserve important deep stack info. Omit likely uninteresting frames. Shorten paths to likely clickable strings in an IDE
637
+
// vs
638
+
lockdown({ stackFiltering:'omit-frames' }); // Only omit likely uninteresting frames. Preserve original paths
639
+
// vs
640
+
lockdown({ stackFiltering:'shorten-paths' }); // Preserve original frames. shorten their paths to likely clickable strings in an IDE.
637
641
// vs
638
642
lockdown({ stackFiltering:'verbose' }); // Console shows full deep stacks
639
643
```
@@ -643,6 +647,8 @@ If `lockdown` does not receive a `stackFiltering` option, it will respect
643
647
644
648
```console
645
649
LOCKDOWN_STACK_FILTERING=concise
650
+
LOCKDOWN_STACK_FILTERING=omit-frames
651
+
LOCKDOWN_STACK_FILTERING=shorten-paths
646
652
LOCKDOWN_STACK_FILTERING=verbose
647
653
```
648
654
@@ -659,7 +665,7 @@ that information is no longer an extraneous distraction. Sometimes the noise
659
665
you filter out actually contains the signal you're looking for. The
660
666
`'verbose'` setting shows, on the console, the full raw stack information
661
667
for each level of the deep stacks.
662
-
Either setting of `stackFiltering` setting is safe. Stack information will
668
+
Any setting of `stackFiltering` is safe. Stack information will
663
669
or will not be available from error objects according to the `errorTaming`
0 commit comments