MCPcopy Index your code
hub / github.com/callstack/agent-device / profileHash

Function profileHash

src/cli/connection/generated-config.ts:97–99  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

95}
96
97function profileHash(value: unknown): string {
98 return crypto.createHash('sha256').update(JSON.stringify(value)).digest('hex').slice(0, 16);
99}
100
101function normalizeJson(value: unknown): unknown {
102 if (Array.isArray(value)) {

Callers 1

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected