Skip to content

Commit

Permalink
chore: flag cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Dec 16, 2024
1 parent e86e70d commit e526285
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/client/shared/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
12 changes: 6 additions & 6 deletions src/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ 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",
sync: "/scramjet.sync.js",
},
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: {
Expand Down
8 changes: 4 additions & 4 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e526285

Please sign in to comment.