diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/serve.js b/lib/serve.js index c162e42..30689eb 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1890,10 +1890,10 @@ Serve.prototype.npm = function (url) { var render = self.app.render var base = '/npm/' + (author ? u.escapeId(author) + '/' : '') - var pathWithoutAuthor = '/npm/' + - (name ? name + '/' + - (version ? version + '/' + - (distTag ? distTag + '/' : '') : '') : '') + var pathWithoutAuthor = '/npm' + + (name ? '/' + name + + (version ? '/' + version + + (distTag ? '/' + distTag : '') : '') : '') return pull( ph('section', {}, [ ph('h3', [ph('a', {href: render.toUrl('/npm/')}, 'npm'), ' : ', @@ -1908,7 +1908,7 @@ Serve.prototype.npm = function (url) { ]), ph('table', [ ph('thead', ph('tr', [ - !author ? ph('td', 'publisher') : '', + ph('td', 'publisher'), ph('td', 'package'), ph('td', 'version'), ph('td', 'tag'), @@ -1926,7 +1926,7 @@ Serve.prototype.npm = function (url) { }), paramap(function (link, cb) { self.app.render.npmPackageMention(link, { - withAuthor: !author, + withAuthor: true, author: author, name: name, version: version, |