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

mpyw / axios-case-converter
91%

Build:
DEFAULT BRANCH: master
Repo Added 22 Mar 2020 07:24AM UTC
Files 5
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • chore-rollup
  • claude/fix-esm-exports
  • claude/node-version-update
  • dev
  • feat-more-options
  • fix-compiler-options
  • fix-ts-39
  • fix/array-index-broken
  • fix/is-plain-object
  • follow-up-axios-update
  • misc-bits
  • mpyw-patch-1
  • refactor-breaking-changes
  • refactor-typescript
  • refs/tags/v0.10.0
  • refs/tags/v0.10.0-alpha.1
  • refs/tags/v0.11.0
  • refs/tags/v0.11.1
  • refs/tags/v0.8.0
  • refs/tags/v0.9.0
  • refs/tags/v1.0.0
  • refs/tags/v1.0.1
  • refs/tags/v1.1.0
  • refs/tags/v1.1.1
  • refs/tags/v1.1.2
  • test-dirty-hack
  • v0.4.0
  • v0.4.1
  • v0.5.0
  • v0.6.0
  • v0.6.0-beta.1
  • v0.7.0
  • v1.1.2

15 Dec 2025 02:18AM UTC coverage: 91.071%. Remained the same
20218389651

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>

144 of 165 branches covered (87.27%)

Branch coverage included in aggregate %.

111 of 115 relevant lines covered (96.52%)

346.09 hits per line

Relevant lines Covered
Build:
Build:
115 RELEVANT LINES 111 COVERED LINES
346.09 HITS PER LINE
Source Files on master
  • Tree
  • List 5
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20218389651 master [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 `e... push 15 Dec 2025 02:19AM UTC web-flow github
91.07
20212931178 master GHA update + readme suggestion (#65) * Expand tests over range of LTS node versions * suggest using sub resource integrity so folk dont moan downstream * GHA upgrade * fix readme typo --------- Co-authored-by: mpyw <mpyw628@gmail.com> push 14 Dec 2025 07:21PM UTC web-flow github
91.07
20212754546 master [Claude] Add Node.js 20, 22, 24 to CI test matrix (#66) * [Claude] Add Node.js 20, 22, 24 to CI test matrix * Update GitHub Actions to v4 and remove npm cache - Update actions/checkout to v4 - Update actions/setup-node to v4 - Update coverallsa... push 14 Dec 2025 07:07PM UTC web-flow github
91.07
7569304317 master Bump version push 18 Jan 2024 11:29AM UTC web-flow github
90.77
7550796523 master fix: Mark axios as external dependency in rollup config (#61) push 17 Jan 2024 03:50AM UTC web-flow github
90.77
7535665055 master fix: Improved isAxiosHeaders validation to handle obfuscated code (#60) push 16 Jan 2024 01:07AM UTC web-flow github
90.77
6947744323 master Update README.md push 21 Nov 2023 05:58PM UTC web-flow github
91.01
4435342421 master Use checkout v3 (#57) push 16 Mar 2023 09:10AM UTC GitHub github pending completion  
4435310500 master Bump version for #56 push 16 Mar 2023 09:07AM UTC GitHub github pending completion  
4432590659 master added ignoreParams to options (#56) push 16 Mar 2023 01:28AM UTC GitHub github pending completion  
See All Builds (140)
  • Repo on GitHub
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