mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
a few bugfixes
This commit is contained in:
parent
6075034521
commit
3c7ae2f37d
2 changed files with 6 additions and 5 deletions
|
@ -244,7 +244,8 @@ module.exports = function(config_hash) {
|
|||
}
|
||||
|
||||
function after_change(err, ok_message) {
|
||||
if (metadata._attachments == null && metadata.versions == null) {
|
||||
// old npm behaviour
|
||||
if (metadata._attachments == null) {
|
||||
if (err) return next(err)
|
||||
res.status(201)
|
||||
return res.send({
|
||||
|
|
|
@ -220,7 +220,7 @@ Storage.prototype.add_version = function(name, version, metadata, tag, callback)
|
|||
}
|
||||
|
||||
data.versions[version] = metadata
|
||||
utils.add_tag(data, version, tag)
|
||||
utils.tag_version(data, version, tag)
|
||||
cb()
|
||||
}, callback)
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ Storage.prototype.add_tag = function(name, version, tag, callback) {
|
|||
}))
|
||||
}
|
||||
|
||||
utils.add_tag(data, version, tag)
|
||||
utils.tag_version(data, version, tag)
|
||||
cb()
|
||||
}, callback)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue