8 lines
208 B
JavaScript
8 lines
208 B
JavaScript
|
const BlacklistAPI = require('../../BlacklistAPI')
|
||
|
|
||
|
function withBlacklist(blacklist, callback) {
|
||
|
return Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(callback)
|
||
|
}
|
||
|
|
||
|
module.exports = withBlacklist
|