Commit Graph

56 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
6472a06515 fix: hook names getting objectified by winston 2019-02-21 18:27:29 -05:00
Julian Lam
a23854e3ff feat: new hook type: response
Used in authentication middleware. Instead of firing an action
hook, it now fires a response hook.

Response hooks are invoked serially, and if headers are sent from
one of the hook listeners, all subsequent hook methods are not
called.

Response hooks should only be used in situations where res.send
(or other like methods) are invoked. Existing plugin hooks that
pass in res purely for data retrieval purposes have not changed).

fixes nodebb/nodebb-plugin-write-api#101
2019-01-19 14:49:22 -05:00
Baris Usakli
c14dbfc6b7 attempt to fix tests 2019-01-15 13:38:42 -05:00
Baris Usakli
65f6630722 add new hook action:plugins.firehook 2019-01-15 12:56:01 -05:00
Peter Jaszkowiak
ba619c7ec8 style(eslint): match operator-linebreak preferences 2018-11-30 13:38:59 -05:00
renovate[bot]
64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
81341e86ee log fired hooks 2018-06-13 11:43:51 -04:00
Barış Soner Uşaklı
b7f5995aab closes #6550 2018-06-03 14:54:25 -04:00
Barış Soner Uşaklı
0b0ce1df8a closes #6549 2018-06-03 14:46:23 -04:00
Barış Soner Uşaklı
25ebd306cc closes #6548 2018-06-03 14:37:23 -04:00
Barış Soner Uşaklı
2edd908aee closes #6547 2018-06-03 14:31:02 -04:00
Julian Lam
3b57d3eadb closes #6434 2018-04-05 14:35:49 -04:00
Barış Soner Uşaklı
15e9bbac92 closes #6311 2018-02-15 14:52:49 -05:00
Barış Soner Uşaklı
b55087dab7 closes #6166 2017-12-13 12:06:45 -05:00
Baris Usakli
9101400264 closes #5961 2017-10-12 17:57:25 -04:00
Peter Jaszkowiak
da9da8190f Bump dependencies
Bumping eslint & configs meant making some linting fixes

For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
2017-10-02 09:24:27 -04:00
Baris Usakli
2053726c81 up spam-be-gone 2017-08-14 11:10:54 -04:00
Julian Lam
f4fb9ee04b adding filter hooks for flag list and retrieval 2017-06-16 10:58:21 -04:00
barisusakli
d500e7f2aa add back action:plugin.install and action:plugin activate #5407 2017-04-19 13:23:53 -04:00
Julian Lam
45c479a101 Merge branch 'master' into develop 2017-02-28 12:07:56 -05:00
barisusakli
2e47cf4db3 intersititial test 2017-02-28 16:42:10 +03:00
Julian Lam
72e77772db Merge branch 'master' into develop 2017-02-24 12:46:40 -05:00
Peter Jaszkowiak
4bb49a7171 ESlint no-unused-vars 2017-02-18 15:05:36 -07:00
Peter Jaszkowiak
09e868ce5f ESlint no-useless-escape, no-else-return 2017-02-18 14:27:26 -07:00
Peter Jaszkowiak
1493afee2a ESlint indent 2017-02-18 02:38:03 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
604358ecc4 ESlint keyword-spacing, no-multi-spaces 2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
2ba46808a1 ESlint one-var, fix comma-dangle 2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
b37d52c089 closes #5407 2017-01-31 18:38:06 +03:00
Julian Lam
a5fb4825b4 deprecating old hook for #5232 2016-12-07 13:06:55 -05:00
barisusakli
bfcef27c47 plugin tests 2016-10-14 21:48:38 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
ae8b9c3683 closes #4665 2016-09-14 15:56:35 +03:00
barisusakli
50aac3c6a4 closes #4979 closes #4984 2016-08-27 14:06:14 +03:00
barisusakli
11236bb841 fix missing callback 2016-07-28 21:28:25 +03:00
barisusakli
af75a887b5 closes #4892
prevent crash if registerHook is called with invalid hook name
2016-07-27 22:17:08 +03:00
akhoury
46a57f5d5c rm cls because it's not ready yet 2016-06-24 16:57:58 -04:00
Aziz Khoury
374fa8dd8c fix: deprecated-message not showing for all hooks (#4714)
* fix deprecated hooks params warning + var-cleanup

* fix deprecated message
2016-06-01 12:27:36 -04:00
Julian Lam
192998c5c3 Revert "fixed link to documentation, @akhoury"
This reverts commit bc0359475c.
2016-05-19 10:02:45 -04:00
Julian Lam
bc0359475c fixed link to documentation, @akhoury 2016-05-09 13:04:52 -04:00
Barış Soner Uşaklı
f0685468f8 Merge pull request #4162 from akhoury/master
add continuation-local-storage (CLS) support
2016-05-09 19:28:59 +03:00
Julian Lam
b12811d21d spring cleaning 2016-05-04 10:09:03 -04:00
Aziz Khoury
02e53fd442 update deprecation message 2016-04-15 16:59:25 -04:00
akhoury
509676fdf4 add deprecation warnings for CLS 2016-02-28 15:24:31 -05:00
akhoury
f47c06279a added depracation warning 2016-02-16 23:07:36 -05:00
Julian Lam
8fa2c34fc5 Deprecated action:user.loggedOut, updated plugin deprecation notices
... to show replacement, if available.
2016-01-07 15:42:18 -05:00
Julian Lam
ea9f5cbc61 adding in another deprecated hook to the warning list 2015-08-25 17:52:52 -04:00
Julian Lam
a1d5132777 Deprecated filter:user.delete hook
Please use static:user.delete instead.
2015-08-25 17:48:29 -04:00