apollo-link-context
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -8,3 +8,3 @@ 'use strict'; | ||
var setContext = function (setter) { | ||
function setContext(setter) { | ||
return new apolloLink.ApolloLink(function (operation, forward) { | ||
@@ -31,5 +31,5 @@ var request = tslib.__rest(operation, []); | ||
}); | ||
}; | ||
} | ||
exports.setContext = setContext; | ||
//# sourceMappingURL=bundle.cjs.js.map |
import { __rest } from 'tslib'; | ||
import { ApolloLink, Observable } from 'apollo-link'; | ||
var setContext = function (setter) { | ||
function setContext(setter) { | ||
return new ApolloLink(function (operation, forward) { | ||
@@ -26,5 +26,5 @@ var request = __rest(operation, []); | ||
}); | ||
}; | ||
} | ||
export { setContext }; | ||
//# sourceMappingURL=bundle.esm.js.map |
@@ -7,3 +7,3 @@ (function (global, factory) { | ||
var setContext = function (setter) { | ||
function setContext(setter) { | ||
return new apolloLink.ApolloLink(function (operation, forward) { | ||
@@ -30,3 +30,3 @@ var request = tslib_1.__rest(operation, []); | ||
}); | ||
}; | ||
} | ||
@@ -33,0 +33,0 @@ exports.setContext = setContext; |
import { ApolloLink, GraphQLRequest } from 'apollo-link'; | ||
export declare type ContextSetter = (operation: GraphQLRequest, prevContext: any) => Promise<any> | any; | ||
export declare const setContext: (setter: ContextSetter) => ApolloLink; | ||
export declare function setContext(setter: ContextSetter): ApolloLink; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
var apollo_link_1 = require("apollo-link"); | ||
exports.setContext = function (setter) { | ||
function setContext(setter) { | ||
return new apollo_link_1.ApolloLink(function (operation, forward) { | ||
@@ -28,3 +28,4 @@ var request = tslib_1.__rest(operation, []); | ||
}); | ||
}; | ||
} | ||
exports.setContext = setContext; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "apollo-link-context", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "An easy way to set and cache context changes for Apollo Link", | ||
@@ -31,3 +31,3 @@ "author": "James Baxley <james@meteor.com>", | ||
"dependencies": { | ||
"apollo-link": "^1.2.9", | ||
"apollo-link": "^1.2.10", | ||
"tslib": "^1.9.3" | ||
@@ -37,8 +37,8 @@ }, | ||
"@types/graphql": "14.0.7", | ||
"@types/jest": "22.2.3", | ||
"@types/jest": "24.0.11", | ||
"graphql": "14.1.1", | ||
"graphql-tag": "2.10.1", | ||
"jest": "22.4.4", | ||
"jest": "24.5.0", | ||
"rimraf": "2.6.3", | ||
"rollup": "1.4.1", | ||
"rollup": "1.6.0", | ||
"ts-jest": "22.4.6", | ||
@@ -61,3 +61,3 @@ "tslint": "5.13.1", | ||
}, | ||
"gitHead": "2c960e057de9d664855bb18df4a4bd25c88bb6ef" | ||
"gitHead": "127ab65ba89185a82c492299c7853f02fdd7e570" | ||
} |
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
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
119
17789
14
Updatedapollo-link@^1.2.10