add license and client apis

This commit is contained in:
Avad3 2024-06-17 06:20:32 -04:00
parent ecff2aca52
commit aac959936c
19 changed files with 1004 additions and 89 deletions

View file

@ -3,5 +3,5 @@ import { encodeUrl } from "./url"
export function rewriteCss(css: string, origin?: URL) {
css = css.replace(/(?<=url\("?'?)[^"'][\S]*[^"'](?="?'?\);?)/g, (match) => encodeUrl(match, origin));
return "/* intercepted by scramjet 🐳 */" + css;
return css;
}