Merge remote-tracking branch 'ElNounch/DavidOptionalDep'
This commit is contained in:
commit
5ffc6328ce
|
@ -1822,10 +1822,10 @@ cache(function(data, match, sendBadge, request) {
|
|||
}));
|
||||
|
||||
// David integration
|
||||
camp.route(/^\/david\/(dev\/|peer\/)?(.+?)\.(svg|png|gif|jpg|json)$/,
|
||||
camp.route(/^\/david\/(dev\/|optional\/|peer\/)?(.+?)\.(svg|png|gif|jpg|json)$/,
|
||||
cache(function(data, match, sendBadge, request) {
|
||||
var dev = match[1];
|
||||
if (dev != null) { dev = dev.slice(0, -1); } // 'dev' or 'peer'.
|
||||
if (dev != null) { dev = dev.slice(0, -1); } // 'dev', 'optional' or 'peer'.
|
||||
// eg, `strongloop/express`, `webcomponents/generator-element`.
|
||||
var userRepo = match[2];
|
||||
var format = match[3];
|
||||
|
|
4
try.html
4
try.html
|
@ -470,6 +470,10 @@ Pixel-perfect Retina-ready Fast Consistent Hackable
|
|||
<td><img src='/david/dev/strongloop/express.svg' alt=''/></td>
|
||||
<td><code>https://img.shields.io/david/dev/strongloop/express.svg</code></td>
|
||||
</tr>
|
||||
<tr><th> David: </th>
|
||||
<td><img src='/david/optional/elnounch/byebye.svg' alt=''/></td>
|
||||
<td><code>https://img.shields.io/david/optional/elnounch/byebye.svg</code></td>
|
||||
</tr>
|
||||
<tr><th> David: </th>
|
||||
<td><img src='/david/peer/webcomponents/generator-element.svg' alt=''/></td>
|
||||
<td><code>https://img.shields.io/david/peer/webcomponents/generator-element.svg</code></td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user