feat(logging): add error serialization and log metadata formatting
- Introduced `loggerSerialization.ts` to handle error serialization and log metadata formatting. - Added `serializeError` function to convert Error objects into a structured format. - Implemented `serializeLogValue` to handle various data types including Errors, Dates, RegExps, and plain objects. - Created `formatLogMetadata` to format log metadata using the serialization functions. feat(pagination): implement cursor encoding and decoding - Added `pagination.ts` to manage cursor-based pagination. - Implemented `encodeCursor` to convert cursor data into a base64 string. - Developed `decodeCursor` to parse base64 strings back into cursor data, with error handling for invalid inputs.
This commit is contained in:
@@ -22,6 +22,10 @@ type VoiceGlobals = typeof globalThis & {
|
||||
) => void;
|
||||
};
|
||||
|
||||
export function getModerationBroadcaster(): ModerationBroadcaster | undefined {
|
||||
return (globalThis as VoiceGlobals).moderationBroadcaster;
|
||||
}
|
||||
|
||||
export function exposeModerationGlobals(
|
||||
broadcaster: ModerationBroadcaster,
|
||||
adminPassword: string,
|
||||
|
||||
Reference in New Issue
Block a user