(apiKey: string)
| 771 | } |
| 772 | |
| 773 | function WebsocketFactory(apiKey: string) { |
| 774 | return class extends wsWebSocket { |
| 775 | constructor(address: string | URL, options?: ClientOptions | ClientRequestArgs) { |
| 776 | super(address, { ...(options ?? {}), headers: { Authorization: `Bearer ${apiKey}` } }); |
| 777 | } |
| 778 | }; |
| 779 | } |
| 780 | |
| 781 | // Returns the dependencies that are required by the output that are found in output and the CLI package dependencies |
| 782 | // Returns the dependency names and the version to use (taken from the CLI deps package.json) |
no outgoing calls
no test coverage detected
searching dependent graphs…