frontend/.pnpm-store/v3/files/2f/20d6a136593d368b5185c913e33c94f3665d4274106aa554f0e262711e6b48a9c0f687dff55f52905a97077a11febe6a877da020bb8b63e116ff776cd2a555

18 lines
334 B
Plaintext

'use strict';
module.exports = self => {
const {username, password} = self.proxyOptions.url;
if (username || password) {
const data = `${username}:${password}`;
const authorization = `Basic ${Buffer.from(data).toString('base64')}`;
return {
'proxy-authorization': authorization,
authorization
};
}
return {};
};