File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ const stackUtils = new StackUtils({
23
23
]
24
24
} ) ;
25
25
26
+ exports . stackUtils = stackUtils ;
27
+
26
28
/*
27
29
* Given a string value of the format generated for the `stack` property of a
28
30
* V8 error object, return a string that contains only stack frame information
@@ -59,7 +61,7 @@ const stackUtils = new StackUtils({
59
61
* Module.runMain (module.js:604:10)
60
62
* ```
61
63
*/
62
- module . exports = stack => {
64
+ exports . beautifyStack = stack => {
63
65
if ( ! stack ) {
64
66
return [ ] ;
65
67
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const trimOffNewlines = require('trim-off-newlines');
13
13
14
14
const chalk = require ( '../chalk' ) . get ( ) ;
15
15
const codeExcerpt = require ( '../code-excerpt' ) ;
16
- const beautifyStack = require ( './beautify-stack' ) ;
16
+ const { beautifyStack} = require ( './beautify-stack' ) ;
17
17
const colors = require ( './colors' ) ;
18
18
const formatSerializedError = require ( './format-serialized-error' ) ;
19
19
const improperUsageMessages = require ( './improper-usage-messages' ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const stripAnsi = require('strip-ansi');
7
7
const supertap = require ( 'supertap' ) ;
8
8
const indentString = require ( 'indent-string' ) ;
9
9
10
- const beautifyStack = require ( './beautify-stack' ) ;
10
+ const { beautifyStack} = require ( './beautify-stack' ) ;
11
11
const prefixTitle = require ( './prefix-title' ) ;
12
12
13
13
function dumpError ( error ) {
You can’t perform that action at this time.
0 commit comments