MCPcopy Create free account
hub / github.com/fastify/fastify / checkPluginHealthiness

Function checkPluginHealthiness

lib/plugin-utils.js:141–145  ·  view source on GitHub ↗
(fn, pluginName)

Source from the content-addressed store, hash-verified

139}
140
141function checkPluginHealthiness (fn, pluginName) {
142 if (fn.constructor.name === 'AsyncFunction' && fn.length === 3) {
143 throw new FST_ERR_PLUGIN_INVALID_ASYNC_HANDLER(pluginName)
144 }
145}
146
147function registerPlugin (fn) {
148 const pluginName = registerPluginName.call(this, fn) || getPluginName(fn)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected