fun-hooks
fun-hooks copied to clipboard
A generalized and simple hooking API for adding extensibility to applications
Bumps [ws](https://github.com/websockets/ws) from 7.5.5 to 7.5.10. Release notes Sourced from ws's releases. 7.5.10 Bug fixes Backported e55e5106 to the 7.x release line (22c28763). 7.5.9 Bug fixes Backported bc8bd34e to the...
Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and updates ancestor dependency [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest). These dependencies need to be updated together. Updates `braces` from 3.0.2 to 3.0.3 Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix...
Consider this: ```javascript const hook = funHooks(); const fn = hook('sync', (arg) => { console.log('inner', arg); }); fn.before((next, arg) => { console.log('outer', arg); setTimeout(() => { next(arg) }) }); fn(1);...