UNPKG

753 BJavaScriptView Raw
1!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/common/http"),require("@apollo/client/core")):"function"==typeof define&&define.amd?define("apollo-angular/headers",["exports","@angular/common/http","@apollo/client/core"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self).ngApollo=e.ngApollo||{},e.ngApollo.headers={}),e.ng.common.http,e.core)}(this,(function(e,o,t){"use strict";e.httpHeaders=function(){return new t.ApolloLink((function(e,t){var n=e.getContext,r=e.setContext,l=n();return l.headers&&r(Object.assign(Object.assign({},l),{headers:new o.HttpHeaders(l.headers)})),t(e)}))},Object.defineProperty(e,"__esModule",{value:!0})}));
2//# sourceMappingURL=ngApolloLinkHeaders.umd.min.js.map
\No newline at end of file