fix(imports): convert require() to ESM import for randomBytes in auth.js
This commit is contained in:
+1
-3
@@ -5,8 +5,6 @@
|
||||
* Steuerung: LOG_LEVEL env var (debug, info, warn, error). Default: info.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const LEVELS = { debug: 0, info: 1, warn: 2, error: 3 };
|
||||
const currentLevel = LEVELS[process.env.LOG_LEVEL] ?? LEVELS.info;
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
@@ -37,4 +35,4 @@ function createLogger(mod) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { createLogger };
|
||||
export { createLogger };
|
||||
|
||||
Reference in New Issue
Block a user