@adguard/hostlist-compiler 1.0.22 → 1.0.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adguard/hostlist-compiler",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "A simple tool that compiles hosts blocklists from multiple sources",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -12,6 +12,12 @@ const SUPPORTED_MODIFIERS = [
12
12
  '~important',
13
13
  'badfilter',
14
14
  'ctag',
15
+ 'denyallow',
16
+ // DNS-related modifiers.
17
+ 'client',
18
+ 'dnstype',
19
+ 'dnsrewrite',
20
+ 'ctag',
15
21
  ];
16
22
 
17
23
  /**
@@ -44,6 +44,8 @@ describe('Validate', () => {
44
44
  ||org^
45
45
  ||example.org^$third-party
46
46
  ||example.org^$important
47
+ ||*.ga^$denyallow=example1.ga|example2.ga
48
+ ://ww4.$denyallow=ww4.example.com
47
49
  ://example.org
48
50
  ||example.org^|
49
51
  @@||example.org^|$important
@@ -57,6 +59,8 @@ describe('Validate', () => {
57
59
  '||example.org^',
58
60
  '||ex*.org^', // valid because contains special characters
59
61
  '||example.org^$important',
62
+ '||*.ga^$denyallow=example1.ga|example2.ga',
63
+ '://ww4.$denyallow=ww4.example.com',
60
64
  '://example.org',
61
65
  '||example.org^|',
62
66
  '@@||example.org^|$important',