MCPcopy
hub / github.com/sindresorhus/got / hasExplicitCredentialInUrlChange

Function hasExplicitCredentialInUrlChange

source/core/options.ts:946–949  ·  view source on GitHub ↗
(changedState: Set<string>, url: URL | undefined, credential: 'username' | 'password')

Source from the content-addressed store, hash-verified

944}
945
946export const hasExplicitCredentialInUrlChange = (changedState: Set<string>, url: URL | undefined, credential: 'username' | 'password'): boolean => (
947 changedState.has(credential)
948 || (changedState.has('url') && url?.[credential] !== '')
949);
950
951const hasProtocolSlashes = (value: string): boolean => /^[a-z][\d+\-.a-z]*:\/\//iv.test(value);
952

Callers 2

_onResponseBaseMethod · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…