@adguard/filters-compiler 3.0.1
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/LICENSE +166 -0
- package/README.md +242 -0
- package/dist/build.txt +1 -0
- package/dist/index.cjs +4663 -0
- package/dist/index.js +4658 -0
- package/dist/schemas/filters.schema.json +275 -0
- package/dist/schemas/filters_i18n.schema.json +116592 -0
- package/dist/schemas/mac/filters.schema.json +184 -0
- package/dist/schemas/mac/filters_i18n.schema.json +22667 -0
- package/dist/schemas/mac_v2/filters.schema.json +264 -0
- package/dist/schemas/mac_v2/filters_i18n.schema.json +36358 -0
- package/package.json +56 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://adguard.com/filters.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The ROOT Schema",
|
|
7
|
+
"required": [
|
|
8
|
+
"groups",
|
|
9
|
+
"tags",
|
|
10
|
+
"filters"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"groups": {
|
|
14
|
+
"$id": "#/properties/groups",
|
|
15
|
+
"type": "array",
|
|
16
|
+
"title": "The GROUPS Schema",
|
|
17
|
+
"items": {
|
|
18
|
+
"$id": "#/properties/groups/items",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"title": "The ITEMS Schema",
|
|
21
|
+
"required": [
|
|
22
|
+
"groupId",
|
|
23
|
+
"groupName",
|
|
24
|
+
"groupDescription",
|
|
25
|
+
"displayNumber"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"groupId": {
|
|
29
|
+
"$id": "#/properties/groups/items/properties/groupId",
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"title": "The GROUPID Schema",
|
|
32
|
+
"default": 0,
|
|
33
|
+
"examples": [
|
|
34
|
+
1
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"groupName": {
|
|
38
|
+
"$id": "#/properties/groups/items/properties/groupName",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"title": "The GROUPNAME Schema",
|
|
41
|
+
"default": "",
|
|
42
|
+
"examples": [
|
|
43
|
+
"Ad Blocking"
|
|
44
|
+
],
|
|
45
|
+
"pattern": "^(.*)$"
|
|
46
|
+
},
|
|
47
|
+
"groupDescription": {
|
|
48
|
+
"$id": "#/properties/groups/items/properties/groupDescription",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"title": "The GROUPDESCRIPTION Schema",
|
|
51
|
+
"default": "",
|
|
52
|
+
"examples": [
|
|
53
|
+
"Block ads"
|
|
54
|
+
],
|
|
55
|
+
"pattern": "^(.*)$"
|
|
56
|
+
},
|
|
57
|
+
"displayNumber": {
|
|
58
|
+
"$id": "#/properties/groups/items/properties/displayNumber",
|
|
59
|
+
"type": "integer",
|
|
60
|
+
"title": "The DISPLAYNUMBER Schema",
|
|
61
|
+
"default": 0,
|
|
62
|
+
"examples": [
|
|
63
|
+
1
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"tags": {
|
|
70
|
+
"$id": "#/properties/tags",
|
|
71
|
+
"type": "array",
|
|
72
|
+
"title": "The TAGS Schema",
|
|
73
|
+
"items": {
|
|
74
|
+
"$id": "#/properties/tags/items",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"title": "The ITEMS Schema",
|
|
77
|
+
"required": [
|
|
78
|
+
"tagId",
|
|
79
|
+
"keyword"
|
|
80
|
+
],
|
|
81
|
+
"properties": {
|
|
82
|
+
"tagId": {
|
|
83
|
+
"$id": "#/properties/tags/items/properties/tagId",
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"title": "The TAGID Schema",
|
|
86
|
+
"default": 0,
|
|
87
|
+
"examples": [
|
|
88
|
+
1
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"keyword": {
|
|
92
|
+
"$id": "#/properties/tags/items/properties/keyword",
|
|
93
|
+
"type": "string",
|
|
94
|
+
"title": "The KEYWORD Schema",
|
|
95
|
+
"default": "",
|
|
96
|
+
"examples": [
|
|
97
|
+
"purpose:ads"
|
|
98
|
+
],
|
|
99
|
+
"pattern": "^(.*)$"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"filters": {
|
|
105
|
+
"$id": "#/properties/filters",
|
|
106
|
+
"type": "array",
|
|
107
|
+
"title": "The FILTERS Schema",
|
|
108
|
+
"items": {
|
|
109
|
+
"$id": "#/properties/filters/items",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"title": "The ITEMS Schema",
|
|
112
|
+
"required": [
|
|
113
|
+
"filterId",
|
|
114
|
+
"name",
|
|
115
|
+
"description",
|
|
116
|
+
"timeAdded",
|
|
117
|
+
"homepage",
|
|
118
|
+
"expires",
|
|
119
|
+
"displayNumber",
|
|
120
|
+
"groupId",
|
|
121
|
+
"subscriptionUrl",
|
|
122
|
+
"downloadUrl",
|
|
123
|
+
"version",
|
|
124
|
+
"timeUpdated",
|
|
125
|
+
"deprecated",
|
|
126
|
+
"languages",
|
|
127
|
+
"tags"
|
|
128
|
+
],
|
|
129
|
+
"properties": {
|
|
130
|
+
"filterId": {
|
|
131
|
+
"$id": "#/properties/filters/items/properties/filterId",
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"title": "The FILTERID Schema",
|
|
134
|
+
"default": 0,
|
|
135
|
+
"examples": [
|
|
136
|
+
101
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"name": {
|
|
140
|
+
"$id": "#/properties/filters/items/properties/name",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"title": "The NAME Schema",
|
|
143
|
+
"default": "",
|
|
144
|
+
"examples": [
|
|
145
|
+
"EasyList"
|
|
146
|
+
],
|
|
147
|
+
"pattern": "^(.*)$"
|
|
148
|
+
},
|
|
149
|
+
"description": {
|
|
150
|
+
"$id": "#/properties/filters/items/properties/description",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"title": "The DESCRIPTION Schema",
|
|
153
|
+
"default": "",
|
|
154
|
+
"examples": [
|
|
155
|
+
"EasyList is the primary subscription that removes adverts from web pages in English language."
|
|
156
|
+
],
|
|
157
|
+
"pattern": "^(.*)$"
|
|
158
|
+
},
|
|
159
|
+
"timeAdded": {
|
|
160
|
+
"$id": "#/properties/filters/items/properties/timeAdded",
|
|
161
|
+
"type": "string",
|
|
162
|
+
"title": "The TIMEADDED Schema",
|
|
163
|
+
"default": "",
|
|
164
|
+
"examples": [
|
|
165
|
+
"2014-06-30T10:56:55+0300"
|
|
166
|
+
],
|
|
167
|
+
"pattern": "^(.*)$"
|
|
168
|
+
},
|
|
169
|
+
"deprecated": {
|
|
170
|
+
"$id": "#/properties/filters/items/properties/deprecated",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"title": "The DEPRECATED Schema",
|
|
173
|
+
"default": false
|
|
174
|
+
},
|
|
175
|
+
"homepage": {
|
|
176
|
+
"$id": "#/properties/filters/items/properties/homepage",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"title": "The HOMEPAGE Schema",
|
|
179
|
+
"default": "",
|
|
180
|
+
"examples": [
|
|
181
|
+
"https://easylist.to/"
|
|
182
|
+
],
|
|
183
|
+
"pattern": "^(.*)$"
|
|
184
|
+
},
|
|
185
|
+
"expires": {
|
|
186
|
+
"$id": "#/properties/filters/items/properties/expires",
|
|
187
|
+
"type": "integer",
|
|
188
|
+
"title": "The EXPIRES Schema",
|
|
189
|
+
"default": 0,
|
|
190
|
+
"examples": [
|
|
191
|
+
172800
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"displayNumber": {
|
|
195
|
+
"$id": "#/properties/filters/items/properties/displayNumber",
|
|
196
|
+
"type": "integer",
|
|
197
|
+
"title": "The DISPLAYNUMBER Schema",
|
|
198
|
+
"default": 0,
|
|
199
|
+
"examples": [
|
|
200
|
+
3
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"groupId": {
|
|
204
|
+
"$id": "#/properties/filters/items/properties/groupId",
|
|
205
|
+
"type": "integer",
|
|
206
|
+
"title": "The GROUPID Schema",
|
|
207
|
+
"default": 0,
|
|
208
|
+
"examples": [
|
|
209
|
+
1
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"subscriptionUrl": {
|
|
213
|
+
"$id": "#/properties/filters/items/properties/subscriptionUrl",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"title": "The SUBSCRIPTIONURL Schema",
|
|
216
|
+
"default": "",
|
|
217
|
+
"examples": [
|
|
218
|
+
"https://easylist.to/easylist/easylist.txt"
|
|
219
|
+
],
|
|
220
|
+
"pattern": "^(.*)$"
|
|
221
|
+
},
|
|
222
|
+
"downloadUrl": {
|
|
223
|
+
"$id": "#/properties/filters/items/properties/downloadUrl",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"title": "The DOWNLOADURL Schema",
|
|
226
|
+
"default": "",
|
|
227
|
+
"examples": [
|
|
228
|
+
"https://filters.adtidy.org/extension/safari/filters/1.txt"
|
|
229
|
+
],
|
|
230
|
+
"pattern": "^(.*)$"
|
|
231
|
+
},
|
|
232
|
+
"version": {
|
|
233
|
+
"$id": "#/properties/filters/items/properties/version",
|
|
234
|
+
"type": "string",
|
|
235
|
+
"title": "The VERSION Schema",
|
|
236
|
+
"default": "",
|
|
237
|
+
"examples": [
|
|
238
|
+
"2.0.20.32"
|
|
239
|
+
],
|
|
240
|
+
"pattern": "^(.*)$"
|
|
241
|
+
},
|
|
242
|
+
"timeUpdated": {
|
|
243
|
+
"$id": "#/properties/filters/items/properties/timeUpdated",
|
|
244
|
+
"type": "string",
|
|
245
|
+
"title": "The TIMEUPDATED Schema",
|
|
246
|
+
"default": "",
|
|
247
|
+
"examples": [
|
|
248
|
+
"2018-12-04T16:00:16+0300"
|
|
249
|
+
],
|
|
250
|
+
"pattern": "^(.*)$"
|
|
251
|
+
},
|
|
252
|
+
"languages": {
|
|
253
|
+
"$id": "#/properties/filters/items/properties/languages",
|
|
254
|
+
"type": "array",
|
|
255
|
+
"title": "The LANGUAGES Schema"
|
|
256
|
+
},
|
|
257
|
+
"tags": {
|
|
258
|
+
"$id": "#/properties/filters/items/properties/tags",
|
|
259
|
+
"type": "array",
|
|
260
|
+
"title": "The TAGS Schema",
|
|
261
|
+
"items": {
|
|
262
|
+
"$id": "#/properties/filters/items/properties/tags/items",
|
|
263
|
+
"type": "integer",
|
|
264
|
+
"title": "The Items Schema",
|
|
265
|
+
"default": 0,
|
|
266
|
+
"examples": [
|
|
267
|
+
1
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|