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

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

Build:
Build:
LAST BUILD BRANCH: v1.1.2
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 v1.1.2
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 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
  • master
  • 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
20218403833

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
20218403833 v1.1.2 [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:20AM UTC web-flow github
91.07
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
20218326499 claude/fix-esm-exports 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... Pull #67 15 Dec 2025 02:16AM UTC mpyw github
91.07
20218311593 claude/fix-esm-exports Merge b3618e31a into 876b1c05f Pull #67 15 Dec 2025 02:15AM UTC web-flow github
91.07
20218311057 claude/fix-esm-exports Revert "security: Add safe-chain to npm install for supply chain protection" This reverts commit 54a1f3eae. push 15 Dec 2025 02:15AM UTC mpyw github
91.07
20218292131 claude/fix-esm-exports 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@anthro... Pull #67 15 Dec 2025 02:14AM UTC mpyw github
91.07
20218232717 claude/fix-esm-exports style: Format ESM test file with prettier Pull #67 15 Dec 2025 02:11AM UTC mpyw github
91.07
20218136980 claude/fix-esm-exports 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:... Pull #67 15 Dec 2025 02:05AM UTC mpyw 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
20212916453 misc-bits Merge 093ef64d3 into fa1bf80b7 Pull #65 14 Dec 2025 07:21PM UTC web-flow github
91.07
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

© 2025 Coveralls, Inc