(private readonly rules: ThreatRule[])
| 257 | // Extend with `.withRule()` or reduce with `.withoutRule()`. |
| 258 | export class ScriptSecurityPolicy { |
| 259 | constructor(private readonly rules: ThreatRule[]) {} |
| 260 | |
| 261 | // returns a policy with `rule` appended (immutable). |
| 262 | withRule(rule: ThreatRule): ScriptSecurityPolicy { |
nothing calls this directly
no outgoing calls
no test coverage detected