devtools-protocol 0.0.1487398 → 0.0.1488636
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.
@@ -5365,6 +5365,17 @@
|
|
5365
5365
|
}
|
5366
5366
|
]
|
5367
5367
|
},
|
5368
|
+
{
|
5369
|
+
"name": "getEnvironmentVariables",
|
5370
|
+
"description": "Returns the values of the default UA-defined environment variables used in env()",
|
5371
|
+
"experimental": true,
|
5372
|
+
"returns": [
|
5373
|
+
{
|
5374
|
+
"name": "environmentVariables",
|
5375
|
+
"type": "object"
|
5376
|
+
}
|
5377
|
+
]
|
5378
|
+
},
|
5368
5379
|
{
|
5369
5380
|
"name": "getMediaQueries",
|
5370
5381
|
"description": "Returns all media queries parsed by the rendering engine.",
|
@@ -14834,7 +14845,7 @@
|
|
14834
14845
|
"type": "string",
|
14835
14846
|
"enum": [
|
14836
14847
|
"Loopback",
|
14837
|
-
"
|
14848
|
+
"Local",
|
14838
14849
|
"Public",
|
14839
14850
|
"Unknown"
|
14840
14851
|
]
|
@@ -20400,6 +20411,13 @@
|
|
20400
20411
|
"description": "User friendly error message, present if and only if navigation has failed.",
|
20401
20412
|
"optional": true,
|
20402
20413
|
"type": "string"
|
20414
|
+
},
|
20415
|
+
{
|
20416
|
+
"name": "isDownload",
|
20417
|
+
"description": "Whether the navigation resulted in a download.",
|
20418
|
+
"experimental": true,
|
20419
|
+
"optional": true,
|
20420
|
+
"type": "boolean"
|
20403
20421
|
}
|
20404
20422
|
]
|
20405
20423
|
},
|
@@ -27792,7 +27810,8 @@
|
|
27792
27810
|
"type": "string",
|
27793
27811
|
"enum": [
|
27794
27812
|
"SourceIsNotJsonObject",
|
27795
|
-
"InvalidRulesSkipped"
|
27813
|
+
"InvalidRulesSkipped",
|
27814
|
+
"InvalidRulesetLevelTag"
|
27796
27815
|
]
|
27797
27816
|
},
|
27798
27817
|
{
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2559,6 +2559,11 @@ experimental domain CSS
|
|
2559
2559
|
# A list of CSS at-function rules referenced by styles of this node.
|
2560
2560
|
experimental optional array of CSSFunctionRule cssFunctionRules
|
2561
2561
|
|
2562
|
+
# Returns the values of the default UA-defined environment variables used in env()
|
2563
|
+
experimental command getEnvironmentVariables
|
2564
|
+
returns
|
2565
|
+
object environmentVariables
|
2566
|
+
|
2562
2567
|
# Returns all media queries parsed by the rendering engine.
|
2563
2568
|
command getMediaQueries
|
2564
2569
|
returns
|
@@ -7706,7 +7711,7 @@ domain Network
|
|
7706
7711
|
experimental type IPAddressSpace extends string
|
7707
7712
|
enum
|
7708
7713
|
Loopback
|
7709
|
-
|
7714
|
+
Local
|
7710
7715
|
Public
|
7711
7716
|
Unknown
|
7712
7717
|
|
@@ -9447,6 +9452,8 @@ domain Page
|
|
9447
9452
|
optional Network.LoaderId loaderId
|
9448
9453
|
# User friendly error message, present if and only if navigation has failed.
|
9449
9454
|
optional string errorText
|
9455
|
+
# Whether the navigation resulted in a download.
|
9456
|
+
experimental optional boolean isDownload
|
9450
9457
|
|
9451
9458
|
# Navigates current page to the given history entry.
|
9452
9459
|
command navigateToHistoryEntry
|
@@ -13096,6 +13103,7 @@ experimental domain Preload
|
|
13096
13103
|
enum
|
13097
13104
|
SourceIsNotJsonObject
|
13098
13105
|
InvalidRulesSkipped
|
13106
|
+
InvalidRulesetLevelTag
|
13099
13107
|
|
13100
13108
|
# The type of preloading attempted. It corresponds to
|
13101
13109
|
# mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it
|
@@ -1975,6 +1975,13 @@ export namespace ProtocolMapping {
|
|
1975
1975
|
paramsType: [Protocol.CSS.GetMatchedStylesForNodeRequest];
|
1976
1976
|
returnType: Protocol.CSS.GetMatchedStylesForNodeResponse;
|
1977
1977
|
};
|
1978
|
+
/**
|
1979
|
+
* Returns the values of the default UA-defined environment variables used in env()
|
1980
|
+
*/
|
1981
|
+
'CSS.getEnvironmentVariables': {
|
1982
|
+
paramsType: [];
|
1983
|
+
returnType: Protocol.CSS.GetEnvironmentVariablesResponse;
|
1984
|
+
};
|
1978
1985
|
/**
|
1979
1986
|
* Returns all media queries parsed by the rendering engine.
|
1980
1987
|
*/
|
@@ -1117,6 +1117,11 @@ export namespace ProtocolProxyApi {
|
|
1117
1117
|
*/
|
1118
1118
|
getMatchedStylesForNode(params: Protocol.CSS.GetMatchedStylesForNodeRequest): Promise<Protocol.CSS.GetMatchedStylesForNodeResponse>;
|
1119
1119
|
|
1120
|
+
/**
|
1121
|
+
* Returns the values of the default UA-defined environment variables used in env()
|
1122
|
+
*/
|
1123
|
+
getEnvironmentVariables(): Promise<Protocol.CSS.GetEnvironmentVariablesResponse>;
|
1124
|
+
|
1120
1125
|
/**
|
1121
1126
|
* Returns all media queries parsed by the rendering engine.
|
1122
1127
|
*/
|
@@ -1185,6 +1185,11 @@ export namespace ProtocolTestsProxyApi {
|
|
1185
1185
|
*/
|
1186
1186
|
getMatchedStylesForNode(params: Protocol.CSS.GetMatchedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetMatchedStylesForNodeResponse, sessionId: string}>;
|
1187
1187
|
|
1188
|
+
/**
|
1189
|
+
* Returns the values of the default UA-defined environment variables used in env()
|
1190
|
+
*/
|
1191
|
+
getEnvironmentVariables(): Promise<{id: number, result: Protocol.CSS.GetEnvironmentVariablesResponse, sessionId: string}>;
|
1192
|
+
|
1188
1193
|
/**
|
1189
1194
|
* Returns all media queries parsed by the rendering engine.
|
1190
1195
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -5868,6 +5868,10 @@ export namespace Protocol {
|
|
5868
5868
|
cssFunctionRules?: CSSFunctionRule[];
|
5869
5869
|
}
|
5870
5870
|
|
5871
|
+
export interface GetEnvironmentVariablesResponse {
|
5872
|
+
environmentVariables: any;
|
5873
|
+
}
|
5874
|
+
|
5871
5875
|
export interface GetMediaQueriesResponse {
|
5872
5876
|
medias: CSSMedia[];
|
5873
5877
|
}
|
@@ -11826,7 +11830,7 @@ export namespace Protocol {
|
|
11826
11830
|
|
11827
11831
|
export type PrivateNetworkRequestPolicy = ('Allow' | 'BlockFromInsecureToMorePrivate' | 'WarnFromInsecureToMorePrivate' | 'PreflightBlock' | 'PreflightWarn' | 'PermissionBlock' | 'PermissionWarn');
|
11828
11832
|
|
11829
|
-
export type IPAddressSpace = ('Loopback' | '
|
11833
|
+
export type IPAddressSpace = ('Loopback' | 'Local' | 'Public' | 'Unknown');
|
11830
11834
|
|
11831
11835
|
export interface ConnectTiming {
|
11832
11836
|
/**
|
@@ -15118,6 +15122,10 @@ export namespace Protocol {
|
|
15118
15122
|
* User friendly error message, present if and only if navigation has failed.
|
15119
15123
|
*/
|
15120
15124
|
errorText?: string;
|
15125
|
+
/**
|
15126
|
+
* Whether the navigation resulted in a download.
|
15127
|
+
*/
|
15128
|
+
isDownload?: boolean;
|
15121
15129
|
}
|
15122
15130
|
|
15123
15131
|
export interface NavigateToHistoryEntryRequest {
|
@@ -19556,7 +19564,7 @@ export namespace Protocol {
|
|
19556
19564
|
errorMessage?: string;
|
19557
19565
|
}
|
19558
19566
|
|
19559
|
-
export type RuleSetErrorType = ('SourceIsNotJsonObject' | 'InvalidRulesSkipped');
|
19567
|
+
export type RuleSetErrorType = ('SourceIsNotJsonObject' | 'InvalidRulesSkipped' | 'InvalidRulesetLevelTag');
|
19560
19568
|
|
19561
19569
|
/**
|
19562
19570
|
* The type of preloading attempted. It corresponds to
|