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

mpyw / axios-case-converter / 20218389651 / 5
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 15 Dec 2025 02:21AM UTC
Files 10
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

15 Dec 2025 02:18AM UTC coverage: 92.804%. Remained the same
20218389651.5

push

github

web-flow
[Claude] Fix ESM compatibility for Node.js type module (#67)

* fix: Add exports field for Node.js ESM compatibility

Fixes #58

When using Node.js with `"type": "module"`, the default import was not
working correctly because Node.js treats CJS `exports.default` differently
than ESM `export default`.

Changes:
- Add `exports` field to package.json for proper ESM/CJS resolution
- Generate `.mjs` wrapper that re-exports the default correctly
- ESM: `import applyCaseMiddleware from 'axios-case-converter'` now works
- CJS: `require('axios-case-converter').default` continues to work

Tested on Node.js v25 with `"type": "module"` enabled.

🤖 This commit was automatically created by Claude

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test: Add ESM import test to CI

Adds a dedicated test to verify ESM import works correctly:
- test/esm/test-esm-import.mjs: Tests that default import is a function
- CI workflow now builds and runs ESM test after Jest tests

This ensures the fix for #58 is properly tested in CI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* style: Format ESM test file with prettier

* security: Add safe-chain to npm install for supply chain protection

Adds --safe-chain flag to npm install in both CI and release workflows
to detect malware in dependencies before they can execute.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Revert "security: Add safe-chain to npm install for supply chain protection"

This reverts commit 54a1f3eae.

* security: Add Aikido safe-chain for supply chain protection

Installs safe-chain via curl before npm install to scan dependencies
for malware before they can execute.

Reference: https://github.com/AikidoSec/safe-chain

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

152 of 173 branches covered (87.86%)

Branch coverage included in aggregate %.

222 of 230 relevant lines covered (96.52%)

34.61 hits per line

Source Files on job node:18 axios:^1 - 20218389651.5
  • Tree
  • List 10
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 20218389651
  • 91ff5fe1 on github
  • Prev Job for on master (#20212931178.3)
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

© 2025 Coveralls, Inc