mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 16:52:08 +01:00
feat: add repository pattern, service layer architecture, and scheduler management
- Implement repository pattern for data access layer - Add comprehensive service layer for business logic - Create scheduler management system with health monitoring - Add bounded buffer utility for memory management - Enhance security audit logging with retention policies
This commit is contained in:
@ -14,7 +14,7 @@ export function generateNonce(): string {
|
||||
if (typeof crypto !== "undefined" && crypto.getRandomValues) {
|
||||
const bytes = new Uint8Array(16);
|
||||
crypto.getRandomValues(bytes);
|
||||
return btoa(String.fromCharCode(...bytes));
|
||||
return btoa(String.fromCharCode.apply(null, Array.from(bytes)));
|
||||
}
|
||||
|
||||
throw new Error(
|
||||
@ -30,10 +30,8 @@ export function buildCSP(config: CSPConfig = {}): string {
|
||||
nonce,
|
||||
isDevelopment = false,
|
||||
reportUri,
|
||||
_enforceMode = true,
|
||||
strictMode = false,
|
||||
allowedExternalDomains = [],
|
||||
_reportingLevel = "violations",
|
||||
} = config;
|
||||
|
||||
// Base directives for all environments
|
||||
|
||||
Reference in New Issue
Block a user