async function readJsonSafe(source, fallback = null) {
  const raw = typeof source === "string" ? source : await source.text();
  if (!raw) return fallback;
  try {
    return JSON.parse(raw);
  } catch {
    return fallback;
  }
}
export {
  readJsonSafe
};
//# sourceMappingURL=readJsonSafe.js.map
