Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-link

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link - npm Package Compare versions

Comparing version 1.0.7 to 1.1.0

3

CHANGELOG.md

@@ -5,2 +5,5 @@ # Change log

# 1.1.0
- Expose `#execute` on ApolloLink as static
# 1.0.7

@@ -7,0 +10,0 @@

9

lib/bundle.umd.js
(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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc