From e526285560a11727200cae11e89969de20fb7780 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Sun, 15 Dec 2024 23:27:46 -0600 Subject: [PATCH] chore: flag cleanup --- src/client/shared/error.ts | 3 ++- src/controller/index.ts | 12 ++++++------ src/types.d.ts | 8 ++++---- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/client/shared/error.ts b/src/client/shared/error.ts index 8e79675..c228a30 100644 --- a/src/client/shared/error.ts +++ b/src/client/shared/error.ts @@ -3,7 +3,8 @@ import { config, unrewriteUrl } from "../../shared"; import { ScramjetClient } from "../client"; export const enabled = (client: ScramjetClient) => - flagEnabled("cleanerrors", client.url); + flagEnabled("cleanErrors", client.url); + export default function (client: ScramjetClient, _self: Self) { // v8 only. all we need to do is clean the scramjet urls from stack traces const closure = (error, stack) => { diff --git a/src/controller/index.ts b/src/controller/index.ts index a0c85a1..6203463 100644 --- a/src/controller/index.ts +++ b/src/controller/index.ts @@ -20,7 +20,7 @@ export class ScramjetController { pushsourcemapfn: "$scramjet$pushsourcemap", }, files: { - wasm: "/scramjet.wasm.js", + wasm: "/scramjet.wasm.wasm", shared: "/scramjet.shared.js", worker: "/scramjet.worker.js", client: "/scramjet.client.js", @@ -28,14 +28,14 @@ export class ScramjetController { }, flags: { serviceworkers: false, - naiiveRewriter: false, - captureErrors: false, - strictRewrites: true, syncxhr: false, - cleanerrors: false, + strictRewrites: true, + naiiveRewriter: false, + rewriterLogs: true, + captureErrors: true, + cleanErrors: false, scramitize: false, sourcemaps: false, - rewriterLogs: true, }, siteFlags: {}, codec: { diff --git a/src/types.d.ts b/src/types.d.ts index 888cf0b..3de07db 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -25,14 +25,14 @@ import { ScramjetFrame } from "./controller/frame"; type ScramjetFlags = { serviceworkers: boolean; + syncxhr: boolean; + strictRewrites: boolean; naiiveRewriter: boolean; + rewriterLogs: boolean; captureErrors: boolean; - strictRewrites: boolean; - cleanerrors: boolean; + cleanErrors: boolean; scramitize: boolean; sourcemaps: boolean; - syncxhr: boolean; - rewriterLogs: boolean; }; interface ScramjetConfig {