Skip to content

Commit d55fc10

Browse files
committed
fix changing global defaults
1 parent ef7cde4 commit d55fc10

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/defaults.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
let defaults = getDefaults();
2-
31
function getDefaults() {
42
return {
53
baseUrl: null,
@@ -22,11 +20,11 @@ function getDefaults() {
2220
}
2321

2422
function changeDefaults(newDefaults) {
25-
defaults = newDefaults;
23+
module.exports.defaults = newDefaults;
2624
}
2725

2826
module.exports = {
29-
defaults,
27+
defaults: getDefaults(),
3028
getDefaults,
3129
changeDefaults
3230
};

0 commit comments

Comments
 (0)