
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy 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 87,316 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.