Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use package.cjs import instead of requiring package.json #506

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

dominique-pfister
Copy link
Contributor

fix #505


const buf = await readStream(resp.readable);
const json = JSON.parse(buf);
assert.strictEqual(json.headers['user-agent'], `adobe-fetch/${pkg.version}`);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verify standard user agent contains version from package.json

@dominique-pfister dominique-pfister merged commit fad8a1e into main Dec 5, 2024
7 checks passed
@dominique-pfister dominique-pfister deleted the use-package-cjs branch December 5, 2024 13:40
github-actions bot pushed a commit that referenced this pull request Dec 5, 2024
## [4.1.10](v4.1.9...v4.1.10) (2024-12-05)

### Bug Fixes

* use package.cjs import instead of requiring package.json ([#506](#506)) ([fad8a1e](fad8a1e))
Copy link

github-actions bot commented Dec 5, 2024

🎉 This PR is included in version 4.1.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import package.cjs instead of requiring package.json
2 participants