Compare commits

...

5 Commits

Author SHA1 Message Date
Adam Stankiewicz
51c9c9af6d Merge branch 'master' into fix-resolutions-save 2018-03-28 18:09:14 +02:00
Adam Stankiewicz
d6a18ae7ee Revert "Update request version in bower-registry-client #2336"
This reverts commit 1e2c27f338.
2018-03-28 18:09:01 +02:00
Adam Stankiewicz
b62faa19a6 Update request version in bower-registry-client #2336 2018-03-28 18:09:01 +02:00
Adam Stankiewicz
50ee729ea2 Allow to disable shorthand resolver (#2507) 2018-03-28 17:58:56 +02:00
Adam Stankiewicz
9eaa7e8c7b Do not store resolutions if --save is not used, fixes #2344 2018-03-28 16:47:44 +02:00
2 changed files with 9 additions and 1 deletions

View File

@@ -825,7 +825,9 @@ Manager.prototype._electSuitable = function (name, semvers, nonSemvers) {
});
// Save resolution
this._storeResolution(picks[suitable]);
if (this._config.argv.cooked.includes('--save')) {
this._storeResolution(picks[suitable]);
}
return Q.resolve(picks[suitable]);
}

View File

@@ -176,6 +176,12 @@ function getConstructor(decEndpoint, options, registryClient) {
// Check if is a shorthand and expand it
addResolver(function () {
// Check if the shorthandResolver is falsy
if (!config.shorthandResolver) {
return;
}
// Skip ssh and/or URL with auth
if (/[:@]/.test(source)) {
return;