()
| 91 | }; |
| 92 | |
| 93 | const getUniqueUrl = (): { reqId: string; url: string } => { |
| 94 | const baseUrl = config.webPortalConfig?.baseUrl || 'http://localhost:3000'; |
| 95 | const randInt = Math.floor(Math.random() * hashAlphabet.length ** hashLength); |
| 96 | const reqId = hashids.encode(randInt); |
| 97 | const url = urlJoin(baseUrl, `/${reqId}`); |
| 98 | return { reqId, url }; |
| 99 | }; |
| 100 | |
| 101 | const pendingRedirects = new Map<string, RequestHandler>(); |
| 102 |
no outgoing calls
no test coverage detected