File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { getDeviceId } from "@mongodb-js/device-id" ;
2
- // Important: don't import the default module as that doesn't work for cjs module resolution.
3
- import { machineId } from "node-machine-id" ;
2
+ import * as nodeMachineId from "node-machine-id" ;
4
3
import type { LoggerBase } from "../common/logger.js" ;
5
4
import { LogId } from "../common/logger.js" ;
6
5
@@ -18,7 +17,7 @@ export class DeviceId {
18
17
private constructor ( logger : LoggerBase , timeout : number = DEVICE_ID_TIMEOUT ) {
19
18
this . logger = logger ;
20
19
this . timeout = timeout ;
21
- this . getMachineId = ( ) : Promise < string > => machineId ( true ) ;
20
+ this . getMachineId = ( ) : Promise < string > => nodeMachineId . machineId ( true ) ;
22
21
this . abortController = new AbortController ( ) ;
23
22
24
23
this . deviceIdPromise = DeviceId . UnknownDeviceId ;
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export class StreamableHttpRunner extends TransportRunnerBase {
166
166
this . logger . info ( {
167
167
id : LogId . streamableHttpTransportStarted ,
168
168
context : "streamableHttpTransport" ,
169
- message : `Server started on http:// ${ this . userConfig . httpHost } : ${ this . userConfig . httpPort } ` ,
169
+ message : `Server started on ${ this . address } ` ,
170
170
noRedaction : true ,
171
171
} ) ;
172
172
}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ describe("Build Test", () => {
47
47
"Telemetry" ,
48
48
"StreamableHttpRunner" ,
49
49
"defaultUserConfig" ,
50
+ "LoggerBase" ,
50
51
] ) ;
51
52
} ) ;
52
53
} ) ;
You can’t perform that action at this time.
0 commit comments