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

stores-com / dhl-ecommerce-solutions / 30475014794 / 1
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: drop-callback-support
DEFAULT BRANCH: main
Ran 29 Jul 2026 05:22PM UTC
Files 1
Run time 0s
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

29 Jul 2026 05:22PM UTC coverage: 100.0%. Remained the same
30475014794.1

Pull #11

github

freshlogic
Parse successful responses with response.json()

Coveralls fails this PR on any coverage decrease, and it dropped 1.0% to 98.956%. The
uncovered lines were the raw-text fallback I had added to parseResponse to mirror what
the request module did with `json: true`.

That fallback is not load-bearing. Every endpoint this SDK calls answers with JSON:
downloadManifest is asserted on `response.errorCode` / `response.errorDescription`,
createLabel returns its PNG base64 inside a JSON envelope, and the rest are plain JSON
objects. Nothing exercised the text path, which is exactly why it was uncovered.

Using `await res.json()` is also what nodejs:request-to-fetch prescribes, so this drops
the last place the implementation diverged from the skill.

Behaviour change worth a release note: a 200 whose body is not valid JSON now throws a
SyntaxError where request would have handed back the raw string. No DHL endpoint does
this today.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pull Request #11: Replace request with native fetch and add async/await via the executor pattern

79 of 79 branches covered (100.0%)

Branch coverage included in aggregate %.

295 of 295 relevant lines covered (100.0%)

22.67 hits per line

Source Files on job 30475014794.1
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 30475014794
  • 25728e4d on github
  • Prev Job for on replace-request-with-fetch-and-executor-pattern (#30467743904.1)
  • Next Job for on replace-request-with-fetch-and-executor-pattern (#30477337566.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc