-
Notifications
You must be signed in to change notification settings - Fork 245
Replace optimist or otherwise avoid its vulnerability #218
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
Comments
@brettz9 You can enforce the right version of Edited to point out that this solution will not work as of today if you use |
@Debrice: Yes, thank you, but not every project is using Yarn. |
+1 |
Bump |
I might be mistaken but I found that installing npm-force-resolutions as a dev dependency and adding the following into the package.json
as well as the following script into my package.json: |
Looks like it's dead, last commit on master in 2018? Is there still somebody to merge? Then I maybe make a fork with a fix. |
Le paquet node-static n’est plus maintenu: cloudhead/node-static#218
Is installing npm-force-resolutions as a dev dependency still the only (recommended) solution to the optimist/minimist issue?
|
Closed by #227. |
The dependency
optimist
depends on a vulnerable version ofminimist
(see https://npmjs.com/advisories/1179).Despite having an issue and PR filed with
optimist
, since the last commit on optimist was 6 years ago, and since the package is deprecated (and it has also been awaiting a fix for a proper license specifier, making automated license audits problematic in the interim), it'd be really nice if you could drop theoptimist
dependency, perhaps using one of its suggested replacements (yargs, nomnom, or usingminimist
directly, though if the latter, I'd hope pegging against the maintained major bump).(I personally like
command-line-args
, as one can use it withcommand-line-usage
or mycommand-line-publish
/command-line-basics
tools to get documentation (both at the command line and as SVG, allowing embedding in a README) from a simple declarative schema.)Thanks!
The text was updated successfully, but these errors were encountered: