forked from feathersjs/feathers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
withHooks + custom methods (feathersjs#924)
* open hooks workflow to custom methods * remove console.log * remove useless line * new service 'methods' shape * pick arguments in validateHook for custom methods * separate validateHook and pickArgsHook * extend pickArgsHook to all methods * remove variable with single usage * validate before pick arguments * export withHooks method * add tests for withHooks * fix getHookArray * replace Object.assign by assignation * simplify names * add activeHooks method * all methods in service.methods * rename activeHooks to activateHooks * remove useless assignation * use Object.getOwnPropertyNames instead of Object.keys * update @featherjs/commons * fix test for node 6 * fix withHooks * Update hooks.js * use Object.defineProperty in the activateHooks method
- Loading branch information
1 parent
b682bd6
commit 7de5f4a
Showing
7 changed files
with
348 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ node_modules | |
|
||
# Users Environment Variables | ||
.lock-wscript | ||
|
||
# IDEs | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.