lighthouse 13.6.0-dev.20261110 → 13.6.0-dev.20261112

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Re=.8999999999999999,Ie=.5,Ne=.49999999999999994;function He(o){let e=Math.sign(o);o=Math.abs(o);let t=.254829592,n=-.284496736,r=1.421413741,i=-1.453152027,a=1.061405429,s=1/(1+.3275911*o),c=s*(t+s*(n+s*(r+s*(i+s*a))));return e*(1-c*Math.exp(-o*o))}function fe({median:o,p10:e},t){if(o<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=o)throw new Error("p10 must be less than the median");if(t<=0)return 1;let n=.9061938024368232,r=Math.max(Number.MIN_VALUE,t/o),i=Math.log(r),a=Math.max(Number.MIN_VALUE,e/o),l=-Math.log(a),s=i*n/l,c=(1-He(s))/2,d;return t<=e?d=Math.max(.9,Math.min(1,c)):t<=o?d=Math.max(Ie,Math.min(Re,c)):d=Math.max(0,Math.min(Ne,c)),d}var O="\u2026",Oe="\xA0",ve=.9,$e={PASS:{label:"pass",minScore:ve},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},Ve=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],E=class o{static get RATINGS(){return $e}static get PASS_THRESHOLD(){return ve}static get MS_DISPLAY_VALUE(){return`%10d${Oe}ms`}static isPluginCategory(e){return/^(@[a-z0-9-~][a-z0-9-._~]*\/)?lighthouse-plugin-[a-z0-9-._~]*$/.test(e)}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,t){return t&&t.find(r=>r.origins.find(i=>e.startsWith(i)))||o.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let t=[],n=e.split(/`(.*?)`/g);for(let r=0;r<n.length;r++){let i=n[r];if(!i)continue;let a=r%2!==0;t.push({isCode:a,text:i})}return t}static splitMarkdownLink(e){let t=[],n=e.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;n.length;){let[r,i,a]=n.splice(0,3);r&&t.push({isLink:!1,text:r}),i&&a&&t.push({isLink:!0,text:i,linkHref:a})}return t}static truncate(e,t,n="\u2026"){if(e.length<=t)return e;let i=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator](),a=0;for(let l=0;l<=t-n.length;l++){let s=i.next();if(s.done)return e;a=s.value.index}for(let l=0;l<n.length;l++)if(i.next().done)return e;return e.slice(0,a)+n}static getURLDisplayName(e,t){t=t||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let n=t.numPathParts!==void 0?t.numPathParts:2,r=t.preserveQuery!==void 0?t.preserveQuery:!0,i=t.preserveHost||!1,a;if(e.protocol==="about:"||e.protocol==="data:")a=e.href;else{a=e.pathname;let s=a.split("/").filter(c=>c.length);n&&s.length>n&&(a=O+s.slice(-1*n).join("/")),i&&(a=`${e.host}/${a.replace(/^\//,"")}`),r&&(a=`${a}${e.search}`)}let l=64;if(e.protocol!=="data:"&&(a=a.slice(0,200),a=a.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${O}`),a=a.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${O}`),a=a.replace(/(\d{3})\d{6,}/g,`$1${O}`),a=a.replace(/\u2026+/g,O),a.length>l&&a.includes("?")&&(a=a.replace(/\?([^=]*)(=)?.*/,`?$1$2${O}`),a.length>l&&(a=a.replace(/\?.*/,`?${O}`)))),a.length>l){let s=a.lastIndexOf(".");s>=0?a=a.slice(0,l-1-(a.length-s))+`${O}${a.slice(s)}`:a=a.slice(0,l-1)+O}return a}static getChromeExtensionOrigin(e){let t=new URL(e);return t.protocol+"//"+t.host}static parseURL(e){let t=new URL(e);return{file:o.getURLDisplayName(t),hostname:t.hostname,origin:t.protocol==="chrome-extension:"?o.getChromeExtensionOrigin(e):t.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let t=e.split(".").slice(-2);return Ve.includes(t[0])?`.${t.join(".")}`:`.${t[t.length-1]}`}static getPseudoRootDomain(e){let t=o.createOrReturnURL(e).hostname,r=o.getPseudoTld(t).split(".");return t.split(".").slice(-r.length).join(".")}static filterRelevantLines(e,t,n){if(t.length===0)return e.slice(0,n*2+1);let r=3,i=new Set;return t=t.sort((a,l)=>(a.lineNumber||0)-(l.lineNumber||0)),t.forEach(({lineNumber:a})=>{let l=a-n,s=a+n;for(;l<1;)l++,s++;i.has(l-r-1)&&(l-=r);for(let c=l;c<=s;c++){let d=c;i.add(d)}}),e.filter(a=>i.has(a.lineNumber))}static computeLogNormalScore(e,t){let n=fe(e,t);return n>.9&&(n+=.05*(n-.9)),Math.floor(n*100)/100}};function Ge(o){let e=o.createFragment(),t=o.createElement("style");t.append(`
1
+ "use strict";(()=>{var Re=.8999999999999999,Ie=.5,Ne=.49999999999999994;function He(o){let e=Math.sign(o);o=Math.abs(o);let t=.254829592,n=-.284496736,r=1.421413741,i=-1.453152027,a=1.061405429,s=1/(1+.3275911*o),c=s*(t+s*(n+s*(r+s*(i+s*a))));return e*(1-c*Math.exp(-o*o))}function fe({median:o,p10:e},t){if(o<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=o)throw new Error("p10 must be less than the median");if(t<=0)return 1;let n=.9061938024368232,r=Math.max(Number.MIN_VALUE,t/o),i=Math.log(r),a=Math.max(Number.MIN_VALUE,e/o),l=-Math.log(a),s=i*n/l,c=(1-He(s))/2,d;return t<=e?d=Math.max(.9,Math.min(1,c)):t<=o?d=Math.max(Ie,Math.min(Re,c)):d=Math.max(0,Math.min(Ne,c)),d}var O="\u2026",Oe="\xA0",ve=.9,$e={PASS:{label:"pass",minScore:ve},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},Ve=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],E=class o{static get RATINGS(){return $e}static get PASS_THRESHOLD(){return ve}static get MS_DISPLAY_VALUE(){return`%10d${Oe}ms`}static isPluginCategory(e){return/^(@[a-z0-9-~][a-z0-9-._~]*\/)?lighthouse-plugin-[a-z0-9-._~]*$/.test(e)}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,t){return t&&t.find(r=>r.origins.find(i=>e.startsWith(i)))||o.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let t=[],n=e.split(/`(.*?)`/g);for(let r=0;r<n.length;r++){let i=n[r];if(!i)continue;let a=r%2!==0;t.push({isCode:a,text:i})}return t}static splitMarkdownLink(e){let t=[],n=e.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);for(;n.length;){let[r,i,a]=n.splice(0,3);r&&t.push({isLink:!1,text:r}),i&&a&&t.push({isLink:!0,text:i,linkHref:a})}return t}static truncate(e,t,n="\u2026"){if(e.length<=t)return e;let r;try{r=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator]()}catch{return e.slice(0,Math.max(0,t-n.length))+n}let i=0;for(let a=0;a<=t-n.length;a++){let l=r.next();if(l.done)return e;i=l.value.index}for(let a=0;a<n.length;a++)if(r.next().done)return e;return e.slice(0,i)+n}static getURLDisplayName(e,t){t=t||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let n=t.numPathParts!==void 0?t.numPathParts:2,r=t.preserveQuery!==void 0?t.preserveQuery:!0,i=t.preserveHost||!1,a;if(e.protocol==="about:"||e.protocol==="data:")a=e.href;else{a=e.pathname;let s=a.split("/").filter(c=>c.length);n&&s.length>n&&(a=O+s.slice(-1*n).join("/")),i&&(a=`${e.host}/${a.replace(/^\//,"")}`),r&&(a=`${a}${e.search}`)}let l=64;if(e.protocol!=="data:"&&(a=a.slice(0,200),a=a.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${O}`),a=a.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${O}`),a=a.replace(/(\d{3})\d{6,}/g,`$1${O}`),a=a.replace(/\u2026+/g,O),a.length>l&&a.includes("?")&&(a=a.replace(/\?([^=]*)(=)?.*/,`?$1$2${O}`),a.length>l&&(a=a.replace(/\?.*/,`?${O}`)))),a.length>l){let s=a.lastIndexOf(".");s>=0?a=a.slice(0,l-1-(a.length-s))+`${O}${a.slice(s)}`:a=a.slice(0,l-1)+O}return a}static getChromeExtensionOrigin(e){let t=new URL(e);return t.protocol+"//"+t.host}static parseURL(e){let t=new URL(e);return{file:o.getURLDisplayName(t),hostname:t.hostname,origin:t.protocol==="chrome-extension:"?o.getChromeExtensionOrigin(e):t.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let t=e.split(".").slice(-2);return Ve.includes(t[0])?`.${t.join(".")}`:`.${t[t.length-1]}`}static getPseudoRootDomain(e){let t=o.createOrReturnURL(e).hostname,r=o.getPseudoTld(t).split(".");return t.split(".").slice(-r.length).join(".")}static filterRelevantLines(e,t,n){if(t.length===0)return e.slice(0,n*2+1);let r=3,i=new Set;return t=t.sort((a,l)=>(a.lineNumber||0)-(l.lineNumber||0)),t.forEach(({lineNumber:a})=>{let l=a-n,s=a+n;for(;l<1;)l++,s++;i.has(l-r-1)&&(l-=r);for(let c=l;c<=s;c++){let d=c;i.add(d)}}),e.filter(a=>i.has(a.lineNumber))}static computeLogNormalScore(e,t){let n=fe(e,t);return n>.9&&(n+=.05*(n-.9)),Math.floor(n*100)/100}};function Ge(o){let e=o.createFragment(),t=o.createElement("style");t.append(`
2
2
  .lh-3p-filter {
3
3
  color: var(--color-gray-600);
4
4
  float: right;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "13.6.0-dev.20261110",
4
+ "version": "13.6.0-dev.20261112",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -101,10 +101,11 @@
101
101
  },
102
102
  "devDependencies": {
103
103
  "@eslint/js": "^9.28.0",
104
- "@formatjs/icu-messageformat-parser": "^2.6.2",
104
+ "@firebase/app": "^0.16.2",
105
+ "@firebase/auth": "^1.13.6",
106
+ "@formatjs/icu-messageformat-parser": "^3.5.23",
105
107
  "@jest/fake-timers": "^30.5.2",
106
108
  "@testing-library/preact": "^3.2.4",
107
- "@types/archiver": "^8.0.0",
108
109
  "@types/chrome": "^0.3.5",
109
110
  "@types/debug": "^4.1.13",
110
111
  "@types/estree": "^1.0.9",
@@ -118,16 +119,16 @@
118
119
  "@types/yargs-parser": "^21.0.3",
119
120
  "acorn": "^8.19.0",
120
121
  "ajv": "^8.20.0",
121
- "archiver": "^8.0.0",
122
+ "ajv-formats": "^3.0.1",
122
123
  "chrome-devtools-frontend": "1.0.1726686",
123
124
  "concurrently": "^10.0.6",
124
125
  "conventional-changelog": "^8.1.3",
125
126
  "core-js-compat": "^3.51.0",
126
127
  "esbuild": "0.28.2",
127
128
  "eslint": "^9.28.0",
128
- "eslint-plugin-import": "^2.32.0",
129
+ "eslint-plugin-import-x": "^4.18.1",
129
130
  "expect": "^30.5.2",
130
- "firebase": "^12.19.0",
131
+ "fflate": "^0.8.3",
131
132
  "gh-pages": "^6.3.0",
132
133
  "globals": "^17.13.0",
133
134
  "idb-keyval": "^6.3.0",
@@ -148,14 +149,12 @@
148
149
  "typed-query-selector": "^2.12.3",
149
150
  "typescript": "6.0.3",
150
151
  "typescript-eslint": "^8.60.1",
151
- "wait-for-expect": "^4.0.0",
152
152
  "web-features": "^3.44.0",
153
153
  "webtreemap-cdt": "^3.2.1"
154
154
  },
155
155
  "dependencies": {
156
156
  "@paulirish/trace_engine": "0.0.68",
157
157
  "@sentry/node": "^11.8.0",
158
- "ajv-formats": "^3.0.1",
159
158
  "axe-core": "4.14.0",
160
159
  "chrome-launcher": "^1.2.3",
161
160
  "configstore": "^8.0.0",
@@ -163,11 +162,10 @@
163
162
  "devtools-protocol": "0.0.1727723",
164
163
  "enquirer": "^2.3.6",
165
164
  "http-link-header": "^1.1.1",
166
- "intl-messageformat": "^10.5.3",
165
+ "intl-messageformat": "^12.1.5",
167
166
  "js-library-detector": "^6.7.0",
168
167
  "lighthouse-logger": "^2.0.2",
169
168
  "lighthouse-stack-packs": "1.12.3",
170
- "open": "^11.0.4",
171
169
  "puppeteer-core": "^25.16.0",
172
170
  "robots-parser": "^3.0.1",
173
171
  "speedline-core": "^1.4.3",
package/shared/util.js CHANGED
@@ -181,8 +181,16 @@ class Util {
181
181
  return string;
182
182
  }
183
183
 
184
- const segmenter = new Intl.Segmenter(undefined, {granularity: 'grapheme'});
185
- const iterator = segmenter.segment(string)[Symbol.iterator]();
184
+ /** @type {Iterator<Intl.SegmentData>} */
185
+ let iterator;
186
+ try {
187
+ const segmenter = new Intl.Segmenter(undefined, {granularity: 'grapheme'});
188
+ iterator = segmenter.segment(string)[Symbol.iterator]();
189
+ } catch {
190
+ // `Intl.Segmenter` can be missing or broken (e.g. replaced by a page's polyfill when this
191
+ // runs in the page). Fall back to truncating by code unit.
192
+ return string.slice(0, Math.max(0, characterLimit - ellipseSuffix.length)) + ellipseSuffix;
193
+ }
186
194
 
187
195
  let lastSegmentIndex = 0;
188
196
  for (let i = 0; i <= characterLimit - ellipseSuffix.length; i++) {
@@ -15,7 +15,7 @@ The original Python script is located in the `ards-project/ard-spec` repository:
15
15
  While the validation rules and test suite maintain 1:1 parity with the reference suite, the following adaptations were made for Lighthouse integration:
16
16
  - **Structured Error Return:** `ConformanceTester` stores structured objects (`{ element, message }`) in `errors`, `warnings` and `infos` instead of formatted ANSI CLI strings. The `[label]` prefix upstream puts on entry messages is reported as `element` instead.
17
17
  - **Precompiled Standalone Validator (`schema-validator.js`):** Uses `build/build-ard-schema.js` (`yarn build-ard-schema`) to precompile the `ArdManifest` and `ArdEntry` definitions of `ard-entry.schema.json` into a pure, standalone JavaScript module (`schema-validator.js`) ahead of time using `Ajv2020` and `ajv/dist/standalone`. This eliminates runtime dynamic compilation (`new Function()` / `eval()`), preventing Content Security Policy (CSP) `unsafe-eval` violations when running inside Chrome DevTools frontend, avoiding runtime `fs.readFileSync` calls in browser/bundled contexts, and keeping `Ajv` out of the client bundle.
18
- - **ESM Format Validation:** Imports `uri` and `date-time` format validators statically from `ajv-formats/dist/formats.js` rather than bundling the full `ajv-formats` dynamic plugin.
18
+ - **Inlined Format Validation:** The build script emits a small hand-written port of the `uri` and `date-time` validators from `ajv-formats` v3.0.1 (full mode, MIT) into `schema-validator.js`, so neither `ajv-formats` nor `ajv` is a runtime dependency. The build fails if the schema references any other format.
19
19
  - **Schema Error Messages:** Ajv reports different messages than Python's `jsonschema`. The first error not nested inside a `oneOf`/`anyOf` branch is reported, with `'x' is a required property` phrasing kept for `required` errors.
20
20
  - **Non-object Input:** Upstream assumes the manifest root and each entry are JSON objects. The port treats anything else as empty, so it reports errors instead of throwing.
21
21
  - **Lighthouse Logger:** Replaced raw `console.log` with `lighthouse-logger`.
@@ -8,7 +8,47 @@
8
8
  /* eslint-disable */
9
9
  // @ts-nocheck
10
10
 
11
- import {fullFormats} from 'ajv-formats/dist/formats.js';
11
+ /*! uri and date-time format validators ported from ajv-formats v3.0.1 (full mode).
12
+ * https://github.com/ajv-validator/ajv-formats - Copyright (c) 2020 Evgeny Poberezkin - MIT License */
13
+ const DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
14
+ const DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
15
+ const TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
16
+ const NOT_URI_FRAGMENT = /\/|:/;
17
+ const URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
18
+ function isDate(str) {
19
+ const matches = DATE.exec(str);
20
+ if (!matches) return false;
21
+ const year = +matches[1];
22
+ const month = +matches[2];
23
+ const day = +matches[3];
24
+ const isLeapYear = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
25
+ return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear ? 29 : DAYS[month]);
26
+ }
27
+ function isTimeWithTimeZone(str) {
28
+ const matches = TIME.exec(str);
29
+ if (!matches) return false;
30
+ const hr = +matches[1];
31
+ const min = +matches[2];
32
+ const sec = +matches[3];
33
+ const tzSign = matches[5] === '-' ? -1 : 1;
34
+ const tzH = +(matches[6] || 0);
35
+ const tzM = +(matches[7] || 0);
36
+ if (tzH > 23 || tzM > 59 || !matches[4]) return false;
37
+ if (hr <= 23 && min <= 59 && sec < 60) return true;
38
+ // leap second
39
+ const utcMin = min - tzM * tzSign;
40
+ const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
41
+ return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
42
+ }
43
+ const fullFormats = {
44
+ 'uri': (str) => NOT_URI_FRAGMENT.test(str) && URI.test(str),
45
+ 'date-time': {
46
+ validate(str) {
47
+ const dateTime = str.split(/t|\s/i);
48
+ return dateTime.length === 2 && isDate(dateTime[0]) && isTimeWithTimeZone(dateTime[1]);
49
+ },
50
+ },
51
+ };
12
52
 
13
53
  "use strict";
14
54
  export const ArdManifest = validate25;
@@ -256,7 +296,7 @@ const schema34 = {
256
296
  },
257
297
  "additionalProperties": true
258
298
  };
259
- const formats0 = fullFormats.uri;
299
+ const formats0 = fullFormats["uri"];
260
300
  const formats4 = fullFormats["date-time"];
261
301
  const pattern4 = new RegExp("^urn:air:[a-zA-Z0-9.-]+(:[a-zA-Z0-9._-]+)+$", "u");
262
302
 
package/tsconfig.json CHANGED
@@ -41,6 +41,8 @@
41
41
  "clients/test/**/*.js",
42
42
  "cli/test/fixtures/**/*.js",
43
43
  "core/scripts/legacy-javascript/variants",
44
+ // Imports the local lighthouse-logger source, which isn't type checked (core uses its published types).
45
+ "core/test/lib/lighthouse-logger-test.js",
44
46
  // These test files require further changes before they can be type checked.
45
47
  "core/test/config/config-helpers-test.js",
46
48
  "core/test/config/config-plugin-test.js",
@@ -17,6 +17,7 @@ declare global {
17
17
  __nativePerformance: Performance;
18
18
  __nativeFetch: typeof fetch,
19
19
  __nativeURL: typeof URL;
20
+ __nativeMap: MapConstructor;
20
21
  __ElementMatches: Element['matches'];
21
22
  __HTMLElementBoundingClientRect: HTMLElement['getBoundingClientRect'];
22
23