Skip to content

Commit

Permalink
fix: Fix utils for the latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hangxingliu committed Nov 20, 2023
1 parent a0ba699 commit e41bed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/terminal-colors.ts
Original file line number Diff line number Diff line change
@@ -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`;
Expand Down

0 comments on commit e41bed2

Please sign in to comment.