Closed Slayer95 closed 9 years ago
Thank you for pull request and I don't mind merging it, but could you please describe what is the problem caused by modifications?
When calling require('htpasswd')
, String.prototype
acquires some additional methods, including but not limited to the ones highlighted here https://github.com/Marak/colors.js/blob/dfb15b55382772ba4fd34fc21922a2d83e9d34d3/lib/styles.js#L30-L68
This crashed my application some time back from a conflict with sugar
.
Thanks, merged and published to NPM.
Since
processor
has the packagecolors
as an upstream dependency, String' s prototype would get unexpectedly modified. This commit fixes that issue by only loadingprocessor
if really needed.