UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

68 lines (66 loc) • 1.51 kB
import { formatUnknownError } from "../../../utils/errors.mjs"; import { Data } from "effect"; //#region src/services/scaffold/upgrade-audit/domain.ts var Finding = class extends Data.TaggedClass("Finding") {}; var GateBlocked = class extends Data.TaggedError("GateBlocked") {}; var AuditFileError = class extends Data.TaggedError("AuditFileError") { get message() { return `${this.op} failed for ${this.target ?? "—"}: ${formatUnknownError(this.cause)}`; } toString() { return this.message; } }; var AuditStepError = class extends Data.TaggedError("AuditStepError") { toString() { return this.cause === void 0 ? this.message : `${this.message}: ${formatUnknownError(this.cause)}`; } }; const KNOWN_CONFIG_KEYS = [ "extends", "account", "domain", "title", "description", "testnet", "staging", "repository", "ci", "app", "plugins" ]; const KNOWN_APP_SLOT_KEYS = [ "development", "production", "integrity", "ssr", "ssrIntegrity", "secrets", "shared", "extends", "proxy", "routes" ]; const KNOWN_PLUGIN_KEYS = [ "development", "production", "integrity", "extends", "variables", "secrets", "routes", "proxy", "sidebar", "shared" ]; const MOUNT_ALIASES = { auth: "authenticated" }; const KNOWN_MOUNTS = [ "public", "authenticated", "admin", "anon", "organization" ]; //#endregion export { AuditFileError, AuditStepError, Finding, GateBlocked, KNOWN_APP_SLOT_KEYS, KNOWN_CONFIG_KEYS, KNOWN_MOUNTS, KNOWN_PLUGIN_KEYS, MOUNT_ALIASES }; //# sourceMappingURL=domain.mjs.map