apollo-link-set-context
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -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
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
17452
362
+ Addedapollo-link-core@^0.1.0
+ Addedapollo-link-core@0.1.1(transitive)
- Removedapollo-link@^0.0.3
- Removedapollo-fetch@0.3.0(transitive)
- Removedapollo-link@0.0.3(transitive)
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)