misc refactors

This commit is contained in:
velzie 2024-08-31 11:01:51 -04:00
parent 819c1701d0
commit 0939dd2b57
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
25 changed files with 82 additions and 66 deletions

View file

@ -3,7 +3,7 @@
import { isemulatedsw } from "../..";
import { decodeUrl } from "../../../shared/rewriters/url";
import { ScramjetClient } from "../../client";
import { encodeUrl, rewriteHeaders } from "../../shared";
import { encodeUrl, rewriteHeaders } from "../../../shared";
export default function (client: ScramjetClient, self: typeof globalThis) {
client.Proxy("fetch", {

View file

@ -1,6 +1,6 @@
import { iswindow, isworker } from "../..";
import { ScramjetClient } from "../../client";
import { BareClient } from "../../shared";
import { BareClient } from "../../../shared";
const bare = iswindow && new BareClient();

View file

@ -1,4 +1,4 @@
import { encodeUrl, rewriteHeaders } from "../../shared";
import { encodeUrl, rewriteHeaders } from "../../../shared";
export default function (client, self) {
client.Proxy("XMLHttpRequest.prototype.open", {