@mcesystems/apple-kit 1.0.99 → 1.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1514,6 +1514,7 @@ function portNumbers(from, to) {
1514
1514
  // src/logic/actions/device.ts
1515
1515
  import { existsSync } from "node:fs";
1516
1516
  import { rmSync } from "node:fs";
1517
+ import { homedir } from "node:os";
1517
1518
  import { join } from "node:path";
1518
1519
 
1519
1520
  // src/logic/wifiSsidParser.ts
@@ -1556,10 +1557,10 @@ function getLockdownPath() {
1556
1557
  return process.env.LOCKDOWN_WINDOWS_PATH || join(process.env.ProgramData ?? "C:\\ProgramData", "Apple", "Lockdown");
1557
1558
  }
1558
1559
  if (process.platform === "darwin") {
1559
- return "/var/db/lockdown";
1560
+ return join(homedir(), "Library", "Caches", "Apple", "Lockdown", "RemotePairing");
1560
1561
  }
1561
1562
  if (process.platform === "linux") {
1562
- return "/var/lib/lockdown";
1563
+ return join(homedir(), ".cache", "apple-kit", "lockdown", "RemotePairing");
1563
1564
  }
1564
1565
  return null;
1565
1566
  }