Skip to content

Commit

Permalink
MNT: Check for module instance
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapvardhan committed Nov 4, 2015
1 parent 17cca4a commit 25bdd7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dedent.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ function dedent(strings, ...values) {
return lines.map(l => l[0] === " " ? l.slice(mindent) : l).join("\n");
}

module.exports = dedent;
if ('undefined' !== typeof module) {
module.exports = dedent;
}
4 changes: 3 additions & 1 deletion dist/dedent.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ function dedent(strings) {
}).join("\n");
}

module.exports = dedent;
if ('undefined' !== typeof module) {
module.exports = dedent;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint": "^0.18.0",
"gulp": "^3.8.10",
"gulp-babel": "^5.1.0",
"jest-cli": "^0.2.1"
"jest-cli": "^0.7.1"
},
"scripts": {
"test": "jest",
Expand Down

0 comments on commit 25bdd7c

Please sign in to comment.