Skip to content

fix: include CommonJS resources in the npm package#714

Merged
amitguptagwl merged 1 commit intoNaturalIntelligence:masterfrom
tbouffard:patch-1
Feb 20, 2025
Merged

fix: include CommonJS resources in the npm package#714
amitguptagwl merged 1 commit intoNaturalIntelligence:masterfrom
tbouffard:patch-1

Conversation

@tbouffard
Copy link
Contributor

@tbouffard tbouffard commented Feb 19, 2025

Purpose / Goal

The package.json file didn't declare a "files" attribute, so default files were included, but not the files in the lib folder (which includes CommonJS resources)

Closes #713

I have run npm pack with the new configuration to verify that the content is the same as in https://www.npmjs.com/package/fast-xml-parser/v/5.0.1?activeTab=code and includes the lib folder.

Type

Please mention the type of PR

  • Bug Fix
  • Refactoring / Technology upgrade
  • New Feature

The `package.json` file didn't declare a "files" attribute, so default files were included, but not the files in the lib folder (which includes CommonJS resources)
@guardrails
Copy link

guardrails bot commented Feb 19, 2025

⚠️ We detected 1 security issue in this pull request:

Vulnerable Libraries (1)
Severity Details
Medium xml2js@0.4.23 (t) upgrade to: >=0.6.2

More info on how to fix Vulnerable Libraries in JavaScript.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

@amitguptagwl amitguptagwl merged commit 5d9f416 into NaturalIntelligence:master Feb 20, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The npm package for version 5.0.1 does not include CommonJS resources

2 participants