import { valPartMaxLength } from "https://esm.town/v/stevekrouse/valPartMaxLength";
export let truncateVal = async (data: any) => {
const { jsonrepair } = await import("npm:jsonrepair");
return JSON.parse(
jsonrepair(
JSON.stringify(await data).substring(
0,
valPartMaxLength,
),
),
);
};