diff --git a/src/utils/helper.ts b/src/utils/helper.ts index 9dbb832..28f48fc 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -111,7 +111,7 @@ function getHttpsAgent(): HttpsAgent { const env = process.env[envName]; if (typeof env === 'string' && env && /^https?:\/\//i.test(env)) { console.log(`Use proxy "${env}" for https request`); - const HttpsProxyAgent = require('https-proxy-agent'); + const { HttpsProxyAgent } = require('https-proxy-agent'); return new HttpsProxyAgent(env); } } diff --git a/src/utils/terminal-colors.ts b/src/utils/terminal-colors.ts index b1729e1..b0cdf7e 100644 --- a/src/utils/terminal-colors.ts +++ b/src/utils/terminal-colors.ts @@ -1,5 +1,5 @@ // this utility is used for remvoing chalk from the dependency list -export const bold = (str: unknown) => `\x1b[1m${str}\x1b[21m`; +export const bold = (str: unknown) => `\x1b[1m${str}\x1b[22m`; export const blue = (str: unknown) => `\x1b[34m${str}\x1b[39m`; export const cyan = (str: unknown) => `\x1b[36m${str}\x1b[39m`; export const green = (str: unknown) => `\x1b[32m${str}\x1b[39m`;