@types/chrome 0.0.185 → 0.0.186

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +54 -0
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 13 May 2022 15:31:45 GMT
11
+ * Last updated: Sun, 15 May 2022 02:31:34 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
  * Global values: `chrome`
14
14
 
chrome/index.d.ts CHANGED
@@ -11545,6 +11545,8 @@ declare namespace chrome.declarativeNetRequest {
11545
11545
  domainType?: DomainType | undefined;
11546
11546
 
11547
11547
  /**
11548
+ * @deprecated since Chrome 101. Use initiatorDomains instead.
11549
+
11548
11550
  * The rule will only match network requests originating from the list of domains.
11549
11551
  * If the list is omitted, the rule is applied to requests from all domains.
11550
11552
  * An empty list is not allowed.
@@ -11558,6 +11560,8 @@ declare namespace chrome.declarativeNetRequest {
11558
11560
  domains?: string[] | undefined;
11559
11561
 
11560
11562
  /**
11563
+ * @deprecated since Chrome 101. Use excludedInitiatorDomains instead
11564
+ *
11561
11565
  * The rule will not match network requests originating from the list of excludedDomains.
11562
11566
  * If the list is empty or omitted, no domains are excluded.
11563
11567
  * This takes precedence over domains.
@@ -11570,6 +11574,56 @@ declare namespace chrome.declarativeNetRequest {
11570
11574
  */
11571
11575
  excludedDomains?: string[] | undefined;
11572
11576
 
11577
+ /**
11578
+ * The rule will only match network requests originating from the list of initiatorDomains.
11579
+ * If the list is omitted, the rule is applied to requests from all domains.
11580
+ * An empty list is not allowed.
11581
+ *
11582
+ * Notes:
11583
+ * Sub-domains like "a.example.com" are also allowed.
11584
+ * The entries must consist of only ascii characters.
11585
+ * Use punycode encoding for internationalized domains.
11586
+ * This matches against the request initiator and not the request url.
11587
+ */
11588
+ initiatorDomains?: string[] | undefined;
11589
+
11590
+ /**
11591
+ * The rule will not match network requests originating from the list of excludedInitiatorDomains.
11592
+ * If the list is empty or omitted, no domains are excluded.
11593
+ * This takes precedence over initiatorDomains.
11594
+ *
11595
+ * Notes:
11596
+ * Sub-domains like "a.example.com" are also allowed.
11597
+ * The entries must consist of only ascii characters.
11598
+ * Use punycode encoding for internationalized domains.
11599
+ * This matches against the request initiator and not the request url.
11600
+ */
11601
+ excludedInitiatorDomains?: string[] | undefined;
11602
+
11603
+ /**
11604
+ * The rule will only match network requests when the domain matches one from the list of requestDomains.
11605
+ * If the list is omitted, the rule is applied to requests from all domains.
11606
+ * An empty list is not allowed.
11607
+ *
11608
+ * Notes:
11609
+ * Sub-domains like "a.example.com" are also allowed.
11610
+ * The entries must consist of only ascii characters.
11611
+ * Use punycode encoding for internationalized domains.
11612
+ */
11613
+ requestDomains?: string[] | undefined;
11614
+
11615
+ /**
11616
+ * The rule will not match network requests when the domains matches one from the list of excludedRequestDomains.
11617
+ * If the list is empty or omitted, no domains are excluded.
11618
+ * This takes precedence over requestDomains.
11619
+ *
11620
+ * Notes:
11621
+ * Sub-domains like "a.example.com" are also allowed.
11622
+ * The entries must consist of only ascii characters.
11623
+ * Use punycode encoding for internationalized domains.
11624
+ */
11625
+ excludedRequestDomains?: string[] | undefined;
11626
+
11573
11627
  /**
11574
11628
  * List of request methods which the rule won't match.
11575
11629
  * Only one of requestMethods and excludedRequestMethods should be specified.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.185",
3
+ "version": "0.0.186",
4
4
  "description": "TypeScript definitions for Chrome extension development",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -98,6 +98,6 @@
98
98
  "@types/filesystem": "*",
99
99
  "@types/har-format": "*"
100
100
  },
101
- "typesPublisherContentHash": "158faaea34da781ab011edd94bbb860ee76dd0d34ee831755d9ade645556457c",
101
+ "typesPublisherContentHash": "c587aec722ad7e28a6faf22860c3387c31c4d913ad63f586b60de7bf907f3be6",
102
102
  "typeScriptVersion": "3.9"
103
103
  }