fix(esm): fix stale comments and use node: prefix for crypto import
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* Modul: Server Entry Point
|
* Modul: Server Entry Point
|
||||||
* Zweck: Express-App initialisieren, Middleware einbinden, Routen registrieren
|
* 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';
|
import express from 'express';
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ async function sync() {
|
|||||||
throw new Error('[Apple] Keine Credentials konfiguriert (weder in DB noch in .env).');
|
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 { createDAVClient } = await import('tsdav');
|
||||||
|
|
||||||
const client = await createDAVClient({
|
const client = await createDAVClient({
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { createLogger } from '../logger.js';
|
|||||||
const log = createLogger('Google');
|
const log = createLogger('Google');
|
||||||
|
|
||||||
import { google } from 'googleapis';
|
import { google } from 'googleapis';
|
||||||
import crypto from 'crypto';
|
import crypto from 'node:crypto';
|
||||||
import * as db from '../db.js';
|
import * as db from '../db.js';
|
||||||
|
|
||||||
const GOOGLE_COLOR = '#4285F4';
|
const GOOGLE_COLOR = '#4285F4';
|
||||||
|
|||||||
Reference in New Issue
Block a user