Skip to content

rhwp-shared/security: ES module exports 추가 #187

@postmelee

Description

@postmelee

배경

rhwp-shared/security/ 모듈이 현재 CommonJS exports만 지원함 (module.exports).
PR #169 (Firefox 확장) 구현 시, Firefox의 background script가 "type": "module"
모드로 동작하여 직접 import 사용이 필요한 상황이 발생함.

변경

  • rhwp-shared/security/url-validator.js 파일 하단에 ES module export { ... } 추가
  • rhwp-shared/security/sender-validator.js 파일 하단에 ES module export { ... } 추가
  • 기존 CommonJS exports 유지 (이중 형식, dual-format)

영향

  • 기존 단위 테스트 (*.test.js): 변화 없음
  • rhwp-chrome: 현재 미사용 → 변화 없음
  • rhwp-safari: 인라인 복사 방식이라 참조하지 않음 → 변화 없음
  • rhwp-firefox (PR feat/firefox extension #169): 신규 import 가능

구현

PR #169 내 커밋으로 함께 포함됨.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions