Files
bitvid/scripts
thePR0M3TH3ANandClaude Opus 4.8 573c9b00ef refactor(storage): extract helpers + verifyPublicAccess from r2Service (8/10)
File-size decomposition (no behavior change). Move the pure helpers
(normalizeInfoHash, isValidInfoHash, resolveUploadIdentifier, buildCorsGuidance,
createDefaultSettings, safeDecodeNpub) and the verifyPublicAccess flow (as an
instance-param function with a thin delegator) into js/services/r2ServiceHelpers.js.
Dropped the now-unused calculateTorrentInfoHash import from the service.

r2Service.js: 1376 -> 1192 lines (below its original 1194 baseline; re-recorded
to 1192).

Build + full unit suite green.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-19 16:35:53 -04:00
..
2026-02-21 21:03:49 -05:00
2026-01-23 11:08:38 -05:00