Open mattandrews opened 7 years ago
hey, thanks for the comment. I'm not totally sure how to fix that. Can you point me in the right direction?
I suspect you'd only need to change the function declaration to module.exports = function theresaMay () {
to solve both issues.
See another small library I've started using for an example: https://github.com/oztune/string-replace-to-array/blob/master/string-replace-to-array.js
I don't know, polluting the environment seems fitting.
When using
theresamayjs
in your application it exposes potentially-dangerous methods to the global environment.Additionally,
theresamayjs
is not compatible with AMD techniques – indeed, it is not possible torequire
theresamayjs
.