Skip to content

Commit

Permalink
fix(exports): add export default
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlei Kroth committed Feb 11, 2021
1 parent 9e295a8 commit 892fce6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { formatter } from './lib/formatter';
import { generateGUID } from './lib/guid';
import jsFormatter from './lib/formatter';
import jsGuid from './lib/guid';

export const formatter = jsFormatter;
export const generateGUID = jsGuid;

export default {
formatter,
generateGUID,
};
};
2 changes: 1 addition & 1 deletion lib/formatter/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import decimal from './decimal';

export const formatter = {
export default {
/**
* Result example: `10` => `10,00`
* @param {Number | String} num
Expand Down
2 changes: 2 additions & 0 deletions lib/guid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ export const generateGUID = (function () {
return id;
};
})();

export default generateGUID;

0 comments on commit 892fce6

Please sign in to comment.