devtools-protocol 0.0.1695166 → 0.0.1695952
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.
|
@@ -26473,7 +26473,7 @@
|
|
|
26473
26473
|
},
|
|
26474
26474
|
{
|
|
26475
26475
|
"id": "ServiceWorkerRouterCondition",
|
|
26476
|
-
"description": "Mostly corresponds to `RouterCondition` in ServiceWorker spec\n(https://www.w3.org/TR/service-workers/#dictdef-routercondition)
|
|
26476
|
+
"description": "Mostly corresponds to `RouterCondition` in ServiceWorker spec\n(https://www.w3.org/TR/service-workers/#dictdef-routercondition)",
|
|
26477
26477
|
"type": "object",
|
|
26478
26478
|
"properties": [
|
|
26479
26479
|
{
|
|
@@ -26501,6 +26501,19 @@
|
|
|
26501
26501
|
"name": "runningStatus",
|
|
26502
26502
|
"optional": true,
|
|
26503
26503
|
"$ref": "ServiceWorkerVersionRunningStatus"
|
|
26504
|
+
},
|
|
26505
|
+
{
|
|
26506
|
+
"name": "or",
|
|
26507
|
+
"optional": true,
|
|
26508
|
+
"type": "array",
|
|
26509
|
+
"items": {
|
|
26510
|
+
"$ref": "ServiceWorkerRouterCondition"
|
|
26511
|
+
}
|
|
26512
|
+
},
|
|
26513
|
+
{
|
|
26514
|
+
"name": "not",
|
|
26515
|
+
"optional": true,
|
|
26516
|
+
"$ref": "ServiceWorkerRouterCondition"
|
|
26504
26517
|
}
|
|
26505
26518
|
]
|
|
26506
26519
|
},
|
package/package.json
CHANGED
|
@@ -33,9 +33,7 @@ experimental domain ServiceWorker
|
|
|
33
33
|
redundant
|
|
34
34
|
|
|
35
35
|
# Mostly corresponds to `RouterCondition` in ServiceWorker spec
|
|
36
|
-
# (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
|
|
37
|
-
# currently lacks support for the nested conditions ("or" and "not").
|
|
38
|
-
# TODO(crbug.com/540469610): Support recursive conditions.
|
|
36
|
+
# (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
|
|
39
37
|
type ServiceWorkerRouterCondition extends object
|
|
40
38
|
properties
|
|
41
39
|
# Plain text, or JSON serialization of URLPatternInit or URLPattern
|
|
@@ -44,6 +42,8 @@ experimental domain ServiceWorker
|
|
|
44
42
|
optional string requestMode
|
|
45
43
|
optional string requestDestination
|
|
46
44
|
optional ServiceWorkerVersionRunningStatus runningStatus
|
|
45
|
+
optional array of ServiceWorkerRouterCondition or
|
|
46
|
+
optional ServiceWorkerRouterCondition not
|
|
47
47
|
|
|
48
48
|
type ServiceWorkerRouterSourceType extends string
|
|
49
49
|
enum
|
package/types/protocol.d.ts
CHANGED
|
@@ -19533,9 +19533,7 @@ export namespace Protocol {
|
|
|
19533
19533
|
|
|
19534
19534
|
/**
|
|
19535
19535
|
* Mostly corresponds to `RouterCondition` in ServiceWorker spec
|
|
19536
|
-
* (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
|
|
19537
|
-
* currently lacks support for the nested conditions ("or" and "not").
|
|
19538
|
-
* TODO(crbug.com/540469610): Support recursive conditions.
|
|
19536
|
+
* (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
|
|
19539
19537
|
*/
|
|
19540
19538
|
export interface ServiceWorkerRouterCondition {
|
|
19541
19539
|
/**
|
|
@@ -19546,6 +19544,8 @@ export namespace Protocol {
|
|
|
19546
19544
|
requestMode?: string;
|
|
19547
19545
|
requestDestination?: string;
|
|
19548
19546
|
runningStatus?: ServiceWorkerVersionRunningStatus;
|
|
19547
|
+
or?: ServiceWorkerRouterCondition[];
|
|
19548
|
+
not?: ServiceWorkerRouterCondition;
|
|
19549
19549
|
}
|
|
19550
19550
|
|
|
19551
19551
|
export type ServiceWorkerRouterSourceType = ('cache' | 'fetchEvent' | 'network' | 'raceNetworkAndFetchHandler' | 'raceNetworkAndCache' | 'sourceDict');
|