everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
76 lines (74 loc) • 1.78 kB
JavaScript
const require_errors = require('../../../utils/errors.cjs');
let effect = require("effect");
//#region src/services/scaffold/upgrade-audit/domain.ts
var Finding = class extends effect.Data.TaggedClass("Finding") {};
var GateBlocked = class extends effect.Data.TaggedError("GateBlocked") {};
var AuditFileError = class extends effect.Data.TaggedError("AuditFileError") {
get message() {
return `${this.op} failed for ${this.target ?? "—"}: ${require_errors.formatUnknownError(this.cause)}`;
}
toString() {
return this.message;
}
};
var AuditStepError = class extends effect.Data.TaggedError("AuditStepError") {
toString() {
return this.cause === void 0 ? this.message : `${this.message}: ${require_errors.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
exports.AuditFileError = AuditFileError;
exports.AuditStepError = AuditStepError;
exports.Finding = Finding;
exports.GateBlocked = GateBlocked;
exports.KNOWN_APP_SLOT_KEYS = KNOWN_APP_SLOT_KEYS;
exports.KNOWN_CONFIG_KEYS = KNOWN_CONFIG_KEYS;
exports.KNOWN_MOUNTS = KNOWN_MOUNTS;
exports.KNOWN_PLUGIN_KEYS = KNOWN_PLUGIN_KEYS;
exports.MOUNT_ALIASES = MOUNT_ALIASES;
//# sourceMappingURL=domain.cjs.map