Use single quotes :P
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const BlacklistAPI = require("../../BlacklistAPI");
|
||||
const BlacklistAPI = require('../../BlacklistAPI');
|
||||
|
||||
function clearBlacklist(done) {
|
||||
BlacklistAPI.removeAllPackages().then(done, done);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const withToken = require("./withToken");
|
||||
const withToken = require('./withToken');
|
||||
|
||||
function encodeBase64(token) {
|
||||
return Buffer.from(token).toString("base64");
|
||||
return Buffer.from(token).toString('base64');
|
||||
}
|
||||
|
||||
function withAuthHeader(scopes, done) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const BlacklistAPI = require("../../BlacklistAPI");
|
||||
const BlacklistAPI = require('../../BlacklistAPI');
|
||||
|
||||
function withBlacklist(blacklist, done) {
|
||||
Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(done);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
const withToken = require("./withToken");
|
||||
const AuthAPI = require("../../AuthAPI");
|
||||
const withToken = require('./withToken');
|
||||
const AuthAPI = require('../../AuthAPI');
|
||||
|
||||
function withRevokedToken(scopes, done) {
|
||||
withToken(scopes, token => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
const AuthAPI = require("../../AuthAPI");
|
||||
const AuthAPI = require('../../AuthAPI');
|
||||
|
||||
function withToken(scopes, done) {
|
||||
AuthAPI.createToken(scopes).then(done);
|
||||
|
||||
Reference in New Issue
Block a user