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

Function sanitizeCacheName

src/utils/swift-cache.ts:171–173  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

169}
170
171function sanitizeCacheName(value: string): string {
172 return value.replaceAll(/[^A-Za-z0-9._-]/g, '-').replaceAll(/^-+|-+$/g, '') || 'swift-helper';
173}
174
175function hashParts(parts: Array<string | number | Buffer>): string {
176 const hash = createHash('sha256');

Callers 2

compileSwiftSourceFileFunction · 0.85
compileSwiftSourceTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…