in src/config.js [27:67]
function parseConfig(text) {
let m = text.match(registryRegex);
if (m) {
return {
type: configType.Registry,
scope: m[1] ? m[1].replace(':', '') : m[1],
registry: m[2],
toString: function() {
return `${this.scope ? this.scope + ':' : ''}registry=https:${this.registry}`;
}
}
}
m = text.match(authTokenRegex);
if (m) {
return {
type: configType.AuthToken,
registry: m[1],
token: m[2],
toString: function() {
return `${this.registry}:_authToken=${this.token}`;
}
}
}
m = text.match(passwordRegex);
if (m) {
return {
type: configType.Password,
registry: m[1],
password: m[2],
toString: function() {
return `${this.registry}:_password=${this.password}`;
}
}
}
return {
type: configType.Default,
toString: function() {
return text;
}
}
}