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

adding an every hook #63

Merged
merged 2 commits into from
Dec 7, 2016
Merged

adding an every hook #63

merged 2 commits into from
Dec 7, 2016

Conversation

ekryski
Copy link
Member

@ekryski ekryski commented Dec 7, 2016

Summary

Adding a utility hook that takes in other functions and resolves to true if all of the functions return true. Resolves to false if one of the functions returns a falsey value. Errors thrown from a hook function (ie. hook2) break out of the chain and are rejected appropriately.

Usage is like so:

every(hook1, hook2, hook3)

Other Information

Related to this discussion feathersjs-ecosystem/feathers-permissions#4

@ekryski ekryski merged commit 10d6c70 into master Dec 7, 2016
@ekryski ekryski deleted the every branch December 7, 2016 21:49
@ekryski
Copy link
Member Author

ekryski commented Dec 7, 2016

ooops. I guess I didn't get a :shipit: on this. All good @eddyystop?

@eddyystop
Copy link
Collaborator

Sorry I'm at a business supper

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

Successfully merging this pull request may close these issues.

2 participants