@forrestjs/hooks
NOTE: This package has been deprecated in favor of @forrestjs/core
.
👉 Checkout the project at ForrestJS.github.io 👈
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
DEPRECATED: see @forrestjs/core
NOTE: This package has been deprecated in favor of @forrestjs/core
.
👉 Checkout the project at ForrestJS.github.io 👈
const f1 = [hook, handler]
runHookApp
and createHookApp
createHook
supportregisterAction
supportregisterHook
supportservice-fetchq
with a task entered by a route and then a polling to monitor completion of such taskservice-postgres-pubsub
and write service-pg-pubsub
accepting PGSTRING
createExtension("$SUM", 5)
the payload is not forwarded to the handlersregisterAction([name, handler, option])
registerAction(name, handler, option)
registerAction()
in favor of registerExtension()
forrest.run([ feature, feature ])
$FINISH
$FINISH
extensiongetConfig()
error tracegetContext()
error traceregisterAction()
error tracecreateExtension()
error tracepg
dependency to the service-pgsetConfig
to the server and request instancessetContext
to the server and request instancesregisterResetHandler()
in favor of registerTddReset()
service-postgres
and write service-pg
accepting PGSTRING
service-pg
service-pg-schema
service-jwks
service-meta
service-hasura-auth
createExtension
accepts referenced Target names as in $TARGET_NAME
getAction
for getTarget
createHook
for runActions
registerAction({ hook: 'xxx' })
for registerAction({ target: 'xxx', name: 'yyy' })
registerAction
for registerExtension
registerHook
for registerTargets
who always get a map of hooks to addgetHook()
for getAction()
service-fetchq
- it should work seamlessly before/after service-fastify
runHookApp
createHookApp
forrestjs.run()
APIservice-fastify
registerRoute
setContext
APIjwt
API into Fetchq's registered workers@fetchq/node-client
v4.1.0service-fastify
/test/fetchq/query
get/post utility/test/fetchq/:queue/:subject
to retrieve a document status/test/fetchq/await/:queue/:subject
to await a document status with a configurable timeoutservice-fastify-healthz
FETCHQ_DECORATE_CONTEXT
waterfall hook to decorate workers' contextservice-fastify
log
log
API into Fetchq's registered workers$REGISTER_ROUTE
hook so to be synchronous and report injections in the boot report/test
route for E2E test supportservice-env
to provide direct access to getEnv
in the route handlersFASTIFY_OPTIONS
hook that lets hijack into the fastify.instance.options
object at run timedecoreateReuest
and decorateReply
add the relative hooks
automatically@forrestjs/hooks
@forrestjs/service-fastify
@forrestjs/service-fastify-static
@forrestjs/service-fastify-cors
@forrestjs/service-fastify-cookie
@forrestjs/service-fastify-gql
@forrestjs/service-fastify-healthz
@forrestjs/service-jwt
@forrestjs/service-hash
@forrestjs/service-fetchq
@forrestjs/service-apollo
@forrestjs/service-logger
app01
examples for a complex app