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
e1ca2d81f9
refactor: use loash when possible ( #7230 )
2019-01-12 14:28:53 -05:00
Barış Soner Uşaklı
a662f118a5
fix : #7054
2019-01-08 19:28:30 -05:00
Peter Jaszkowiak
ba619c7ec8
style(eslint): match operator-linebreak preferences
2018-11-30 13:38:59 -05:00
Baris Usakli
33d7735690
change deprecated message
2018-11-30 11:58:55 -05:00
Barış Soner Uşaklı
f75e2ed1ee
fix lint
2018-11-19 13:27:09 -05:00
Barış Soner Uşaklı
c36ddec08b
promisify plugins
2018-11-19 13:03:31 -05:00
Barış Soner Uşaklı
e1eebef398
does this work
2018-11-10 21:13:22 -05:00
Barış Soner Uşaklı
e14b0b38be
derprelic
2018-11-10 21:09:29 -05:00
Barış Soner Uşaklı
485fbf7386
show more lines in stack
2018-11-10 21:08:04 -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ı
da22940b80
dont retry absolute paths
2018-10-25 10:58:51 -04:00
Barış Soner Uşaklı
2f198583c4
change to this
2018-10-24 13:26:05 -04:00
Barış Soner Uşaklı
a2aae7f805
shorter error message
2018-10-24 13:12:19 -04:00
Baris Usakli
82cda248f3
fix plugin requires
2018-10-23 15:55:39 -04:00
Baris Usakli
138154a71c
move modules
2018-10-23 15:03:32 -04: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
Peter Jaszkowiak
70ff2d9b88
Support scoped theme packages
2018-06-11 10:10:16 -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
Peter Jaszkowiak
be00a1c013
Support for using yarn instead of npm, include unread counts on cold load ( #6179 )
...
* Close #6178
* Support for package managers besides npm
- Also fixes issue where upgrade-plugins wouldn't work
2017-12-20 15:56:14 -05:00
Barış Soner Uşaklı
b55087dab7
closes #6166
2017-12-13 12:06:45 -05:00
Peter Jaszkowiak
c47c47f7e3
Use less memory to build translation files ( #6070 )
...
* Change languages build to use less memory
Add graceful-fs so no ned to worry about fs limits
* Specify encoding for fs.readFile
Use eachLimit since graceful-fs handles that now
2017-11-16 17:43:52 -05:00
Peter Jaszkowiak
dfad76120d
Support npm@5 and yarn ( #6010 )
...
* Support npm@5 and yarn
Use package.default.json
Partial #6008
- Overwrite package.json with package.default.json values
- `dependencies` field is merged with package.default.json version taking precidence
- `./nodebb upgrade` automatically does those things and runs `git pull`
- use `./nodebb upgrade --dev` to avoid the `git pull`
* added logic to preserve extraneous plugins installed in node_modules/
* Don't automatically git pull
* Simplify package-install, run it on upgrade just in case
2017-11-02 14:12:05 -04:00
Peter Jaszkowiak
e609e497b3
Provide more error information to logs
...
Provides full stack instead of just message
2017-11-01 18:59:48 -06: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
Julian Lam
4976d13013
removed console log
2017-09-08 11:25:45 -04:00
Julian Lam
f7d78771f8
fixes #5921
2017-09-08 11:12:48 -04:00
psychobunny
0e219a8c58
closes #5891
2017-08-21 17:48:58 -04:00
Baris Usakli
2053726c81
up spam-be-gone
2017-08-14 11:10:54 -04:00
Julian Lam
4f9cbabec3
fixes #5853
2017-08-03 12:06:15 -04:00
Julian Lam
29e7bdbc99
expose license info in plugin API for installed plugins
2017-08-03 12:06:15 -04:00
Julian Lam
f4fb9ee04b
adding filter hooks for flag list and retrieval
2017-06-16 10:58:21 -04:00
Julian Lam
b4870654fc
Merge pull request #5728 from NodeBB/patch-pitaj
...
Assorted Fixes
2017-06-02 10:14:50 -04:00
Julian Lam
29e868b002
closes #5585
2017-06-01 16:24:45 -04:00
Peter Jaszkowiak
34af855848
Fix npm@5 saving by default
2017-06-01 14:16:13 -06:00
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
f1b8492164
remove unnecessary checks
2017-05-27 00:30:07 -04:00
Peter Jaszkowiak
3dd282b7b9
Load languages with other plugin data
...
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
2017-05-23 21:55:23 -06:00
Peter Jaszkowiak
90da6d889d
Only load necessary plugin data
...
Fix tests to work in this case
Add more verbose messages to plugins/data
2017-05-18 01:32:20 -06:00
Peter Jaszkowiak
b0645cc67d
Plugin load refactor
2017-05-18 00:49:42 -06:00
Peter Jaszkowiak
759c3f5584
Fix soundpacks not working
2017-05-10 12:23:28 -06:00