Files
bitvid/perf/constants-refactor/candidates.json
T
google-labs-jules[bot]andPR0M3TH3AN 066355e47e [constants] extract STANDARD_TIMEOUT_MS (10000) -> js/constants.js
Refactors duplicated `10000` ms numeric literals to use the canonical `STANDARD_TIMEOUT_MS` constant.

Affects:
- `js/testHarness.js`
- `js/nostr/relayBatchFetcher.js`
- `js/nostr/client.js`

Verification:
- `npm run lint` passed.
- `npm run test:unit` passed.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 04:55:18 +00:00

14 lines
534 B
JSON

[
{
"value": 10000,
"semantic": "STANDARD_TIMEOUT_MS",
"occurrences": [
{"file": "js/testHarness.js", "line": 211, "context": "timeoutMs = 10000"},
{"file": "js/nostr/relayBatchFetcher.js", "line": 19, "context": "timeoutMs = 10000"},
{"file": "js/nostr/relayBatchFetcher.js", "line": 135, "context": "timeoutMs : 10000"},
{"file": "js/nostr/client.js", "line": 812, "context": "timeoutMs = 10000"},
{"file": "js/nostr/client.js", "line": 1425, "context": "timeoutMs || 10000"}
]
}
]