lighthouse 10.2.0-dev.20230607 → 10.2.0-dev.20230609

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,6 +75,8 @@ class InspectorIssues extends FRGatherer {
75
75
  quirksModeIssue: [],
76
76
  cookieIssue: [],
77
77
  sharedArrayBufferIssue: [],
78
+ stylesheetLoadingIssue: [],
79
+ federatedAuthUserInfoRequestIssue: [],
78
80
  };
79
81
  const keys = /** @type {Array<keyof LH.Artifacts['InspectorIssues']>} */(Object.keys(artifact));
80
82
  for (const key of keys) {
@@ -705,7 +705,7 @@ class TraceProcessor {
705
705
  return Boolean(
706
706
  evt.name === 'FrameCommittedInBrowser' &&
707
707
  evt.args.data?.frame &&
708
- evt.args.data.url
708
+ evt.args.data.url !== undefined
709
709
  );
710
710
  }).forEach(evt => {
711
711
  framesById.set(evt.args.data.frame, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "10.2.0-dev.20230607",
4
+ "version": "10.2.0-dev.20230609",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -143,7 +143,7 @@
143
143
  "cpy": "^8.1.2",
144
144
  "cross-env": "^7.0.2",
145
145
  "csv-validator": "^0.0.3",
146
- "es-main": "^1.0.2",
146
+ "es-main": "^1.2.0",
147
147
  "eslint": "^8.4.1",
148
148
  "eslint-config-google": "^0.14.0",
149
149
  "eslint-formatter-codeframe": "^7.32.1",
@@ -169,7 +169,7 @@
169
169
  "pako": "^2.0.3",
170
170
  "preact": "^10.7.2",
171
171
  "pretty-json-stringify": "^0.0.2",
172
- "puppeteer": "^20.1.0",
172
+ "puppeteer": "^20.5.0",
173
173
  "resolve": "^1.20.0",
174
174
  "rollup": "^2.52.7",
175
175
  "rollup-plugin-node-resolve": "^5.2.0",
@@ -191,7 +191,7 @@
191
191
  "chrome-launcher": "^0.15.2",
192
192
  "configstore": "^5.0.1",
193
193
  "csp_evaluator": "1.1.1",
194
- "devtools-protocol": "0.0.1130274",
194
+ "devtools-protocol": "0.0.1155343",
195
195
  "enquirer": "^2.3.6",
196
196
  "http-link-header": "^1.1.1",
197
197
  "intl-messageformat": "^4.4.0",
@@ -205,7 +205,7 @@
205
205
  "open": "^8.4.0",
206
206
  "parse-cache-control": "1.0.1",
207
207
  "ps-list": "^8.0.0",
208
- "puppeteer-core": "^20.1.0",
208
+ "puppeteer-core": "^20.5.0",
209
209
  "robots-parser": "^3.0.0",
210
210
  "semver": "^5.3.0",
211
211
  "speedline-core": "^1.4.3",
@@ -215,8 +215,8 @@
215
215
  "yargs-parser": "^21.0.0"
216
216
  },
217
217
  "resolutions": {
218
- "puppeteer/**/devtools-protocol": "0.0.1130274",
219
- "puppeteer-core/**/devtools-protocol": "0.0.1130274"
218
+ "puppeteer/**/devtools-protocol": "0.0.1155343",
219
+ "puppeteer-core/**/devtools-protocol": "0.0.1155343"
220
220
  },
221
221
  "repository": "GoogleChrome/lighthouse",
222
222
  "keywords": [
package/readme.md CHANGED
@@ -297,6 +297,12 @@ for more info.
297
297
  # lint and test all files
298
298
  yarn test
299
299
 
300
+ # run all unit tests
301
+ yarn unit
302
+
303
+ # run a given unit test (e.g. core/test/audits/byte-efficiency/uses-long-cache-ttl-test.js)
304
+ yarn mocha uses-long-cache-ttl
305
+
300
306
  # watch for file changes and run tests
301
307
  # Requires http://entrproject.org : brew install entr
302
308
  yarn watch
@@ -41,6 +41,7 @@ Array [
41
41
  "corsIssueDetails",
42
42
  "deprecationIssueDetails",
43
43
  "federatedAuthRequestIssueDetails",
44
+ "federatedAuthUserInfoRequestIssueDetails",
44
45
  "genericIssueDetails",
45
46
  "heavyAdIssueDetails",
46
47
  "lowTextContrastIssueDetails",
@@ -48,6 +49,7 @@ Array [
48
49
  "navigatorUserAgentIssueDetails",
49
50
  "quirksModeIssueDetails",
50
51
  "sharedArrayBufferIssueDetails",
52
+ "stylesheetLoadingIssueDetails",
51
53
  ]
52
54
  `);
53
55
  });
@@ -618,6 +618,8 @@ declare module Artifacts {
618
618
  quirksModeIssue: Crdp.Audits.QuirksModeIssueDetails[];
619
619
  cookieIssue: Crdp.Audits.CookieIssueDetails[];
620
620
  sharedArrayBufferIssue: Crdp.Audits.SharedArrayBufferIssueDetails[];
621
+ stylesheetLoadingIssue: Crdp.Audits.StylesheetLoadingIssueDetails[];
622
+ federatedAuthUserInfoRequestIssue: Crdp.Audits.FederatedAuthUserInfoRequestIssueDetails[];
621
623
  }
622
624
 
623
625
  // Computed artifact types below.
@@ -1,18 +0,0 @@
1
- /**
2
- * @license Copyright 2021 The Lighthouse Authors. All Rights Reserved.
3
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
- */
6
-
7
- /**
8
- * @fileoverview Types for the `es-main` npm module.
9
- */
10
-
11
- /**
12
- * Test if an ES module is run directly with Node.js.
13
- * @param importMeta `import.meta`
14
- */
15
- declare function esMain(importMeta: ImportMeta): boolean;
16
- declare module 'es-main' {
17
- export = esMain;
18
- }