
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
http-resilient-executor
Advanced tools
http-resilient-executorHelper for creating retry policies , circuit breaker for functions and external requests
| Name | Description |
|---|---|
| httpResilienceCBHalfOpenAfterMS | Indicates the Time CircuitBreaker to be in half open state |
| httpResilienceRetryCount | Retry count for requests |
| httpResilienceCBConsecutiveThreshold | Maximum attempts to open CircuitBreaker |
For logger configuration properties see the logger documentation
// init ResilientExecutor instance (should use 1 instance per app)
import { ResilientExecutor } from 'http-resilient-executor';
const config = {
/** logger configuration */
logger: { logLevel: 'cli', logStyle: 'debug', appName: 'nodejs-commons',moduleName: 'ResilientExecutor' },
/** After 10 seconds the CB will be half open state */
httpResilienceCBHalfOpenAfterMS: 10 * 1000,
/** After 5 consecutive failed requests, the CB will be open */
httpResilienceCBConsecutiveThreshold: 5,
/** Retry count for failed requests */
httpResilienceRetryCount: 3,
};
const resilientExec = new ResilientExecutor(config);
/** use resilientExecutor to wrap functions and api calls */
/** to wrap function */
await resilientExec.execute(testMock);
/** to wrap api */
await this.executor.execute(() =>
axios.post(this.authUrl, params,
{
headers: { 'Content-Type': 'application/x-www-form-urlencoded'},
auth: credentials,
}),
);
FAQs
NodeJS http resilient executor
We found that http-resilient-executor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.