Lower minimum daily downloads to 50
This commit is contained in:
parent
8fb2c7810e
commit
504c55a636
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue