Skip to content
Browse files

Add dist info to index list

  • Loading branch information...
1 parent fb407a7 commit 8eddc26ae93edb4873b50cf0f88fe833f52431b2 @isaacs isaacs committed Jul 31, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 registry/app.js
View
2 registry/app.js
@@ -332,6 +332,7 @@ ddoc.lists.index = function (head, req) {
p[i] = doc[i]
}
p.versions = {}
+ p.dist = {}
if (doc.repositories && Array.isArray(doc.repositories)) {
doc.repository = doc.repositories[0]
delete doc.repositories
@@ -349,6 +350,7 @@ ddoc.lists.index = function (head, req) {
p.versions[i] = "http://"+req.headers.Host+"/"+
basePath +
encodeURIComponent(doc.name)+"/"+i
+ p.dist[i] = doc.versions[i].dist
}
p.url = "http://"+req.headers.Host+"/"+
basePath +

0 comments on commit 8eddc26

Please sign in to comment.
Something went wrong with that request. Please try again.