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

core: await js-libraries detection #6141

Merged
merged 2 commits into from
Sep 28, 2018
Merged

core: await js-libraries detection #6141

merged 2 commits into from
Sep 28, 2018

Conversation

brendankenny
Copy link
Member

#6102 bumped our version of js-library-detector, but included in that latest version is the first async detector function, so we need to await the result (otherwise it always passes since the promise is truthy regardless of how it's resolved).

Arguably fixes #6125, as any other work will probably have to be upstream.

@brendankenny
Copy link
Member Author

credit to @exterkamp for the actual detective work on this :)

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

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

LGTM

@brendankenny
Copy link
Member Author

brendankenny commented Sep 28, 2018

added a smoke test for #6102 since we set up the dbw tester for no-vulnerable-libraries anyways. Should at least catch universal false positives like the workbox one found in #6102.

@brendankenny brendankenny merged commit 8b8cdbb into master Sep 28, 2018
@brendankenny brendankenny deleted the jslibs branch September 28, 2018 19:53
paulirish pushed a commit that referenced this pull request Oct 1, 2018
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.

Detected JavaScript libraries test fails to detect Workbox.js version number
3 participants