mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
import is from '@sindresorhus/is';
|
|
import type { HttpResponse } from '../../util/http/types';
|
|
|
|
const JFROG_ARTIFACTORY_RES_HEADER = 'x-jfrog-version';
|
|
|
|
export function isArtifactoryServer<T = unknown>(
|
|
res: HttpResponse<T> | undefined
|
|
): boolean {
|
|
return is.string(res?.headers[JFROG_ARTIFACTORY_RES_HEADER]);
|
|
}
|