158 Commits (3a7e99a503dfeec649ba65a5593dc8c1d97222fd)

Author SHA1 Message Date
Barış Soner Uşaklı 6472a06515 fix: hook names getting objectified by winston 6 years ago
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
6 years ago
Baris Usakli c14dbfc6b7 attempt to fix tests 6 years ago
Baris Usakli 65f6630722 add new hook action:plugins.firehook 6 years ago
Peter Jaszkowiak e1ca2d81f9 refactor: use loash when possible (#7230) 6 years ago
Barış Soner Uşaklı a662f118a5 fix: #7054 6 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 6 years ago
Baris Usakli 33d7735690 change deprecated message 6 years ago
Barış Soner Uşaklı f75e2ed1ee fix lint 6 years ago
Barış Soner Uşaklı c36ddec08b promisify plugins 6 years ago
Barış Soner Uşaklı e1eebef398 does this work 6 years ago
Barış Soner Uşaklı e14b0b38be derprelic 6 years ago
Barış Soner Uşaklı 485fbf7386 show more lines in stack 6 years ago
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 😬
6 years ago
Barış Soner Uşaklı da22940b80 dont retry absolute paths 6 years ago
Barış Soner Uşaklı 2f198583c4 change to this 6 years ago
Barış Soner Uşaklı a2aae7f805 shorter error message 6 years ago
Baris Usakli 82cda248f3 fix plugin requires 6 years ago
Baris Usakli 138154a71c move modules 6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Barış Soner Uşaklı 81341e86ee log fired hooks 7 years ago
Peter Jaszkowiak 70ff2d9b88 Support scoped theme packages 7 years ago
Barış Soner Uşaklı b7f5995aab closes #6550 7 years ago
Barış Soner Uşaklı 0b0ce1df8a closes #6549 7 years ago
Barış Soner Uşaklı 25ebd306cc closes #6548 7 years ago
Barış Soner Uşaklı 2edd908aee closes #6547 7 years ago
Julian Lam 3b57d3eadb closes #6434 7 years ago
Barış Soner Uşaklı 15e9bbac92 closes #6311 7 years ago
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
7 years ago
Barış Soner Uşaklı b55087dab7 closes #6166 7 years ago
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
7 years ago
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
7 years ago
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
7 years ago
Baris Usakli 9101400264 closes #5961 7 years ago
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
7 years ago
Julian Lam 4976d13013 removed console log 8 years ago
Julian Lam f7d78771f8 fixes #5921 8 years ago
psychobunny 0e219a8c58 closes #5891 8 years ago
Baris Usakli 2053726c81 up spam-be-gone 8 years ago
Julian Lam 4f9cbabec3 fixes #5853 8 years ago
Julian Lam 29e7bdbc99 expose license info in plugin API for installed plugins 8 years ago
Julian Lam f4fb9ee04b adding filter hooks for flag list and retrieval 8 years ago
Julian Lam b4870654fc Merge pull request #5728 from NodeBB/patch-pitaj
Assorted Fixes
8 years ago
Julian Lam 29e868b002 closes #5585 8 years ago
Peter Jaszkowiak 34af855848 Fix npm@5 saving by default 8 years ago
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash 8 years ago
Barış Soner Uşaklı f1b8492164 remove unnecessary checks 8 years ago
Peter Jaszkowiak 3dd282b7b9 Load languages with other plugin data
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
8 years ago
Peter Jaszkowiak 90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
8 years ago
Peter Jaszkowiak b0645cc67d Plugin load refactor 8 years ago