apollo-link-retry
Advanced tools
Comparing version 0.5.4 to 0.6.1-beta.0
@@ -1,2 +0,2 @@ | ||
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link-core'; | ||
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link'; | ||
export default class RetryLink extends ApolloLink { | ||
@@ -3,0 +3,0 @@ private count; |
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -12,4 +11,3 @@ var extendStatics = Object.setPrototypeOf || | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var apollo_link_core_1 = require("apollo-link-core"); | ||
import { ApolloLink, Observable, } from 'apollo-link'; | ||
var RetryLink = (function (_super) { | ||
@@ -28,3 +26,3 @@ __extends(RetryLink, _super); | ||
var _this = this; | ||
return new apollo_link_core_1.Observable(function (observer) { | ||
return new Observable(function (observer) { | ||
var subscriber = { | ||
@@ -59,4 +57,4 @@ next: function (data) { | ||
return RetryLink; | ||
}(apollo_link_core_1.ApolloLink)); | ||
exports.default = RetryLink; | ||
}(ApolloLink)); | ||
export default RetryLink; | ||
//# sourceMappingURL=retryLink.js.map |
{ | ||
"name": "apollo-link-retry", | ||
"version": "0.5.4", | ||
"version": "0.6.1-beta.0", | ||
"description": "Retry Apollo Link for GraphQL Network Stack", | ||
@@ -13,4 +13,6 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"license": "MIT", | ||
"main": "./lib/retryLink.js", | ||
"typings": "./lib/retryLink.d.ts", | ||
"main": "./dist/src/bundle.umd.js", | ||
"module": "./dist/src/retryLink.js", | ||
"jsnext:main": "./dist/src/retryLink.js", | ||
"typings": "./dist/src/retryLink.d.ts", | ||
"repository": { | ||
@@ -25,3 +27,3 @@ "type": "git", | ||
"scripts": { | ||
"pretest": "npm run build", | ||
"pretest": "npm run build-test", | ||
"test": "npm run test-only --", | ||
@@ -37,14 +39,17 @@ "posttest": "npm run lint", | ||
"lint": | ||
"tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts", | ||
"tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts", | ||
"prebuild": "npm run clean:dist", | ||
"build": "tsc -p .", | ||
"postbuild": "cp -R ./dist/src/. ./lib", | ||
"build-test": "tsc -p tsconfig.test.json", | ||
"postbuild": "npm run bundle", | ||
"postbuild-test": "npm run bundle", | ||
"bundle": "rollup -c", | ||
"watch": "tsc -w -p .", | ||
"clean": "npm run clean:dist && npm run clean:coverage", | ||
"clean:dist": "rimraf dist/* && rimraf lib/*", | ||
"clean:dist": "rimraf dist/*", | ||
"clean:coverage": "rimraf coverage/*", | ||
"prepublishOnly": "npm run clean && npm run build" | ||
}, | ||
"dependencies": { | ||
"apollo-link-core": "^0.5.4" | ||
"peerDependencies": { | ||
"apollo-link": "^0.6.1-beta.0" | ||
}, | ||
@@ -56,2 +61,3 @@ "devDependencies": { | ||
"@types/sinon": "2.3.3", | ||
"apollo-link": "^0.6.1-beta.0", | ||
"chai": "4.1.1", | ||
@@ -67,2 +73,3 @@ "chai-as-promised": "7.1.1", | ||
"rimraf": "2.6.1", | ||
"rollup": "^0.45.2", | ||
"sinon": "3.2.0", | ||
@@ -69,0 +76,0 @@ "source-map-support": "0.4.16", |
@@ -8,3 +8,3 @@ import { | ||
ZenObservable, | ||
} from 'apollo-link-core'; | ||
} from 'apollo-link'; | ||
@@ -11,0 +11,0 @@ export default class RetryLink extends ApolloLink { |
{ | ||
"extends": "../../tsconfig", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es6", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"rootDir": ".", | ||
"outDir": "dist", | ||
"noImplicitAny": false, | ||
"noUnusedParameters": false, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true | ||
"rootDir": "." | ||
}, | ||
"include": ["src/**/*.ts", "tests/**/*.ts"] | ||
"include": ["src/**/*.ts"] | ||
} |
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
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
19655
20
11
336
+ Addedapollo-link@0.6.1-beta.6(transitive)
+ Addedapollo-utilities@0.2.0-rc.3(transitive)
+ Addedgraphql@0.11.7(transitive)
+ Addediterall@1.1.3(transitive)
- Removedapollo-link-core@^0.5.4
- Removedapollo-link-core@0.5.4(transitive)
- Removedgraphql@0.10.5(transitive)
- Removedgraphql-tag@2.12.6(transitive)
- Removediterall@1.3.0(transitive)
- Removedtslib@2.8.1(transitive)