| /** | |
| * @param {string} route_id | |
| * @param {string} dep | |
| */ | |
| export function validate_depends(route_id, dep) { | |
| const match = /^(moz-icon|view-source|jar):/.exec(dep); | |
| if (match) { | |
| console.warn( | |
| `${route_id}: Calling \`depends('${dep}')\` will throw an error in Firefox because \`${match[1]}\` is a special URI scheme` | |
| ); | |
| } | |
| } | |
| export const INVALIDATED_PARAM = 'x-sveltekit-invalidated'; | |
| export const TRAILING_SLASH_PARAM = 'x-sveltekit-trailing-slash'; | |