(key: string)
| 1376 | |
| 1377 | const budgets = new Map<string, RateLimitBudget>() |
| 1378 | const getBudget = (key: string): RateLimitBudget => { |
| 1379 | let budget = budgets.get(key) |
| 1380 | if (budget === undefined) { |
| 1381 | budget = { sent: 0, observed: 0, remaining: 0, resetAt: 0 } |
| 1382 | budgets.set(key, budget) |
| 1383 | } |
| 1384 | return budget |
| 1385 | } |
| 1386 | |
| 1387 | const onResponse = options.disableResponseInspection |
| 1388 | ? undefined |
no test coverage detected