| | |
| | | !request.includes("*") && |
| | | !request.endsWith("/") |
| | | ) { |
| | | const target = /** @type {{[k: string]: MappingValue}} */ (field)[request]; |
| | | const target = /** @type {{ [k: string]: MappingValue }} */ (field)[ |
| | | request |
| | | ]; |
| | | |
| | | return [target, "", false, false, request]; |
| | | } |
| | |
| | | |
| | | if (bestMatch === "") return null; |
| | | |
| | | const target = /** @type {{[k: string]: MappingValue}} */ (field)[bestMatch]; |
| | | const target = |
| | | /** @type {{ [k: string]: MappingValue }} */ |
| | | (field)[bestMatch]; |
| | | const isSubpathMapping = bestMatch.endsWith("/"); |
| | | const isPattern = bestMatch.includes("*"); |
| | | |