lighthouse 9.5.0-dev.20220912 → 9.5.0-dev.20220914
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.
- package/package.json +1 -3
- package/tsconfig.json +0 -2
- package/types/global-lh.d.ts +0 -2
- package/types/jsonld/index.d.ts +0 -19
- package/types/structured-data.d.ts +0 -36
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.5.0-dev.
|
|
4
|
+
"version": "9.5.0-dev.20220914",
|
|
5
5
|
"description": "Automated auditing, performance metrics, and best practices for the web.",
|
|
6
6
|
"main": "./core/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -157,8 +157,6 @@
|
|
|
157
157
|
"jest-mock": "^27.3.0",
|
|
158
158
|
"jest-snapshot": "^28.1.0",
|
|
159
159
|
"jsdom": "^12.2.0",
|
|
160
|
-
"jsonld": "^5.2.0",
|
|
161
|
-
"jsonlint-mod": "^1.7.6",
|
|
162
160
|
"lighthouse-plugin-publisher-ads": "1.5.7-beta",
|
|
163
161
|
"magic-string": "^0.25.7",
|
|
164
162
|
"mime-types": "^2.1.30",
|
package/tsconfig.json
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"third-party/axe/valid-langs.js",
|
|
25
25
|
|
|
26
26
|
"core/test/results/sample_v2.json",
|
|
27
|
-
"core/lib/sd-validation/assets/*.json",
|
|
28
27
|
"core/test/fixtures/unresolved-perflog.json",
|
|
29
28
|
"core/test/fixtures/traces/lcp-m78.devtools.log.json",
|
|
30
29
|
"core/audits/byte-efficiency/polyfill-graph-data.json",
|
|
@@ -89,7 +88,6 @@
|
|
|
89
88
|
"core/test/lib/page-functions-test.js",
|
|
90
89
|
"core/test/lib/proto-preprocessor-test.js",
|
|
91
90
|
"core/test/lib/rect-helpers-test.js",
|
|
92
|
-
"core/test/lib/sd-validation-test.js",
|
|
93
91
|
"core/test/lib/sentry-test.js",
|
|
94
92
|
"core/test/lib/stack-packs-test.js",
|
|
95
93
|
"core/test/lib/statistics-test.js",
|
package/types/global-lh.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import LHResult from './lhr/lhr';
|
|
|
19
19
|
import FlowResult_ from './lhr/flow';
|
|
20
20
|
import Protocol_ from './protocol';
|
|
21
21
|
import * as Settings from './lhr/settings';
|
|
22
|
-
import StructuredData_ from './structured-data';
|
|
23
22
|
import Treemap_ from './lhr/treemap';
|
|
24
23
|
import UserFlow_ from './user-flow';
|
|
25
24
|
import puppeteer from 'puppeteer-core';
|
|
@@ -78,7 +77,6 @@ declare global {
|
|
|
78
77
|
export import OutputMode = Settings.OutputMode;
|
|
79
78
|
export import PrecomputedLanternData = Settings.PrecomputedLanternData;
|
|
80
79
|
|
|
81
|
-
export import StructuredData = StructuredData_;
|
|
82
80
|
export import Treemap = Treemap_;
|
|
83
81
|
}
|
|
84
82
|
}
|
package/types/jsonld/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright 2018 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
|
-
declare module 'jsonld' {
|
|
8
|
-
interface RemoteDocument {
|
|
9
|
-
contextUrl?: string;
|
|
10
|
-
documentUrl?: string;
|
|
11
|
-
document: unknown;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface JsonldOptions {
|
|
15
|
-
documentLoader: (url: string) => Promise<RemoteDocument>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function expand(object: unknown, options: JsonldOptions): Promise<any>;
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright 2018 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
|
-
declare module StructuredData {
|
|
8
|
-
type ValidatorType = "json" | "json-ld" | "json-ld-expand" | "schema-org";
|
|
9
|
-
|
|
10
|
-
interface ValidationError {
|
|
11
|
-
message: string;
|
|
12
|
-
/** Property path in the expanded JSON-LD object */
|
|
13
|
-
path?: string;
|
|
14
|
-
validator: ValidatorType;
|
|
15
|
-
lineNumber?: number | null;
|
|
16
|
-
/** Schema.org type URIs of the invalid entity (undefined if type is invalid) */
|
|
17
|
-
validTypes?: Array<string>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface ExpandedSchemaRepresentationItem {
|
|
21
|
-
[schemaRef: string]: Array<
|
|
22
|
-
string |
|
|
23
|
-
{
|
|
24
|
-
'@id'?: string;
|
|
25
|
-
'@type'?: string;
|
|
26
|
-
'@value'?: string;
|
|
27
|
-
}
|
|
28
|
-
>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type ExpandedSchemaRepresentation =
|
|
32
|
-
| Array<ExpandedSchemaRepresentationItem>
|
|
33
|
-
| ExpandedSchemaRepresentationItem;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default StructuredData;
|