(url: string)
| 72 | const loggerDisabledRequests = new WeakSet<object>() |
| 73 | |
| 74 | const stripSearchAndHash = (url: string): string => { |
| 75 | const queryIndex = url.indexOf("?") |
| 76 | const hashIndex = url.indexOf("#") |
| 77 | |
| 78 | if (queryIndex === -1) { |
| 79 | return hashIndex === -1 ? url : url.slice(0, hashIndex) |
| 80 | } |
| 81 | if (hashIndex === -1) { |
| 82 | return url.slice(0, queryIndex) |
| 83 | } |
| 84 | return url.slice(0, Math.min(queryIndex, hashIndex)) |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Runs an effect with HTTP response logging disabled for the current server request. |