(data: string)
| 158 | ) => void; |
| 159 | |
| 160 | function parseSessionId(data: string): string | undefined { |
| 161 | try { |
| 162 | const parsed = JSON.parse(data); |
| 163 | if (typeof parsed.sid === "string") { |
| 164 | return parsed.sid; |
| 165 | } |
| 166 | } catch (e) {} |
| 167 | } |
| 168 | |
| 169 | // Object.hasOwn() was introduced in Node.js 16.9 |
| 170 | function hasOwn(obj: Record<string, any>, key: string): boolean { |
no outgoing calls
no test coverage detected