lighthouse 11.0.0-dev.20230828 → 11.0.0-dev.20230829

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.
@@ -16,7 +16,7 @@ import ConfigPlugin from './config-plugin.js';
16
16
  import {Runner} from '../runner.js';
17
17
  import * as i18n from '../lib/i18n/i18n.js';
18
18
  import * as validation from './validation.js';
19
- import {getModuleDirectory} from '../../esm-utils.js';
19
+ import {getModuleDirectory} from '../../shared/esm-utils.js';
20
20
 
21
21
  const require = createRequire(import.meta.url);
22
22
 
@@ -28,7 +28,7 @@ import {
28
28
  mergeConfigFragment,
29
29
  mergeConfigFragmentArrayByKey,
30
30
  } from './config-helpers.js';
31
- import {getModuleDirectory} from '../../esm-utils.js';
31
+ import {getModuleDirectory} from '../../shared/esm-utils.js';
32
32
  import * as format from '../../shared/localization/format.js';
33
33
 
34
34
  const defaultConfigPath = path.join(
@@ -15,7 +15,7 @@ import log from 'lighthouse-logger';
15
15
  import {getAvailableLocales} from '../../../shared/localization/format.js';
16
16
  import {LH_ROOT} from '../../../root.js';
17
17
  import {isIcuMessage, formatMessage, DEFAULT_LOCALE} from '../../../shared/localization/format.js';
18
- import {getModulePath} from '../../../esm-utils.js';
18
+ import {getModulePath} from '../../../shared/esm-utils.js';
19
19
 
20
20
  const UIStrings = {
21
21
  /** Used to show the duration in milliseconds that something lasted. The `{timeInMs}` placeholder will be replaced with the time duration, shown in milliseconds (e.g. 63 ms) */
package/core/runner.js CHANGED
@@ -20,7 +20,7 @@ import {Sentry} from './lib/sentry.js';
20
20
  import {ReportGenerator} from '../report/generator/report-generator.js';
21
21
  import {LighthouseError} from './lib/lh-error.js';
22
22
  import {lighthouseVersion} from '../root.js';
23
- import {getModuleDirectory} from '../esm-utils.js';
23
+ import {getModuleDirectory} from '../shared/esm-utils.js';
24
24
  import {EntityClassification} from './computed/entity-classification.js';
25
25
  import UrlUtils from './lib/url-utils.js';
26
26
 
@@ -21,7 +21,6 @@
21
21
  "./types",
22
22
  "../types/internal/test.d.ts",
23
23
  "../root.js",
24
- "../esm-utils.js",
25
24
  "../core/test/test-env/fake-timers.js",
26
25
  ],
27
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "11.0.0-dev.20230828",
4
+ "version": "11.0.0-dev.20230829",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -7,7 +7,7 @@
7
7
 
8
8
  import fs from 'fs';
9
9
 
10
- import {getModuleDirectory} from '../../esm-utils.js';
10
+ import {getModuleDirectory} from '../../shared/esm-utils.js';
11
11
 
12
12
  const moduleDir = getModuleDirectory(import.meta);
13
13
 
@@ -8,7 +8,7 @@
8
8
  import fs from 'fs';
9
9
 
10
10
  import {flowReportAssets} from './flow-report-assets.js';
11
- import {getModuleDirectory} from '../../esm-utils.js';
11
+ import {getModuleDirectory} from '../../shared/esm-utils.js';
12
12
 
13
13
  const moduleDir = getModuleDirectory(import.meta);
14
14
 
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "references": [
10
10
  {"path": "../../types/lhr/"},
11
+ {"path": "../../shared/"},
11
12
  ],
12
13
  "include": [
13
14
  "**/*.js",
14
- "../../esm-utils.js",
15
15
  ],
16
16
  }
package/root.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  import fs from 'fs';
8
8
 
9
- import {getModuleDirectory} from './esm-utils.js';
9
+ import {getModuleDirectory} from './shared/esm-utils.js';
10
10
 
11
11
  const LH_ROOT = getModuleDirectory(import.meta);
12
12
  const pkg = JSON.parse(fs.readFileSync(`${LH_ROOT}/package.json`, 'utf-8'));
@@ -8,7 +8,7 @@ import fs from 'fs';
8
8
 
9
9
  import IntlMessageFormat from 'intl-messageformat';
10
10
 
11
- import {getModuleDirectory} from '../../esm-utils.js';
11
+ import {getModuleDirectory} from '../esm-utils.js';
12
12
  import {isObjectOfUnknownValues, isObjectOrArrayOfUnknownValues} from '../type-verifiers.js';
13
13
  import {locales} from './locales.js';
14
14
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  import fs from 'fs';
25
25
 
26
- import {getModuleDirectory} from '../../esm-utils.js';
26
+ import {getModuleDirectory} from '../esm-utils.js';
27
27
 
28
28
  /** @typedef {import('../../types/lhr/settings').Locale} Locale */
29
29
  /** @typedef {Record<string, {message: string}>} LhlMessages */
@@ -13,7 +13,6 @@
13
13
  "include": [
14
14
  "**/*.js",
15
15
  "types/**/*.d.ts",
16
- "../esm-utils.js",
17
16
  ],
18
17
  "exclude": [
19
18
  "test/**/*.js",
package/tsconfig.json CHANGED
@@ -12,7 +12,6 @@
12
12
  ],
13
13
  "include": [
14
14
  "root.js",
15
- "esm-utils.js",
16
15
  "cli/**/*.js",
17
16
  "core/**/*.js",
18
17
  "core/index.cjs",
File without changes
File without changes