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

Made overLimitError a function instead of a class for more general usage #23

Merged
merged 1 commit into from
Feb 21, 2017
Merged

Conversation

chamini2
Copy link
Contributor

@chamini2 chamini2 commented Feb 2, 2017

The package expects overLimitError to be a class, and although it makes sense to use a class in some cases, it does not always apply, so I'm introducing this change and in test/index.test.js there's an example usage of errors that are still classes, and how they would still work.

Copy link
Contributor

@mgartner mgartner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@mgartner mgartner merged commit f7a8a48 into lob:master Feb 21, 2017
@mgartner
Copy link
Contributor

Just release this change in v2.0.0: https://www.npmjs.com/package/hapi-rate-limiter

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

Successfully merging this pull request may close these issues.

None yet

2 participants