apollo-link
Advanced tools
Comparing version 1.0.7 to 1.1.0
@@ -5,2 +5,5 @@ # Change log | ||
# 1.1.0 | ||
- Expose `#execute` on ApolloLink as static | ||
# 1.0.7 | ||
@@ -7,0 +10,0 @@ |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('zen-observable'), require('apollo-utilities'), require('graphql/language/printer')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'zen-observable', 'apollo-utilities', 'graphql/language/printer'], factory) : | ||
(factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.core = {}),global.Observable,global.apollo.utilities,global.printer)); | ||
}(this, (function (exports,Observable,apolloUtilities,printer) { 'use strict'; | ||
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)); | ||
}(this, (function (exports,apolloUtilities,Observable,printer) { 'use strict'; | ||
@@ -194,2 +194,3 @@ var __extends = (undefined && undefined.__extends) || (function () { | ||
ApolloLink.split = split; | ||
ApolloLink.execute = execute; | ||
return ApolloLink; | ||
@@ -196,0 +197,0 @@ }()); |
@@ -13,2 +13,3 @@ /// <reference types="zen-observable" /> | ||
static split: (test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | RequestHandler) => ApolloLink; | ||
static execute: typeof execute; | ||
split(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | RequestHandler): ApolloLink; | ||
@@ -15,0 +16,0 @@ concat(next: ApolloLink | RequestHandler): ApolloLink; |
@@ -72,2 +72,3 @@ import * as Observable from 'zen-observable'; | ||
ApolloLink.split = split; | ||
ApolloLink.execute = execute; | ||
return ApolloLink; | ||
@@ -74,0 +75,0 @@ }()); |
{ | ||
"name": "apollo-link", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "Flexible, lightweight transport layer for GraphQL", | ||
@@ -41,3 +41,3 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"test": "jest", | ||
"watch": "tsc -w -p ." | ||
"watch": "tsc -w -p . & rollup -c -w" | ||
}, | ||
@@ -47,20 +47,20 @@ "dependencies": { | ||
"apollo-utilities": "^1.0.0", | ||
"zen-observable": "^0.6.0" | ||
"zen-observable": "^0.7.0" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.11.3 || ^0.12.3" | ||
"graphql": "^0.11.3 || ^0.12.3 || ^0.13.0" | ||
}, | ||
"devDependencies": { | ||
"@types/graphql": "0.11.7", | ||
"@types/jest": "21.1.8", | ||
"@types/graphql": "0.12.3", | ||
"@types/jest": "21.1.10", | ||
"browserify": "14.5.0", | ||
"graphql": "0.12.3", | ||
"graphql-tag": "2.6.0", | ||
"graphql": "0.13.0", | ||
"graphql-tag": "2.7.3", | ||
"jest": "21.2.1", | ||
"rimraf": "2.6.1", | ||
"rollup": "0.52.2", | ||
"rollup": "0.55.3", | ||
"ts-jest": "21.2.4", | ||
"tslint": "5.8.0", | ||
"typescript": "2.6.2", | ||
"uglify-js": "3.2.2" | ||
"tslint": "5.9.1", | ||
"typescript": "2.7.1", | ||
"uglify-js": "3.3.9" | ||
}, | ||
@@ -67,0 +67,0 @@ "jest": { |
@@ -430,3 +430,4 @@ import * as Observable from 'zen-observable'; | ||
const chain = ApolloLink.from([new MockLink(() => Observable.of(data))]); | ||
const observable = execute(chain, uniqueOperation); | ||
// Smoke tests execute as a static method | ||
const observable = ApolloLink.execute(chain, uniqueOperation); | ||
observable.subscribe({ | ||
@@ -433,0 +434,0 @@ next: actualData => { |
@@ -100,2 +100,3 @@ import * as Observable from 'zen-observable'; | ||
public static split = split; | ||
public static execute = execute; | ||
@@ -102,0 +103,0 @@ public split( |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
90754
1909
0
+ Addedgraphql@0.13.2(transitive)
+ Addediterall@1.3.0(transitive)
+ Addedzen-observable@0.7.1(transitive)
- Removedgraphql@0.12.3(transitive)
- Removediterall@1.1.3(transitive)
- Removedzen-observable@0.6.1(transitive)
Updatedzen-observable@^0.7.0