hasCredentialsInUrl
hasCredentialsInUrl(
url):boolean
Defined in: simply-package-core/src/schemas/sfdx-project/dependencyRepositories.ts:99
Whether a git URL carries credentials that shouldn’t be committed to sfdx-project.json.
A password in any URL counts. So does any username on an http(s) URL, because that’s where
hosts accept a bare token (https://<token>@github.com/…). An ssh username such as git@
doesn’t, and neither does the scp-like git@host:path form, which can’t hold a password.
Parameters
Section titled “Parameters”string
The repository URL.
Returns
Section titled “Returns”boolean
true if url contains credentials.