Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
apollo-link-retry
Advanced tools
An Apollo Link to allow multiple attempts when an operation has failed. One such use case is to try a request while a network connection is offline and retry until it comes back online. Retry's can vary based on operation through the configuration of the link.
npm install apollo-link-retry --save
To use this package in a web browser or mobile app, you'll need a build system capable of loading NPM packages on the client. Some common choices include Browserify, Webpack, and Meteor +1.3.
import RetryLink from "apollo-link-retry";
const link = new RetryLink();
Retry Link takes an object with three options on it to customize the behavoir of the link.
name | value | default | required |
---|---|---|---|
max | number or Operation => number | 10 | false |
delay | number or Operation => number | 300 | false |
interval | (delay: number, count: number) => number | delay => delay | false |
import RetryLink from "apollo-link-retry"
const max = (operation) => operation.getContext().max
const delay = 5000;
const interval = (delay, count) => {
if (count > 5) return 10,000;
return delay;
}
const link = new RetryLink({
max,
delay,
interval
});
The Retry Link does not use the context for anything
FAQs
Retry Apollo Link for GraphQL Network Stack
The npm package apollo-link-retry receives a total of 63,517 weekly downloads. As such, apollo-link-retry popularity was classified as popular.
We found that apollo-link-retry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.