(uniqueKey: string)
| 298 | |
| 299 | const uniqueKeyToCacheKey = new Map<string, string>(); |
| 300 | const getCachedRequestId = (uniqueKey: string) => { |
| 301 | const cached = uniqueKeyToCacheKey.get(uniqueKey); |
| 302 | |
| 303 | if (cached) return cached; |
| 304 | |
| 305 | const newCacheKey = getRequestId(uniqueKey); |
| 306 | uniqueKeyToCacheKey.set(uniqueKey, newCacheKey); |
| 307 | |
| 308 | return newCacheKey; |
| 309 | }; |
| 310 | |
| 311 | const results: BatchAddRequestsResult = { |
| 312 | processedRequests: [], |
no test coverage detected
searching dependent graphs…