Skip to content

Commit 26de265

Browse files
committed
fix: use default export
1 parent 46055c7 commit 26de265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/telemetry/device-id.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createHmac } from "crypto";
2-
import { machineIdSync } from "node-machine-id";
2+
import nodeMachineId from "node-machine-id";
33
import logger, { LogId } from "../logger.js";
44

55
export function getDeviceId(): string {
66
try {
7-
const originalId = machineIdSync(true);
7+
const originalId = nodeMachineId.machineIdSync(true);
88
// Create a hashed format from the all uppercase version of the machine ID
99
// to match it exactly with the denisbrodbeck/machineid library that Atlas CLI uses.
1010
const hmac = createHmac("sha256", originalId.toUpperCase());

0 commit comments

Comments
 (0)