• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pataar / browser-detect / 23341586198
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: 6.x
DEFAULT BRANCH: main
Ran 20 Mar 2026 11:51AM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Mar 2026 11:51AM UTC coverage: 100.0%. Remained the same
23341586198

push

github

web-flow
refactor: code quality improvements (#12)

* refactor: code quality improvements

- DeviceDetector: call skipBotDetection() once on init, not every request
- DeviceDetector: remove dead $pieces array and version string from
  parseVersion() (always overwritten by BrowserDetect::buildVersionAndName)
- DeviceDetector: inline $device array, lazy-fetch brand/model only
  when device type is present
- DeviceDetector: tighten parseVersion() return type to array<string, int>
- BrowserDetect: simplify device resolution to only write changed flags
- BrowserDetect: use word-boundary regex for IE match to prevent
  false positives on browser names containing 'ie' as a substring
- BrowserDetect: pass agent string directly to detectIsInApp() instead
  of re-fetching from payload
- BrowserDetect: consolidate in-app token checks into const array + loop
- Result: replace stringly-typed deviceType() magic dispatch with
  explicit property checks

* chore: add issue and pull request templates

- Bug report template with UA string, expected/actual behaviour, version
- Feature request template with description, use case, example UAs
- PR template with checklist enforcing 100% test coverage

31 of 31 new or added lines in 3 files covered. (100.0%)

248 of 248 relevant lines covered (100.0%)

26.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23341586198.1 20 Mar 2026 11:51AM UTC 16
100.0
GitHub Action Run
Source Files on build 23341586198
  • Tree
  • List 16
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 00d47c8c on github
  • Prev Build on stable (#23339486656)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc