8000 Revert using default export for module definition · stacktracejs/stacktrace-gps@d79b057 · GitHub
[go: up one dir, main page]

Skip to content

Commit d79b057

Browse files
committed
Revert using default export for module definition
1 parent d0e58c5 commit d79b057

9 files changed

+11
-9
lines changed

dist/stacktrace-gps-with-polyfills.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stacktrace-gps-with-polyfills.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stacktrace-gps.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('stacktrace-gps', ['source-map', 'stackframe'], factory);
88
} else if (typeof exports === 'object') {
9-
module.exports.default = factory(require('source-map/lib/source-map-consumer'), require('stackframe'));
9+
module.exports = factory(require('source-map/lib/source-map-consumer'), require('stackframe'));
1010
} else {
1111
root.StackTraceGPS = factory(root.SourceMap || root.sourceMap, root.StackFrame);
1212
}

dist/stacktrace-gps.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/stacktrace-gps.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function(config) {
1414
logLevel: config.LOG_INFO,
1515
autoWatch: true,
1616
customLaunchers: {
17-
Chrome_Travis: {
17+
Chrome_No_Sandbox: {
1818
base: 'Chrome',
1919
flags: ['--no-sandbox']
2020
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"lint": "eslint --fix stacktrace-gps.js spec/",
6464
"prepare": "cp stacktrace-gps.js polyfills.js dist/ && ./node_modules/.bin/webpack --mode production && uglifyjs node_modules/stackframe/stackframe.js ./build/bundle.js stacktrace-gps.js -o dist/stacktrace-gps.min.js --compress --mangle --source-map \"url=stacktrace-gps.min.js.map\" && uglifyjs node_modules/es6-promise/dist/es6-promise.js polyfills.js node_modules/stackframe/stackframe.js build/bundle.js stacktrace-gps.js -o dist/stacktrace-gps-with-polyfills.min.js --compress --mangle --source-map \"url=stacktrace-gps-polyfilled.min.js.map\"",
6565
"test": "karma start karma.conf.js --single-run",
66-
"test-pr": "karma start karma.conf.js --single-run --browsers Firefox,Chrome_Travis",
66+
"test-pr": "karma start karma.conf.js --single-run --browsers Firefox,Chrome_No_Sandbox",
6767
"test-ci": "karma start karma.conf.ci.js --single-run"
6868
}
6969
}

stacktrace-gps.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@ declare class StackTraceGPS {
5757
getMappedLocation(stackframe: StackFrame): Promise<StackFrame>;
5858
}
5959

60-
export default StackTraceGPS;
60+
export = StackTraceGPS;
61+
62+
export as namespace StackTraceGPS; // global for non-module UMD users

stacktrace-gps.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('stacktrace-gps', ['source-map', 'stackframe'], factory);
88
} else if (typeof exports === 'object') {
9-
module.exports.default = factory(require('source-map/lib/source-map-consumer'), require('stackframe'));
9+
module.exports = factory(require('source-map/lib/source-map-consumer'), require('stackframe'));
1010
} else {
1111
root.StackTraceGPS = factory(root.SourceMap || root.sourceMap, root.StackFrame);
1212
}

0 commit comments

Comments
 (0)
0