Experimental port to Firebase hosting

This commit is contained in:
Michael Jackson
2019-01-05 16:50:05 -08:00
parent e4d6df255e
commit 31e7d3865a
300 changed files with 129300 additions and 5817 deletions

View File

@ -1,7 +1,7 @@
const BlacklistAPI = require('../BlacklistAPI');
import { includesPackage } from '../utils/blacklist';
function checkBlacklist(req, res, next) {
BlacklistAPI.includesPackage(req.packageName).then(
export default function checkBlacklist(req, res, next) {
includesPackage(req.packageName).then(
blacklisted => {
// Disallow packages that have been blacklisted.
if (blacklisted) {
@ -21,5 +21,3 @@ function checkBlacklist(req, res, next) {
}
);
}
module.exports = checkBlacklist;