lighthouse 12.5.0 → 12.5.1-dev.20250326

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.
@@ -51,7 +51,7 @@ class TraceEngineResult {
51
51
  lanternSettings,
52
52
  async resolveSourceMap(params) {
53
53
  const sourceMap = SourceMaps.find(sm => sm.scriptId === params.scriptId);
54
- if (!sourceMap) {
54
+ if (!sourceMap || !sourceMap.map) {
55
55
  return null;
56
56
  }
57
57
 
@@ -1,12 +1,15 @@
1
1
  export = SourceMap;
2
2
  declare class SourceMap {
3
3
  /**
4
+ * @param {string} compiledURL
5
+ * @param {string} sourceMappingURL
6
+ * @param {object} payload
4
7
  * Implements Source Map V3 model. See https://github.com/google/closure-compiler/wiki/Source-Maps
5
8
  * for format description.
6
9
  */
7
- constructor(compiledURL: any, sourceMappingURL: any, payload: any);
8
- compiledURL(): any;
9
- url(): any;
10
+ constructor(compiledURL: string, sourceMappingURL: string, payload: object);
11
+ compiledURL(): string;
12
+ url(): string;
10
13
  sourceURLs(): any[];
11
14
  embeddedContentByURL(sourceURL: any): any;
12
15
  hasScopeInfo(): boolean;
@@ -104,6 +104,9 @@ class SourceMap {
104
104
  #sourceInfoByURL = new Map();
105
105
  #scopesInfo = null;
106
106
  /**
107
+ * @param {string} compiledURL
108
+ * @param {string} sourceMappingURL
109
+ * @param {object} payload
107
110
  * Implements Source Map V3 model. See https://github.com/google/closure-compiler/wiki/Source-Maps
108
111
  * for format description.
109
112
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "12.5.0",
4
+ "version": "12.5.1-dev.20250326",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {