apollo-link-retry
Advanced tools
Comparing version 0.8.0 to 1.0.0
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
23007
0