auditedfunctionfunction audited<C extends Capability>(store: Store<C>, sink: AuditSink, clock: Pick<Clock, "now">): Store<Carried<C>>A store that gives a record of each operation of its argument to a sink, and keeps its capabilities.
The audited layer: one record for each operation, a refused one included, given to a sink the caller gives. A record says when, which store, which operation and path, what the outcome was and how many bytes; it holds no bytes. Where the sink fails the answer is unavailable and the operation's effect stands, so that a gap in the audit is never silent.
import { audited } from "./audited.ts";
// const store = audited(inner, sink, clock)auditedfunctionfunction audited<C extends Capability>(store: Store<C>, sink: AuditSink, clock: Pick<Clock, "now">): Store<Carried<C>>A store that gives a record of each operation of its argument to a sink, and keeps its capabilities.