fix(esm): fix stale comments and use node: prefix for crypto import

This commit is contained in:
Ulas
2026-04-03 23:19:16 +02:00
parent b139eea623
commit 7a2516153c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/**
* Modul: Server Entry Point
* Zweck: Express-App initialisieren, Middleware einbinden, Routen registrieren
* Abhängigkeiten: express, helmet, dotenv, server/db.js, server/auth.js, server/routes/*
* Abhängigkeiten: express, helmet, server/db.js, server/auth.js, server/routes/*
*/
import express from 'express';
+1 -1
View File
@@ -293,7 +293,7 @@ async function sync() {
throw new Error('[Apple] Keine Credentials konfiguriert (weder in DB noch in .env).');
}
// tsdav ist ESM-only - dynamischer Import aus CommonJS
// tsdav ist eine optionale Abhängigkeit - dynamischer Import für graceful degradation
const { createDAVClient } = await import('tsdav');
const client = await createDAVClient({
+1 -1
View File
@@ -15,7 +15,7 @@ import { createLogger } from '../logger.js';
const log = createLogger('Google');
import { google } from 'googleapis';
import crypto from 'crypto';
import crypto from 'node:crypto';
import * as db from '../db.js';
const GOOGLE_COLOR = '#4285F4';