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

chore(deps): update extract-zip to version 2 #5610

Merged
merged 5 commits into from Apr 9, 2020

Conversation

TimvdLippe
Copy link
Contributor

extract-zip removed support for callbacks and instead uses promises.
Moreover, it has TypeScript support which allows us to remove the
@types/extract-zip package.

This update allows downstream users to remove their installation
of mkdirp, which uses a vulnerable version of minimist.

For more info, see https://github.com/maxogden/extract-zip/releases/tag/v2.0.0

extract-zip removed support for callbacks and instead uses promises.
Moreover, it has TypeScript support which allows us to remove the
@types/extract-zip package.

This update allows downstream users to remove their installation
of mkdirp, which uses a vulnerable version of minimist.

For more info, see https://github.com/maxogden/extract-zip/releases/tag/v2.0.0
@mathiasbynens
Copy link
Member

PTAL the CI errors. Looks like something is going wrong:

Version 3.8.3
src/BrowserFetcher.js:22:25 - error TS2307: Cannot find module 'extract-zip'.
22 const extract = require('extract-zip');
                           ~~~~~~~~~~~~~

}));
async function extractZip(zipPath, folderPath) {
try {
extract(zipPath, {dir: folderPath});
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you need an await here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right yes...

}));
async function extractZip(zipPath, folderPath) {
try {
extract(zipPath, {dir: folderPath});
Copy link
Collaborator

Choose a reason for hiding this comment

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

same question here - await ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

src/BrowserFetcher.js Outdated Show resolved Hide resolved
@mathiasbynens mathiasbynens merged commit 1ce4fe7 into puppeteer:master Apr 9, 2020
@sjmtan
Copy link

sjmtan commented Apr 15, 2020

Is there an approximate release date for the package containing this fix?

Thanks!

benlowry added a commit to userdashboard/dashboard that referenced this pull request Apr 21, 2020
benlowry added a commit to userdashboard/maxmind-geoip that referenced this pull request Apr 21, 2020
benlowry added a commit to userdashboard/example-web-app that referenced this pull request Apr 21, 2020
benlowry added a commit to userdashboard/example-subscription-web-app that referenced this pull request Apr 21, 2020
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.

None yet

5 participants