We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46055c7 commit 26de265Copy full SHA for 26de265
src/telemetry/device-id.ts
@@ -1,10 +1,10 @@
1
import { createHmac } from "crypto";
2
-import { machineIdSync } from "node-machine-id";
+import nodeMachineId from "node-machine-id";
3
import logger, { LogId } from "../logger.js";
4
5
export function getDeviceId(): string {
6
try {
7
- const originalId = machineIdSync(true);
+ const originalId = nodeMachineId.machineIdSync(true);
8
// Create a hashed format from the all uppercase version of the machine ID
9
// to match it exactly with the denisbrodbeck/machineid library that Atlas CLI uses.
10
const hmac = createHmac("sha256", originalId.toUpperCase());
0 commit comments