lighthouse 9.5.0-dev.20220920 → 9.5.0-dev.20220921

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.
Files changed (61) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/cli/bin.js +1 -1
  3. package/core/{fraggle-rock/api.js → api.js} +2 -2
  4. package/core/config/config-helpers.js +1 -1
  5. package/core/{fraggle-rock/config → config}/config.js +6 -6
  6. package/core/{fraggle-rock/config → config}/filters.js +1 -1
  7. package/core/{fraggle-rock/config → config}/validation.js +2 -2
  8. package/core/{fraggle-rock/gather → gather}/base-artifacts.js +1 -1
  9. package/core/{fraggle-rock/gather → gather}/base-gatherer.js +0 -0
  10. package/core/gather/driver/target-manager.js +1 -1
  11. package/core/{fraggle-rock/gather → gather}/driver.js +3 -3
  12. package/core/gather/gatherers/accessibility.js +1 -1
  13. package/core/gather/gatherers/anchor-elements.js +1 -1
  14. package/core/gather/gatherers/cache-contents.js +1 -1
  15. package/core/gather/gatherers/console-messages.js +1 -1
  16. package/core/gather/gatherers/css-usage.js +1 -1
  17. package/core/gather/gatherers/devtools-log-compat.js +1 -1
  18. package/core/gather/gatherers/devtools-log.js +1 -1
  19. package/core/gather/gatherers/dobetterweb/doctype.js +1 -1
  20. package/core/gather/gatherers/dobetterweb/domstats.js +1 -1
  21. package/core/gather/gatherers/dobetterweb/optimized-images.js +1 -1
  22. package/core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.js +1 -1
  23. package/core/gather/gatherers/dobetterweb/response-compression.js +1 -1
  24. package/core/gather/gatherers/dobetterweb/tags-blocking-first-paint.js +1 -1
  25. package/core/gather/gatherers/full-page-screenshot.js +1 -1
  26. package/core/gather/gatherers/global-listeners.js +1 -1
  27. package/core/gather/gatherers/iframe-elements.js +1 -1
  28. package/core/gather/gatherers/image-elements.js +1 -1
  29. package/core/gather/gatherers/inputs.js +1 -1
  30. package/core/gather/gatherers/inspector-issues.js +1 -1
  31. package/core/gather/gatherers/installability-errors.js +1 -1
  32. package/core/gather/gatherers/js-usage.js +1 -1
  33. package/core/gather/gatherers/link-elements.js +1 -1
  34. package/core/gather/gatherers/main-document-content.js +1 -1
  35. package/core/gather/gatherers/meta-elements.js +1 -1
  36. package/core/gather/gatherers/network-user-agent.js +1 -1
  37. package/core/gather/gatherers/script-elements.js +1 -1
  38. package/core/gather/gatherers/scripts.js +1 -1
  39. package/core/gather/gatherers/seo/embedded-content.js +1 -1
  40. package/core/gather/gatherers/seo/font-size.js +1 -1
  41. package/core/gather/gatherers/seo/robots-txt.js +1 -1
  42. package/core/gather/gatherers/seo/tap-targets.js +1 -1
  43. package/core/gather/gatherers/service-worker.js +1 -1
  44. package/core/gather/gatherers/source-maps.js +1 -1
  45. package/core/gather/gatherers/stacks.js +1 -1
  46. package/core/gather/gatherers/trace-compat.js +1 -1
  47. package/core/gather/gatherers/trace-elements.js +1 -1
  48. package/core/gather/gatherers/trace.js +1 -1
  49. package/core/gather/gatherers/viewport-dimensions.js +1 -1
  50. package/core/gather/gatherers/web-app-manifest.js +1 -1
  51. package/core/{fraggle-rock/gather → gather}/navigation-runner.js +13 -13
  52. package/core/{fraggle-rock/gather → gather}/runner-helpers.js +0 -0
  53. package/core/{fraggle-rock/gather → gather}/session.js +1 -1
  54. package/core/{fraggle-rock/gather → gather}/snapshot-runner.js +1 -1
  55. package/core/{fraggle-rock/gather → gather}/timespan-runner.js +2 -2
  56. package/core/index.js +3 -3
  57. package/core/legacy/config/config.js +1 -1
  58. package/core/legacy/gather/gather-runner.js +1 -1
  59. package/core/{fraggle-rock/user-flow.js → user-flow.js} +2 -2
  60. package/package.json +1 -1
  61. package/types/user-flow.d.ts +1 -1
package/CONTRIBUTING.md CHANGED
@@ -128,7 +128,7 @@ accept your pull requests.
128
128
 
129
129
  ## Tracking Errors
130
130
 
131
- We track our errors in the wild with Sentry. In general, do not worry about wrapping your audits or gatherers in try/catch blocks and reporting every error that could possibly occur; `core/runner.js` and `core/fraggle-rock/gather/*-runner.js` already catch and report any errors that occur while running a gatherer or audit, including errors fatal to the entire run. However, there are some situations when you might want to explicitly handle an error and report it to Sentry or wrap it to avoid reporting. Generally, you can interact with Sentry simply by requiring the `core/lib/sentry.js` file and call its methods. The module exports a delegate that will correctly handle the error reporting based on the user's opt-in preference and will simply no-op if they haven't so you don't need to check.
131
+ We track our errors in the wild with Sentry. In general, do not worry about wrapping your audits or gatherers in try/catch blocks and reporting every error that could possibly occur; `core/runner.js` and `core/gather/*-runner.js` already catch and report any errors that occur while running a gatherer or audit, including errors fatal to the entire run. However, there are some situations when you might want to explicitly handle an error and report it to Sentry or wrap it to avoid reporting. Generally, you can interact with Sentry simply by requiring the `core/lib/sentry.js` file and call its methods. The module exports a delegate that will correctly handle the error reporting based on the user's opt-in preference and will simply no-op if they haven't so you don't need to check.
132
132
 
133
133
 
134
134
  #### If you have an expected error that is recoverable but want to track how frequently it happens, *use Sentry.captureException*.
package/cli/bin.js CHANGED
@@ -31,7 +31,7 @@ import {generateConfig, generateLegacyConfig} from '../core/index.js';
31
31
  import {askPermission} from './sentry-prompt.js';
32
32
  import {LH_ROOT} from '../root.js';
33
33
  import {Sentry} from '../core/lib/sentry.js';
34
- import {getConfigDisplayString} from '../core/fraggle-rock/config/config.js';
34
+ import {getConfigDisplayString} from '../core/config/config.js';
35
35
 
36
36
  const pkg = JSON.parse(fs.readFileSync(LH_ROOT + '/package.json', 'utf-8'));
37
37
 
@@ -8,8 +8,8 @@ import {UserFlow, auditGatherSteps} from './user-flow.js';
8
8
  import {snapshotGather} from './gather/snapshot-runner.js';
9
9
  import {startTimespanGather} from './gather/timespan-runner.js';
10
10
  import {navigationGather} from './gather/navigation-runner.js';
11
- import {ReportGenerator} from '../../report/generator/report-generator.js';
12
- import {Runner} from '../runner.js';
11
+ import {ReportGenerator} from '../report/generator/report-generator.js';
12
+ import {Runner} from './runner.js';
13
13
 
14
14
  /**
15
15
  * @param {LH.Puppeteer.Page} page
@@ -14,7 +14,7 @@ import {Budget} from './budget.js';
14
14
  import ConfigPlugin from './config-plugin.js';
15
15
  import {Runner} from '../runner.js';
16
16
  import * as i18n from '../lib/i18n/i18n.js';
17
- import * as validation from '../fraggle-rock/config/validation.js';
17
+ import * as validation from './validation.js';
18
18
  import {getModuleDirectory} from '../../esm-utils.js';
19
19
 
20
20
  const require = createRequire(import.meta.url);
@@ -8,9 +8,9 @@ import path from 'path';
8
8
 
9
9
  import log from 'lighthouse-logger';
10
10
 
11
- import {Runner} from '../../runner.js';
12
- import defaultConfig from '../../config/default-config.js';
13
- import {defaultNavigationConfig, nonSimulatedPassConfigOverrides} from '../../config/constants.js'; // eslint-disable-line max-len
11
+ import {Runner} from '../runner.js';
12
+ import defaultConfig from './default-config.js';
13
+ import {defaultNavigationConfig, nonSimulatedPassConfigOverrides} from './constants.js'; // eslint-disable-line max-len
14
14
  import {
15
15
  isFRGathererDefn,
16
16
  throwInvalidDependencyOrder,
@@ -28,9 +28,9 @@ import {
28
28
  mergePlugins,
29
29
  mergeConfigFragment,
30
30
  mergeConfigFragmentArrayByKey,
31
- } from '../../config/config-helpers.js';
32
- import {getModuleDirectory} from '../../../esm-utils.js';
33
- import * as format from '../../../shared/localization/format.js';
31
+ } from './config-helpers.js';
32
+ import {getModuleDirectory} from '../../esm-utils.js';
33
+ import * as format from '../../shared/localization/format.js';
34
34
 
35
35
  const defaultConfigPath = path.join(
36
36
  getModuleDirectory(import.meta),
@@ -6,7 +6,7 @@
6
6
 
7
7
  import log from 'lighthouse-logger';
8
8
 
9
- import {Audit} from '../../audits/audit.js';
9
+ import {Audit} from '../audits/audit.js';
10
10
 
11
11
  /** @type {Record<keyof LH.FRBaseArtifacts, string>} */
12
12
  const baseArtifactKeySource = {
@@ -4,9 +4,9 @@
4
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
5
  */
6
6
 
7
- import {Audit} from '../../audits/audit.js';
7
+ import {Audit} from '../audits/audit.js';
8
8
  import BaseFRGatherer from '../gather/base-gatherer.js';
9
- import * as i18n from '../../lib/i18n/i18n.js';
9
+ import * as i18n from '../lib/i18n/i18n.js';
10
10
 
11
11
  /**
12
12
  * @param {LH.Config.GathererDefn | LH.Config.AnyFRGathererDefn} gathererDefn
@@ -9,7 +9,7 @@ import isDeepEqual from 'lodash/isEqual.js';
9
9
 
10
10
  import {
11
11
  getBrowserVersion, getBenchmarkIndex, getEnvironmentWarnings,
12
- } from '../../gather/driver/environment.js';
12
+ } from './driver/environment.js';
13
13
 
14
14
  /**
15
15
  * @param {LH.Config.FRConfig} config
@@ -13,7 +13,7 @@ import EventEmitter from 'events';
13
13
 
14
14
  import log from 'lighthouse-logger';
15
15
 
16
- import {ProtocolSession} from '../../fraggle-rock/gather/session.js';
16
+ import {ProtocolSession} from '../session.js';
17
17
 
18
18
  /**
19
19
  * @typedef {{
@@ -6,9 +6,9 @@
6
6
 
7
7
  import log from 'lighthouse-logger';
8
8
 
9
- import {ExecutionContext} from '../../gather/driver/execution-context.js';
10
- import {TargetManager} from '../../gather/driver/target-manager.js';
11
- import {Fetcher} from '../../gather/fetcher.js';
9
+ import {ExecutionContext} from './driver/execution-context.js';
10
+ import {TargetManager} from './driver/target-manager.js';
11
+ import {Fetcher} from './fetcher.js';
12
12
 
13
13
  /** @return {*} */
14
14
  const throwNotConnectedFn = () => {
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global window, document, getNodeDetails */
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
  import {axeSource} from '../../lib/axe.js';
11
11
  import {pageFunctions} from '../../lib/page-functions.js';
12
12
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global getNodeDetails */
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
  import {pageFunctions} from '../../lib/page-functions.js';
11
11
  import {resolveDevtoolsNodePathToObjectId} from '../driver/dom.js';
12
12
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global caches */
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
 
11
11
  /**
12
12
  * @return {Promise<Array<string>>}
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
 
13
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
13
+ import FRGatherer from '../base-gatherer.js';
14
14
 
15
15
  /**
16
16
  * @param {LH.Crdp.Runtime.RemoteObject} obj
@@ -10,7 +10,7 @@
10
10
 
11
11
  import log from 'lighthouse-logger';
12
12
 
13
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
13
+ import FRGatherer from '../base-gatherer.js';
14
14
  import {Sentry} from '../../lib/sentry.js';
15
15
 
16
16
  class CSSUsage extends FRGatherer {
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import DevtoolsLogGatherer from './devtools-log.js';
14
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
14
+ import FRGatherer from '../base-gatherer.js';
15
15
 
16
16
  /** @implements {LH.Gatherer.FRGathererInstance<'DevtoolsLog'>} */
17
17
  class DevtoolsLogCompat extends FRGatherer {
@@ -10,7 +10,7 @@
10
10
  * This protocol log can be used to recreate the network records using lib/network-recorder.js.
11
11
  */
12
12
 
13
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
13
+ import FRGatherer from '../base-gatherer.js';
14
14
 
15
15
  class DevtoolsLog extends FRGatherer {
16
16
  static symbol = Symbol('DevtoolsLog');
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../../base-gatherer.js';
8
8
 
9
9
  /* global document */
10
10
 
@@ -12,7 +12,7 @@
12
12
  /* global getNodeDetails document */
13
13
 
14
14
 
15
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
15
+ import FRGatherer from '../../base-gatherer.js';
16
16
  import {pageFunctions} from '../../../lib/page-functions.js';
17
17
 
18
18
  /**
@@ -12,7 +12,7 @@
12
12
 
13
13
  import log from 'lighthouse-logger';
14
14
 
15
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
15
+ import FRGatherer from '../../base-gatherer.js';
16
16
  import UrlUtils from '../../../lib/url-utils.js';
17
17
  import {NetworkRequest} from '../../../lib/network-request.js';
18
18
  import {Sentry} from '../../../lib/sentry.js';
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global document ClipboardEvent getNodeDetails */
8
8
 
9
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../../base-gatherer.js';
10
10
  import {pageFunctions} from '../../../lib/page-functions.js';
11
11
 
12
12
  /**
@@ -13,7 +13,7 @@
13
13
  import {Buffer} from 'buffer';
14
14
  import {gzip} from 'zlib';
15
15
 
16
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
16
+ import FRGatherer from '../../base-gatherer.js';
17
17
  import UrlUtils from '../../../lib/url-utils.js';
18
18
  import {Sentry} from '../../../lib/sentry.js';
19
19
  import {NetworkRequest} from '../../../lib/network-request.js';
@@ -19,7 +19,7 @@
19
19
 
20
20
  import {NetworkRecords} from '../../../computed/network-records.js';
21
21
  import DevtoolsLog from '../devtools-log.js';
22
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
22
+ import FRGatherer from '../../base-gatherer.js';
23
23
 
24
24
  /* global document, window, HTMLLinkElement, SVGScriptElement */
25
25
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* globals window document getBoundingClientRect requestAnimationFrame */
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
  import * as emulation from '../../lib/emulation.js';
11
11
  import {pageFunctions} from '../../lib/page-functions.js';
12
12
  import {NetworkMonitor} from '../driver/network-monitor.js';
@@ -11,7 +11,7 @@
11
11
  * around page unload, but this can be expanded in the future.
12
12
  */
13
13
 
14
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
14
+ import FRGatherer from '../base-gatherer.js';
15
15
 
16
16
  class GlobalListeners extends FRGatherer {
17
17
  /** @type {LH.Gatherer.GathererMeta} */
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global getNodeDetails */
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
  import {pageFunctions} from '../../lib/page-functions.js';
11
11
 
12
12
  /* eslint-env browser, node */
@@ -11,7 +11,7 @@
11
11
 
12
12
  import log from 'lighthouse-logger';
13
13
 
14
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
14
+ import FRGatherer from '../base-gatherer.js';
15
15
  import {pageFunctions} from '../../lib/page-functions.js';
16
16
  import * as FontSize from './seo/font-size.js';
17
17
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global getNodeDetails */
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
  import {pageFunctions} from '../../lib/page-functions.js';
11
11
 
12
12
  /* eslint-env browser, node */
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
 
12
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
12
+ import FRGatherer from '../base-gatherer.js';
13
13
  import {NetworkRecords} from '../../computed/network-records.js';
14
14
  import DevtoolsLog from './devtools-log.js';
15
15
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  import log from 'lighthouse-logger';
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
 
11
11
  class InstallabilityErrors extends FRGatherer {
12
12
  /** @type {LH.Gatherer.GathererMeta} */
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
 
9
9
  /**
10
10
  * @fileoverview Tracks unused JavaScript
@@ -6,7 +6,7 @@
6
6
 
7
7
  import LinkHeader from 'http-link-header';
8
8
 
9
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../base-gatherer.js';
10
10
  import {pageFunctions} from '../../lib/page-functions.js';
11
11
  import DevtoolsLog from './devtools-log.js';
12
12
  import {MainResource} from '../../computed/main-resource.js';
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
  import DevtoolsLog from './devtools-log.js';
9
9
  import {fetchResponseBodyFromCache} from '../driver/network.js';
10
10
  import {MainResource} from '../../computed/main-resource.js';
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
  import {pageFunctions} from '../../lib/page-functions.js';
9
9
 
10
10
  /* globals getElementsInDocument getNodeDetails */
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
  import DevtoolsLogGatherer from './devtools-log.js';
9
9
 
10
10
  /** @implements {LH.Gatherer.FRGathererInstance<'DevtoolsLog'>} */
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
  import {NetworkRecords} from '../../computed/network-records.js';
9
9
  import {NetworkRequest} from '../../lib/network-request.js';
10
10
  import {pageFunctions} from '../../lib/page-functions.js';
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
 
9
9
  /**
10
10
  * @template T, U
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* globals getElementsInDocument getNodeDetails */
8
8
 
9
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../../base-gatherer.js';
10
10
  import {pageFunctions} from '../../../lib/page-functions.js';
11
11
 
12
12
  /**
@@ -15,7 +15,7 @@
15
15
  * This gatherer collects stylesheet metadata by itself, instead of relying on the styles gatherer which is slow (because it parses the stylesheet content).
16
16
  */
17
17
 
18
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
18
+ import FRGatherer from '../../base-gatherer.js';
19
19
 
20
20
  const FONT_SIZE_PROPERTY_NAME = 'font-size';
21
21
  const MINIMAL_LEGIBLE_FONT_SIZE_PX = 12;
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../../base-gatherer.js';
8
8
 
9
9
  class RobotsTxt extends FRGatherer {
10
10
  /** @type {LH.Gatherer.GathererMeta} */
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* global document, window, getComputedStyle, getElementsInDocument, Node, getNodeDetails, getRectCenterPoint */
8
8
 
9
- import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
9
+ import FRGatherer from '../../base-gatherer.js';
10
10
  import {pageFunctions} from '../../../lib/page-functions.js';
11
11
  import * as RectHelpers from '../../../lib/rect-helpers.js';
12
12
 
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
  import * as serviceWorkers from '../driver/service-workers.js';
9
9
 
10
10
  class ServiceWorker extends FRGatherer {
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
 
9
9
  /**
10
10
  * @fileoverview Gets JavaScript source maps.
@@ -16,7 +16,7 @@ import {createRequire} from 'module';
16
16
 
17
17
  import log from 'lighthouse-logger';
18
18
 
19
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
19
+ import FRGatherer from '../base-gatherer.js';
20
20
 
21
21
 
22
22
  // This is removed by rollup, because the only usage is to resolve a module path
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import TraceGatherer from './trace.js';
14
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
14
+ import FRGatherer from '../base-gatherer.js';
15
15
 
16
16
  /** @implements {LH.Gatherer.FRGathererInstance<'Trace'>} */
17
17
  class TraceCompat extends FRGatherer {
@@ -12,7 +12,7 @@
12
12
  * We take the backend nodeId from the trace and use it to find the corresponding element in the DOM.
13
13
  */
14
14
 
15
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
15
+ import FRGatherer from '../base-gatherer.js';
16
16
  import {resolveNodeIdToObjectId} from '../driver/dom.js';
17
17
  import {pageFunctions} from '../../lib/page-functions.js';
18
18
  import * as RectHelpers from '../../lib/rect-helpers.js';
@@ -10,7 +10,7 @@
10
10
  * This protocol log can be used to recreate the network records using lib/network-recorder.js.
11
11
  */
12
12
 
13
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
13
+ import FRGatherer from '../base-gatherer.js';
14
14
  import {TraceProcessor} from '../../lib/tracehouse/trace-processor.js';
15
15
 
16
16
  class Trace extends FRGatherer {
@@ -4,7 +4,7 @@
4
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
5
  */
6
6
 
7
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
7
+ import FRGatherer from '../base-gatherer.js';
8
8
 
9
9
  /* global window */
10
10
 
@@ -7,7 +7,7 @@
7
7
  import log from 'lighthouse-logger';
8
8
 
9
9
  import {parseManifest} from '../../lib/manifest-parser.js';
10
- import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
10
+ import FRGatherer from '../base-gatherer.js';
11
11
 
12
12
  class WebAppManifest extends FRGatherer {
13
13
  /** @type {LH.Gatherer.GathererMeta} */
@@ -8,22 +8,22 @@ import puppeteer from 'puppeteer-core';
8
8
  import log from 'lighthouse-logger';
9
9
 
10
10
  import {Driver} from './driver.js';
11
- import {Runner} from '../../runner.js';
11
+ import {Runner} from '../runner.js';
12
12
  import {getEmptyArtifactState, collectPhaseArtifacts, awaitArtifacts} from './runner-helpers.js';
13
- import * as prepare from '../../gather/driver/prepare.js';
14
- import {gotoURL} from '../../gather/driver/navigation.js';
15
- import * as storage from '../../gather/driver/storage.js';
16
- import * as emulation from '../../lib/emulation.js';
17
- import {defaultNavigationConfig} from '../../config/constants.js';
13
+ import * as prepare from './driver/prepare.js';
14
+ import {gotoURL} from './driver/navigation.js';
15
+ import * as storage from './driver/storage.js';
16
+ import * as emulation from '../lib/emulation.js';
17
+ import {defaultNavigationConfig} from '../config/constants.js';
18
18
  import {initializeConfig} from '../config/config.js';
19
19
  import {getBaseArtifacts, finalizeArtifacts} from './base-artifacts.js';
20
- import * as format from '../../../shared/localization/format.js';
21
- import {LighthouseError} from '../../lib/lh-error.js';
22
- import UrlUtils from '../../lib/url-utils.js';
23
- import {getPageLoadError} from '../../lib/navigation-error.js';
24
- import Trace from '../../gather/gatherers/trace.js';
25
- import DevtoolsLog from '../../gather/gatherers/devtools-log.js';
26
- import {NetworkRecords} from '../../computed/network-records.js';
20
+ import * as format from '../../shared/localization/format.js';
21
+ import {LighthouseError} from '../lib/lh-error.js';
22
+ import UrlUtils from '../lib/url-utils.js';
23
+ import {getPageLoadError} from '../lib/navigation-error.js';
24
+ import Trace from './gatherers/trace.js';
25
+ import DevtoolsLog from './gatherers/devtools-log.js';
26
+ import {NetworkRecords} from '../computed/network-records.js';
27
27
 
28
28
  /**
29
29
  * @typedef NavigationContext
@@ -6,7 +6,7 @@
6
6
 
7
7
  import EventEmitter from 'events';
8
8
 
9
- import {LighthouseError} from '../../lib/lh-error.js';
9
+ import {LighthouseError} from '../lib/lh-error.js';
10
10
 
11
11
  // Controls how long to wait for a response after sending a DevTools protocol command.
12
12
  const DEFAULT_PROTOCOL_TIMEOUT = 30000;
@@ -7,7 +7,7 @@
7
7
  import log from 'lighthouse-logger';
8
8
 
9
9
  import {Driver} from './driver.js';
10
- import {Runner} from '../../runner.js';
10
+ import {Runner} from '../runner.js';
11
11
  import {getEmptyArtifactState, collectPhaseArtifacts, awaitArtifacts} from './runner-helpers.js';
12
12
  import {initializeConfig} from '../config/config.js';
13
13
  import {getBaseArtifacts, finalizeArtifacts} from './base-artifacts.js';
@@ -7,9 +7,9 @@
7
7
  import log from 'lighthouse-logger';
8
8
 
9
9
  import {Driver} from './driver.js';
10
- import {Runner} from '../../runner.js';
10
+ import {Runner} from '../runner.js';
11
11
  import {getEmptyArtifactState, collectPhaseArtifacts, awaitArtifacts} from './runner-helpers.js';
12
- import {prepareTargetForTimespanMode} from '../../gather/driver/prepare.js';
12
+ import {prepareTargetForTimespanMode} from './driver/prepare.js';
13
13
  import {initializeConfig} from '../config/config.js';
14
14
  import {getBaseArtifacts, finalizeArtifacts} from './base-artifacts.js';
15
15
 
package/core/index.js CHANGED
@@ -10,9 +10,9 @@ import {Runner} from './runner.js';
10
10
  import {CriConnection} from './legacy/gather/connections/cri.js';
11
11
  import {Config} from './legacy/config/config.js';
12
12
  import UrlUtils from './lib/url-utils.js';
13
- import * as fraggleRock from './fraggle-rock/api.js';
13
+ import * as fraggleRock from './api.js';
14
14
  import {Driver} from './legacy/gather/driver.js';
15
- import {initializeConfig} from './fraggle-rock/config/config.js';
15
+ import {initializeConfig} from './config/config.js';
16
16
 
17
17
  /** @typedef {import('./legacy/gather/connections/connection.js').Connection} Connection */
18
18
 
@@ -109,7 +109,7 @@ const traceCategories = Driver.traceCategories;
109
109
 
110
110
  export default lighthouse;
111
111
  export {Audit} from './audits/audit.js';
112
- export {default as Gatherer} from './fraggle-rock/gather/base-gatherer.js';
112
+ export {default as Gatherer} from './gather/base-gatherer.js';
113
113
  export {NetworkRecords} from './computed/network-records.js';
114
114
  export {
115
115
  legacyNavigation,
@@ -11,7 +11,7 @@ import log from 'lighthouse-logger';
11
11
  import legacyDefaultConfig from './legacy-default-config.js';
12
12
  import * as constants from '../../config/constants.js';
13
13
  import * as format from '../../../shared/localization/format.js';
14
- import * as validation from '../../fraggle-rock/config/validation.js';
14
+ import * as validation from '../../config/validation.js';
15
15
  import {Runner} from '../../runner.js';
16
16
  import {
17
17
  mergePlugins,
@@ -20,7 +20,7 @@ import WebAppManifest from '../../gather/gatherers/web-app-manifest.js';
20
20
  import InstallabilityErrors from '../../gather/gatherers/installability-errors.js';
21
21
  import NetworkUserAgent from '../../gather/gatherers/network-user-agent.js';
22
22
  import Stacks from '../../gather/gatherers/stacks.js';
23
- import {finalizeArtifacts} from '../../fraggle-rock/gather/base-artifacts.js';
23
+ import {finalizeArtifacts} from '../../gather/base-artifacts.js';
24
24
  import UrlUtils from '../../lib/url-utils.js';
25
25
 
26
26
  /** @typedef {import('./driver.js').Driver} Driver */
@@ -4,11 +4,11 @@
4
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
5
  */
6
6
 
7
- import {ReportGenerator} from '../../report/generator/report-generator.js';
7
+ import {ReportGenerator} from '../report/generator/report-generator.js';
8
8
  import {snapshotGather} from './gather/snapshot-runner.js';
9
9
  import {startTimespanGather} from './gather/timespan-runner.js';
10
10
  import {navigationGather} from './gather/navigation-runner.js';
11
- import {Runner} from '../runner.js';
11
+ import {Runner} from './runner.js';
12
12
  import {initializeConfig} from './config/config.js';
13
13
 
14
14
  /** @typedef {Parameters<snapshotGather>[0]} FrOptions */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "9.5.0-dev.20220920",
4
+ "version": "9.5.0-dev.20220921",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -1,4 +1,4 @@
1
- import {UserFlow as UserFlow_} from '../core/fraggle-rock/user-flow';
1
+ import {UserFlow as UserFlow_} from '../core/user-flow';
2
2
 
3
3
  declare module UserFlow {
4
4
  export interface FlowArtifacts {