apollo-link-retry
Advanced tools
Comparing version 2.2.15 to 3.0.0-beta.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
var tslib = require('tslib'); | ||
var apolloLink = require('apollo-link'); | ||
var core = require('@apollo/client/core'); | ||
@@ -159,3 +159,3 @@ function buildDelayFunction(delayOptions) { | ||
retryable.start(); | ||
return new apolloLink.Observable(function (observer) { | ||
return new core.Observable(function (observer) { | ||
retryable.subscribe(observer); | ||
@@ -168,5 +168,5 @@ return function () { | ||
return RetryLink; | ||
}(apolloLink.ApolloLink)); | ||
}(core.ApolloLink)); | ||
exports.RetryLink = RetryLink; | ||
//# sourceMappingURL=bundle.cjs.js.map |
import { __extends, __awaiter, __generator } from 'tslib'; | ||
import { Observable, ApolloLink } from 'apollo-link'; | ||
import { Observable, ApolloLink } from '@apollo/client/core'; | ||
@@ -4,0 +4,0 @@ function buildDelayFunction(delayOptions) { |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('apollo-link')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'apollo-link'], factory) : | ||
(global = global || self, factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.retry = {}), global.tslib, global.apolloLink.core)); | ||
}(this, function (exports, tslib_1, apolloLink) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@apollo/client/core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'tslib', '@apollo/client/core'], factory) : | ||
(global = global || self, factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.retry = {}), global.tslib, global.apollo.core)); | ||
}(this, (function (exports, tslib_1, core) { 'use strict'; | ||
@@ -157,3 +157,3 @@ function buildDelayFunction(delayOptions) { | ||
retryable.start(); | ||
return new apolloLink.Observable(function (observer) { | ||
return new core.Observable(function (observer) { | ||
retryable.subscribe(observer); | ||
@@ -166,3 +166,3 @@ return function () { | ||
return RetryLink; | ||
}(apolloLink.ApolloLink)); | ||
}(core.ApolloLink)); | ||
@@ -173,3 +173,3 @@ exports.RetryLink = RetryLink; | ||
})); | ||
}))); | ||
//# sourceMappingURL=bundle.umd.js.map |
@@ -1,2 +0,2 @@ | ||
import { Operation } from 'apollo-link'; | ||
import { Operation } from '@apollo/client/core'; | ||
export interface DelayFunction { | ||
@@ -3,0 +3,0 @@ (count: number, operation: Operation, error: any): number; |
@@ -1,2 +0,2 @@ | ||
import { Operation } from 'apollo-link'; | ||
import { Operation } from '@apollo/client/core'; | ||
export interface RetryFunction { | ||
@@ -3,0 +3,0 @@ (count: number, operation: Operation, error: any): boolean | Promise<boolean>; |
@@ -1,2 +0,2 @@ | ||
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link'; | ||
import { ApolloLink, Operation, NextLink, FetchResult, Observable } from '@apollo/client/core'; | ||
import { DelayFunction, DelayFunctionOptions } from './delayFunction'; | ||
@@ -3,0 +3,0 @@ import { RetryFunction, RetryFunctionOptions } from './retryFunction'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var apollo_link_1 = require("apollo-link"); | ||
var core_1 = require("@apollo/client/core"); | ||
var delayFunction_1 = require("./delayFunction"); | ||
@@ -136,3 +136,3 @@ var retryFunction_1 = require("./retryFunction"); | ||
retryable.start(); | ||
return new apollo_link_1.Observable(function (observer) { | ||
return new core_1.Observable(function (observer) { | ||
retryable.subscribe(observer); | ||
@@ -145,4 +145,4 @@ return function () { | ||
return RetryLink; | ||
}(apollo_link_1.ApolloLink)); | ||
}(core_1.ApolloLink)); | ||
exports.RetryLink = RetryLink; | ||
//# sourceMappingURL=retryLink.js.map |
{ | ||
"name": "apollo-link-retry", | ||
"version": "2.2.15", | ||
"version": "3.0.0-beta.0", | ||
"description": "Retry Apollo Link for GraphQL Network Stack", | ||
@@ -37,4 +37,3 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"dependencies": { | ||
"@types/zen-observable": "0.8.0", | ||
"apollo-link": "^1.2.13", | ||
"@apollo/client": "^3.0.0-beta.10", | ||
"tslib": "^1.9.3" | ||
@@ -44,10 +43,10 @@ }, | ||
"@types/graphql": "14.2.3", | ||
"@types/jest": "24.0.18", | ||
"graphql": "14.5.4", | ||
"@types/jest": "24.0.23", | ||
"graphql": "14.5.8", | ||
"graphql-tag": "2.10.1", | ||
"jest": "24.9.0", | ||
"rimraf": "2.7.1", | ||
"rollup": "1.20.3", | ||
"rollup": "1.27.0", | ||
"ts-jest": "22.4.6", | ||
"tslint": "5.17.0", | ||
"tslint": "5.20.1", | ||
"typescript": "3.0.3", | ||
@@ -69,3 +68,3 @@ "wait-for-observables": "1.0.3" | ||
}, | ||
"gitHead": "74d412528dd474fc41ee0bf504e36e01d7e05e2b" | ||
"gitHead": "150213d6b1ee2ecf5a6c8f7f46acf53b639edb0d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
81211
2
1
+ Added@apollo/client@3.11.10(transitive)
+ Added@graphql-typed-document-node/core@3.2.0(transitive)
+ Added@wry/caches@1.0.1(transitive)
+ Added@wry/context@0.7.4(transitive)
+ Added@wry/equality@0.5.7(transitive)
+ Added@wry/trie@0.5.0(transitive)
+ Addedgraphql@16.9.0(transitive)
+ Addedgraphql-tag@2.12.6(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedoptimism@0.18.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedrehackt@0.1.0(transitive)
+ Addedresponse-iterator@0.2.6(transitive)
+ Addedsymbol-observable@4.0.0(transitive)
+ Addedts-invariant@0.10.3(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedzen-observable-ts@1.2.5(transitive)
- Removed@types/zen-observable@0.8.0
- Removedapollo-link@^1.2.13
- Removed@types/zen-observable@0.8.0(transitive)
- Removed@wry/equality@0.1.11(transitive)
- Removedapollo-link@1.2.14(transitive)
- Removedapollo-utilities@1.3.4(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedgraphql@15.9.0(transitive)
- Removedts-invariant@0.4.4(transitive)
- Removedzen-observable-ts@0.8.21(transitive)