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

apollo-link-set-context

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-set-context - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

3

dist/src/setContextLink.d.ts

@@ -1,3 +0,2 @@

/// <reference types="zen-observable" />
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link';
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link-core';
export default class SetContextLink extends ApolloLink {

@@ -4,0 +3,0 @@ private setContext;

@@ -13,3 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var apollo_link_1 = require("apollo-link");
var apollo_link_core_1 = require("apollo-link-core");
var SetContextLink = (function (_super) {

@@ -31,4 +31,4 @@ __extends(SetContextLink, _super);

return SetContextLink;
}(apollo_link_1.ApolloLink));
}(apollo_link_core_1.ApolloLink));
exports.default = SetContextLink;
//# sourceMappingURL=setContextLink.js.map

@@ -7,3 +7,3 @@ "use strict";

var graphql_tag_1 = require("graphql-tag");
var apollo_link_1 = require("apollo-link");
var apollo_link_core_1 = require("apollo-link-core");
var query = (_a = ["\n query SampleQuery {\n stub {\n id\n }\n }\n"], _a.raw = ["\n query SampleQuery {\n stub {\n id\n }\n }\n"], graphql_tag_1.default(_a));

@@ -19,3 +19,3 @@ describe('SetContextLink', function () {

var context = new setContextLink_1.default();
apollo_link_1.execute(apollo_link_1.ApolloLink.from([
apollo_link_core_1.execute(apollo_link_core_1.ApolloLink.from([
context,

@@ -32,3 +32,3 @@ function (operation) {

var context = new setContextLink_1.default(function () { return meta; });
apollo_link_1.execute(apollo_link_1.ApolloLink.from([
apollo_link_core_1.execute(apollo_link_core_1.ApolloLink.from([
context,

@@ -51,3 +51,3 @@ function (operation) {

var setContext = new setContextLink_1.default(spy);
apollo_link_1.execute(apollo_link_1.ApolloLink.from([
apollo_link_core_1.execute(apollo_link_core_1.ApolloLink.from([
setContext,

@@ -54,0 +54,0 @@ function (operation) {

@@ -1,3 +0,2 @@

/// <reference types="zen-observable" />
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link';
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from 'apollo-link-core';
export default class SetContextLink extends ApolloLink {

@@ -4,0 +3,0 @@ private setContext;

@@ -13,3 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var apollo_link_1 = require("apollo-link");
var apollo_link_core_1 = require("apollo-link-core");
var SetContextLink = (function (_super) {

@@ -31,4 +31,4 @@ __extends(SetContextLink, _super);

return SetContextLink;
}(apollo_link_1.ApolloLink));
}(apollo_link_core_1.ApolloLink));
exports.default = SetContextLink;
//# sourceMappingURL=setContextLink.js.map
{
"name": "apollo-link-set-context",
"version": "0.0.1",
"version": "0.1.0",
"description": "HTTP transport layer for GraphQL",

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

"dependencies": {
"apollo-link": "^0.0.3"
"apollo-link-core": "^0.1.0"
},

@@ -45,0 +45,0 @@ "devDependencies": {

@@ -7,3 +7,3 @@ import {

FetchResult,
} from 'apollo-link';
} from 'apollo-link-core';

@@ -10,0 +10,0 @@ export default class SetContextLink extends ApolloLink {

@@ -7,3 +7,3 @@ import { assert } from 'chai';

import { ApolloLink, execute } from 'apollo-link';
import { ApolloLink, execute } from 'apollo-link-core';

@@ -10,0 +10,0 @@ const query = gql`

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