mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Merge branch 'master' into fix-702
This commit is contained in:
commit
e9e08a1017
1 changed files with 6 additions and 6 deletions
|
@ -271,17 +271,17 @@ class LocalStorage implements IStorage {
|
||||||
mergeTags(name: string, tags: MergeTags, callback: Callback) {
|
mergeTags(name: string, tags: MergeTags, callback: Callback) {
|
||||||
this._updatePackage(name, (data, cb) => {
|
this._updatePackage(name, (data, cb) => {
|
||||||
/* eslint guard-for-in: 0 */
|
/* eslint guard-for-in: 0 */
|
||||||
for (let t: string in tags) {
|
for (let tag: string in tags) {
|
||||||
if (_.isNull(tags[t])) {
|
if (_.isNull(tags[tag])) {
|
||||||
delete data[DIST_TAGS][t];
|
delete data[DIST_TAGS][tag];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_.isNil(data.versions[tags[t]])) {
|
if (_.isNil(data.versions[tags[tag]])) {
|
||||||
return cb( this._getVersionNotFound() );
|
return cb( this._getVersionNotFound() );
|
||||||
}
|
}
|
||||||
const key: string = tags[t];
|
const version: string = tags[tag];
|
||||||
tagVersion(data, key, t);
|
tagVersion(data, version, tag);
|
||||||
}
|
}
|
||||||
cb();
|
cb();
|
||||||
}, callback);
|
}, callback);
|
||||||
|
|
Loading…
Reference in a new issue