chrome-devtools-frontend 1.0.972361 → 1.0.972865
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/config/gni/devtools_grd_files.gni +1 -0
- package/front_end/core/i18n/locales/en-US.json +24 -0
- package/front_end/core/i18n/locales/en-XL.json +24 -0
- package/front_end/core/sdk/NetworkManager.ts +15 -7
- package/front_end/core/sdk/NetworkRequest.ts +16 -14
- package/front_end/core/sdk/ResourceTreeModel.ts +8 -10
- package/front_end/core/sdk/SourceMap.ts +9 -9
- package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +30 -14
- package/front_end/models/bindings/SASSSourceMapping.ts +4 -3
- package/front_end/models/har/HARFormat.ts +4 -2
- package/front_end/models/har/Importer.ts +0 -1
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +4 -4
- package/front_end/models/persistence/IsolatedFileSystem.ts +0 -1
- package/front_end/models/text_utils/StaticContentProvider.ts +5 -4
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +2 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +13 -2
- package/front_end/panels/lighthouse/LighthousePanel.ts +57 -8
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +28 -5
- package/front_end/panels/lighthouse/LighthouseStartView.ts +6 -2
- package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +61 -0
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +99 -0
- package/front_end/panels/sources/NavigatorView.ts +1 -3
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +3 -1
- package/front_end/third_party/codemirror.next/package.json +9 -9
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +7 -4
- package/package.json +1 -1
@@ -1 +1,2 @@
|
|
1
|
-
import{
|
1
|
+
import{a as r,b as s,c as t,d as P,e as n,i as a,L as O,N as e,s as Q,t as o}from"./codemirror.js";
|
2
|
+
const i=O.deserialize({version:13,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[[e.openedBy,7,"{",12,"["],[e.closedBy,8,"}",13,"]"]],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),c=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const r=function(O,e){let r;return(r=O.message.match(/at position (\d+)/))?Math.min(+r[1],e.length):(r=O.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+r[1]).from+ +r[2]-1,e.length):0}(e,O.state.doc);return[{from:r,message:e.message,severity:"error",to:r}]}return[]};const p=r.define({parser:i.configure({props:[a.add({Object:t({except:/^\s*\}/}),Array:t({except:/^\s*\]/})}),s.add({"Object Array":P}),Q({String:o.string,Number:o.number,"True False":o.bool,PropertyName:o.propertyName,Null:o.null,",":o.separator,"[ ]":o.squareBracket,"{ }":o.brace})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function g(){return new n(p)}export{g as json,p as jsonLanguage,c as jsonParseLinter};
|
@@ -573,7 +573,9 @@ declare class ChangeSet extends ChangeDesc {
|
|
573
573
|
map(other: ChangeDesc, before?: boolean): ChangeSet;
|
574
574
|
/**
|
575
575
|
Iterate over the changed ranges in the document, calling `f` for
|
576
|
-
each
|
576
|
+
each, with the range in the original document (`fromA`-`toA`)
|
577
|
+
and the range that replaces it in the new document
|
578
|
+
(`fromB`-`toB`).
|
577
579
|
|
578
580
|
When `individual` is true, adjacent changes are reported
|
579
581
|
separately.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
"@codemirror/autocomplete": "0.19.12",
|
7
7
|
"@codemirror/closebrackets": "0.19.0",
|
8
8
|
"@codemirror/commands": "0.19.8",
|
9
|
-
"@codemirror/comment": "0.19.
|
9
|
+
"@codemirror/comment": "0.19.1",
|
10
10
|
"@codemirror/fold": "0.19.3",
|
11
11
|
"@codemirror/gutter": "0.19.9",
|
12
12
|
"@codemirror/highlight": "0.19.7",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"@codemirror/lang-html": "0.19.4",
|
17
17
|
"@codemirror/lang-java": "0.19.1",
|
18
18
|
"@codemirror/lang-javascript": "0.19.7",
|
19
|
-
"@codemirror/lang-json": "0.19.
|
19
|
+
"@codemirror/lang-json": "0.19.2",
|
20
20
|
"@codemirror/lang-markdown": "0.19.6",
|
21
21
|
"@codemirror/lang-php": "0.19.1",
|
22
22
|
"@codemirror/lang-python": "0.19.4",
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"@codemirror/lang-xml": "0.19.2",
|
25
25
|
"@codemirror/language": "0.19.7",
|
26
26
|
"@codemirror/legacy-modes": "0.19.0",
|
27
|
-
"@codemirror/matchbrackets": "0.19.
|
27
|
+
"@codemirror/matchbrackets": "0.19.4",
|
28
28
|
"@codemirror/panel": "0.19.1",
|
29
|
-
"@codemirror/rangeset": "0.19.
|
30
|
-
"@codemirror/search": "0.19.
|
31
|
-
"@codemirror/state": "0.19.
|
32
|
-
"@codemirror/stream-parser": "0.19.
|
29
|
+
"@codemirror/rangeset": "0.19.7",
|
30
|
+
"@codemirror/search": "0.19.8",
|
31
|
+
"@codemirror/state": "0.19.9",
|
32
|
+
"@codemirror/stream-parser": "0.19.6",
|
33
33
|
"@codemirror/text": "0.19.6",
|
34
|
-
"@codemirror/tooltip": "0.19.
|
35
|
-
"@codemirror/view": "0.19.
|
34
|
+
"@codemirror/tooltip": "0.19.14",
|
35
|
+
"@codemirror/view": "0.19.43",
|
36
36
|
"@lezer/common": "0.15.11",
|
37
37
|
"@lezer/lr": "0.15.8",
|
38
38
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
@@ -3,10 +3,13 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import type * as Common from '../../../../core/common/common.js';
|
6
|
+
import type * as Platform from '../../../../core/platform/platform.js';
|
6
7
|
import * as TextUtils from '../../../../models/text_utils/text_utils.js';
|
7
8
|
|
8
9
|
import {ResourceSourceFrame} from './ResourceSourceFrame.js';
|
9
10
|
|
11
|
+
// TODO(crbug.com/1253323): Casts to UrlString will be removed from this file when migration to branded types is complete.
|
12
|
+
|
10
13
|
export class BinaryResourceViewFactory {
|
11
14
|
private base64content: string;
|
12
15
|
private readonly contentUrl: string;
|
@@ -67,8 +70,8 @@ export class BinaryResourceViewFactory {
|
|
67
70
|
}
|
68
71
|
|
69
72
|
createHexView(): ResourceSourceFrame {
|
70
|
-
const hexViewerContentProvider =
|
71
|
-
|
73
|
+
const hexViewerContentProvider = new TextUtils.StaticContentProvider.StaticContentProvider(
|
74
|
+
this.contentUrl as Platform.DevToolsPath.UrlString, this.resourceType, async () => {
|
72
75
|
const contentAsArray = await this.fetchContentAsArray();
|
73
76
|
const content = BinaryResourceViewFactory.uint8ArrayToHexViewer(contentAsArray);
|
74
77
|
return {content, isEncoded: false};
|
@@ -79,8 +82,8 @@ export class BinaryResourceViewFactory {
|
|
79
82
|
|
80
83
|
createUtf8View(): ResourceSourceFrame {
|
81
84
|
const utf8fn = this.utf8.bind(this);
|
82
|
-
const utf8ContentProvider =
|
83
|
-
|
85
|
+
const utf8ContentProvider = new TextUtils.StaticContentProvider.StaticContentProvider(
|
86
|
+
this.contentUrl as Platform.DevToolsPath.UrlString, this.resourceType, utf8fn);
|
84
87
|
return new ResourceSourceFrame(
|
85
88
|
utf8ContentProvider, this.resourceType.canonicalMimeType(), {lineNumbers: true, lineWrapping: true});
|
86
89
|
}
|
package/package.json
CHANGED