()
| 126 | export const ERR_CLOSED_SERVER = class="st">'ERR_CLOSED_SERVER' |
| 127 | |
| 128 | export function throwClosedServerError(): never { |
| 129 | const err: any = new Error( |
| 130 | class="st">'The server is being restarted or closed. Request is outdated', |
| 131 | ) |
| 132 | err.code = ERR_CLOSED_SERVER |
| 133 | class="cm">// This error will be caught by the transform middleware that will |
| 134 | class="cm">// send a 504 status code request timeout |
| 135 | throw err |
| 136 | } |
| 137 | |
| 138 | export interface PluginContainerOptions { |
| 139 | cwd?: string |
no outgoing calls
no test coverage detected