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

Function registerPlugin

lib/plugin-utils.js:147–154  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

145}
146
147function registerPlugin (fn) {
148 const pluginName = registerPluginName.call(this, fn) || getPluginName(fn)
149 checkPluginHealthiness.call(this, fn, pluginName)
150 checkVersion.call(this, fn)
151 checkDecorators.call(this, fn)
152 checkDependencies.call(this, fn)
153 return shouldSkipOverride(fn)
154}
155
156module.exports = {
157 getPluginName,

Callers

nothing calls this directly

Calls 2

getPluginNameFunction · 0.85
shouldSkipOverrideFunction · 0.85

Tested by

no test coverage detected