@adguard/agtree 3.2.0 → 3.2.2

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.
Files changed (425) hide show
  1. package/dist/ast-utils/clone.js +1 -1
  2. package/dist/ast-utils/modifiers.js +1 -1
  3. package/dist/ast-utils/network-rules.js +1 -1
  4. package/dist/ast-utils/scriptlets.js +1 -1
  5. package/dist/common/abp-snippet-injection-body-common.js +1 -1
  6. package/dist/common/agent-common.js +1 -1
  7. package/dist/common/ubo-selector-common.js +1 -1
  8. package/dist/compatibility-tables/base.js +1 -1
  9. package/dist/compatibility-tables/compatibility-table-data.js +2 -2
  10. package/dist/compatibility-tables/modifiers.js +1 -1
  11. package/dist/compatibility-tables/platforms.js +1 -1
  12. package/dist/compatibility-tables/redirects.js +1 -1
  13. package/dist/compatibility-tables/schemas/base.js +1 -1
  14. package/dist/compatibility-tables/schemas/modifier.js +1 -1
  15. package/dist/compatibility-tables/schemas/platform.js +1 -1
  16. package/dist/compatibility-tables/schemas/redirect.js +1 -1
  17. package/dist/compatibility-tables/schemas/resource-type.js +1 -1
  18. package/dist/compatibility-tables/schemas/scriptlet.js +1 -1
  19. package/dist/compatibility-tables/scriptlets.js +1 -1
  20. package/dist/compatibility-tables/utils/platform-helpers.js +1 -1
  21. package/dist/compatibility-tables/utils/resource-type-helpers.js +1 -1
  22. package/dist/compatibility-tables/utils/zod-camelcase.js +1 -1
  23. package/dist/converter/base-interfaces/base-converter.js +1 -1
  24. package/dist/converter/base-interfaces/conversion-result.js +1 -1
  25. package/dist/converter/base-interfaces/rule-converter-base.js +1 -1
  26. package/dist/converter/comment/index.js +1 -1
  27. package/dist/converter/cosmetic/css.js +1 -1
  28. package/dist/converter/cosmetic/element-hiding.js +1 -1
  29. package/dist/converter/cosmetic/header-removal.js +1 -1
  30. package/dist/converter/cosmetic/html.js +1 -1
  31. package/dist/converter/cosmetic/index.js +18 -16
  32. package/dist/converter/cosmetic/rule-modifiers/adg.js +1 -1
  33. package/dist/converter/cosmetic/rule-modifiers/ubo.js +1 -8
  34. package/dist/converter/cosmetic/scriptlet.js +33 -6
  35. package/dist/converter/css/index.js +1 -1
  36. package/dist/converter/data/css.js +1 -1
  37. package/dist/converter/filter-list.js +1 -1
  38. package/dist/converter/index.js +1 -1
  39. package/dist/converter/misc/network-rule-modifier.js +1 -1
  40. package/dist/converter/network/index.js +1 -1
  41. package/dist/converter/raw-filter-list.js +1 -1
  42. package/dist/converter/raw-rule.js +1 -1
  43. package/dist/converter/rule.js +1 -1
  44. package/dist/deserializer/base-deserializer.js +1 -1
  45. package/dist/deserializer/comment/agent-comment-deserializer.js +1 -1
  46. package/dist/deserializer/comment/agent-deserializer.js +1 -1
  47. package/dist/deserializer/comment/comment-rule-deserializer.js +1 -1
  48. package/dist/deserializer/comment/config-comment-deserializer.js +1 -1
  49. package/dist/deserializer/comment/hint-comment-deserializer.js +1 -1
  50. package/dist/deserializer/comment/hint-deserializer.js +1 -1
  51. package/dist/deserializer/comment/metadata-comment-deserializer.js +1 -1
  52. package/dist/deserializer/comment/pre-processor-comment-deserializer.js +1 -1
  53. package/dist/deserializer/comment/simple-comment-deserializer.js +1 -1
  54. package/dist/deserializer/cosmetic/cosmetic-rule-deserializer.js +1 -1
  55. package/dist/deserializer/cosmetic/css-injection-body-deserializer.js +1 -1
  56. package/dist/deserializer/cosmetic/element-hiding-body-deserializer.js +1 -1
  57. package/dist/deserializer/cosmetic/scriptlet-body/abp-snippet-injection-body-deserializer.js +1 -1
  58. package/dist/deserializer/cosmetic/scriptlet-body/adg-scriptlet-injection-body-deserializer.js +1 -1
  59. package/dist/deserializer/cosmetic/scriptlet-body/scriptlet-body-deserializer.js +1 -1
  60. package/dist/deserializer/cosmetic/scriptlet-body/ubo-scriptlet-injection-body-deserializer.js +1 -1
  61. package/dist/deserializer/empty-rule-deserializer.js +1 -1
  62. package/dist/deserializer/filterlist-deserializer.js +1 -1
  63. package/dist/deserializer/index.js +1 -1
  64. package/dist/deserializer/invalid-rule-deserializer.js +1 -1
  65. package/dist/deserializer/invalid-rule-error-node-deserializer.js +1 -1
  66. package/dist/deserializer/misc/domain-list-deserializer.js +1 -1
  67. package/dist/deserializer/misc/list-item-deserializer.js +1 -1
  68. package/dist/deserializer/misc/list-items-deserializer.js +1 -1
  69. package/dist/deserializer/misc/logical-expression-deserializer.js +1 -1
  70. package/dist/deserializer/misc/modifier-deserializer.js +1 -1
  71. package/dist/deserializer/misc/modifier-list-deserializer.js +1 -1
  72. package/dist/deserializer/misc/parameter-list-deserializer.js +1 -1
  73. package/dist/deserializer/misc/value-deserializer.js +1 -1
  74. package/dist/deserializer/network/host-rule-deserializer.js +1 -1
  75. package/dist/deserializer/network/hostname-list-deserializer.js +1 -1
  76. package/dist/deserializer/network/network-rule-deserializer.js +1 -1
  77. package/dist/deserializer/rule-deserializer.js +1 -1
  78. package/dist/deserializer/syntax-deserialization-map.js +1 -1
  79. package/dist/errors/adblock-syntax-error.js +1 -1
  80. package/dist/errors/binary-schema-mismatch-error.js +1 -1
  81. package/dist/errors/not-implemented-error.js +1 -1
  82. package/dist/errors/rule-conversion-error.js +1 -1
  83. package/dist/generator/base-generator.js +1 -1
  84. package/dist/generator/comment/agent-comment-generator.js +1 -1
  85. package/dist/generator/comment/agent-generator.js +1 -1
  86. package/dist/generator/comment/comment-rule-generator.js +1 -1
  87. package/dist/generator/comment/config-comment-generator.js +1 -1
  88. package/dist/generator/comment/hint-comment-generator.js +1 -1
  89. package/dist/generator/comment/hint-generator.js +1 -1
  90. package/dist/generator/comment/metadata-comment-generator.js +1 -1
  91. package/dist/generator/comment/pre-processor-comment-generator.js +1 -1
  92. package/dist/generator/comment/simple-comment-generator.js +1 -1
  93. package/dist/generator/cosmetic/body/abp-snippet-injection-body-generator.js +1 -1
  94. package/dist/generator/cosmetic/body/adg-scriptlet-injection-body-generator.js +1 -1
  95. package/dist/generator/cosmetic/body/ubo-scriptlet-injection-body-generator.js +1 -1
  96. package/dist/generator/cosmetic/cosmetic-rule-body-generator.js +1 -1
  97. package/dist/generator/cosmetic/cosmetic-rule-generator.js +1 -1
  98. package/dist/generator/cosmetic/cosmetic-rule-pattern-generator.js +1 -1
  99. package/dist/generator/css/adg-css-injection-generator.js +1 -1
  100. package/dist/generator/filterlist-generator.js +1 -1
  101. package/dist/generator/index.js +1 -1
  102. package/dist/generator/misc/domain-list-generator.js +1 -1
  103. package/dist/generator/misc/list-items-generator.js +1 -1
  104. package/dist/generator/misc/logical-expression-generator.js +1 -1
  105. package/dist/generator/misc/modifier-generator.js +1 -1
  106. package/dist/generator/misc/modifier-list-generator.js +1 -1
  107. package/dist/generator/misc/parameter-list-generator.js +1 -1
  108. package/dist/generator/misc/value-generator.js +1 -1
  109. package/dist/generator/network/host-rule-generator.js +1 -1
  110. package/dist/generator/network/network-rule-generator.js +1 -1
  111. package/dist/generator/rule-generator.js +1 -1
  112. package/dist/index.js +1 -1
  113. package/dist/marshalling-utils/comment/agent-comment-common.js +1 -1
  114. package/dist/marshalling-utils/comment/agent-common.js +1 -1
  115. package/dist/marshalling-utils/comment/config-comment-common.js +1 -1
  116. package/dist/marshalling-utils/comment/hint-comment-common.js +1 -1
  117. package/dist/marshalling-utils/comment/hint-common.js +1 -1
  118. package/dist/marshalling-utils/comment/metadata-comment-common.js +1 -1
  119. package/dist/marshalling-utils/comment/pre-processor-comment-common.js +1 -1
  120. package/dist/marshalling-utils/comment/simple-comment-common.js +1 -1
  121. package/dist/marshalling-utils/cosmetic/body/abp-snippet-injection-body-common.js +1 -1
  122. package/dist/marshalling-utils/cosmetic/body/adg-scriptlet-injection-body-common.js +1 -1
  123. package/dist/marshalling-utils/cosmetic/body/css-injection-body-common.js +1 -1
  124. package/dist/marshalling-utils/cosmetic/body/element-hiding-body-common.js +1 -1
  125. package/dist/marshalling-utils/cosmetic/body/ubo-scriptlet-injection-body-common.js +1 -1
  126. package/dist/marshalling-utils/cosmetic/cosmetic-rule-common.js +1 -1
  127. package/dist/marshalling-utils/empty-rule-common.js +1 -1
  128. package/dist/marshalling-utils/filter-list-common.js +1 -1
  129. package/dist/marshalling-utils/invalid-rule-common.js +1 -1
  130. package/dist/marshalling-utils/invalid-rule-error-node-common.js +1 -1
  131. package/dist/marshalling-utils/misc/binary-type-common.js +1 -1
  132. package/dist/marshalling-utils/misc/domain-list-common.js +1 -1
  133. package/dist/marshalling-utils/misc/host-rule-common.js +1 -1
  134. package/dist/marshalling-utils/misc/hostname-list-common.js +1 -1
  135. package/dist/marshalling-utils/misc/list-item-common.js +1 -1
  136. package/dist/marshalling-utils/misc/logical-expression-common.js +1 -1
  137. package/dist/marshalling-utils/misc/modifier-common.js +1 -1
  138. package/dist/marshalling-utils/misc/modifier-list-common.js +1 -1
  139. package/dist/marshalling-utils/misc/parameter-list-common.js +1 -1
  140. package/dist/marshalling-utils/misc/value-common.js +1 -1
  141. package/dist/marshalling-utils/network/network-rule-common.js +1 -1
  142. package/dist/marshalling-utils/syntax-serialization-map.js +1 -1
  143. package/dist/nodes/index.js +1 -1
  144. package/dist/package.json.js +2 -2
  145. package/dist/parser/base-parser.js +1 -1
  146. package/dist/parser/comment/agent-comment-parser.js +1 -1
  147. package/dist/parser/comment/agent-parser.js +1 -1
  148. package/dist/parser/comment/comment-parser.js +1 -1
  149. package/dist/parser/comment/config-comment-parser.js +1 -1
  150. package/dist/parser/comment/hint-comment-parser.js +1 -1
  151. package/dist/parser/comment/hint-parser.js +1 -1
  152. package/dist/parser/comment/metadata-comment-parser.js +1 -1
  153. package/dist/parser/comment/preprocessor-parser.js +1 -1
  154. package/dist/parser/comment/simple-comment-parser.js +1 -1
  155. package/dist/parser/cosmetic/body/abp-snippet-injection-body-parser.js +1 -1
  156. package/dist/parser/cosmetic/body/adg-scriptlet-injection-body-parser.js +1 -1
  157. package/dist/parser/cosmetic/body/ubo-scriptlet-injection-body-parser.js +1 -1
  158. package/dist/parser/cosmetic/cosmetic-rule-parser.js +1 -1
  159. package/dist/parser/css/adg-css-injection-parser.js +1 -1
  160. package/dist/parser/css/balancing.js +1 -1
  161. package/dist/parser/css/constants.js +1 -1
  162. package/dist/parser/css/css-token-stream.js +1 -1
  163. package/dist/parser/css/ubo-selector-parser.js +2 -2
  164. package/dist/parser/filterlist-parser.js +1 -1
  165. package/dist/parser/index.js +1 -1
  166. package/dist/parser/misc/app-list-parser.js +1 -1
  167. package/dist/parser/misc/domain-list-parser.js +1 -1
  168. package/dist/parser/misc/list-items-parser.js +1 -1
  169. package/dist/parser/misc/logical-expression-parser.js +1 -1
  170. package/dist/parser/misc/method-list-parser.js +1 -1
  171. package/dist/parser/misc/modifier-list.js +1 -1
  172. package/dist/parser/misc/modifier-parser.js +1 -1
  173. package/dist/parser/misc/parameter-list-parser.js +1 -1
  174. package/dist/parser/misc/stealth-option-list-parser.js +1 -1
  175. package/dist/parser/misc/ubo-parameter-list-parser.js +1 -1
  176. package/dist/parser/misc/value-parser.js +1 -1
  177. package/dist/parser/network/host-rule-parser.js +1 -1
  178. package/dist/parser/network/network-rule-parser.js +1 -1
  179. package/dist/parser/options.js +1 -1
  180. package/dist/parser/rule-parser.js +1 -1
  181. package/dist/serializer/base-serializer.js +1 -1
  182. package/dist/serializer/comment/agent-comment-serializer.js +1 -1
  183. package/dist/serializer/comment/agent-serializer.js +1 -1
  184. package/dist/serializer/comment/comment-rule-serializer.js +1 -1
  185. package/dist/serializer/comment/config-comment-serializer.js +1 -1
  186. package/dist/serializer/comment/hint-comment-serializer.js +1 -1
  187. package/dist/serializer/comment/hint-serializer.js +1 -1
  188. package/dist/serializer/comment/metadata-comment-serializer.js +1 -1
  189. package/dist/serializer/comment/pre-processor-comment-serializer.js +1 -1
  190. package/dist/serializer/comment/simple-comment-serializer.js +1 -1
  191. package/dist/serializer/cosmetic/body/abp-snippet-injection-body-serializer.js +1 -1
  192. package/dist/serializer/cosmetic/body/adg-scriptlet-injection-body-serializer.js +1 -1
  193. package/dist/serializer/cosmetic/body/scriptlet-body-serializer.js +1 -1
  194. package/dist/serializer/cosmetic/body/ubo-scriptlet-injection-body-serializer.js +1 -1
  195. package/dist/serializer/cosmetic/cosmetic-rule-serializer.js +1 -1
  196. package/dist/serializer/cosmetic/css-injection-body-serializer.js +1 -1
  197. package/dist/serializer/cosmetic/element-hiding-body-serializer.js +1 -1
  198. package/dist/serializer/empty-rule-serializer.js +1 -1
  199. package/dist/serializer/filterlist-serializer.js +1 -1
  200. package/dist/serializer/index.js +1 -1
  201. package/dist/serializer/invalid-rule-error-node-serializer.js +1 -1
  202. package/dist/serializer/invalid-rule-serializer.js +1 -1
  203. package/dist/serializer/misc/domain-list-serializer.js +1 -1
  204. package/dist/serializer/misc/list-item-serializer.js +1 -1
  205. package/dist/serializer/misc/list-items-serializer.js +1 -1
  206. package/dist/serializer/misc/logical-expression-serializer.js +1 -1
  207. package/dist/serializer/misc/modifier-list-serializer.js +1 -1
  208. package/dist/serializer/misc/modifier-serializer.js +1 -1
  209. package/dist/serializer/misc/parameter-list-serializer.js +1 -1
  210. package/dist/serializer/misc/value-serializer.js +1 -1
  211. package/dist/serializer/network/host-rule-serializer.js +1 -1
  212. package/dist/serializer/network/hostname-list-serializer.js +1 -1
  213. package/dist/serializer/network/network-rule-serializer.js +1 -1
  214. package/dist/serializer/rule-serializer.js +1 -1
  215. package/dist/types/ast-utils/clone.d.ts +1 -1
  216. package/dist/types/ast-utils/filter-list.d.ts +1 -1
  217. package/dist/types/ast-utils/modifiers.d.ts +1 -1
  218. package/dist/types/ast-utils/network-rules.d.ts +2 -2
  219. package/dist/types/ast-utils/scriptlets.d.ts +2 -2
  220. package/dist/types/common/agent-common.d.ts +1 -1
  221. package/dist/types/compatibility-tables/base.d.ts +4 -4
  222. package/dist/types/compatibility-tables/compatibility-table-data.d.ts +1 -1
  223. package/dist/types/compatibility-tables/index.d.ts +10 -10
  224. package/dist/types/compatibility-tables/modifiers.d.ts +3 -3
  225. package/dist/types/compatibility-tables/redirects.d.ts +4 -4
  226. package/dist/types/compatibility-tables/schemas/index.d.ts +5 -5
  227. package/dist/types/compatibility-tables/scriptlets.d.ts +2 -2
  228. package/dist/types/compatibility-tables/utils/platform-helpers.d.ts +1 -1
  229. package/dist/types/compatibility-tables/utils/resource-type-helpers.d.ts +2 -2
  230. package/dist/types/converter/base-interfaces/base-converter.d.ts +1 -1
  231. package/dist/types/converter/base-interfaces/conversion-result.d.ts +1 -1
  232. package/dist/types/converter/base-interfaces/rule-converter-base.d.ts +3 -3
  233. package/dist/types/converter/comment/index.d.ts +3 -3
  234. package/dist/types/converter/cosmetic/css.d.ts +3 -3
  235. package/dist/types/converter/cosmetic/element-hiding.d.ts +3 -3
  236. package/dist/types/converter/cosmetic/header-removal.d.ts +3 -3
  237. package/dist/types/converter/cosmetic/html.d.ts +3 -3
  238. package/dist/types/converter/cosmetic/index.d.ts +3 -3
  239. package/dist/types/converter/cosmetic/rule-modifiers/adg.d.ts +2 -2
  240. package/dist/types/converter/cosmetic/rule-modifiers/ubo.d.ts +2 -2
  241. package/dist/types/converter/cosmetic/scriptlet.d.ts +3 -3
  242. package/dist/types/converter/css/index.d.ts +3 -3
  243. package/dist/types/converter/filter-list.d.ts +3 -3
  244. package/dist/types/converter/index.d.ts +4 -4
  245. package/dist/types/converter/misc/network-rule-modifier.d.ts +3 -3
  246. package/dist/types/converter/network/index.d.ts +3 -3
  247. package/dist/types/converter/raw-filter-list.d.ts +2 -2
  248. package/dist/types/converter/raw-rule.d.ts +2 -2
  249. package/dist/types/converter/rule.d.ts +3 -3
  250. package/dist/types/deserializer/base-deserializer.d.ts +2 -2
  251. package/dist/types/deserializer/comment/agent-comment-deserializer.d.ts +3 -3
  252. package/dist/types/deserializer/comment/agent-deserializer.d.ts +3 -3
  253. package/dist/types/deserializer/comment/comment-rule-deserializer.d.ts +3 -3
  254. package/dist/types/deserializer/comment/config-comment-deserializer.d.ts +3 -3
  255. package/dist/types/deserializer/comment/hint-comment-deserializer.d.ts +3 -3
  256. package/dist/types/deserializer/comment/hint-deserializer.d.ts +3 -3
  257. package/dist/types/deserializer/comment/metadata-comment-deserializer.d.ts +3 -3
  258. package/dist/types/deserializer/comment/pre-processor-comment-deserializer.d.ts +3 -3
  259. package/dist/types/deserializer/comment/simple-comment-deserializer.d.ts +3 -3
  260. package/dist/types/deserializer/cosmetic/cosmetic-rule-deserializer.d.ts +3 -3
  261. package/dist/types/deserializer/cosmetic/css-injection-body-deserializer.d.ts +3 -3
  262. package/dist/types/deserializer/cosmetic/element-hiding-body-deserializer.d.ts +3 -3
  263. package/dist/types/deserializer/cosmetic/scriptlet-body/abp-snippet-injection-body-deserializer.d.ts +3 -3
  264. package/dist/types/deserializer/cosmetic/scriptlet-body/adg-scriptlet-injection-body-deserializer.d.ts +3 -3
  265. package/dist/types/deserializer/cosmetic/scriptlet-body/scriptlet-body-deserializer.d.ts +3 -3
  266. package/dist/types/deserializer/cosmetic/scriptlet-body/ubo-scriptlet-injection-body-deserializer.d.ts +3 -3
  267. package/dist/types/deserializer/empty-rule-deserializer.d.ts +3 -3
  268. package/dist/types/deserializer/filterlist-deserializer.d.ts +3 -3
  269. package/dist/types/deserializer/index.d.ts +2 -2
  270. package/dist/types/deserializer/invalid-rule-deserializer.d.ts +3 -3
  271. package/dist/types/deserializer/invalid-rule-error-node-deserializer.d.ts +3 -3
  272. package/dist/types/deserializer/misc/domain-list-deserializer.d.ts +3 -3
  273. package/dist/types/deserializer/misc/list-item-deserializer.d.ts +3 -3
  274. package/dist/types/deserializer/misc/list-items-deserializer.d.ts +2 -2
  275. package/dist/types/deserializer/misc/logical-expression-deserializer.d.ts +3 -3
  276. package/dist/types/deserializer/misc/modifier-deserializer.d.ts +3 -3
  277. package/dist/types/deserializer/misc/modifier-list-deserializer.d.ts +3 -3
  278. package/dist/types/deserializer/misc/parameter-list-deserializer.d.ts +3 -3
  279. package/dist/types/deserializer/misc/value-deserializer.d.ts +3 -3
  280. package/dist/types/deserializer/network/host-rule-deserializer.d.ts +3 -3
  281. package/dist/types/deserializer/network/hostname-list-deserializer.d.ts +3 -3
  282. package/dist/types/deserializer/network/network-rule-deserializer.d.ts +3 -3
  283. package/dist/types/deserializer/rule-deserializer.d.ts +3 -3
  284. package/dist/types/deserializer/syntax-deserialization-map.d.ts +1 -1
  285. package/dist/types/generator/base-generator.d.ts +1 -1
  286. package/dist/types/generator/comment/agent-comment-generator.d.ts +2 -2
  287. package/dist/types/generator/comment/agent-generator.d.ts +2 -2
  288. package/dist/types/generator/comment/comment-rule-generator.d.ts +2 -2
  289. package/dist/types/generator/comment/config-comment-generator.d.ts +2 -2
  290. package/dist/types/generator/comment/hint-comment-generator.d.ts +2 -2
  291. package/dist/types/generator/comment/hint-generator.d.ts +2 -2
  292. package/dist/types/generator/comment/index.d.ts +1 -1
  293. package/dist/types/generator/comment/metadata-comment-generator.d.ts +2 -2
  294. package/dist/types/generator/comment/pre-processor-comment-generator.d.ts +2 -2
  295. package/dist/types/generator/comment/simple-comment-generator.d.ts +2 -2
  296. package/dist/types/generator/cosmetic/body/abp-snippet-injection-body-generator.d.ts +2 -2
  297. package/dist/types/generator/cosmetic/body/adg-scriptlet-injection-body-generator.d.ts +2 -2
  298. package/dist/types/generator/cosmetic/body/ubo-scriptlet-injection-body-generator.d.ts +2 -2
  299. package/dist/types/generator/cosmetic/cosmetic-rule-body-generator.d.ts +2 -2
  300. package/dist/types/generator/cosmetic/cosmetic-rule-generator.d.ts +2 -2
  301. package/dist/types/generator/cosmetic/cosmetic-rule-pattern-generator.d.ts +2 -2
  302. package/dist/types/generator/cosmetic/index.d.ts +1 -1
  303. package/dist/types/generator/css/adg-css-injection-generator.d.ts +2 -2
  304. package/dist/types/generator/css/ubo-selector-generator.d.ts +2 -2
  305. package/dist/types/generator/filterlist-generator.d.ts +2 -2
  306. package/dist/types/generator/index.d.ts +4 -4
  307. package/dist/types/generator/misc/domain-list-generator.d.ts +2 -2
  308. package/dist/types/generator/misc/list-items-generator.d.ts +1 -1
  309. package/dist/types/generator/misc/logical-expression-generator.d.ts +2 -2
  310. package/dist/types/generator/misc/modifier-generator.d.ts +2 -2
  311. package/dist/types/generator/misc/modifier-list-generator.d.ts +2 -2
  312. package/dist/types/generator/misc/parameter-list-generator.d.ts +2 -2
  313. package/dist/types/generator/misc/value-generator.d.ts +2 -2
  314. package/dist/types/generator/network/host-rule-generator.d.ts +2 -2
  315. package/dist/types/generator/network/index.d.ts +2 -2
  316. package/dist/types/generator/network/network-rule-generator.d.ts +2 -2
  317. package/dist/types/generator/rule-generator.d.ts +2 -2
  318. package/dist/types/index.d.ts +52 -52
  319. package/dist/types/marshalling-utils/misc/logical-expression-common.d.ts +1 -1
  320. package/dist/types/marshalling-utils/syntax-serialization-map.d.ts +1 -1
  321. package/dist/types/nodes/index.d.ts +2 -2
  322. package/dist/types/parser/base-parser.d.ts +2 -2
  323. package/dist/types/parser/comment/agent-comment-parser.d.ts +3 -3
  324. package/dist/types/parser/comment/agent-parser.d.ts +3 -3
  325. package/dist/types/parser/comment/comment-parser.d.ts +3 -3
  326. package/dist/types/parser/comment/config-comment-parser.d.ts +3 -3
  327. package/dist/types/parser/comment/hint-comment-parser.d.ts +3 -3
  328. package/dist/types/parser/comment/hint-parser.d.ts +3 -3
  329. package/dist/types/parser/comment/metadata-comment-parser.d.ts +3 -3
  330. package/dist/types/parser/comment/preprocessor-parser.d.ts +3 -3
  331. package/dist/types/parser/comment/simple-comment-parser.d.ts +3 -3
  332. package/dist/types/parser/cosmetic/body/abp-snippet-injection-body-parser.d.ts +3 -3
  333. package/dist/types/parser/cosmetic/body/adg-scriptlet-injection-body-parser.d.ts +3 -3
  334. package/dist/types/parser/cosmetic/body/ubo-scriptlet-injection-body-parser.d.ts +3 -3
  335. package/dist/types/parser/cosmetic/cosmetic-rule-parser.d.ts +3 -3
  336. package/dist/types/parser/css/adg-css-injection-parser.d.ts +3 -3
  337. package/dist/types/parser/css/ubo-selector-parser.d.ts +3 -3
  338. package/dist/types/parser/filterlist-parser.d.ts +3 -3
  339. package/dist/types/parser/index.d.ts +6 -6
  340. package/dist/types/parser/misc/app-list-parser.d.ts +3 -3
  341. package/dist/types/parser/misc/domain-list-parser.d.ts +3 -3
  342. package/dist/types/parser/misc/list-items-parser.d.ts +2 -2
  343. package/dist/types/parser/misc/logical-expression-parser.d.ts +3 -3
  344. package/dist/types/parser/misc/method-list-parser.d.ts +3 -3
  345. package/dist/types/parser/misc/modifier-list.d.ts +3 -3
  346. package/dist/types/parser/misc/modifier-parser.d.ts +3 -3
  347. package/dist/types/parser/misc/parameter-list-parser.d.ts +3 -3
  348. package/dist/types/parser/misc/stealth-option-list-parser.d.ts +3 -3
  349. package/dist/types/parser/misc/ubo-parameter-list-parser.d.ts +3 -3
  350. package/dist/types/parser/misc/value-parser.d.ts +3 -3
  351. package/dist/types/parser/network/host-rule-parser.d.ts +3 -3
  352. package/dist/types/parser/network/network-rule-parser.d.ts +3 -3
  353. package/dist/types/parser/rule-parser.d.ts +3 -3
  354. package/dist/types/serializer/base-serializer.d.ts +2 -2
  355. package/dist/types/serializer/comment/agent-comment-serializer.d.ts +3 -3
  356. package/dist/types/serializer/comment/agent-serializer.d.ts +3 -3
  357. package/dist/types/serializer/comment/comment-rule-serializer.d.ts +3 -3
  358. package/dist/types/serializer/comment/config-comment-serializer.d.ts +3 -3
  359. package/dist/types/serializer/comment/hint-comment-serializer.d.ts +3 -3
  360. package/dist/types/serializer/comment/hint-serializer.d.ts +3 -3
  361. package/dist/types/serializer/comment/metadata-comment-serializer.d.ts +3 -3
  362. package/dist/types/serializer/comment/pre-processor-comment-serializer.d.ts +3 -3
  363. package/dist/types/serializer/comment/simple-comment-serializer.d.ts +3 -3
  364. package/dist/types/serializer/cosmetic/body/abp-snippet-injection-body-serializer.d.ts +3 -3
  365. package/dist/types/serializer/cosmetic/body/adg-scriptlet-injection-body-serializer.d.ts +3 -3
  366. package/dist/types/serializer/cosmetic/body/scriptlet-body-serializer.d.ts +3 -3
  367. package/dist/types/serializer/cosmetic/body/ubo-scriptlet-injection-body-serializer.d.ts +3 -3
  368. package/dist/types/serializer/cosmetic/cosmetic-rule-serializer.d.ts +3 -3
  369. package/dist/types/serializer/cosmetic/css-injection-body-serializer.d.ts +3 -3
  370. package/dist/types/serializer/cosmetic/element-hiding-body-serializer.d.ts +3 -3
  371. package/dist/types/serializer/empty-rule-serializer.d.ts +3 -3
  372. package/dist/types/serializer/filterlist-serializer.d.ts +3 -3
  373. package/dist/types/serializer/index.d.ts +1 -1
  374. package/dist/types/serializer/invalid-rule-error-node-serializer.d.ts +3 -3
  375. package/dist/types/serializer/invalid-rule-serializer.d.ts +3 -3
  376. package/dist/types/serializer/misc/domain-list-serializer.d.ts +3 -3
  377. package/dist/types/serializer/misc/list-item-serializer.d.ts +3 -3
  378. package/dist/types/serializer/misc/list-items-serializer.d.ts +2 -2
  379. package/dist/types/serializer/misc/logical-expression-serializer.d.ts +3 -3
  380. package/dist/types/serializer/misc/modifier-list-serializer.d.ts +3 -3
  381. package/dist/types/serializer/misc/modifier-serializer.d.ts +3 -3
  382. package/dist/types/serializer/misc/parameter-list-serializer.d.ts +3 -3
  383. package/dist/types/serializer/misc/value-serializer.d.ts +3 -3
  384. package/dist/types/serializer/network/host-rule-serializer.d.ts +3 -3
  385. package/dist/types/serializer/network/hostname-list-serializer.d.ts +3 -3
  386. package/dist/types/serializer/network/network-rule-serializer.d.ts +3 -3
  387. package/dist/types/serializer/rule-serializer.d.ts +3 -3
  388. package/dist/types/tokenizer/tokenizer.d.ts +173 -0
  389. package/dist/types/utils/categorizer.d.ts +1 -1
  390. package/dist/types/utils/cosmetic-rule-separator.d.ts +1 -1
  391. package/dist/types/utils/index.d.ts +15 -15
  392. package/dist/types/utils/input-byte-buffer.d.ts +2 -2
  393. package/dist/types/utils/logical-expression.d.ts +1 -1
  394. package/dist/types/utils/output-byte-buffer.d.ts +2 -2
  395. package/dist/types/validator/index.d.ts +3 -3
  396. package/dist/types/validator/value.d.ts +2 -2
  397. package/dist/utils/adblockers.js +1 -1
  398. package/dist/utils/binary-schema-version.js +1 -1
  399. package/dist/utils/byte-buffer.js +1 -1
  400. package/dist/utils/categorizer.js +1 -1
  401. package/dist/utils/clone.js +1 -1
  402. package/dist/utils/constants.js +1 -1
  403. package/dist/utils/cosmetic-rule-separator.js +1 -1
  404. package/dist/utils/deep-freeze.js +1 -1
  405. package/dist/utils/domain.js +1 -1
  406. package/dist/utils/error.js +1 -1
  407. package/dist/utils/index.js +1 -1
  408. package/dist/utils/input-byte-buffer.js +1 -1
  409. package/dist/utils/is-chromium.js +1 -1
  410. package/dist/utils/logical-expression.js +1 -1
  411. package/dist/utils/multi-value-map.js +1 -1
  412. package/dist/utils/output-byte-buffer.js +1 -1
  413. package/dist/utils/position-provider.js +1 -1
  414. package/dist/utils/quotes.js +1 -1
  415. package/dist/utils/regexp.js +1 -1
  416. package/dist/utils/string.js +1 -1
  417. package/dist/utils/text-decoder-polyfill.js +1 -1
  418. package/dist/utils/text-encoder-polyfill.js +1 -1
  419. package/dist/utils/type-guards.js +1 -1
  420. package/dist/validator/constants.js +1 -1
  421. package/dist/validator/helpers.js +1 -1
  422. package/dist/validator/index.js +1 -1
  423. package/dist/validator/value.js +1 -1
  424. package/dist/version.js +1 -1
  425. package/package.json +29 -28
@@ -1,55 +1,55 @@
1
1
  /**
2
2
  * @file AGTree entry point
3
3
  */
4
- export { RuleParser } from './parser/rule-parser';
5
- export { RuleSerializer } from './serializer/rule-serializer';
6
- export { RuleDeserializer } from './deserializer/rule-deserializer';
7
- export { RuleGenerator } from './generator/rule-generator';
8
- export { type Agent, type AgentCommentRule, type AnyCommentRule, type AnyCosmeticRule, type AnyExpressionNode, type AnyRule, type CommentBase, CommentMarker, type CommentRule, CommentRuleType, type ConfigCommentRule, type CosmeticRule, CosmeticRuleSeparator, CosmeticRuleType, type CssInjectionRule, type CssInjectionRuleBody, type Domain, type DomainList, type DomainListSeparator, type ElementHidingRule, type ElementHidingRuleBody, type EmptyRule, type ExpressionOperatorNode, type ExpressionParenthesisNode, type ExpressionVariableNode, type FilterList, type Hint, type HintCommentRule, type HtmlFilteringRule, type HtmlFilteringRuleBody, type JsInjectionRule, type Location, type LocationRange, type MetadataCommentRule, type Modifier, type ModifierList, type NetworkRule, type Node, type ParameterList, type PreProcessorCommentRule, type RuleBase, RuleCategory, type ScriptletInjectionRule, type ScriptletInjectionRuleBody, type Value, NetworkRuleType, type HostnameList, type HostRule, type AnyNetworkRule, } from './nodes';
9
- export { AdblockSyntaxError } from './errors/adblock-syntax-error';
10
- export { AgentCommentParser } from './parser/comment/agent-comment-parser';
11
- export { AgentParser } from './parser/comment/agent-parser';
12
- export { CommentParser } from './parser/comment/comment-parser';
13
- export { ConfigCommentParser } from './parser/comment/config-comment-parser';
14
- export { CosmeticRuleParser } from './parser/cosmetic/cosmetic-rule-parser';
15
- export { AppListParser } from './parser/misc/app-list-parser';
16
- export { DomainListParser } from './parser/misc/domain-list-parser';
17
- export { MethodListParser } from './parser/misc/method-list-parser';
18
- export { StealthOptionListParser } from './parser/misc/stealth-option-list-parser';
19
- export { FilterListParser } from './parser/filterlist-parser';
20
- export { FilterListSerializer } from './serializer/filterlist-serializer';
21
- export { FilterListDeserializer } from './deserializer/filterlist-deserializer';
22
- export { HintCommentParser } from './parser/comment/hint-comment-parser';
23
- export { HintParser } from './parser/comment/hint-parser';
24
- export { LogicalExpressionParser } from './parser/misc/logical-expression-parser';
25
- export { MetadataCommentParser } from './parser/comment/metadata-comment-parser';
26
- export { ModifierListParser } from './parser/misc/modifier-list';
27
- export { ModifierParser } from './parser/misc/modifier-parser';
28
- export { NetworkRuleParser } from './parser/network/network-rule-parser';
29
- export { NotImplementedError } from './errors/not-implemented-error';
30
- export { ParameterListParser } from './parser/misc/parameter-list-parser';
31
- export { HostRuleParser } from './parser/network/host-rule-parser';
32
- export { PreProcessorCommentParser } from './parser/comment/preprocessor-parser';
33
- export { RuleConversionError } from './errors/rule-conversion-error';
34
- export { BinarySchemaMismatchError } from './errors/binary-schema-mismatch-error';
35
- export { modifierValidator } from './validator';
36
- export * from './converter';
37
- export { ADG_SCRIPTLET_MASK, AGLINT_COMMAND_PREFIX, COMMA_DOMAIN_LIST_SEPARATOR, NEGATION_MARKER, HINT_MARKER, IF, INCLUDE, MODIFIERS_SEPARATOR, MODIFIER_ASSIGN_OPERATOR, PIPE_MODIFIER_SEPARATOR, NETWORK_RULE_EXCEPTION_MARKER, NETWORK_RULE_SEPARATOR, PREPROCESSOR_MARKER, SAFARI_CB_AFFINITY, UBO_SCRIPTLET_MASK, } from './utils/constants';
38
- export { BINARY_SCHEMA_VERSION } from './utils/binary-schema-version';
39
- export { AdblockSyntax } from './utils/adblockers';
40
- export { type CosmeticRuleSeparatorFinderResult, CosmeticRuleSeparatorUtils } from './utils/cosmetic-rule-separator';
41
- export { DomainUtils } from './utils/domain';
42
- export { type VariableTable, LogicalExpressionUtils } from './utils/logical-expression';
43
- export { ADBLOCK_URL_START, ADBLOCK_URL_START_REGEX, ADBLOCK_URL_SEPARATOR, ADBLOCK_URL_SEPARATOR_REGEX, ADBLOCK_WILDCARD, ADBLOCK_WILDCARD_REGEX, SPECIAL_REGEX_SYMBOLS, RegExpUtils, } from './utils/regexp';
44
- export { QuoteType, QuoteUtils, } from './utils/quotes';
45
- export { type Position, PositionProvider } from './utils/position-provider';
46
- export { OutputByteBuffer } from './utils/output-byte-buffer';
47
- export { InputByteBuffer } from './utils/input-byte-buffer';
48
- export { ByteBuffer } from './utils/byte-buffer';
49
- export { encodeIntoPolyfill, type TextEncoderPolyfillResult } from './utils/text-encoder-polyfill';
50
- export { decodeTextPolyfill } from './utils/text-decoder-polyfill';
51
- export { RuleCategorizer } from './utils/categorizer';
52
- export { EXT_CSS_PSEUDO_CLASSES, EXT_CSS_LEGACY_ATTRIBUTES, FORBIDDEN_CSS_FUNCTIONS } from './converter/data/css';
53
- export { GenericPlatform, SpecificPlatform, modifiersCompatibilityTable, redirectsCompatibilityTable, scriptletsCompatibilityTable, parseRawPlatforms, type CompatibilityTable, type CompatibilityTableRow, type ProductRecords, type RowByProduct, type RowsByProduct, isGenericPlatform, getPlatformId, getSpecificPlatformName, ResourceType, getResourceTypeModifier, isValidResourceType, } from './compatibility-tables';
54
- export { AGTREE_VERSION } from './version';
55
- export { getSyntaxSerializationMap } from './marshalling-utils/syntax-serialization-map';
4
+ export { RuleParser } from './parser/rule-parser.js';
5
+ export { RuleSerializer } from './serializer/rule-serializer.js';
6
+ export { RuleDeserializer } from './deserializer/rule-deserializer.js';
7
+ export { RuleGenerator } from './generator/rule-generator.js';
8
+ export { type Agent, type AgentCommentRule, type AnyCommentRule, type AnyCosmeticRule, type AnyExpressionNode, type AnyRule, type CommentBase, CommentMarker, type CommentRule, CommentRuleType, type ConfigCommentRule, type CosmeticRule, CosmeticRuleSeparator, CosmeticRuleType, type CssInjectionRule, type CssInjectionRuleBody, type Domain, type DomainList, type DomainListSeparator, type ElementHidingRule, type ElementHidingRuleBody, type EmptyRule, type ExpressionOperatorNode, type ExpressionParenthesisNode, type ExpressionVariableNode, type FilterList, type Hint, type HintCommentRule, type HtmlFilteringRule, type HtmlFilteringRuleBody, type JsInjectionRule, type Location, type LocationRange, type MetadataCommentRule, type Modifier, type ModifierList, type NetworkRule, type Node, type ParameterList, type PreProcessorCommentRule, type RuleBase, RuleCategory, type ScriptletInjectionRule, type ScriptletInjectionRuleBody, type Value, NetworkRuleType, type HostnameList, type HostRule, type AnyNetworkRule, } from './nodes/index.js';
9
+ export { AdblockSyntaxError } from './errors/adblock-syntax-error.js';
10
+ export { AgentCommentParser } from './parser/comment/agent-comment-parser.js';
11
+ export { AgentParser } from './parser/comment/agent-parser.js';
12
+ export { CommentParser } from './parser/comment/comment-parser.js';
13
+ export { ConfigCommentParser } from './parser/comment/config-comment-parser.js';
14
+ export { CosmeticRuleParser } from './parser/cosmetic/cosmetic-rule-parser.js';
15
+ export { AppListParser } from './parser/misc/app-list-parser.js';
16
+ export { DomainListParser } from './parser/misc/domain-list-parser.js';
17
+ export { MethodListParser } from './parser/misc/method-list-parser.js';
18
+ export { StealthOptionListParser } from './parser/misc/stealth-option-list-parser.js';
19
+ export { FilterListParser } from './parser/filterlist-parser.js';
20
+ export { FilterListSerializer } from './serializer/filterlist-serializer.js';
21
+ export { FilterListDeserializer } from './deserializer/filterlist-deserializer.js';
22
+ export { HintCommentParser } from './parser/comment/hint-comment-parser.js';
23
+ export { HintParser } from './parser/comment/hint-parser.js';
24
+ export { LogicalExpressionParser } from './parser/misc/logical-expression-parser.js';
25
+ export { MetadataCommentParser } from './parser/comment/metadata-comment-parser.js';
26
+ export { ModifierListParser } from './parser/misc/modifier-list.js';
27
+ export { ModifierParser } from './parser/misc/modifier-parser.js';
28
+ export { NetworkRuleParser } from './parser/network/network-rule-parser.js';
29
+ export { NotImplementedError } from './errors/not-implemented-error.js';
30
+ export { ParameterListParser } from './parser/misc/parameter-list-parser.js';
31
+ export { HostRuleParser } from './parser/network/host-rule-parser.js';
32
+ export { PreProcessorCommentParser } from './parser/comment/preprocessor-parser.js';
33
+ export { RuleConversionError } from './errors/rule-conversion-error.js';
34
+ export { BinarySchemaMismatchError } from './errors/binary-schema-mismatch-error.js';
35
+ export { modifierValidator } from './validator/index.js';
36
+ export * from './converter/index.js';
37
+ export { ADG_SCRIPTLET_MASK, AGLINT_COMMAND_PREFIX, COMMA_DOMAIN_LIST_SEPARATOR, NEGATION_MARKER, HINT_MARKER, IF, INCLUDE, MODIFIERS_SEPARATOR, MODIFIER_ASSIGN_OPERATOR, PIPE_MODIFIER_SEPARATOR, NETWORK_RULE_EXCEPTION_MARKER, NETWORK_RULE_SEPARATOR, PREPROCESSOR_MARKER, SAFARI_CB_AFFINITY, UBO_SCRIPTLET_MASK, } from './utils/constants.js';
38
+ export { BINARY_SCHEMA_VERSION } from './utils/binary-schema-version.js';
39
+ export { AdblockSyntax } from './utils/adblockers.js';
40
+ export { type CosmeticRuleSeparatorFinderResult, CosmeticRuleSeparatorUtils } from './utils/cosmetic-rule-separator.js';
41
+ export { DomainUtils } from './utils/domain.js';
42
+ export { type VariableTable, LogicalExpressionUtils } from './utils/logical-expression.js';
43
+ export { ADBLOCK_URL_START, ADBLOCK_URL_START_REGEX, ADBLOCK_URL_SEPARATOR, ADBLOCK_URL_SEPARATOR_REGEX, ADBLOCK_WILDCARD, ADBLOCK_WILDCARD_REGEX, SPECIAL_REGEX_SYMBOLS, RegExpUtils, } from './utils/regexp.js';
44
+ export { QuoteType, QuoteUtils, } from './utils/quotes.js';
45
+ export { type Position, PositionProvider } from './utils/position-provider.js';
46
+ export { OutputByteBuffer } from './utils/output-byte-buffer.js';
47
+ export { InputByteBuffer } from './utils/input-byte-buffer.js';
48
+ export { ByteBuffer } from './utils/byte-buffer.js';
49
+ export { encodeIntoPolyfill, type TextEncoderPolyfillResult } from './utils/text-encoder-polyfill.js';
50
+ export { decodeTextPolyfill } from './utils/text-decoder-polyfill.js';
51
+ export { RuleCategorizer } from './utils/categorizer.js';
52
+ export { EXT_CSS_PSEUDO_CLASSES, EXT_CSS_LEGACY_ATTRIBUTES, FORBIDDEN_CSS_FUNCTIONS } from './converter/data/css.js';
53
+ export { GenericPlatform, SpecificPlatform, modifiersCompatibilityTable, redirectsCompatibilityTable, scriptletsCompatibilityTable, parseRawPlatforms, type CompatibilityTable, type CompatibilityTableRow, type ProductRecords, type RowByProduct, type RowsByProduct, isGenericPlatform, getPlatformId, getSpecificPlatformName, ResourceType, getResourceTypeModifier, isValidResourceType, } from './compatibility-tables/index.js';
54
+ export { AGTREE_VERSION } from './version.js';
55
+ export { getSyntaxSerializationMap } from './marshalling-utils/syntax-serialization-map.js';
@@ -1,4 +1,4 @@
1
- import { OperatorValue } from '../../nodes';
1
+ import { OperatorValue } from '../../nodes/index.js';
2
2
  /**
3
3
  * Property map for binary serialization.
4
4
  *
@@ -1,2 +1,2 @@
1
- import { AdblockSyntax } from '../utils/adblockers';
1
+ import { AdblockSyntax } from '../utils/adblockers.js';
2
2
  export declare const getSyntaxSerializationMap: () => Map<AdblockSyntax, number>;
@@ -1,5 +1,5 @@
1
- import { type AdblockSyntax } from '../utils/adblockers';
2
- import { type COMMA_DOMAIN_LIST_SEPARATOR, type PIPE_MODIFIER_SEPARATOR } from '../utils/constants';
1
+ import { type AdblockSyntax } from '../utils/adblockers.js';
2
+ import { type COMMA_DOMAIN_LIST_SEPARATOR, type PIPE_MODIFIER_SEPARATOR } from '../utils/constants.js';
3
3
  export declare const OperatorValue: {
4
4
  readonly Not: "!";
5
5
  readonly And: "&&";
@@ -1,5 +1,5 @@
1
- import { type Node } from '../nodes';
2
- import { type ParserOptions } from './options';
1
+ import { type Node } from '../nodes/index.js';
2
+ import { type ParserOptions } from './options.js';
3
3
  /**
4
4
  * Base class for parsers. Each parser should extend this class.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { type AgentCommentRule } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type AgentCommentRule } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `AgentParser` is responsible for parsing an Adblock agent rules.
5
5
  * Adblock agent comment marks that the filter list is supposed to
@@ -38,5 +38,5 @@ export declare class AgentCommentParser extends BaseParser {
38
38
  * @param baseOffset Starting offset of the input. Node locations are calculated relative to this offset.
39
39
  * @returns Agent rule AST or null (if the raw rule cannot be parsed as an adblock agent comment)
40
40
  */
41
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): AgentCommentRule | null;
41
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): AgentCommentRule | null;
42
42
  }
@@ -1,5 +1,5 @@
1
- import { type Agent } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type Agent } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `AgentParser` is responsible for parsing single adblock agent elements.
5
5
  *
@@ -36,5 +36,5 @@ export declare class AgentParser extends BaseParser {
36
36
  * @returns Agent rule AST
37
37
  * @throws {AdblockSyntaxError} If the raw rule cannot be parsed as an adblock agent
38
38
  */
39
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): Agent;
39
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): Agent;
40
40
  }
@@ -1,5 +1,5 @@
1
- import { type AnyCommentRule } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type AnyCommentRule } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `CommentParser` is responsible for parsing any comment-like adblock rules.
5
5
  *
@@ -72,5 +72,5 @@ export declare class CommentParser extends BaseParser {
72
72
  * @param baseOffset Starting offset of the input. Node locations are calculated relative to this offset.
73
73
  * @returns Comment AST or null (if the raw rule cannot be parsed as comment)
74
74
  */
75
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): AnyCommentRule | null;
75
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): AnyCommentRule | null;
76
76
  }
@@ -2,8 +2,8 @@
2
2
  * @file AGLint configuration comments. Inspired by ESLint inline configuration comments.
3
3
  * @see {@link https://eslint.org/docs/latest/user-guide/configuring/rules#using-configuration-comments}
4
4
  */
5
- import { type ConfigCommentRule } from '../../nodes';
6
- import { BaseParser } from '../base-parser';
5
+ import { type ConfigCommentRule } from '../../nodes/index.js';
6
+ import { BaseParser } from '../base-parser.js';
7
7
  /**
8
8
  * `ConfigCommentParser` is responsible for parsing inline AGLint configuration rules.
9
9
  * Generally, the idea is inspired by ESLint inline configuration comments.
@@ -27,5 +27,5 @@ export declare class ConfigCommentParser extends BaseParser {
27
27
  * @returns
28
28
  * Inline configuration comment AST or null (if the raw rule cannot be parsed as configuration comment)
29
29
  */
30
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): ConfigCommentRule | null;
30
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): ConfigCommentRule | null;
31
31
  }
@@ -1,5 +1,5 @@
1
- import { type HintCommentRule } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type HintCommentRule } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `HintRuleParser` is responsible for parsing AdGuard hint rules.
5
5
  *
@@ -29,5 +29,5 @@ export declare class HintCommentParser extends BaseParser {
29
29
  * @throws If the input matches the HINT pattern but syntactically invalid
30
30
  * @see {@link https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#hints-1}
31
31
  */
32
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): HintCommentRule | null;
32
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): HintCommentRule | null;
33
33
  }
@@ -2,8 +2,8 @@
2
2
  * @file AdGuard Hints
3
3
  * @see {@link https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#hints}
4
4
  */
5
- import { type Hint } from '../../nodes';
6
- import { BaseParser } from '../base-parser';
5
+ import { type Hint } from '../../nodes/index.js';
6
+ import { BaseParser } from '../base-parser.js';
7
7
  /**
8
8
  * `HintParser` is responsible for parsing AdGuard hints.
9
9
  *
@@ -26,5 +26,5 @@ export declare class HintParser extends BaseParser {
26
26
  * @returns Hint rule AST or null
27
27
  * @throws If the syntax is invalid
28
28
  */
29
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): Hint;
29
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): Hint;
30
30
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @file Metadata comments
3
3
  */
4
- import { type MetadataCommentRule } from '../../nodes';
5
- import { BaseParser } from '../base-parser';
4
+ import { type MetadataCommentRule } from '../../nodes/index.js';
5
+ import { BaseParser } from '../base-parser.js';
6
6
  /**
7
7
  * `MetadataParser` is responsible for parsing metadata comments.
8
8
  * Metadata comments are special comments that specify some properties of the list.
@@ -25,5 +25,5 @@ export declare class MetadataCommentParser extends BaseParser {
25
25
  * @param baseOffset Starting offset of the input. Node locations are calculated relative to this offset.
26
26
  * @returns Metadata comment AST or null (if the raw rule cannot be parsed as a metadata comment)
27
27
  */
28
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): MetadataCommentRule | null;
28
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): MetadataCommentRule | null;
29
29
  }
@@ -4,8 +4,8 @@
4
4
  * @see {@link https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#pre-processor-directives}
5
5
  * @see {@link https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#pre-parsing-directives}
6
6
  */
7
- import type { PreProcessorCommentRule } from '../../nodes';
8
- import { BaseParser } from '../base-parser';
7
+ import type { PreProcessorCommentRule } from '../../nodes/index.js';
8
+ import { BaseParser } from '../base-parser.js';
9
9
  /**
10
10
  * `PreProcessorParser` is responsible for parsing preprocessor rules.
11
11
  * Pre-processor comments are special comments that are used to control the behavior of the filter list processor.
@@ -39,5 +39,5 @@ export declare class PreProcessorCommentParser extends BaseParser {
39
39
  * @returns
40
40
  * Pre-processor comment AST or null (if the raw rule cannot be parsed as a pre-processor comment)
41
41
  */
42
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): PreProcessorCommentRule | null;
42
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): PreProcessorCommentRule | null;
43
43
  }
@@ -1,5 +1,5 @@
1
- import { type CommentRule } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type CommentRule } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `SimpleCommentParser` is responsible for parsing simple comments.
5
5
  * Some comments have a special meaning in adblock syntax, like agent comments or hints,
@@ -29,5 +29,5 @@ export declare class SimpleCommentParser extends BaseParser {
29
29
  * @param baseOffset Starting offset of the input. Node locations are calculated relative to this offset.
30
30
  * @returns Comment rule node or null (if the raw rule cannot be parsed as a simple comment).
31
31
  */
32
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): CommentRule | null;
32
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): CommentRule | null;
33
33
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @file uBlock scriptlet injection body parser
3
3
  */
4
- import { type ScriptletInjectionRuleBody } from '../../../nodes';
5
- import { BaseParser } from '../../base-parser';
4
+ import { type ScriptletInjectionRuleBody } from '../../../nodes/index.js';
5
+ import { BaseParser } from '../../base-parser.js';
6
6
  /**
7
7
  * `AbpSnippetInjectionBodyParser` is responsible for parsing the body of an Adblock Plus-style snippet rule.
8
8
  *
@@ -30,5 +30,5 @@ export declare class AbpSnippetInjectionBodyParser extends BaseParser {
30
30
  * #$#snippet0 arg0
31
31
  * ```
32
32
  */
33
- static parse(raw: string, options?: import("../../options").ParserOptions, baseOffset?: number): ScriptletInjectionRuleBody;
33
+ static parse(raw: string, options?: import("../../index.js").ParserOptions, baseOffset?: number): ScriptletInjectionRuleBody;
34
34
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @file AdGuard scriptlet injection body parser
3
3
  */
4
- import { BaseParser } from '../../base-parser';
5
- import { type ScriptletInjectionRuleBody } from '../../../nodes';
4
+ import { BaseParser } from '../../base-parser.js';
5
+ import { type ScriptletInjectionRuleBody } from '../../../nodes/index.js';
6
6
  /**
7
7
  * `AdgScriptletInjectionBodyParser` is responsible for parsing the body of an AdGuard-style scriptlet rule.
8
8
  *
@@ -43,5 +43,5 @@ export declare class AdgScriptletInjectionBodyParser extends BaseParser {
43
43
  * //scriptlet('scriptlet0', 'arg0')
44
44
  * ```
45
45
  */
46
- static parse(raw: string, options?: import("../../options").ParserOptions, baseOffset?: number): ScriptletInjectionRuleBody;
46
+ static parse(raw: string, options?: import("../../index.js").ParserOptions, baseOffset?: number): ScriptletInjectionRuleBody;
47
47
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @file uBlock scriptlet injection body parser
3
3
  */
4
- import { type ScriptletInjectionRuleBody } from '../../../nodes';
5
- import { BaseParser } from '../../base-parser';
4
+ import { type ScriptletInjectionRuleBody } from '../../../nodes/index.js';
5
+ import { BaseParser } from '../../base-parser.js';
6
6
  /**
7
7
  * `UboScriptletInjectionBodyParser` is responsible for parsing the body of a uBlock-style scriptlet rule.
8
8
  *
@@ -40,5 +40,5 @@ export declare class UboScriptletInjectionBodyParser extends BaseParser {
40
40
  * ##+js(scriptlet0, arg0)
41
41
  * ```
42
42
  */
43
- static parse(raw: string, options?: import("../../options").ParserOptions, baseOffset?: number): ScriptletInjectionRuleBody;
43
+ static parse(raw: string, options?: import("../../index.js").ParserOptions, baseOffset?: number): ScriptletInjectionRuleBody;
44
44
  }
@@ -1,5 +1,5 @@
1
- import { type AnyCosmeticRule } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type AnyCosmeticRule } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * Possible error messages for uBO selectors. Formatted with {@link sprintf}.
5
5
  */
@@ -47,5 +47,5 @@ export declare class CosmeticRuleParser extends BaseParser {
47
47
  * Parsed cosmetic rule AST or null if it failed to parse based on the known cosmetic rules
48
48
  * @throws If the input matches the cosmetic rule pattern but syntactically invalid
49
49
  */
50
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): AnyCosmeticRule | null;
50
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): AnyCosmeticRule | null;
51
51
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @file Parser for AdGuard CSS injections.
3
3
  */
4
- import { type CssInjectionRuleBody } from '../../nodes';
5
- import { BaseParser } from '../base-parser';
4
+ import { type CssInjectionRuleBody } from '../../nodes/index.js';
5
+ import { BaseParser } from '../base-parser.js';
6
6
  export declare const REMOVE_PROPERTY = "remove";
7
7
  export declare const REMOVE_VALUE = "true";
8
8
  export declare const ERROR_MESSAGES: {
@@ -24,5 +24,5 @@ export declare class AdgCssInjectionParser extends BaseParser {
24
24
  * @returns Parsed AdGuard CSS injection {@link CssInjectionRuleBody}.
25
25
  * @throws An {@link AdblockSyntaxError} if the selector list is syntactically invalid.
26
26
  */
27
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): CssInjectionRuleBody;
27
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): CssInjectionRuleBody;
28
28
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @file Parser for special uBO selectors.
3
3
  */
4
- import { type UboSelector } from '../../nodes';
5
- import { BaseParser } from '../base-parser';
4
+ import { type UboSelector } from '../../nodes/index.js';
5
+ import { BaseParser } from '../base-parser.js';
6
6
  /**
7
7
  * Possible error messages for uBO selectors. Formatted with {@link sprintf}.
8
8
  */
@@ -42,5 +42,5 @@ export declare class UboSelectorParser extends BaseParser {
42
42
  * @returns Parsed uBO selector {@link UboSelectorParser}.
43
43
  * @throws An {@link AdblockSyntaxError} if the selector list is syntactically invalid.
44
44
  */
45
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): UboSelector;
45
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): UboSelector;
46
46
  }
@@ -1,5 +1,5 @@
1
- import { type FilterList } from '../nodes';
2
- import { BaseParser } from './base-parser';
1
+ import { type FilterList } from '../nodes/index.js';
2
+ import { BaseParser } from './base-parser.js';
3
3
  /**
4
4
  * `FilterListParser` is responsible for parsing a whole adblock filter list (list of rules).
5
5
  * It is a wrapper around `RuleParser` which parses each line separately.
@@ -25,5 +25,5 @@ export declare class FilterListParser extends BaseParser {
25
25
  * ```
26
26
  * @throws If one of the rules is syntactically invalid (if `tolerant` is `false`)
27
27
  */
28
- static parse(raw: string, options?: import("./options").ParserOptions, baseOffset?: number): FilterList;
28
+ static parse(raw: string, options?: import("./options.js").ParserOptions, baseOffset?: number): FilterList;
29
29
  }
@@ -1,6 +1,6 @@
1
- export { RuleParser } from './rule-parser';
2
- export { defaultParserOptions, type ParserOptions } from './options';
3
- export { CosmeticRuleParser } from './cosmetic/cosmetic-rule-parser';
4
- export { DomainListParser } from './misc/domain-list-parser';
5
- export { NetworkRuleParser } from './network/network-rule-parser';
6
- export { FilterListParser } from './filterlist-parser';
1
+ export { RuleParser } from './rule-parser.js';
2
+ export { defaultParserOptions, type ParserOptions } from './options.js';
3
+ export { CosmeticRuleParser } from './cosmetic/cosmetic-rule-parser.js';
4
+ export { DomainListParser } from './misc/domain-list-parser.js';
5
+ export { NetworkRuleParser } from './network/network-rule-parser.js';
6
+ export { FilterListParser } from './filterlist-parser.js';
@@ -1,5 +1,5 @@
1
- import { type AppList } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type AppList } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `AppListParser` is responsible for parsing an app list.
5
5
  *
@@ -18,5 +18,5 @@ export declare class AppListParser extends BaseParser {
18
18
  * @throws An {@link AdblockSyntaxError} if the app list is syntactically invalid.
19
19
  * @throws An {@link Error} if the options are invalid.
20
20
  */
21
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): AppList;
21
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): AppList;
22
22
  }
@@ -1,5 +1,5 @@
1
- import { type DomainList } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type DomainList } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `DomainListParser` is responsible for parsing a domain list.
5
5
  *
@@ -22,5 +22,5 @@ export declare class DomainListParser extends BaseParser {
22
22
  * @throws An {@link AdblockSyntaxError} if the domain list is syntactically invalid.
23
23
  * @throws An {@link Error} if the options are invalid.
24
24
  */
25
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number, separator?: string): DomainList;
25
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number, separator?: string): DomainList;
26
26
  }
@@ -1,4 +1,4 @@
1
- import { type ListItem, ListItemNodeType } from '../../nodes';
1
+ import { type ListItem, ListItemNodeType } from '../../nodes/index.js';
2
2
  /**
3
3
  * Prefixes for error messages which are used for parsing of value lists.
4
4
  */
@@ -33,5 +33,5 @@ export declare class ListItemsParser {
33
33
  * - parses a domain list — `example.com,example.org,~example.org` or `example.com|~example.org`
34
34
  * - parses a method list — `~post|~put`
35
35
  */
36
- static parse<T extends ListItemNodeType>(raw: string, options?: import("../options").ParserOptions, baseOffset?: number, separator?: string, type?: T): ListItem<T>[];
36
+ static parse<T extends ListItemNodeType>(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number, separator?: string, type?: T): ListItem<T>[];
37
37
  }
@@ -1,5 +1,5 @@
1
- import { type AnyExpressionNode } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type AnyExpressionNode } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * Possible node types in the logical expression.
5
5
  */
@@ -38,5 +38,5 @@ export declare class LogicalExpressionParser extends BaseParser {
38
38
  * @returns Parsed expression
39
39
  * @throws {AdblockSyntaxError} If the expression is invalid
40
40
  */
41
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): AnyExpressionNode;
41
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): AnyExpressionNode;
42
42
  }
@@ -1,5 +1,5 @@
1
- import { type MethodList } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type MethodList } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `MethodListParser` is responsible for parsing a method list.
5
5
  *
@@ -18,5 +18,5 @@ export declare class MethodListParser extends BaseParser {
18
18
  * @throws An {@link AdblockSyntaxError} if the method list is syntactically invalid.
19
19
  * @throws An {@link Error} if the options are invalid.
20
20
  */
21
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): MethodList;
21
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): MethodList;
22
22
  }
@@ -1,5 +1,5 @@
1
- import { type ModifierList } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type ModifierList } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `ModifierListParser` is responsible for parsing modifier lists. Please note that the name is not
5
5
  * uniform, "modifiers" are also known as "options".
@@ -20,5 +20,5 @@ export declare class ModifierListParser extends BaseParser {
20
20
  * @param baseOffset Starting offset of the input. Node locations are calculated relative to this offset.
21
21
  * @returns Parsed modifiers interface
22
22
  */
23
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): ModifierList;
23
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): ModifierList;
24
24
  }
@@ -1,5 +1,5 @@
1
- import { type Modifier } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type Modifier } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `ModifierParser` is responsible for parsing modifiers.
5
5
  *
@@ -17,5 +17,5 @@ export declare class ModifierParser extends BaseParser {
17
17
  * @returns Parsed modifier
18
18
  * @throws An error if modifier name or value is empty.
19
19
  */
20
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): Modifier;
20
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): Modifier;
21
21
  }
@@ -1,5 +1,5 @@
1
- import { type ParameterList } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type ParameterList } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * Parser for parameter lists.
5
5
  */
@@ -13,5 +13,5 @@ export declare class ParameterListParser extends BaseParser {
13
13
  * @param separator Separator character (default: comma)
14
14
  * @returns Parameter list AST
15
15
  */
16
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number, separator?: string): ParameterList;
16
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number, separator?: string): ParameterList;
17
17
  }
@@ -1,5 +1,5 @@
1
- import { type StealthOptionList } from '../../nodes';
2
- import { BaseParser } from '../base-parser';
1
+ import { type StealthOptionList } from '../../nodes/index.js';
2
+ import { BaseParser } from '../base-parser.js';
3
3
  /**
4
4
  * `StealthOptionListParser` is responsible for parsing a list of stealth options.
5
5
  *
@@ -18,5 +18,5 @@ export declare class StealthOptionListParser extends BaseParser {
18
18
  * @throws An {@link AdblockSyntaxError} if the stealth option list is syntactically invalid.
19
19
  * @throws An {@link Error} if the options are invalid.
20
20
  */
21
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): StealthOptionList;
21
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): StealthOptionList;
22
22
  }
@@ -1,5 +1,5 @@
1
- import { ParameterListParser } from './parameter-list-parser';
2
- import { type ParameterList } from '../../nodes';
1
+ import { ParameterListParser } from './parameter-list-parser.js';
2
+ import { type ParameterList } from '../../nodes/index.js';
3
3
  /**
4
4
  * Parser for uBO-specific parameter lists.
5
5
  */
@@ -17,5 +17,5 @@ export declare class UboParameterListParser extends ParameterListParser {
17
17
  *
18
18
  * @note Based on {@link https://github.com/gorhill/uBlock/blob/f9ab4b75041815e6e5690d80851189ae3dc660d0/src/js/static-filtering-parser.js#L607-L699} to provide consistency.
19
19
  */
20
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number, separator?: string, requireQuotes?: boolean, supportedQuotes?: Set<string>): ParameterList;
20
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number, separator?: string, requireQuotes?: boolean, supportedQuotes?: Set<string>): ParameterList;
21
21
  }
@@ -1,5 +1,5 @@
1
- import { BaseParser } from '../base-parser';
2
- import { type Value } from '../../nodes';
1
+ import { BaseParser } from '../base-parser.js';
2
+ import { type Value } from '../../nodes/index.js';
3
3
  /**
4
4
  * Value parser.
5
5
  * This parser is very simple, it just exists to provide a consistent interface for parsing.
@@ -14,5 +14,5 @@ export declare class ValueParser extends BaseParser {
14
14
  *
15
15
  * @returns Value node.
16
16
  */
17
- static parse(raw: string, options?: import("../options").ParserOptions, baseOffset?: number): Value;
17
+ static parse(raw: string, options?: import("../index.js").ParserOptions, baseOffset?: number): Value;
18
18
  }