Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-link-retry

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-retry - npm Package Compare versions

Comparing version 0.8.0 to 1.0.0

20

package.json
{
"name": "apollo-link-retry",
"version": "0.8.0",
"version": "1.0.0",
"description": "Retry Apollo Link for GraphQL Network Stack",

@@ -43,19 +43,19 @@ "author": "Evans Hauser <evanshauser@gmail.com>",

"peerDependencies": {
"apollo-link": "^0.8.0"
"apollo-link": "^1.0.0"
},
"devDependencies": {
"@types/graphql": "0.11.5",
"@types/jest": "21.1.2",
"@types/zen-observable": "^0.5.3",
"apollo-link": "^0.8.0",
"browserify": "14.4.0",
"@types/jest": "21.1.4",
"@types/zen-observable": "0.5.3",
"apollo-link": "^1.0.0",
"browserify": "14.5.0",
"graphql": "0.11.7",
"graphql-tag": "2.4.2",
"graphql-tag": "2.5.0",
"jest": "21.2.1",
"rimraf": "2.6.1",
"rollup": "0.45.2",
"ts-jest": "21.1.2",
"tslint": "5.7.0",
"ts-jest": "21.1.3",
"tslint": "5.8.0",
"typescript": "2.5.1",
"uglify-js": "3.1.3"
"uglify-js": "3.1.5"
},

@@ -62,0 +62,0 @@ "jest": {

@@ -1,2 +0,4 @@

# Retry Link
---
title: Retry Link
---

@@ -22,11 +24,9 @@ ## Purpose

The default delay algorithm is to wait `delay` ms between each retry. You can customize the algorithm (eg, replacing with exponential backoff) with the `interval` option.
The default delay algorithm is to wait `delay` ms between each retry. You can customize the algorithm (eg, replacing with exponential backoff) with the `interval` option. The possible values for the configuration object are as follow:
- `max`: a number or function matching (Operation => number) to determine the max number of times to try a single operation before giving up. It defaults to 10
- `delay`: a number or function matching (Operation => number) to input to the interval function below: Defaults to 300 ms
- `interval`: a function matching (delay: number, count: number) => number which is the amount of time (in ms) to wait before the next attempt; count is the number of requests previously tried
|name|value|default|meaning|
|---|---|---|---|
|max|number or (Operation => number)|10|max number of times to try a single operation before giving up|
|delay|number or (Operation => number)|300|input to the interval function below|
|interval|(delay: number, count: number) => number|(delay, count => delay)|amount of time (in ms) to wait before the next attempt; count is the number of requests previously tried|
```js
import RetryLink from "apollo-link-retry";
import { RetryLink } from "apollo-link-retry";

@@ -33,0 +33,0 @@ const max = (operation) => operation.getContext().max;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc