Skip to content

Commit 0af6cf0

Browse files
committed
Fix a require & an import so unit tests will pass
1 parent f3870b2 commit 0af6cf0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/RootConfigWatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chokidar, { FSWatcher } from 'chokidar';
22
import { readFile } from 'node:fs/promises';
33
import { getConfigFilePath } from './configUtils.js';
4-
import { EventEmitter, once } from 'node:stream';
4+
import { EventEmitter, once } from 'node:events';
55
import { parse } from 'yaml';
66

77
export class RootConfigWatcher extends EventEmitter {

utility/logging/harper_logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,4 +877,4 @@ function AuthAuditLog(username, status, type, originatingIp, requestMethod, path
877877
this.path = path;
878878
}
879879
// we have to load this at the end to avoid circular dependencies problems
880-
const { RootConfigWatcher } = require('../../config/RootConfigWatcher');
880+
const { RootConfigWatcher } = require('../../config/RootConfigWatcher.ts');

0 commit comments

Comments
 (0)