site specific flags

This commit is contained in:
velzie 2024-10-13 14:43:51 -04:00
parent 0906dd78a9
commit 920bbd8d69
No known key found for this signature in database
GPG key ID: AA51AEFB0A1F3820
8 changed files with 34 additions and 11 deletions

View file

@ -1,7 +1,9 @@
import { flagEnabled } from "../../scramjet";
import { config } from "../../shared";
import { ScramjetClient } from "../client";
export const enabled = () => config.flags.captureErrors;
export const enabled = (client: ScramjetClient) =>
flagEnabled("captureErrors", client.url);
export function argdbg(arg, recurse = []) {
switch (typeof arg) {
case "string":