Skip to content

Commit d686e3a

Browse files
committed
Use default export for module definition
1 parent 572a537 commit d686e3a

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

dist/stackframe.js

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

dist/stackframe.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stackframe.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
"url": "https://github.com/stacktracejs/stackframe/issues"
4242
},
4343
"main": "./stackframe.js",
44+
"typings": "./stackframe.d.ts",
45+
"files": [
46+
"LICENSE",
47+
"README.md",
48+
"stackframe.js",
49+
"stackframe.d.ts",
50+
"dist/"
51+
],
4452
"scripts": {
4553
"lint": "eslint",
4654
"test": "karma start karma.conf.js --single-run",

stackframe.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for StackFrame v1.3.0
1+
// Type definitions for StackFrame v1.3
22
// Project: https://github.com/stacktracejs/stackframe
33
// Definitions by: Eric Wendelin <https://www.eriwen.com>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

0 commit comments

Comments
 (0)