
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@fortify-ts/timeout
Advanced tools
Timeout pattern for the Fortify-TS resilience library.
npm install @fortify-ts/timeout
# or
pnpm add @fortify-ts/timeout
onTimeout callbackimport { Timeout } from '@fortify-ts/timeout';
const timeout = new Timeout<Response>({
defaultTimeout: 5000, // 5 seconds
});
try {
const result = await timeout.execute(async (signal) => {
return fetch('/api/data', { signal });
});
} catch (error) {
if (error instanceof TimeoutError) {
console.log('Request timed out');
}
}
// Use default timeout
await timeout.execute(operation);
// Override with specific timeout
await timeout.executeWithTimeout(operation, 10000); // 10 seconds
const timeout = new Timeout<Response>({
// Default timeout in milliseconds
defaultTimeout: 5000,
// Timeout notification
onTimeout: (duration) => {
console.log(`Operation timed out after ${duration}ms`);
},
// Optional logger
logger: myLogger,
});
const controller = new AbortController();
// Both timeout and external signal can cancel
const result = await timeout.execute(
async (signal) => fetch('/api/data', { signal }),
controller.signal
);
// Cancel from external code
controller.abort();
| Option | Type | Default | Description |
|---|---|---|---|
defaultTimeout | number | 30000 | Default timeout (ms) |
onTimeout | function | - | Timeout callback |
logger | FortifyLogger | - | Optional logger |
MIT
FAQs
Timeout pattern for Fortify TS resilience library
The npm package @fortify-ts/timeout receives a total of 29 weekly downloads. As such, @fortify-ts/timeout popularity was classified as not popular.
We found that @fortify-ts/timeout demonstrated a healthy version release cadence and project activity because the last version was released less than 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.