0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

fix: unpublish version does not remove it from timeline

Unpublishing a specific module version does not remove that version from the local-storage (package.json) "time" object.
This results in the version still being shown in the webui right-pane "Last Sync".

Added delete of the time[ver] object when module version is removed.
This commit is contained in:
Peter Cools 2018-07-28 12:41:19 +02:00
parent 374f0a8bd0
commit 61e62bdeb5

View file

@ -333,6 +333,7 @@ class LocalStorage implements IStorage {
this.logger.info( {name: name, version: ver}, 'unpublishing @{name}@@{version}');
delete jsonData.versions[ver];
delete jsonData.time[ver];
for (let file in jsonData._attachments) {
if (jsonData._attachments[file].version === ver) {