[codex] Enforce canonical Node namespace imports (#3238)
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
db27502aff
commit
2fa37ec183
71 files changed
+1205
-952
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import * as Crypto from "node:crypto";
|
||||
import * as NodeCrypto from "node:crypto";
|
||||
|
||||
import type { DesktopSshEnvironmentTarget, DesktopUpdateChannel } from "@t3tools/contracts";
|
||||
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
|
||||
@@ -74,7 +74,10 @@ export function targetConnectionKey(target: DesktopSshEnvironmentTarget): string
|
||||
}
|
||||
|
||||
export function remoteStateKey(target: DesktopSshEnvironmentTarget): string {
|
||||
return Crypto.createHash("sha256").update(targetConnectionKey(target)).digest("hex").slice(0, 16);
|
||||
return NodeCrypto.createHash("sha256")
|
||||
.update(targetConnectionKey(target))
|
||||
.digest("hex")
|
||||
.slice(0, 16);
|
||||
}
|
||||
|
||||
export function buildSshHostSpec(target: DesktopSshEnvironmentTarget): string {
|
||||
|
||||
Reference in new issue
Block a user