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

Middleware Options #33

Merged
merged 4 commits into from
Jun 7, 2013
Merged

Middleware Options #33

merged 4 commits into from
Jun 7, 2013

Conversation

arb
Copy link
Contributor

@arb arb commented Jun 7, 2013

I refactored the middleware so it is now possible to pass options into the module. I did this for a very specific purpose; to be able to customize the errors being added into the error array, but now that it's here, more options can be used in the future.

I also moved the checkParam function in one scoping level so it had access to the _options object.

Because this is a breaking change, I suggest the major release number is incremented by one.

@ctavan
Copy link
Member

ctavan commented Jun 7, 2013

Looks great! I've added you to the list of contributors, so feel free to merge this pull request and do according version bumps. I'm happy to publish a new package to npm once everything is ready!

arb pushed a commit that referenced this pull request Jun 7, 2013
@arb arb merged commit 6816d5b into express-validator:master Jun 7, 2013
@arb
Copy link
Contributor Author

arb commented Jun 14, 2013

@ctavan did you bump the NPM version? It stil says version 4.1 on npmjs.org. Also, while you are in there, maybe bump the version of node-validator since I know that changed.

@ctavan
Copy link
Member

ctavan commented Jun 14, 2013

@zero21xxx sorry, I didn't notice that you bumped the version. I just published the new version to npm. Please just mention me in the pull request when you bump the version next time so I don't miss out publishing it to npm.

@arb arb deleted the middleware-options branch June 14, 2013 15:34
@ctavan ctavan mentioned this pull request Jun 17, 2013
@lock
Copy link

lock bot commented May 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants