feathers/.gitignore
Kévin Berthommier 7de5f4a76e withHooks + custom methods (#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
2018-08-12 13:49:16 -07:00

34 lines
612 B
Plaintext

.DS_Store
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
# Users Environment Variables
.lock-wscript
# IDEs
.idea