()
| 13 | export type RuleKey = (typeof ruleKeys)[number]; |
| 14 | |
| 15 | export function emptyRuleSet(): RuleSet { |
| 16 | return { |
| 17 | domain: [], |
| 18 | domainSuffix: [], |
| 19 | domainKeyword: [], |
| 20 | domainRegex: [], |
| 21 | ipCidr: [], |
| 22 | ipCidr6: [], |
| 23 | asn: [] |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | export function mergeRuleSets(ruleSets: RuleSet[]): RuleSet { |
| 28 | return normalizeRuleSet({ |
no outgoing calls
no test coverage detected