Skip to content

fix(helpers): replace Buffer with TextDecoder in DKIM sanitizer for cross-env compatibility#274

Open
SashaMalysehko wants to merge 1 commit intozkemail:mainfrom
SashaMalysehko:main
Open

fix(helpers): replace Buffer with TextDecoder in DKIM sanitizer for cross-env compatibility#274
SashaMalysehko wants to merge 1 commit intozkemail:mainfrom
SashaMalysehko:main

Conversation

@SashaMalysehko
Copy link

Switched Buffer.from(...).toString() to new TextDecoder().decode(...) in insert13Before10.
Removes Node-only Buffer usage and resolves TS linter error “Cannot find name 'Buffer'”.
Improves portability (works in browsers and Node) without changing behavior.

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.

1 participant