Skip to content

Commit 117a5d4

Browse files
committed
update all imports to not use $scramjet
1 parent 6a6e090 commit 117a5d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+238
-293
lines changed

src/client/client.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ import { createLocationProxy } from "./location";
88
import { nativeGetOwnPropertyDescriptor } from "./natives";
99
import {
1010
BareClient,
11-
CookieStore,
12-
config,
13-
unrewriteUrl,
14-
rewriteUrl,
15-
} from "../shared";
16-
import type { BareClient as BareClientType } from "@mercuryworkshop/bare-mux";
11+
type BareClient as BareClientType,
12+
} from "@mercuryworkshop/bare-mux";
1713
import { createWrapFn } from "./shared/wrap";
1814
import { NavigateEvent } from "./events";
19-
import type { URLMeta } from "../shared/rewriters/url";
15+
import {
16+
rewriteUrl,
17+
unrewriteUrl,
18+
type URLMeta,
19+
} from "../shared/rewriters/url";
2020
import { SourceMaps } from "./shared/sourcemaps";
21+
import { config } from "../shared";
22+
import { CookieStore } from "../shared/cookie";
2123

2224
type NativeStore = {
2325
store: Record<string, any>;

src/client/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rewriteUrl } from "../shared";
1+
import { rewriteUrl } from "../shared/rewriters/url";
22
import { ScramjetClient } from "./client";
33
import { getOwnPropertyDescriptorHandler } from "./helpers";
44

src/client/dom/beacon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rewriteUrl } from "../../shared";
1+
import { rewriteUrl } from "../../shared/rewriters/url";
22
import { ScramjetClient } from "../client";
33

44
export default function (client: ScramjetClient, _self: Self) {

src/client/dom/css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { rewriteCss, unrewriteCss } from "../../shared/rewriters/css";
12
import { ScramjetClient } from "../client";
2-
import { rewriteCss, unrewriteCss } from "../../shared";
33

44
export default function (client: ScramjetClient) {
55
client.Proxy("CSSStyleDeclaration.prototype.setProperty", {

src/client/dom/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rewriteHtml } from "../../shared";
1+
import { rewriteHtml } from "../../shared/rewriters/html";
22
import { ScramjetClient } from "../client";
33

44
export default function (client: ScramjetClient, _self: Self) {

src/client/dom/element.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
import { htmlRules } from "../../shared/htmlRules";
2+
import { rewriteCss, unrewriteCss } from "../../shared/rewriters/css";
3+
import { rewriteHtml, unrewriteHtml } from "../../shared/rewriters/html";
4+
import { rewriteJs } from "../../shared/rewriters/js";
5+
import { rewriteUrl, unrewriteUrl } from "../../shared/rewriters/url";
16
import { SCRAMJETCLIENT } from "../../symbols";
27
import { ScramjetClient } from "../client";
38
import { nativeGetOwnPropertyDescriptor } from "../natives";
4-
import {
5-
unrewriteUrl,
6-
rewriteUrl,
7-
htmlRules,
8-
unrewriteHtml,
9-
} from "../../shared";
10-
import { unrewriteCss, rewriteCss, rewriteHtml, rewriteJs } from "../../shared";
119

1210
const encoder = new TextEncoder();
1311
function bytesToBase64(bytes: Uint8Array) {

src/client/dom/fontface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { rewriteCss } from "../../shared/rewriters/css";
12
import { ScramjetClient } from "../client";
2-
import { rewriteCss } from "../../shared";
33

44
export default function (client: ScramjetClient, _self: Self) {
55
client.Proxy("FontFace", {

src/client/dom/history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { rewriteUrl } from "../../shared/rewriters/url";
12
import { ScramjetClient } from "../client";
2-
import { rewriteUrl } from "../../shared";
33
import { UrlChangeEvent } from "../events";
44

55
export default function (client: ScramjetClient, _self: Self) {

src/client/dom/open.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { rewriteUrl } from "../../shared";
21
import { ScramjetClient } from "../client";
32
import { SCRAMJETCLIENT } from "../../symbols";
3+
import { rewriteUrl } from "../../shared/rewriters/url";
44

55
export default function (client: ScramjetClient) {
66
client.Proxy("window.open", {

src/client/dom/performance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { unrewriteUrl } from "../../shared";
1+
import { unrewriteUrl } from "../../shared/rewriters/url";
22
import { ScramjetClient } from "../client";
33

44
export default function (client: ScramjetClient, _self: Self) {

0 commit comments

Comments
 (0)