Skip to content

docs: add exported symbols comment above module.exports in background.js#213

Draft
Copilot wants to merge 2 commits into1.0.12from
copilot/patch-docs-cleanup-stale-tracked-requests
Draft

docs: add exported symbols comment above module.exports in background.js#213
Copilot wants to merge 2 commits into1.0.12from
copilot/patch-docs-cleanup-stale-tracked-requests

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

background.js exports 9 symbols via module.exports but had no comment documenting them, leaving consumers without a quick reference without reading the full file.

Changes

  • background.js: Added a comment between /* istanbul ignore next */ and the module.exports guard listing all exported symbols and their context (Node.js/Jest-only)
/* istanbul ignore next */
// Exported for Node.js / Jest environments (not available in the browser extension context).
// Symbols: isNonRoutableHost, buildAcceptLanguage, DEFAULT_ACCEPT_LANGUAGE,
//          trackInitialHost, cleanupStaleTrackedRequests, initialHostByRequest,
//          redirectedRequestIds, REQUEST_TRACK_TTL_MS, MAX_TRACKED_REQUESTS
if (typeof module === "object" && module !== null) {

Style mirrors the inline comment convention used in utils.js. No behaviour change.

Copilot AI changed the title [WIP] Fix JSDoc comment for exported symbols in background.js docs: add exported symbols comment above module.exports in background.js Apr 3, 2026
Copilot AI requested a review from ormidales April 3, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PATCH] cleanupStaleTrackedRequests is exported but absent from module.exports JSDoc comment

2 participants