apollo-link
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,2 +5,5 @@ # Change log | ||
### 1.2.1 | ||
- udate apollo link with zen-observable-ts to remove import issues [PR#515](https://github.com/apollographql/apollo-link/pull/515) | ||
### 1.2.0 | ||
@@ -7,0 +10,0 @@ - Add `fromError` Observable helper |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('apollo-utilities'), require('zen-observable'), require('graphql/language/printer')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'apollo-utilities', 'zen-observable', 'graphql/language/printer'], factory) : | ||
(factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.core = {}),global.apollo.utilities,global.Observable,global.printer)); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('apollo-utilities'), require('zen-observable-ts'), require('graphql/language/printer')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'apollo-utilities', 'zen-observable-ts', 'graphql/language/printer'], factory) : | ||
(factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.core = {}),global.apollo.utilities,global.apolloLink.zenObservable,global.printer)); | ||
}(this, (function (exports,apolloUtilities,Observable,printer) { 'use strict'; | ||
@@ -6,0 +6,0 @@ |
export * from './link'; | ||
export { createOperation, makePromise, toPromise, fromPromise, fromError } from './linkUtils'; | ||
export * from './types'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
export { Observable }; |
export * from './link'; | ||
export { createOperation, makePromise, toPromise, fromPromise, fromError, } from './linkUtils'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
export { Observable }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
/// <reference types="zen-observable" /> | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { GraphQLRequest, NextLink, Operation, RequestHandler, FetchResult } from './types'; | ||
@@ -4,0 +3,0 @@ export declare const empty: () => ApolloLink; |
@@ -1,2 +0,2 @@ | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { validateOperation, isTerminating, LinkError, transformOperation, createOperation, } from './linkUtils'; | ||
@@ -3,0 +3,0 @@ var passthrough = function (op, forward) { return (forward ? forward(op) : Observable.of()); }; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="zen-observable" /> | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { GraphQLRequest, Operation } from './types'; | ||
@@ -4,0 +3,0 @@ import { ApolloLink } from './link'; |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { getOperationName } from 'apollo-utilities'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { print } from 'graphql/language/printer'; | ||
@@ -23,0 +23,0 @@ export function validateOperation(operation) { |
@@ -1,4 +0,3 @@ | ||
/// <reference types="zen-observable" /> | ||
import { Operation, RequestHandler, NextLink, FetchResult } from '../types'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { ApolloLink } from '../link'; | ||
@@ -5,0 +4,0 @@ export default class MockLink extends ApolloLink { |
@@ -1,4 +0,3 @@ | ||
/// <reference types="zen-observable" /> | ||
import { Operation, NextLink, FetchResult } from '../types'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { ApolloLink } from '../link'; | ||
@@ -5,0 +4,0 @@ export default class SetContextLink extends ApolloLink { |
@@ -1,3 +0,2 @@ | ||
/// <reference types="zen-observable" /> | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { ExecutionResult, DocumentNode } from 'graphql'; | ||
@@ -4,0 +3,0 @@ export interface GraphQLRequest { |
{ | ||
"name": "apollo-link", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Flexible, lightweight transport layer for GraphQL", | ||
@@ -26,3 +26,3 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"scripts": { | ||
"build:browser": "browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-utilities --i graphql --i zen-observable && npm run minify:browser", | ||
"build:browser": "browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-utilities --i graphql --i zen-observable-ts && npm run minify:browser", | ||
"build": "tsc -p .", | ||
@@ -43,5 +43,4 @@ "bundle": "rollup -c", | ||
"@types/node": "^9.4.6", | ||
"@types/zen-observable": "0.5.3", | ||
"apollo-utilities": "^1.0.0", | ||
"zen-observable": "^0.8.0" | ||
"zen-observable-ts": "^0.8.6" | ||
}, | ||
@@ -48,0 +47,0 @@ "peerDependencies": { |
@@ -1,2 +0,2 @@ | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import gql from 'graphql-tag'; | ||
@@ -3,0 +3,0 @@ import { print } from 'graphql/language/printer'; |
@@ -7,3 +7,3 @@ import { | ||
} from '../linkUtils'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
@@ -10,0 +10,0 @@ describe('Link utilities:', () => { |
@@ -11,3 +11,3 @@ export * from './link'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
export { Observable }; |
@@ -1,2 +0,2 @@ | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
@@ -3,0 +3,0 @@ import { |
import { getOperationName } from 'apollo-utilities'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { print } from 'graphql/language/printer'; | ||
@@ -4,0 +4,0 @@ |
import { Operation, RequestHandler, NextLink, FetchResult } from '../types'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
@@ -5,0 +5,0 @@ import { ApolloLink } from '../link'; |
import { Operation, NextLink, FetchResult } from '../types'; | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
@@ -5,0 +5,0 @@ import { ApolloLink } from '../link'; |
@@ -1,2 +0,2 @@ | ||
import Observable from 'zen-observable'; | ||
import Observable from 'zen-observable-ts'; | ||
import { ExecutionResult, DocumentNode } from 'graphql'; | ||
@@ -3,0 +3,0 @@ |
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
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
4
103397
2130
+ Addedzen-observable-ts@^0.8.6
+ Addedzen-observable-ts@0.8.21(transitive)
- Removed@types/zen-observable@0.5.3
- Removedzen-observable@^0.8.0
- Removed@types/zen-observable@0.5.3(transitive)