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

apollo-link

Package Overview
Dependencies
Maintainers
1
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 0.4.1 to 0.5.0

4

dist/src/index.d.ts
import ApolloLink from 'apollo-link-core';
import BatchLink from 'apollo-link-batch';
import BatchHttpLink from 'apollo-link-batch-http';
import DedupLink from 'apollo-link-dedup';

@@ -9,3 +11,3 @@ import HttpLink from 'apollo-link-http';

export * from 'apollo-link-core';
export { HttpLink, RetryLink, SetContextLink, PollingLink, WebSocketLink, DedupLink };
export { BatchLink, BatchHttpLink, HttpLink, RetryLink, SetContextLink, PollingLink, WebSocketLink, DedupLink };
export default ApolloLink;

@@ -7,2 +7,6 @@ "use strict";

var apollo_link_core_1 = require("apollo-link-core");
var apollo_link_batch_1 = require("apollo-link-batch");
exports.BatchLink = apollo_link_batch_1.default;
var apollo_link_batch_http_1 = require("apollo-link-batch-http");
exports.BatchHttpLink = apollo_link_batch_http_1.default;
var apollo_link_dedup_1 = require("apollo-link-dedup");

@@ -9,0 +13,0 @@ exports.DedupLink = apollo_link_dedup_1.default;

@@ -12,2 +12,12 @@ "use strict";

});
describe('BatchLink', function () {
it('constructor', function () {
chai_1.assert.doesNotThrow(function () { return new Allpollo.BatchLink({ batchHandler: function () { return void 0; } }); });
});
});
describe('BatchHttpLink', function () {
it('constructor', function () {
chai_1.assert.doesNotThrow(function () { return new Allpollo.BatchHttpLink(); });
});
});
describe('RetryLink', function () {

@@ -14,0 +24,0 @@ it('constructor', function () {

import ApolloLink from 'apollo-link-core';
import BatchLink from 'apollo-link-batch';
import BatchHttpLink from 'apollo-link-batch-http';
import DedupLink from 'apollo-link-dedup';

@@ -9,3 +11,3 @@ import HttpLink from 'apollo-link-http';

export * from 'apollo-link-core';
export { HttpLink, RetryLink, SetContextLink, PollingLink, WebSocketLink, DedupLink };
export { BatchLink, BatchHttpLink, HttpLink, RetryLink, SetContextLink, PollingLink, WebSocketLink, DedupLink };
export default ApolloLink;

@@ -7,2 +7,6 @@ "use strict";

var apollo_link_core_1 = require("apollo-link-core");
var apollo_link_batch_1 = require("apollo-link-batch");
exports.BatchLink = apollo_link_batch_1.default;
var apollo_link_batch_http_1 = require("apollo-link-batch-http");
exports.BatchHttpLink = apollo_link_batch_http_1.default;
var apollo_link_dedup_1 = require("apollo-link-dedup");

@@ -9,0 +13,0 @@ exports.DedupLink = apollo_link_dedup_1.default;

{
"name": "apollo-link",
"version": "0.4.1",
"version": "0.5.0",
"description": "Flexible, lightweight transport layer for GraphQL",

@@ -42,9 +42,11 @@ "author": "Evans Hauser <evanshauser@gmail.com>",

"dependencies": {
"apollo-link-core": "^0.4.1",
"apollo-link-dedup": "^0.2.1",
"apollo-link-http": "^0.4.1",
"apollo-link-polling": "^0.4.1",
"apollo-link-retry": "^0.4.1",
"apollo-link-set-context": "^0.4.1",
"apollo-link-ws": "^0.2.1"
"apollo-link-batch": "^0.1.0",
"apollo-link-batch-http": "^0.1.0",
"apollo-link-core": "^0.5.0",
"apollo-link-dedup": "^0.3.0",
"apollo-link-http": "^0.5.0",
"apollo-link-polling": "^0.5.0",
"apollo-link-retry": "^0.5.0",
"apollo-link-set-context": "^0.5.0",
"apollo-link-ws": "^0.3.0"
},

@@ -51,0 +53,0 @@ "devDependencies": {

import ApolloLink from 'apollo-link-core';
import BatchLink from 'apollo-link-batch';
import BatchHttpLink from 'apollo-link-batch-http';
import DedupLink from 'apollo-link-dedup';

@@ -13,2 +15,4 @@ import HttpLink from 'apollo-link-http';

export {
BatchLink,
BatchHttpLink,
HttpLink,

@@ -15,0 +19,0 @@ RetryLink,

@@ -13,2 +13,16 @@ import * as Allpollo from '../src/index';

describe('BatchLink', () => {
it('constructor', () => {
assert.doesNotThrow(
() => new Allpollo.BatchLink({ batchHandler: () => void 0 }),
);
});
});
describe('BatchHttpLink', () => {
it('constructor', () => {
assert.doesNotThrow(() => new Allpollo.BatchHttpLink());
});
});
describe('RetryLink', () => {

@@ -15,0 +29,0 @@ it('constructor', () => {

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

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