mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 05:28:35 +00:00
8 lines
239 B
TypeScript
8 lines
239 B
TypeScript
import { hash } from './hash';
|
|
import { safeStringify } from './stringify';
|
|
|
|
export function fingerprint(input: unknown): string {
|
|
const stringifiedInput = safeStringify(input);
|
|
return stringifiedInput ? hash(stringifiedInput) : '';
|
|
}
|