devtools-protocol 0.0.1523305 → 0.0.1523998

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.
@@ -17571,9 +17571,20 @@
17571
17571
  "description": "Blocks URLs from loading.",
17572
17572
  "experimental": true,
17573
17573
  "parameters": [
17574
+ {
17575
+ "name": "urlPatterns",
17576
+ "description": "URL patterns to block. Patterns use the URLPattern constructor string syntax\n(https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.",
17577
+ "optional": true,
17578
+ "type": "array",
17579
+ "items": {
17580
+ "type": "string"
17581
+ }
17582
+ },
17574
17583
  {
17575
17584
  "name": "urls",
17576
17585
  "description": "URL patterns to block. Wildcards ('*') are allowed.",
17586
+ "deprecated": true,
17587
+ "optional": true,
17577
17588
  "type": "array",
17578
17589
  "items": {
17579
17590
  "type": "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1523305",
3
+ "version": "0.0.1523998",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1268,8 +1268,11 @@ domain Network
1268
1268
  # Blocks URLs from loading.
1269
1269
  experimental command setBlockedURLs
1270
1270
  parameters
1271
+ # URL patterns to block. Patterns use the URLPattern constructor string syntax
1272
+ # (https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.
1273
+ optional array of string urlPatterns
1271
1274
  # URL patterns to block. Wildcards ('*') are allowed.
1272
- array of string urls
1275
+ deprecated optional array of string urls
1273
1276
 
1274
1277
  # Toggles ignoring of service worker for each request.
1275
1278
  command setBypassServiceWorker
@@ -4277,7 +4277,7 @@ export namespace ProtocolMapping {
4277
4277
  * @experimental
4278
4278
  */
4279
4279
  'Network.setBlockedURLs': {
4280
- paramsType: [Protocol.Network.SetBlockedURLsRequest];
4280
+ paramsType: [Protocol.Network.SetBlockedURLsRequest?];
4281
4281
  returnType: void;
4282
4282
  };
4283
4283
  /**
@@ -13814,10 +13814,16 @@ export namespace Protocol {
13814
13814
  }
13815
13815
 
13816
13816
  export interface SetBlockedURLsRequest {
13817
+ /**
13818
+ * URL patterns to block. Patterns use the URLPattern constructor string syntax
13819
+ * (https://urlpattern.spec.whatwg.org/). Example: `*://*:*/*.css`.
13820
+ */
13821
+ urlPatterns?: string[];
13817
13822
  /**
13818
13823
  * URL patterns to block. Wildcards ('*') are allowed.
13824
+ * @deprecated
13819
13825
  */
13820
- urls: string[];
13826
+ urls?: string[];
13821
13827
  }
13822
13828
 
13823
13829
  export interface SetBypassServiceWorkerRequest {