fix(esm): fix stale comments and use node: prefix for crypto import
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user