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
Extension backport #49
Conversation
…into extension-backport
var flattenedAudits = results.reduce(function(prev, curr) { | ||
class Auditor { | ||
|
||
flattenArtifacts_(artifacts) { |
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.
lets _ prefix this just to mark it as "private"
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.
https://google.github.io/styleguide/javascriptguide.xml#Visibility__private_and_protected_fields_ indicates that private and protected are suffixed not prefixed :-/
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.
let's do something at least
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.
Done.
const manifest = manifestParser(inputs.manifest).value; | ||
|
||
if (manifest && manifest.icons) { | ||
const icons192 = manifest.icons.raw.find(function(i) { |
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.
nit i => e.sizes === '192x192'
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.
Done.
"manifest_version": 2, | ||
"description": "__MSG_appDescription__", |
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.
this was for internationalization which we might want to continue using :)
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.
Did not know. Will fix.
Extension backport and refactor.
Closes #48 - @brendankenny I folded you work into what I was doing, as discussed. |
var flattenedAudits = results.reduce(function(prev, curr) { | ||
class Auditor { | ||
|
||
_flattenArtifacts(artifacts) { |
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.
these should be static
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.
Why?
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.
ha, I didn't mean to state that so strongly. More like they can be static since they aren't keeping track of state or anything
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.
It's fine. I changed it.
const manifest = manifestParser(inputs.manifest).value; | ||
|
||
if (manifest) { | ||
hasName = (!!manifest.name); |
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.
!!manifest.name.value
Builds on @brendankenny's patch; does a total refactor of many things.
But now.... 🌟 The extension and node versions share the same audits! 🌟
🎉