()
| 159 | export const ZR_DEBUG_CODE_PERF_DIFF_PATH = 0x0601; |
| 160 | |
| 161 | function readContextRoute(): string | null { |
| 162 | const g = globalThis as { |
| 163 | __reziFrameAuditContext?: () => Readonly<{ route?: unknown }>; |
| 164 | }; |
| 165 | if (typeof g.__reziFrameAuditContext !== "function") return null; |
| 166 | try { |
| 167 | const ctx = g.__reziFrameAuditContext(); |
| 168 | const route = ctx.route; |
| 169 | return typeof route === "string" && route.length > 0 ? route : null; |
| 170 | } catch { |
| 171 | return null; |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | function sanitizeFileToken(value: string): string { |
| 176 | return value.replace(/[^a-zA-Z0-9._-]/g, "_"); |
no outgoing calls
no test coverage detected