Skip to content

Commit

Permalink
dont use export, just module.exports
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterWigboldus committed Jan 24, 2020
1 parent 1bc2ed6 commit c1ffd83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "flattern",
"description": "Get a flat version of the object",
"version": "1.0.6",
"version": "1.0.7",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
Expand Down
6 changes: 2 additions & 4 deletions src/flattern.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Get a flat version of the object
*/
export default class Flattern {
module.exports = class Flattern {
/**
* Set the original and prefix.
*
Expand Down Expand Up @@ -87,6 +87,4 @@ export default class Flattern {
get length() {
return Object.keys(this.flatObject).length;
}
}

module.exports = Flattern;
};

0 comments on commit c1ffd83

Please sign in to comment.