Skip to content
2 min read
v8.1.6
@naandalist/patch-package

@naandalist/patch-package

This package is a forked version of the official patch-package v8.0.0. Its main purpose is to fix security vulnerabilities (MEDIUM and HIGH SEVERITY) while maintaining full compatibility with the original package.

Security Improvements

This fork fixes all security vulnerabilities identified by Snyk:

#VulnerabilityPackageSeverityReference
1Regular Expression Denial of Service (ReDoS)cross-spawnHighSNYK-JS-CROSSSPAWN-8303230
2Inefficient Regular Expression ComplexitymicromatchHighSNYK-JS-MICROMATCH-6838728
3Missing Release of Resource after Effective LifetimeinflightMediumSNYK-JS-INFLIGHT-6095116

Installation

# Using npm
npm install @naandalist/patch-package

# Using yarn
yarn add @naandalist/patch-package

Usage

The usage remains identical to the original patch-package, maintaining full compatibility while providing enhanced security.

Creating Patches

  1. Make your changes to package files in the node_modules folder
  2. Run the following command:
# Using yarn
yarn patch-package package-name

# Using npm
npx patch-package package-name

Applying Patches

Patches are automatically applied when you run:

yarn install
# or
npm install

For detailed usage instructions and advanced features, please refer to the original patch-package documentation.

Why Use This Fork?

  • ✅ All original functionality preserved
  • 🛡️ Snyk finding security vulnerabilities fixed
  • 💪 Regular security maintenance

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT - See LICENSE for details.

For more details, please visit the GitHub repository.