(load: PluginLoader.Loaded, input: PluginInput, hooks: Hooks[])
| 108 | } |
| 109 | |
| 110 | async function applyPlugin(load: PluginLoader.Loaded, input: PluginInput, hooks: Hooks[]) { |
| 111 | const plugin = readV1Plugin(load.mod, load.spec, "server", "detect") |
| 112 | if (plugin) { |
| 113 | await resolvePluginId(load.source, load.spec, load.target, readPluginId(plugin.id, load.spec), load.pkg) |
| 114 | hooks.push(await (plugin as PluginModule).server(input, load.options)) |
| 115 | return |
| 116 | } |
| 117 | |
| 118 | for (const server of getLegacyPlugins(load.mod)) { |
| 119 | hooks.push(await server(input, load.options)) |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | const layer = Layer.effect( |
| 124 | Service, |
no test coverage detected