Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For node.js add module.exports #3

Closed
nowshad-sust opened this issue Jun 19, 2019 · 2 comments
Closed

For node.js add module.exports #3

nowshad-sust opened this issue Jun 19, 2019 · 2 comments

Comments

@nowshad-sust
Copy link

nowshad-sust commented Jun 19, 2019

So, the below code block doesn't work for nodejs apps, may be you targeted the frontend env.

exports.__esModule = true
exports.name = 'axiosRateLimit'
exports.default = axiosRateLimit

Adding one more line for the nodejs type will do the job:

module.exports = axiosRateLimit
@aishek
Copy link
Owner

aishek commented Jun 19, 2019

Oh, thank for the issue! I just published https://www.npmjs.com/package/axios-rate-limit/v/1.0.0 to fix it.

Could you confirm that the issue is fixed in version 1.0.0?

@aishek aishek closed this as completed Jun 19, 2019
@nowshad-sust
Copy link
Author

nowshad-sust commented Jun 19, 2019

@aishek, fixed now!
Thanks for the quick update 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants