devtools-protocol 0.0.1526665 → 0.0.1528500

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.
@@ -15864,6 +15864,7 @@
15864
15864
  "preload",
15865
15865
  "SignedExchange",
15866
15866
  "preflight",
15867
+ "FedCM",
15867
15868
  "other"
15868
15869
  ]
15869
15870
  },
@@ -16596,6 +16597,23 @@
16596
16597
  }
16597
16598
  ]
16598
16599
  },
16600
+ {
16601
+ "id": "BlockPattern",
16602
+ "experimental": true,
16603
+ "type": "object",
16604
+ "properties": [
16605
+ {
16606
+ "name": "urlPattern",
16607
+ "description": "URL pattern to match. Patterns use the URLPattern constructor string syntax\n(https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.",
16608
+ "type": "string"
16609
+ },
16610
+ {
16611
+ "name": "block",
16612
+ "description": "Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later\n`BlockPattern`.",
16613
+ "type": "boolean"
16614
+ }
16615
+ ]
16616
+ },
16599
16617
  {
16600
16618
  "id": "DirectSocketDnsQueryType",
16601
16619
  "experimental": true,
@@ -17574,11 +17592,11 @@
17574
17592
  "parameters": [
17575
17593
  {
17576
17594
  "name": "urlPatterns",
17577
- "description": "URL patterns to block. Patterns use the URLPattern constructor string syntax\n(https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.",
17595
+ "description": "Patterns to match in the order in which they are given. These patterns\nalso take precedence over any wildcard patterns defined in `urls`.",
17578
17596
  "optional": true,
17579
17597
  "type": "array",
17580
17598
  "items": {
17581
- "type": "string"
17599
+ "$ref": "BlockPattern"
17582
17600
  }
17583
17601
  },
17584
17602
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1526665",
3
+ "version": "0.0.1528500",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -587,6 +587,7 @@ domain Network
587
587
  preload
588
588
  SignedExchange
589
589
  preflight
590
+ FedCM
590
591
  other
591
592
  # Initiator JavaScript stack trace, set for Script only.
592
593
  # Requires the Debugger domain to be enabled.
@@ -1267,12 +1268,21 @@ domain Network
1267
1268
  # List of search matches.
1268
1269
  array of Debugger.SearchMatch result
1269
1270
 
1271
+ experimental type BlockPattern extends object
1272
+ properties
1273
+ # URL pattern to match. Patterns use the URLPattern constructor string syntax
1274
+ # (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
1275
+ string urlPattern
1276
+ # Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later
1277
+ # `BlockPattern`.
1278
+ boolean block
1279
+
1270
1280
  # Blocks URLs from loading.
1271
1281
  experimental command setBlockedURLs
1272
1282
  parameters
1273
- # URL patterns to block. Patterns use the URLPattern constructor string syntax
1274
- # (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`.
1275
- optional array of string urlPatterns
1283
+ # Patterns to match in the order in which they are given. These patterns
1284
+ # also take precedence over any wildcard patterns defined in `urls`.
1285
+ optional array of BlockPattern urlPatterns
1276
1286
  # URL patterns to block. Wildcards ('*') are allowed.
1277
1287
  deprecated optional array of string urls
1278
1288
 
@@ -12686,6 +12686,7 @@ export namespace Protocol {
12686
12686
  Preload = 'preload',
12687
12687
  SignedExchange = 'SignedExchange',
12688
12688
  Preflight = 'preflight',
12689
+ FedCM = 'FedCM',
12689
12690
  Other = 'other',
12690
12691
  }
12691
12692
 
@@ -12696,7 +12697,7 @@ export namespace Protocol {
12696
12697
  /**
12697
12698
  * Type of this initiator.
12698
12699
  */
12699
- type: ('parser' | 'script' | 'preload' | 'SignedExchange' | 'preflight' | 'other');
12700
+ type: ('parser' | 'script' | 'preload' | 'SignedExchange' | 'preflight' | 'FedCM' | 'other');
12700
12701
  /**
12701
12702
  * Initiator JavaScript stack trace, set for Script only.
12702
12703
  * Requires the Debugger domain to be enabled.
@@ -13227,6 +13228,22 @@ export namespace Protocol {
13227
13228
  packetReordering?: boolean;
13228
13229
  }
13229
13230
 
13231
+ /**
13232
+ * @experimental
13233
+ */
13234
+ export interface BlockPattern {
13235
+ /**
13236
+ * URL pattern to match. Patterns use the URLPattern constructor string syntax
13237
+ * (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*\/*.css`.
13238
+ */
13239
+ urlPattern: string;
13240
+ /**
13241
+ * Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later
13242
+ * `BlockPattern`.
13243
+ */
13244
+ block: boolean;
13245
+ }
13246
+
13230
13247
  /**
13231
13248
  * @experimental
13232
13249
  */
@@ -13815,10 +13832,10 @@ export namespace Protocol {
13815
13832
 
13816
13833
  export interface SetBlockedURLsRequest {
13817
13834
  /**
13818
- * URL patterns to block. Patterns use the URLPattern constructor string syntax
13819
- * (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*\/*.css`.
13835
+ * Patterns to match in the order in which they are given. These patterns
13836
+ * also take precedence over any wildcard patterns defined in `urls`.
13820
13837
  */
13821
- urlPatterns?: string[];
13838
+ urlPatterns?: BlockPattern[];
13822
13839
  /**
13823
13840
  * URL patterns to block. Wildcards ('*') are allowed.
13824
13841
  * @deprecated