@wopr-network/platform-core 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AuditEntry } from "../../admin/audit-log.js";
|
|
2
2
|
/** Minimal interface for admin audit logging in route factories. */
|
|
3
3
|
export interface AdminAuditLogger {
|
|
4
|
-
log(entry: AuditEntry): void | Promise<
|
|
4
|
+
log(entry: AuditEntry): void | Promise<unknown>;
|
|
5
5
|
}
|
|
6
6
|
/** Safely log an admin audit entry — never throws. */
|
|
7
7
|
export declare function safeAuditLog(logger: (() => AdminAuditLogger) | undefined, entry: AuditEntry): void;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import type { AuditEntry } from "../../admin/audit-log.js";
|
|
|
2
2
|
|
|
3
3
|
/** Minimal interface for admin audit logging in route factories. */
|
|
4
4
|
export interface AdminAuditLogger {
|
|
5
|
-
log(entry: AuditEntry): void | Promise<
|
|
5
|
+
log(entry: AuditEntry): void | Promise<unknown>;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/** Safely log an admin audit entry — never throws. */
|