Skip to content

refactor: extract MIME utilities into modules/message-utils.js#193

Merged
JuliaKalder merged 4 commits into
mainfrom
fix/issue-74
Jun 3, 2026
Merged

refactor: extract MIME utilities into modules/message-utils.js#193
JuliaKalder merged 4 commits into
mainfrom
fix/issue-74

Conversation

@JuliaKalder
Copy link
Copy Markdown
Owner

Summary

  • Moves findPart and extractBody out of background.js into a new modules/message-utils.js module as named exports
  • Updates background.js to import them from the new module
  • Adds tests/message-utils.test.js with 11 unit tests covering both functions (all passing)

Verification steps

  • npm test — all 11 new tests pass; pre-existing failures in template-store.test.js are unrelated to this change
  • background.js no longer contains inline definitions of findPart or extractBody

Fixes #74

JuliBot and others added 4 commits May 19, 2026 10:56
….js (#74)

Move two pure MIME utility functions out of the background.js orchestration
layer into a dedicated module with named exports, and add unit tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JuliaKalder JuliaKalder merged commit aace4e4 into main Jun 3, 2026
1 check passed
@JuliaKalder JuliaKalder deleted the fix/issue-74 branch June 3, 2026 12:46
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.

[MEDIUM] MIME body-extraction utilities (findPart, extractBody) embedded in background.js orchestration layer instead of a module

1 participant