diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-03-30 12:15:40 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-03-30 12:15:40 -1000 |
commit | 3d49987a1e25cdaafa4b9b7ae583f519a1d2a935 (patch) | |
tree | 59bd2697accc1552332d89b69fe1221794d8646e | |
parent | 4c4dbb9040844bd4eb9385fc142af25f5decf67e (diff) | |
download | patchfoo-3d49987a1e25cdaafa4b9b7ae583f519a1d2a935.tar.gz patchfoo-3d49987a1e25cdaafa4b9b7ae583f519a1d2a935.zip |
npm: fix rendering unnamed feeds
-rw-r--r-- | lib/render.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/render.js b/lib/render.js index 32be2ff..69666a5 100644 --- a/lib/render.js +++ b/lib/render.js @@ -551,7 +551,7 @@ Render.prototype.npmPackageMention = function (link, opts, cb) { opts.withAuthor ? h('td', h('a', { href: self.toUrl(pathWithAuthor), title: 'publisher' - }, about.name), ' ') : '', + }, about.name || u.truncate(link.author, 8)), ' ') : '', h('td', h('a', { href: self.toUrl(base + name), title: 'package name' @@ -609,7 +609,7 @@ Render.prototype.npmPrebuildMention = function (link, opts, cb) { cb(null, h('tr', [ opts.withAuthor ? h('td', h('a', { href: self.toUrl(link.author) - }, about.name), ' ') : '', + }, about.name || u.truncate(link.author, 8)), ' ') : '', h('td', h('a', { href: self.toUrl(base + name) }, name), ' '), |