Skip to content

Commit c9f045b

Browse files
chore: fix the node-machine-id import
node-machine-id is a commonjs module and module.exports from a commonjs module should be imported using namespace imports as it cannot be guaranteed that for those exports a synthetic default export will be created or not.
1 parent 8131cb7 commit c9f045b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/telemetry/telemetry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import logger, { LogId } from "../logger.js";
55
import { ApiClient } from "../common/atlas/apiClient.js";
66
import { MACHINE_METADATA } from "./constants.js";
77
import { EventCache } from "./eventCache.js";
8-
import nodeMachineId from "node-machine-id";
8+
import * as nodeMachineId from "node-machine-id";
99
import { getDeviceId } from "@mongodb-js/device-id";
1010
import fs from "fs/promises";
1111

0 commit comments

Comments
 (0)