Conversation
|
cc @rviscomi to review the data format |
|
Looks good! This should be relatively easy to parse from within BQ. @rviscomi - any thoughts about whether this format makes it possible to flatten the list of frameworks down so it's more readily accessible (as columns)? |
|
we should also probably bump our version of the detector, last time I checked they were missing ~90% of react sites I tested and a few commits helped lower that significantly |
|
this is awesome :) |
Yeah with a user-generated function we're able to massage this formatting however we need. This format LGTM. |
yup. already on it: johnmichel/Library-Detector-for-Chrome#118 |
| @@ -0,0 +1,52 @@ | |||
| /** | |||
| * @license Copyright 2017 Google Inc. All Rights Reserved. | |||
| @@ -0,0 +1,64 @@ | |||
| /** | |||
| * @license Copyright 2017 Google Inc. All Rights Reserved. | |||
| }); | ||
| assert.equal(auditResult1.rawValue, true); | ||
|
|
||
| // duplicates. TODO: consider failing in this case |
There was a problem hiding this comment.
TODO: consider failing in this case
it's not that uncommon to have more than one jquery in one page. And if we merge network stuff from iframes, won't it be even more common?
| export type DetailsItem = string | number | DetailsRendererNodeDetailsJSON | | ||
| DetailsRendererLinkDetailsJSON | DetailsRendererCodeDetailJSON | undefined | | ||
| boolean | DetailsRendererUrlDetailsJSON; | ||
| boolean | DetailsRendererUrlDetailsJSON | null; |
exterkamp
left a comment
There was a problem hiding this comment.
LGTM, but does this new Audit need i18n on it's strings?
|
Need to update the sample-json with the new audit table? |
cc @housseindjirdeh
output in the LHR looks like this:
Details
{ "id": "js-libraries", "title": "JavaScript libraries", "description": "All detected front-end JavaScript libraries on the page", "score": 1, "scoreDisplayMode": "binary", "rawValue": true, "details": { "type": "table", "headings": [ { "key": "name", "itemType": "text", "text": "Name" }, { "key": "version", "itemType": "text", "text": "Version" } ], "items": [ { "name": "jQuery", "version": "1.12.4", "npm": "jquery" }, { "name": "jQuery UI", "version": "1.11.4", "npm": "jquery-ui" }, { "name": "Modernizr", "version": "2.6.2", "npm": "modernizr" }, { "name": "Underscore", "version": "1.8.3", "npm": "underscore" }, { "name": "FlexSlider", "version": null, "npm": "flexslider" } ], "summary": {} } }