mirror of
https://github.com/bower/bower.git
synced 2026-02-11 22:44:58 -05:00
Change registryName to registry.
This commit is contained in:
@@ -403,7 +403,7 @@ Manager.prototype._extendNotification = function (notification, decEndpoint) {
|
||||
};
|
||||
|
||||
// Add from
|
||||
notification.from = decEndpoint.name || decEndpoint.registryName;
|
||||
notification.from = decEndpoint.name || (decEndpoint.registry && decEndpoint.source);
|
||||
if (!notification.from && notification.data.resolver) {
|
||||
notification.from = notification.data.resolver.getName();
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ Project.prototype.install = function (endpoints, options) {
|
||||
that._json[key] = that._json[key] || {};
|
||||
|
||||
mout.object.forOwn(targets, function (decEndpoint) {
|
||||
var source = decEndpoint.source === decEndpoint.registryName ? '' : decEndpoint.source;
|
||||
var source = decEndpoint.registry ? '' : decEndpoint.source;
|
||||
var target = decEndpoint.pkgMeta.version ? '~' + decEndpoint.pkgMeta.version : decEndpoint.target;
|
||||
that._json[key][decEndpoint.name] = mout.string.ltrim(source + '#' + target, ['#']);
|
||||
});
|
||||
|
||||
@@ -90,7 +90,7 @@ function createResolver(decEndpoint, registryClient, config) {
|
||||
return function () {
|
||||
return Q.nfcall(registryClient.lookup.bind(registryClient), source)
|
||||
.then(function (entry) {
|
||||
decEndpoint.registryName = source;
|
||||
decEndpoint.registry = true;
|
||||
// TODO: Handle entry.type.. for now it's only 'alias'
|
||||
// When we got published packages, this needs to be adjusted
|
||||
return new resolvers.GitRemote(entry.url, resOptions);
|
||||
|
||||
Reference in New Issue
Block a user