-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Upgrade yargs
to fix vulnerability issue
#2855
Conversation
- Add cli test to demonstrate working yargs module within cli
Breaking change and we can't update it |
Codecov Report
@@ Coverage Diff @@
## master #2855 +/- ##
==========================================
- Coverage 93.77% 93.54% -0.23%
==========================================
Files 34 34
Lines 1333 1333
Branches 381 381
==========================================
- Hits 1250 1247 -3
- Misses 81 84 +3
Partials 2 2
Continue to review full report at Codecov.
|
@@ -2,7 +2,9 @@ | |||
"name": "webpack-dev-server", | |||
"version": "3.11.0", | |||
"description": "Serves a webpack app. Updates the browser on changes.", | |||
"bin": "bin/webpack-dev-server.js", | |||
"bin": { | |||
"webpack-dev-server": "bin/webpack-dev-server.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized that npm install
automatically changed this line for me. Running webpack-dev-server
as a binary still functions the same (no breaking changes - https://docs.npmjs.com/cli/v6/configuring-npm/package-json#bin).
I can revert this line if desired.
@evilebottnawi Is there a reason why it can't be updated? |
Because webpack-dev-server/package.json Line 16 in 00ca2a4
|
@evilebottnawi Ah, makes sense. I'll open an issue in |
Thanks for the PR, fixed in master, today we will release |
For Bugs and Features; did you add new tests?
Yes. Added test in
cli.test.js
to demonstrate that updatedyargs
module properly displays usage statement.Additionally, the existing tests which pass command-line options to the
webpack-dev-server
cli incli.test.js
pass which prove that the updatedyargs
module functions as expected.Motivation / Use-Case
Fix prototype pollution vulnerability issue in
yargs
.See #2854.
Breaking Changes
No breaking changes.
Additional Info
N/A