8000 Revert "Use default export for ErrorStackParser module" · stacktracejs/error-stack-parser@5265364 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5265364

Browse files
committed
Revert "Use default export for ErrorStackParser module"
This reverts commit 0aae8a5.
1 parent 3c71cb5 commit 5265364

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

error-stack-parser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ declare namespace ErrorStackParser {
1616
export function parse(error: Error): StackFrame[];
1717
}
1818

19-
export default ErrorStackParser;
19+
export = ErrorStackParser;

error-stack-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if (typeof define === 'function' && define.amd) {
77
define('error-stack-parser', ['stackframe'], factory);
88
} else if (typeof exports === 'object') {
9-
module.exports.default = factory(require('stackframe'));
9+
module.exports = factory(require('stackframe'));
1010
} else {
1111
root.ErrorStackParser = factory(root.StackFrame);
1212
}

0 commit comments

Comments
 (0)
0