MCPcopy Create free account
hub / github.com/Kong/insomnia / withoutRule

Method withoutRule

packages/insomnia/src/scripting/sandbox.ts:267–269  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

265
266 // returns a policy with the named rule removed (immutable).
267 withoutRule(name: string): ScriptSecurityPolicy {
268 return new ScriptSecurityPolicy(this.rules.filter(r => r.name !== name));
269 }
270
271 // returns parallel `names` / `values` arrays for all rules that carry a runtime mask.
272 // Pass `violationCheck` to forward the caller's filtered checker (e.g. to eval-intercept).

Callers 2

prepareSandboxFunction · 0.80

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected