MCPcopy Create free account
hub / github.com/vercel/vercel / hasValidHeaderArgs

Function hasValidHeaderArgs

packages/cli/src/util/dev/transforms.ts:206–214  ·  view source on GitHub ↗
(args: string | string[] | undefined)

Source from the content-addressed store, hash-verified

204}
205
206function hasValidHeaderArgs(args: string | string[] | undefined): boolean {
207 if (typeof args === 'string') {
208 return isValidHeaderValue(args);
209 }
210 if (Array.isArray(args)) {
211 return args.every(isValidHeaderValue);
212 }
213 return false;
214}
215
216function applyTransform(
217 data: TransformData,

Callers 1

applyTransformFunction · 0.85

Calls 1

isValidHeaderValueFunction · 0.85

Tested by

no test coverage detected