()
| 23 | const TRACKING_ID_LENGTH = 21; |
| 24 | |
| 25 | const generateTrackingId = (): string => { |
| 26 | const bytes = crypto.getRandomValues(new Uint8Array(TRACKING_ID_LENGTH)); |
| 27 | return Array.from( |
| 28 | bytes, |
| 29 | (byte) => TRACKING_ID_ALPHABET[byte % TRACKING_ID_ALPHABET.length], |
| 30 | ).join(''); |
| 31 | }; |
| 32 | |
| 33 | // Only the routes the proxy acts on: the post page (markdown negotiation, the |
| 34 | // agent signup wall and the laptop mirror) and the markdown routes. Next reads |
no outgoing calls
no test coverage detected