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

apollo-link-batch-http

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-batch-http - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

CHANGELOG.md

2

lib/batchHttpLink.d.ts
import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { ApolloFetch } from 'apollo-fetch';
export default class BatchHttpLink extends ApolloLink {
export declare class BatchHttpLink extends ApolloLink {
private headers;

@@ -5,0 +5,0 @@ private apolloFetch;

@@ -21,3 +21,3 @@ var __extends = (this && this.__extends) || (function () {

import { createApolloFetch } from 'apollo-fetch';
import BatchLink from 'apollo-link-batch';
import { BatchLink } from 'apollo-link-batch';
import { print } from 'graphql/language/printer';

@@ -62,3 +62,3 @@ var BatchHttpLink = (function (_super) {

}(ApolloLink));
export default BatchHttpLink;
export { BatchHttpLink };
//# sourceMappingURL=batchHttpLink.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('apollo-link'), require('apollo-fetch'), require('apollo-link-batch'), require('graphql/language/printer')) :
typeof define === 'function' && define.amd ? define(['exports', 'apollo-link', 'apollo-fetch', 'apollo-link-batch', 'graphql/language/printer'], factory) :
(factory((global.batchHttpLink = {}),global.apolloLink,global.apolloFetch,global.BatchLink,global.graphql_language_printer));
}(this, (function (exports,apolloLink,apolloFetch,BatchLink,graphql_language_printer) { 'use strict';
(factory((global.batchHttpLink = {}),global.apolloLink,global.apolloFetch,global.apolloLinkBatch,global.graphql_language_printer));
}(this, (function (exports,apolloLink,apolloFetch,apolloLinkBatch,graphql_language_printer) { 'use strict';
BatchLink = BatchLink && BatchLink.hasOwnProperty('default') ? BatchLink['default'] : BatchLink;
var __extends = (undefined && undefined.__extends) || (function () {

@@ -52,3 +50,3 @@ var extendStatics = Object.setPrototypeOf ||

};
_this.batcher = new BatchLink({
_this.batcher = new apolloLinkBatch.BatchLink({
batchInterval: _this.batchInterval,

@@ -67,3 +65,3 @@ batchMax: _this.batchMax,

exports['default'] = BatchHttpLink;
exports.BatchHttpLink = BatchHttpLink;

@@ -70,0 +68,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

{
"name": "apollo-link-batch-http",
"version": "0.3.0",
"version": "0.4.0",
"description": "Batch HTTP transport layer for GraphQL",

@@ -44,15 +44,16 @@ "author": "Evans Hauser <evanshauser@gmail.com>",

"apollo-fetch": "^0.6.0",
"apollo-link-batch": "^0.3.0",
"apollo-link-batch": "^0.4.0",
"graphql": "^0.11.0"
},
"peerDependencies": {
"apollo-link": "^0.7.0"
"apollo-link": "^0.8.0",
"graphql": "^0.11.0"
},
"devDependencies": {
"@types/graphql": "0.11.4",
"@types/jest": "21.1.1",
"apollo-link": "^0.7.0",
"@types/graphql": "0.11.5",
"@types/jest": "21.1.2",
"apollo-link": "^0.8.0",
"browserify": "14.4.0",
"fetch-mock": "5.12.2",
"graphql": "0.11.6",
"fetch-mock": "5.13.1",
"graphql": "0.11.7",
"graphql-tag": "2.4.2",

@@ -63,3 +64,3 @@ "jest": "21.2.1",

"rollup": "0.45.2",
"ts-jest": "21.0.1",
"ts-jest": "21.1.2",
"tslint": "5.7.0",

@@ -66,0 +67,0 @@ "typescript": "2.5.1",

@@ -12,3 +12,3 @@ # Batch HTTP Link

```js
import BatchLink from "apollo-link-batch-http";
import { BatchLink } from "apollo-link-batch-http";

@@ -19,3 +19,3 @@ const link = new BatchLink({ uri: "/graphql" });

## Options
Batch HTTP Link takes an object with four options on it to customize the behavoir of the link.
Batch HTTP Link takes an object with four options on it to customize the behavior of the link.

@@ -22,0 +22,0 @@ |name|value|default|required|

@@ -6,3 +6,3 @@ import { ApolloLink, execute, Observable, makePromise } from 'apollo-link';

import BatchHttpLink from '../batchHttpLink';
import { BatchHttpLink } from '../batchHttpLink';

@@ -9,0 +9,0 @@ const operation = {

import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { ApolloFetch, createApolloFetch } from 'apollo-fetch';
import BatchLink from 'apollo-link-batch';
import { BatchLink } from 'apollo-link-batch';

@@ -10,3 +10,3 @@ import { print } from 'graphql/language/printer';

*/
export default class BatchHttpLink extends ApolloLink {
export class BatchHttpLink extends ApolloLink {
private headers = {};

@@ -13,0 +13,0 @@ private apolloFetch: ApolloFetch;

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