0
Fork 0
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:
Yuuki Tada 2017-09-07 02:53:26 +00:00
parent 0582e05edc
commit f80ff856ba
2 changed files with 5 additions and 3 deletions

View file

@ -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"},
});
}

View file

@ -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: ''}
});