Skip to content

Commit 3c309af

Browse files
committed
fix(plugin-security): the membership-key staging sink always carries warn
The optional-error sink contract refuses a logger whose `error` and `warn` are both optional: an absent `error` must fall back to a `warn` that exists. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M4rJHRAZDFqLYQ9dHMH339
1 parent e35ae5d commit 3c309af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugins/plugin-security/src/object-membership-keys.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export type MembershipKeyOutcome =
113113

114114
/** The members of the security plugin the declared-key read uses. */
115115
export interface MembershipKeyStagingHost {
116-
readonly logger: { warn?: (message: string, meta?: Record<string, unknown>) => void; error?: (message: string) => void } | undefined;
116+
readonly logger: { warn: (message: string, meta?: Record<string, unknown>) => void; error?: (message: string) => void } | undefined;
117117
readonly ql: any;
118118
readonly metadata: any;
119119
readonly rlsCompiler: Pick<RLSCompiler, 'compileFilter'>;

0 commit comments

Comments
 (0)