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:
parent
374f0a8bd0
commit
61e62bdeb5
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue