UNPKG

@adguard/agtree

Version:
25 lines (23 loc) 699 B
/* * AGTree v3.2.2 (build date: Tue, 08 Jul 2025 13:39:47 GMT) * (c) 2025 Adguard Software Ltd. * Released under the MIT license * https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree#readme */ /** * Property map for binary serialization. This helps to reduce the size of the serialized data, * as it allows us to use a single byte to represent a property. * * ! IMPORTANT: If you change values here, please update the {@link BINARY_SCHEMA_VERSION}! * * @note Only 256 values can be represented this way. */ const HostRuleMarshallingMap = { Syntax: 1, Ip: 3, HostnameList: 4, Comment: 5, Start: 6, End: 7, }; export { HostRuleMarshallingMap };