id: 1 unit: export async function createPartialEventWithSiteInfo() file: src/createAssessment.ts start line: 127 end line: 217 size: 82 LOC McCabe index: 22 number of parameters: 2 id: 2 unit: export async function applyPreRequestActions() file: src/policy.ts start line: 167 end line: 234 size: 60 LOC McCabe index: 11 number of parameters: 3 id: 3 unit: async function getTokenFromBody() file: src/createAssessment.ts start line: 32 end line: 80 size: 45 LOC McCabe index: 17 number of parameters: 2 id: 4 unit: export async function callCreateAssessment() file: src/createAssessment.ts start line: 222 end line: 263 size: 39 LOC McCabe index: 4 number of parameters: 5 id: 5 unit: export async function applyPostResponseActions() file: src/policy.ts start line: 239 end line: 278 size: 36 LOC McCabe index: 9 number of parameters: 3 id: 6 unit: async function getUserInfo() file: src/createAssessment.ts start line: 85 end line: 121 size: 35 LOC McCabe index: 14 number of parameters: 3 id: 7 unit: export async function processRequest() file: src/policy.ts start line: 336 end line: 380 size: 34 LOC McCabe index: 3 number of parameters: 2 id: 8 unit: constructor() file: src/index.ts start line: 102 end line: 133 size: 32 LOC McCabe index: 10 number of parameters: 1 id: 9 unit: export async function fetchActions() file: src/policy.ts start line: 300 end line: 331 size: 29 LOC McCabe index: 6 number of parameters: 2 id: 10 unit: export async function localPolicyAssessment() file: src/policy.ts start line: 109 end line: 137 size: 26 LOC McCabe index: 6 number of parameters: 2 id: 11 unit: async pull() file: bindings/fastly/src/index.ts start line: 61 end line: 89 size: 25 LOC McCabe index: 7 number of parameters: 1 id: 12 unit: export function recaptchaConfigFromConfigStore() file: bindings/fastly/src/index.ts start line: 213 end line: 239 size: 25 LOC McCabe index: 3 number of parameters: 1 id: 13 unit: async pull() file: bindings/akamai/src/index.ts start line: 54 end line: 82 size: 25 LOC McCabe index: 7 number of parameters: 1 id: 14 unit: export default defineConfig() file: integration/playwright.config.ts start line: 14 end line: 79 size: 25 LOC McCabe index: 3 number of parameters: 19 id: 15 unit: constructor() file: bindings/akamai/src/index.ts start line: 149 end line: 172 size: 24 LOC McCabe index: 5 number of parameters: 2 id: 16 unit: export function createSoz() file: src/soz.ts start line: 55 end line: 80 size: 23 LOC McCabe index: 2 number of parameters: 5 id: 17 unit: constructor() file: bindings/akamai/src/index.ts start line: 218 end line: 240 size: 22 LOC McCabe index: 5 number of parameters: 3 id: 18 unit: export default defineConfig() file: vite.config.ts start line: 20 end line: 59 size: 22 LOC McCabe index: 1 number of parameters: 20 id: 19 unit: log() file: bindings/xlb/src/edge_binding.ts start line: 353 end line: 371 size: 19 LOC McCabe index: 5 number of parameters: 2 id: 20 unit: export async function evaluatePolicyAssessment() file: src/policy.ts start line: 142 end line: 161 size: 19 LOC McCabe index: 4 number of parameters: 2 id: 21 unit: export function recaptchaConfigFromEnv() file: bindings/cloudflare/src/index.ts start line: 145 end line: 162 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 22 unit: log() file: bindings/akamai/src/index.ts start line: 336 end line: 352 size: 17 LOC McCabe index: 5 number of parameters: 2 id: 23 unit: constructor() file: src/fetchApi.ts start line: 70 end line: 86 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 24 unit: projectNumber: Number() file: bindings/fastly/src/index.ts start line: 227 end line: 251 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 25 unit: function getConfig() file: bindings/xlb/src/server.ts start line: 20 end line: 35 size: 16 LOC McCabe index: 10 number of parameters: 0 id: 26 unit: export async function callListFirewallPolicies() file: src/policy.ts start line: 88 end line: 103 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 27 unit: function base64UrlEncode() file: src/soz.ts start line: 25 end line: 44 size: 16 LOC McCabe index: 6 number of parameters: 1 id: 28 unit: export function recaptchaConfigFromRequest() file: bindings/akamai/src/index.ts start line: 435 end line: 449 size: 15 LOC McCabe index: 8 number of parameters: 1 id: 29 unit: for await() file: bindings/xlb/src/index.ts start line: 52 end line: 72 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 30 unit: function streamReplace() file: bindings/akamai/src/index.ts start line: 38 end line: 89 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 31 unit: export default defineWorkersConfig() file: bindings/cloudflare/vite.config.ts start line: 20 end line: 33 size: 14 LOC McCabe index: 1 number of parameters: 9 id: 32 unit: async function handleRequest() file: bindings/fastly/src/index.ts start line: 250 end line: 264 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 33 unit: export function policyConditionMatch() file: src/policy.ts start line: 66 end line: 83 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 34 unit: async fetch_list_firewall_policies() file: bindings/xlb/src/edge_binding.ts start line: 284 end line: 295 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 35 unit: export async function applyActions() file: src/policy.ts start line: 283 end line: 294 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 36 unit: export async function start() file: bindings/xlb/src/index.ts start line: 97 end line: 108 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 37 unit: addHeader() file: bindings/xlb/src/edge_binding.ts start line: 73 end line: 83 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 38 unit: addHeader() file: bindings/xlb/src/edge_binding.ts start line: 213 end line: 223 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 39 unit: async function readStream() file: bindings/akamai/src/index.ts start line: 91 end line: 101 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 40 unit: async injectRecaptchaJs() file: bindings/fastly/src/index.ts start line: 145 end line: 155 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 41 unit: async fetch() file: bindings/akamai/src/index.ts start line: 365 end line: 377 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 42 unit: async buildEvent() file: bindings/cloudflare/src/index.ts start line: 83 end line: 93 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 43 unit: async buildEvent() file: bindings/fastly/src/index.ts start line: 134 end line: 143 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 44 unit: async fetch_challenge_page() file: bindings/xlb/src/edge_binding.ts start line: 302 end line: 310 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 45 unit: async buildEvent() file: bindings/xlb/src/edge_binding.ts start line: 312 end line: 320 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 46 unit: async fetch_list_firewall_policies() file: bindings/cloudflare/src/index.ts start line: 129 end line: 137 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 47 unit: async fetch_list_firewall_policies() file: bindings/fastly/src/index.ts start line: 185 end line: 191 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 48 unit: export default defineConfig() file: bindings/fastly/vite.config.js start line: 20 end line: 26 size: 7 LOC McCabe index: 1 number of parameters: 5 id: 49 unit: async handleRequestHeaders() file: bindings/xlb/src/index.ts start line: 75 end line: 83 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 50 unit: export default defineConfig() file: bindings/xlb/vite.config.js start line: 20 end line: 26 size: 7 LOC McCabe index: 1 number of parameters: 5 id: 51 unit: constructor() file: src/fetchApi.ts start line: 5 end line: 11 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 52 unit: export function policyPathMatch() file: src/policy.ts start line: 51 end line: 57 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 53 unit: async fetch() file: bindings/fastly/src/index.ts start line: 166 end line: 171 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 54 unit: async fetch_challenge_page() file: bindings/fastly/src/index.ts start line: 205 end line: 210 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: yield create() file: bindings/xlb/src/index.ts start line: 65 end line: 70 size: 6 LOC McCabe index: 2 number of parameters: 5 id: 56 unit: get body() file: bindings/xlb/src/edge_binding.ts start line: 158 end line: 163 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 57 unit: export default defineConfig() file: bindings/akamai/vite.config.js start line: 20 end line: 25 size: 6 LOC McCabe index: 1 number of parameters: 4 id: 58 unit: get assessmentUrl() file: src/index.ts start line: 275 end line: 280 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 59 unit: get listFirewallPoliciesUrl() file: src/index.ts start line: 282 end line: 287 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 60 unit: log_performance_debug() file: bindings/fastly/src/index.ts start line: 128 end line: 132 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 61 unit: constructor() file: bindings/xlb/src/edge_binding.ts start line: 55 end line: 59 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 62 unit: constructor() file: bindings/xlb/src/edge_binding.ts start line: 203 end line: 207 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 63 unit: async fetch() file: bindings/xlb/src/edge_binding.ts start line: 278 end line: 282 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 64 unit: log_performance_debug() file: bindings/akamai/src/index.ts start line: 313 end line: 317 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 65 unit: export async function responseProvider() file: bindings/akamai/src/edge_worker.ts start line: 27 end line: 31 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 66 unit: log_performance_debug() file: bindings/cloudflare/src/index.ts start line: 77 end line: 81 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 67 unit: start() file: bindings/fastly/src/index.ts start line: 57 end line: 60 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 68 unit: log() file: bindings/fastly/src/index.ts start line: 157 end line: 160 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 69 unit: async fetch_create_assessment() file: bindings/fastly/src/index.ts start line: 197 end line: 200 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 70 unit: async handleResponseBody() file: bindings/xlb/src/index.ts start line: 85 end line: 89 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: function getPort() file: bindings/xlb/src/index.ts start line: 92 end line: 95 size: 4 LOC McCabe index: 3 number of parameters: 1 id: 72 unit: constructor() file: bindings/xlb/src/edge_binding.ts start line: 131 end line: 134 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 73 unit: async fetch_create_assessment() file: bindings/xlb/src/edge_binding.ts start line: 297 end line: 300 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: start() file: bindings/akamai/src/index.ts start line: 50 end line: 53 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 75 unit: constructor() file: bindings/akamai/src/index.ts start line: 302 end line: 305 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: logException() file: bindings/akamai/src/index.ts start line: 325 end line: 328 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 77 unit: async fetch_list_firewall_policies() file: bindings/akamai/src/index.ts start line: 412 end line: 415 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 78 unit: async fetch_create_assessment() file: bindings/akamai/src/index.ts start line: 421 end line: 424 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 79 unit: async fetch_challenge_page() file: bindings/akamai/src/index.ts start line: 429 end line: 432 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 80 unit: async fetch() file: bindings/cloudflare/src/index.ts start line: 119 end line: 122 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 81 unit: async fetch_challenge_page() file: bindings/cloudflare/src/index.ts start line: 124 end line: 127 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 82 unit: async fetch_create_assessment() file: bindings/cloudflare/src/index.ts start line: 139 end line: 142 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: async fetch() file: bindings/cloudflare/src/cloudflare_worker.ts start line: 27 end line: 30 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 84 unit: constructor() file: src/index.ts start line: 170 end line: 173 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: constructor() file: src/error.ts start line: 29 end line: 32 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 86 unit: cancel() file: bindings/fastly/src/index.ts start line: 90 end line: 92 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 87 unit: async fetch_origin() file: bindings/fastly/src/index.ts start line: 177 end line: 179 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: constructor() file: bindings/xlb/src/index.ts start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: get url() file: bindings/xlb/src/edge_binding.ts start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 90 unit: set url() file: bindings/xlb/src/edge_binding.ts start line: 65 end line: 67 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 91 unit: get method() file: bindings/xlb/src/edge_binding.ts start line: 69 end line: 71 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 92 unit: get status() file: bindings/xlb/src/edge_binding.ts start line: 136 end line: 138 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 93 unit: set body() file: bindings/xlb/src/edge_binding.ts start line: 165 end line: 167 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 94 unit: get status() file: bindings/xlb/src/edge_binding.ts start line: 209 end line: 211 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 95 unit: constructor() file: bindings/xlb/src/edge_binding.ts start line: 270 end line: 272 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: logException() file: bindings/xlb/src/edge_binding.ts start line: 345 end line: 347 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: cancel() file: bindings/akamai/src/index.ts start line: 83 end line: 85 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 98 unit: get url() file: bindings/akamai/src/index.ts start line: 174 end line: 176 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 99 unit: set url() file: bindings/akamai/src/index.ts start line: 178 end line: 180 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: get method() file: bindings/akamai/src/index.ts start line: 182 end line: 184 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 101 unit: get status() file: bindings/akamai/src/index.ts start line: 242 end line: 244 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 102 unit: get body() file: bindings/akamai/src/index.ts start line: 246 end line: 248 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 103 unit: set body() file: bindings/akamai/src/index.ts start line: 250 end line: 252 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: async json() file: bindings/akamai/src/index.ts start line: 264 end line: 266 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 105 unit: async fetch_origin() file: bindings/akamai/src/index.ts start line: 404 end line: 406 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 106 unit: element() file: bindings/cloudflare/src/index.ts start line: 106 end line: 108 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 107 unit: async fetch_origin() file: src/index.ts start line: 185 end line: 187 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: logException() file: src/index.ts start line: 224 end line: 226 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: log() file: src/index.ts start line: 236 end line: 238 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 110 unit: get url() file: src/fetchApi.ts start line: 13 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 111 unit: set url() file: src/fetchApi.ts start line: 17 end line: 20 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: get method() file: src/fetchApi.ts start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 113 unit: async getBodyText() file: src/fetchApi.ts start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 114 unit: async getBodyJson() file: src/fetchApi.ts start line: 57 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 115 unit: get status() file: src/fetchApi.ts start line: 96 end line: 98 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 116 unit: export function isRpcError() file: src/assessment.ts start line: 31 end line: 33 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 117 unit: constructor() file: src/error.ts start line: 50 end line: 52 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 118 unit: constructor() file: src/error.ts start line: 57 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 119 unit: constructor() file: src/error.ts start line: 64 end line: 66 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 120 unit: export function createAllowAction() file: src/action.ts start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 121 unit: export function isAllowAction() file: src/action.ts start line: 57 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: export function createBlockAction() file: src/action.ts start line: 62 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 123 unit: export function isBlockAction() file: src/action.ts start line: 66 end line: 68 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: export function createRedirectAction() file: src/action.ts start line: 71 end line: 73 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 125 unit: export function isRedirectAction() file: src/action.ts start line: 75 end line: 77 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 126 unit: export function createInjectJsAction() file: src/action.ts start line: 80 end line: 82 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 127 unit: export function isInjectJsAction() file: src/action.ts start line: 84 end line: 86 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: export function isSubstituteAction() file: src/action.ts start line: 88 end line: 90 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 129 unit: export function isSetHeaderAction() file: src/action.ts start line: 92 end line: 94 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: export function isTerminalAction() file: src/action.ts start line: 96 end line: 98 size: 3 LOC McCabe index: 3 number of parameters: 1 id: 131 unit: export function isRequestNonTerminalAction() file: src/action.ts start line: 103 end line: 105 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 132 unit: export function isResponseNonTerminalAction() file: src/action.ts start line: 107 end line: 109 size: 3 LOC McCabe index: 1 number of parameters: 1