mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -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,
|
'bugs': version.bugs,
|
||||||
'license': version.license,
|
'license': version.license,
|
||||||
'time': {
|
'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': {
|
'time': {
|
||||||
modified: '2014-10-02T07:07:51.000Z'
|
modified: '2014-10-02T07:07:51.000Z'
|
||||||
},
|
},
|
||||||
'versions': {},
|
'versions': {
|
||||||
|
"0.0.0": "latest"
|
||||||
|
},
|
||||||
'repository': {
|
'repository': {
|
||||||
type: 'git', url: ''}
|
type: 'git', url: ''}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue