Lower minimum daily downloads to 50

This commit is contained in:
MICHAEL JACKSON 2017-08-17 11:55:09 -07:00
parent 8fb2c7810e
commit 504c55a636
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@ const PackageBlacklist = require('./PackageBlacklist').blacklist
* The minimum number of times a package must be downloaded on
* average in order to be available on the CDN.
*/
const MinDailyDownloads = 100
const MinDailyDownloads = 50
morgan.token('fwd', function (req) {
return req.get('x-forwarded-for').replace(/\s/g, '')
@ -89,6 +89,10 @@ function createServer() {
serveMetadata
)
app.use('/_stats',
parsePackageURL
)
app.use('/',
parsePackageURL,
checkBlacklist(PackageBlacklist),