mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Add DATE and VERSION in search result
modified: src/lib/storage/local/local-storage.js modified: test/functional/tags/preserve_tags.spec.js
This commit is contained in:
parent
0582e05edc
commit
f80ff856ba
2 changed files with 5 additions and 3 deletions
|
@ -688,9 +688,9 @@ class LocalStorage {
|
|||
'bugs': version.bugs,
|
||||
'license': version.license,
|
||||
'time': {
|
||||
modified: item.time ? new Date(item.time).toISOString() : undefined,
|
||||
modified: item.time ? new Date(item.time).toISOString() : stats.mtime,
|
||||
},
|
||||
'versions': {},
|
||||
'versions': {[latest]: "latest"},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,9 @@ module.exports = function() {
|
|||
'time': {
|
||||
modified: '2014-10-02T07:07:51.000Z'
|
||||
},
|
||||
'versions': {},
|
||||
'versions': {
|
||||
"0.0.0": "latest"
|
||||
},
|
||||
'repository': {
|
||||
type: 'git', url: ''}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue