
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
rxjs-retry-delay
Advanced tools
RxJS retry pipeable operator with delay and max attempts strategy for RxJS >= 6
RxJS retry pipeable operator that supports delay and max attempts strategy
rxjs: ^6.0.0
npm install rxjs-retry-delay
Basic usage with default values:
import { ajax } from 'rxjs/ajax';
import { retryWithDelay } from 'rxjs-retry-delay';
function getUserById(id) {
return ajax.getJSON(`https://jsonplaceholder.typicode.com/users/${id}`)
.pipe(retryWithDelay());
}
Example above will retry 3 times with interval of 1s
function getUserById(id) {
return ajax.getJSON(`https://jsonplaceholder.typicode.com/users/${id}`).pipe(
retryWithDelay({
delay: 1000,
maxRetryAttempts: 5,
scalingFactor: 2
})
);
}
Example above will retry after 1s, 2s, 4s, 8s, 16s
In excludedStatusCodes we can pass response statuses after which we don't want to retry
function getUserById(id) {
return ajax.getJSON(`https://jsonplaceholder.typicode.com/users/${id}`).pipe(
retryWithDelay({
delay: 1000,
maxRetryAttempts: 10,
scalingFactor: 2,
excludedStatusCodes: [500]
})
);
}
In example above, when response status is 500 it will throw error immediately.
npm test
or
npm run test:watch
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
RxJS retry pipeable operator with delay and max attempts strategy for RxJS >= 6
The npm package rxjs-retry-delay receives a total of 149 weekly downloads. As such, rxjs-retry-delay popularity was classified as not popular.
We found that rxjs-retry-delay 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.

Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.

Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.

Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.