(fn)
| 63 | } |
| 64 | |
| 65 | function checkDependencies (fn) { |
| 66 | const meta = getMeta(fn) |
| 67 | if (!meta) return |
| 68 | |
| 69 | const dependencies = meta.dependencies |
| 70 | if (!dependencies) return |
| 71 | assert(Array.isArray(dependencies), 'The dependencies should be an array of strings') |
| 72 | |
| 73 | dependencies.forEach(dependency => { |
| 74 | if (!this[kRegisteredPlugins].includes(dependency)) { |
| 75 | throw new FST_ERR_PLUGIN_DEPENDENCY_NOT_REGISTERED(dependency, meta.name) |
| 76 | } |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | function checkDecorators (fn) { |
| 81 | const meta = getMeta(fn) |