Prettify everything
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
const BlacklistAPI = require("../../BlacklistAPI")
|
||||
const BlacklistAPI = require("../../BlacklistAPI");
|
||||
|
||||
function clearBlacklist(done) {
|
||||
BlacklistAPI.removeAllPackages().then(done, done)
|
||||
BlacklistAPI.removeAllPackages().then(done, done);
|
||||
}
|
||||
|
||||
module.exports = clearBlacklist
|
||||
module.exports = clearBlacklist;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const BlacklistAPI = require("../../BlacklistAPI")
|
||||
const BlacklistAPI = require("../../BlacklistAPI");
|
||||
|
||||
function withBlacklist(blacklist, callback) {
|
||||
return Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(callback)
|
||||
return Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(callback);
|
||||
}
|
||||
|
||||
module.exports = withBlacklist
|
||||
module.exports = withBlacklist;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
const withToken = require("./withToken")
|
||||
const AuthAPI = require("../../AuthAPI")
|
||||
const withToken = require("./withToken");
|
||||
const AuthAPI = require("../../AuthAPI");
|
||||
|
||||
function withRevokedToken(scopes, callback) {
|
||||
withToken(scopes, token => {
|
||||
AuthAPI.revokeToken(token).then(() => {
|
||||
callback(token)
|
||||
})
|
||||
})
|
||||
callback(token);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = withRevokedToken
|
||||
module.exports = withRevokedToken;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const AuthAPI = require("../../AuthAPI")
|
||||
const AuthAPI = require("../../AuthAPI");
|
||||
|
||||
function withToken(scopes, callback) {
|
||||
AuthAPI.createToken(scopes).then(callback)
|
||||
AuthAPI.createToken(scopes).then(callback);
|
||||
}
|
||||
|
||||
module.exports = withToken
|
||||
module.exports = withToken;
|
||||
|
||||
Reference in New Issue
Block a user