{"_id":"apollo-angular-link-http","_rev":"38-62a997934bd89be61b849b20e9da9124","name":"apollo-angular-link-http","dist-tags":{"beta":"1.0.0-beta.5","latest":"1.11.0","next":"1.10.0-alpha.0","canary":"1.2.0-alpha.f31ea5s4"},"versions":{"0.0.1-beta.0":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"0.0.1-beta.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^0.8.0","graphql":"^0.11.2"},"bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@0.0.1-beta.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.5","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-K03fInKz0nxrhcHEuqRWVLhosDNOGisqFvm14sN3ijtw7hLZ3sFC0awzgp97XZYlZu3VYF96H2UfG2us/72HYw==","shasum":"39104d65575de326cc90048cc04073e06b3ce82a","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-0.0.1-beta.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEV/C/rmkcQZu7A7cv0AyTDFeCFSTnVLUBG0UL0j7ZWcAiBwYn4zdRAiiDHDGM4sN/VnHVEjdCEkEV9ScbgVgDPIAw=="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-0.0.1-beta.0.tgz_1508408321965_0.12099267449229956"},"directories":{}},"1.0.0-beta.1":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.0-beta.1","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.0-beta.1","_npmVersion":"5.4.2","_nodeVersion":"6.9.5","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-i92dg6XMrWBXEpI0/GjZYSOC4ZTFLNwh4TIEhfDTLJk6hUU0hUUG8QWDvETSAdUF1chN7+JlTRX3KNTaYg+a4g==","shasum":"f2437d8d10593148e9ae7e2e3001f12f6032e1fd","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.0-beta.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD40aUeCyM/15nfRa/nvy6I3+QRzTmoiizgTUUGywhXbAIhAN74JXhjnl1sl/nClfrSBj4qDgmJKjfSCWlZAusIO16v"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.0-beta.1.tgz_1508946733869_0.47929994598962367"},"directories":{}},"1.0.0-beta.2":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.0-beta.2","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.0-beta.2","_npmVersion":"5.4.2","_nodeVersion":"6.9.5","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-2z8csG+Xg2fecEWRN+BN+j4mdipMKN5pju2rBsMAaOX9VLO1KIw6cN48XbWFgTR68fCO+W9ZAW9mCE85SKIfbQ==","shasum":"6acb52a790d450a04b4e9e6478e72cb76806465e","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.0-beta.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCccI+RFwbipCI/JwspknaV5G6SYZG6hPTKSyBRsY4xSQIhANsEsByUlm0gnGh2wPUYXTbH488q9Y9gcrEs/WvbJeQa"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.0-beta.2.tgz_1509396158080_0.9335953840054572"},"directories":{}},"1.0.0-beta.3":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.0-beta.3","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.0-beta.3","_npmVersion":"5.4.2","_nodeVersion":"6.9.5","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-T8mNBsRMzRNRcOmmg48mFKjkxhP33fRU59a4VWlcdflzBIw7MplFYECijWRmLAg3Eba95FRfESthXsA0Bi9MKA==","shasum":"fef456adb9d69ac34cf7a4deeb9ab5fe6b26ff4a","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.0-beta.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHxUuSdX1qiBccN2nUn1N8vAIOp6v0CAIoO56FQbEakkCIEKruVFNFjW54TaE9EgCD+ExgMXD6cb5stEnd4F5+hhC"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.0-beta.3.tgz_1509449784943_0.03499790374189615"},"directories":{}},"1.0.0-beta.4":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.0-beta.4","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.0-beta.4","_npmVersion":"5.4.2","_nodeVersion":"6.9.5","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-o0K1q90SOfd395twkkf643KxDLVfFnA5wUpbQ14LLs2xKL9/NhhR/b2pHCFtThEjW6WB5YxzJnL5S8nUNJz75w==","shasum":"37048e40336ee3f3bc06e33526e86837af1beab0","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.0-beta.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCN2cKF83FZ97iT016VaRS4oRL1psKIUWqaIMgeueSZwIgR9fZk1OaQI9ZzcJRyil81erLaq97JWq2axJwkHVoZKc="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.0-beta.4.tgz_1509450453420_0.7989138723351061"},"directories":{}},"1.0.0-beta.5":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.0-beta.5","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.0-beta.5","_npmVersion":"5.4.2","_nodeVersion":"6.9.5","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-tjL0xP/iZrLEGDbGN1r5ct9Rig6gnvTjAXhLjbd6PwUdh2QyqglX53Q+ehtAlGSXYTBfCURxlrHjpuprX405nw==","shasum":"713a37df071190b8e3760d2b1ed190f060bf65c3","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.0-beta.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCowXbQOoDSkwSpeJKr9ueEGn408333qqtJyMGAKpGwXAIhAI0R3iCeNXK8wi10E+aQPib4osLFztx1pe7ZmEs1bs5M"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.0-beta.5.tgz_1509452024652_0.6406539496965706"},"directories":{}},"1.0.0":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-LZAqyNee024szQd8hfQzu53yeYs8GYT9MDRN0RIfitdIKbACeZQDV6wcWzp1QxzoG3RW26sPLYC6bT9FpLA6Lw==","shasum":"89fbce6fa5fc211314558f6b932934b71086f156","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHLgJGItYJpe31RBN224sR9wnlfgqXATADxTH77DcIxAIhAIWqjgFwoONfTuBabQ/dfWcIPNgDO1Xbw+PJkFHZC6W2"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.0.tgz_1510330844546_0.061138041550293565"},"directories":{}},"1.0.1":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.2"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular.svg)](https://badge.fury.io/js/apollo-angular) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-BSNyXDwg0lTeveJOf9K7aPJ41rPJ/npBWPwfdN8ljnh8c2Xl/CALu3GHCLRWechBFSvJ5HR0q3mgfMR+XkUd9Q==","shasum":"230a488295f704b5a95fccc831fdf0b14b068d22","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1ldFLcXecp9Ju/lq6IA/65HZTK5iEK2dQJYkypLVLdgIhAO4U6kcCk3LVxKxtFV7NBCCos0AOo4xMEv9iQO4zawvc"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.1.tgz_1510780156118_0.8094154319260269"},"directories":{}},"1.0.2-beta.0":{"name":"apollo-angular-link-http","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.2-beta.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3"},"description":"[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.2-beta.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-gkFq5UvEaSEpz/gltwMwPyrvdvHgfdgkFy/uBMFgyTXlUsDqyRzKTGqnmqNy5+CEJQqkLkGqVMV04bP4p/hRjg==","shasum":"fbde41af0139c3bc04ac3167ca27043e1e71a661","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.2-beta.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZ9lLvcZtlhMDJAbfRI04A9uwvFFGSiTF6GMA61MfTeAiEAkT0UoTG38bU9PEuuc0POFeI3TjkpwB067fvJEll4QEo="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http-1.0.2-beta.0.tgz_1516901661836_0.3137667286209762"},"directories":{}},"1.0.2":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.2","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.0.0"},"bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-He1lmEAiRshqt5SECPEWSNIVoSZtLb71IYcAZOMFWKfNfPZcaD6V59XrEu5WY6lfzaQFPDOl6y8XDUQqtTDw0w==","shasum":"191adc5576510cfa5764a97b690c190e7aa09793","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.2.tgz","fileCount":21,"unpackedSize":31450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFil9lMHO69kJV2pYLTIc0qA4eFNmym91TCDBgCFdYnvAiEA7/vn87rFWXANlSwhuukqYVLevuu9pFvwKFcYAEr4QBM="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.0.2_1521734788906_0.4041489649545216"},"_hasShrinkwrap":false},"1.0.3":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","main":"bundle.umd.js","module":"index.js","jsnext:main":"index.js","typings":"index.d.ts","version":"1.0.3","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^4.3.0 || ^5.0.0-rc.0","@angular/common":"^4.3.0 || ^5.0.0-rc.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.0.0"},"bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-Ua7TmurEnF7pTSZ2MbxuV4Oy/QqqDup+hCsDYwRh3usqzzg0P/R5HfTN9LJfWjoiT8t7+NZIx5QjU2/7bfBN0Q==","shasum":"e884c63f25771d645feca0ef18d732dc43caed38","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.0.3.tgz","fileCount":21,"unpackedSize":32243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3k04CRA9TVsSAnZWagAAOQ4P/38X/xT9/lufOmUgTZJ5\nSpg2GgbQCOOoYE5hj3YAJai+jwn50WkxxZbDZFWXD+622x7NLMw59S/jkLm3\nsRozFCiwjmuVVFmFtWX2RJ2t8i7v0hazJAtHXtcydZmla0e0x/gH++WFDjSv\nQs5BEhoy3g6TMMTg0nJL1hZK1FsEfXsY9BHAe1fkJzsPsSlKhszvMpXKZAJI\nZqOtOqbTqexIpwK5m5FIldNuwQ7k0gfU5OJmDrDV2vHTWQenFFTauQuBbTK0\nbty+L6cKUniA/k71SzCpNas3pgKx+IPz8wCThDdrEffYPBojp1prRhZF9Gxl\nMAE/Cglj2aYhLA+ZxueoPctTIMhemV/YfgmSM4+fSCtIiqQcd0W1UoWj4Sln\nxVRvY6Bn/l77VDY8CK2nd9DuyifPLH0gOQniwRf+uYMZa+Fsp8Yr8QldaPya\nV1ULCT5KiLI2K9+lYErID2shbEjg1iLvgUys4asqwCXDuq+R/5uuDtMbSmSi\nhX20eR/mDqU3xGHE2ACm/XEsvAdwz+aORh8zMFbgzyh4aw7MY/APr0RWHvHP\nEf7frFzIcB0pBPkxoY5hZM6QWxndGmMHBiUa78qoaHISFyE8RI4kgFVD2zKX\nNW7qvnJ4fQu7fsXPS922z1jtbWZ1dXGMSDIuAtzkeGXeAjXJskL28utSC20/\n8hsO\r\n=PTOP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmxTtoZynpeKp6CvTQXT8ZapyNow74eTWKzNu0JJQp3gIhAMrDLeWKs94GQ1fPzgUwCcfNyg9jBPp26e0aFtnIGrnx"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.0.3_1524518199858_0.74513684744388"},"_hasShrinkwrap":false},"1.1.0-rc.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"./bundle.umd.js","module":"./index.js","jsnext:main":"./index.js","typings":"./index.d.ts","version":"1.1.0-rc.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.1.0-rc.0"},"readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value       | default    | required |\n| ----------------- | ----------- | ---------- | -------- |\n| uri               | string      | `/graphql` | false    |\n| includeExtensions | boolean     | `false`    | false    |\n| includeQuery      | boolean     | `true`     | false    |\n| headers           | HttpHeaders | `none`     | false    |\n| withCredentials   | boolean     | `none`     | false    |\n| method            | string      | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.1.0-rc.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-1R8jPmC/X/squjUR8cHIyryU3KRb3DOVnMxDnxU7MjlYGn5sXdjLaYB8/qpTH89K3Bx5+6Z80/E7J2LjtjgHDA==","shasum":"479621a2e74d594e7f28d197c2b6cb647b40b406","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.1.0-rc.0.tgz","fileCount":21,"unpackedSize":30537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8viYCRA9TVsSAnZWagAAxnMP/jUuxxIAp8OyWtSid321\nBZmMS0fzf348w437+OEwJexuau7SWVBrk4b1mBS6ppfzq5Bi/k9J1xkLY2fX\na6TxdUhvpEC+blI/0LhTGlTT9K75GzJRjeEswQ6eaJk/YD/rTTxcpznWdnWZ\nchAU8Z/AqOZaC8Np49DSOn1QvmePVouuacQqsz2r4SkFVpr2Smmmg9Ms/eJ3\ndlqavslgbZRmHGRlpfEBQJqyAQJcLpPBb9znewPK5RHOggwAiYTCcpW05iQY\nv7XdjnNjic7DWe7PDwXOKH7Km8gMu5e9d41LTRo3oqOL8CtEiHRpL3ksUAW1\n5pUkX00PB60cedEpfjD5xYlDmKDJEPMZhv1t3EYqhMmAUDokSUprjj6ohkgx\n8l2zeoOinLjnTEVRxmBk/dFGFnVxb9dcWr6Yqq5LD36yfUYpyFL9YY+1MH/r\npLxArJgSFFv/ydbJ3nQtXu2vwvG3m3fQHgkewo0sZTE69qPBGHVyMR9U51d9\n00akAjY+2F3bHElpBHqXyGMzfC3XKEucK9HZJp9lM1+1+ZTZYdFr4NDMZO2k\nUJkA8/z1W5dxk8Pvkva2WXR6FxHqovORsTDh10jOaCPDtOZ5GYxZrCgqIMap\n6jeIhDPEMh0eGC5EERjHv1f5mPv0re5O1yIS2QEV2qJDmFZw9vX594JkLqcC\nWpTw\r\n=q3CG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHA3yPw4vgflU9dcYZ24hr8EPXrG7T+SzWLWsyxqQtKgIhAJqmkJhna9KZoE7Xfitd8qi9I9Xwj82yLUJyX26yc0Tf"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.1.0-rc.0_1525872791595_0.7871463469032993"},"_hasShrinkwrap":false},"1.1.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"./bundle.umd.js","module":"./index.js","jsnext:main":"./index.js","typings":"./index.d.ts","version":"1.1.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.1.0"},"bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-n6b2lwFA1deoie7NbagCLOL07jBdYx6nr2ceKYHtsQRVEiUT9JtW3RMH3cCGn4WnUNJbv5rfhBXOBRy4dElJ3Q==","shasum":"3cc5388ba79e2d2f13c966738eb98573b52a6733","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.1.0.tgz","fileCount":21,"unpackedSize":30996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+y0uCRA9TVsSAnZWagAAZBsQAJ80Zzf1r3G3Sj+4aD7X\nrutlscEeo53sn/geSA/ovrjN0MflJWjXySHMaf9tJCShFWTJR4WFPzEde0p9\nrieCkPWUScbujhxYfaGmWMVNXXNYWkP3BVzKWvxYlDu8okSTHOv+1d0jtGUp\nb755G8Pyf/kFQWpFFGVUqKQJRY641txJGLOHsXLB1tz4ufeRGRAHLY4ydtCN\nOQGrRAhVeNHMGJBFSIBtInY+16uwtMvh4NC0uYgJ4KMbVkbCdoOGOq+WB7bx\n9NGfN+5VdxOLj+3JDsu/pByvSjKguUFizsNrjFEqhLefUmq4Gn9ANJVVimr/\nBdUwd6d3m5AT50Xg8zUFepmqbYwO/GpaDbTVFX0SwUr/yUInPN4Ud3nGTTS0\nIPYFY6F3ukyFc68BxaZvFdhJ0b7RR7T/xo5nkISSJebQSpsBA+n1mmVQASuB\n4bdDpgbTH4Prjy9VWn828R+0ZwtnBSOtF0gtX/X6uKPcpTYFUyZBknzABVH5\nvsTPb1fx2t3/zJjrsIXGVskoPkZiaGGbeLl+DVoQgvHJvdR5JYvBfxOGwQ1x\nZvjz3kmm1EyZwwQUU2ebqp2hjpDaA3MhGPHqYhQjQuypZ7s+q25+TKJU3Dpj\nQLFPWlUN62m4AfxPQbrt2WtezMg8nuRxExE8FwuWw9g30VPTDwtyKfHJ5GSx\nMSn0\r\n=Cmtd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC86jybG8N1DHsWH1cKjWIXQzKtqsfs1DTb7NLV0JRKtgIhAPBTMVlY78bWY6jAVHZ9ruY8sz4zGS2RNBEZ1rquNEQS"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.1.0_1526410541791_0.5162409100481269"},"_hasShrinkwrap":false},"1.1.1":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"./bundle.umd.js","module":"./index.js","jsnext:main":"./index.js","typings":"./index.d.ts","version":"1.1.1","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.1.0"},"bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.1.1","_npmVersion":"6.0.1","_nodeVersion":"8.11.1","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-Y08+12ZB/7GzlMdblSsvZg92oYicN+8gqLQ9rMaSwHYtR18Zrwfg3YDVI9XSB/lNw7riAQ+ldBZdPf2K0lD9UA==","shasum":"0b17fdd0bc5bc55d5c595d1880e2559c29b5db3f","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.1.1.tgz","fileCount":17,"unpackedSize":30667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbL3JTCRA9TVsSAnZWagAA2UYP/2WdLppJXIwbQ0bV0F7w\n0MwiQyUJlZlSp4dkRhtc6PGb5iPwi76qW5qAMKkUyR166XiXlMceXUCxzn4o\neY096CESbo88lwopwVx43eNmrbbjoiwYq28hkInrhDSYJSOTA2WHTtbhAwoo\nH0hQOGdpYGoVoRKFyu58RUuiPumuLi2rAyR7Bi09jmB9Vma6tJTp/do+mXaX\ncPaYZBW/V2o08uA6oEpph+QEL/qcQxD02OGkH138mny8glYCRkS1qGU+WcUk\nJl0lXE4iwpDyzLBLBoAue2PCqUfxAb+/n3Z4FL8DZXlc6oOJJnOxP47SkhuB\nLFY/xF563O0BPXDb7hWUFtZdusaJH1aVNjFppq6sY1KKZ4N2/7nbEQFYVdkV\nIZKwfBjLXrIjM4EAMBD0sBplMpBdIOt6aLefz9cQpkd6PO5KZtdHSiVMTibM\nyD90q/xlcVZvluiJ36bcoknQY5dq6YyZcXoE7pql1U9THsroNw7W8yJjzNH3\ns4FGgNG3B31hoO8ioUrXxh/uR4enjGsRly5xzdWm5FAoNAe4pnWRfR8U2DcC\nEA8lG7GMeirtlHCQO0ISkaiadyyw0Yp86r69lHCnvKmBDyT4/pK+5FC1DFQ0\n2JrgJpywS2XFLmWQFalK8yGsE0s30smxI8wEy/JPqQEQYWq/jSHya2awdB21\noI5c\r\n=oBnj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9kzQFzLSHS/pcG/lknd0bVllWYaPdrB+3zLak9/M2lAiEAzFjdnmPufv7k6xzOLrtsHrSFtvNtxbudowqyEpux52k="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.1.1_1529836114761_0.432627257019377"},"_hasShrinkwrap":false},"1.2.0-alpha.f31ea5s4":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.2.0-alpha.f31ea5s4","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.2.0-alpha.f31ea5s4","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"6.1.2","@angular/common":"6.1.2","@angular/compiler":"6.1.2","@angular/compiler-cli":"6.1.2","@angular/core":"6.1.2","@angular/http":"6.1.2","@angular/platform-browser":"6.1.2","@angular/platform-browser-dynamic":"6.1.2","@angular/platform-server":"6.1.2","@types/graphql":"0.13.4","@types/jest":"23.3.1","apollo-cache-inmemory":"1.2.7","apollo-client":"2.3.8","apollo-link":"1.2.2","graphql":"0.13.2","graphql-tag":"2.9.2","jest":"23.5.0","jest-zone-patch":"0.0.8","ng-packagr":"4.1.0","rxjs":"6.2.2","ts-jest":"23.1.3","typescript":"2.9.2","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value       | default    | required |\n| ----------------- | ----------- | ---------- | -------- |\n| uri               | string      | `/graphql` | false    |\n| includeExtensions | boolean     | `false`    | false    |\n| includeQuery      | boolean     | `true`     | false    |\n| headers           | HttpHeaders | `none`     | false    |\n| withCredentials   | boolean     | `none`     | false    |\n| method            | string      | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.2.0-alpha.f31ea5s4","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-QsNkApwi+PgURMsSFnMq2LI/lNI3KXhDyzd9X0SVHAiNzsTg++eJSjcg5LyJL0zCm34lKygf/96JjJTdtLCW+Q==","shasum":"3f3af30f120bcd2b7eda2cfa690e9b65251979f4","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.2.0-alpha.f31ea5s4.tgz","fileCount":24,"unpackedSize":133008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbc/QFCRA9TVsSAnZWagAA09QP/Aq+Jf/eRCa5RcvkNWeC\nc/ed+gP0LaEio0T6oNO6D7FO7CxgI1IdYikk1sOFlbYTIAyNaMBIp5Myu5ui\n2Eqy3HOYxQ6XM0Wbi2HCJFktS07OZ5vAuJor0nOeAEl+dreK7zLP2NeTuejl\ng2rpUX4KXdR5xWq5UO+kB5Zj47yvFVM+riE4EwA8nIv4pa9+RdNGToiNEE8D\nzw1bleJQU8zkyOJwSGkYZvaCOrVoFzMjuUVfHDjADmvKb4HkTW2x+6PTJKSi\n3AeQGr7TdjlnFACEblTdTsSOr9xka+k4kOzDh4AFHRHris7Uj6RrEhpZPHrD\nIuvFxLlVHapOmrmdcZJukti2UgYeNwbfcH+wWzg/ZwEkLFKdTm5qAPG8mAXh\ntQAjaKTbGWzSQf2Kl/I5SQH8q1gcLJtPZTc0ZPDR+daoz4VbrBNOcR9FS3b+\nsX3JS9ioB5FD789ve+gTS7zZCkv1Nxyz9jYq/g41yu8KEpeTwmjpDXGR40Xu\nLdcbR/gIl9Huq+yrHMSC+ARwIbEofcVICXmSLzslzJkBTLP5UOSBmMVXQgKP\nqSAfn/mxRjcXlMYzc/g/8rNprKQh7u+xJ2KMvOHe04+NuoWWGtq0I1OEZBob\ng1750upE6k8/019Aj+Mp0qC0mHiqoTKQjOp+EqHoB7LlhATabzu5UG7iWK50\nof4r\r\n=DvC7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFtYNkNLDtpY+LavG/zJ3iMO4oa6S1u3LG/DcucW7OdAiEAq+LhTybb3kwqHoNQddYQe5d84CEMbGbPGeZwY+m6CR8="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.2.0-alpha.f31ea5s4_1534325765452_0.7800833065859241"},"_hasShrinkwrap":false},"1.2.0-rc.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.2.0-rc.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.2.0-rc.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"6.1.3","@angular/common":"6.1.3","@angular/compiler":"6.1.3","@angular/compiler-cli":"6.1.3","@angular/core":"6.1.3","@angular/http":"6.1.3","@angular/platform-browser":"6.1.3","@angular/platform-browser-dynamic":"6.1.3","@angular/platform-server":"6.1.3","@types/graphql":"0.13.4","@types/jest":"23.3.1","apollo-cache-inmemory":"1.2.8","apollo-client":"2.4.0","apollo-link":"1.2.2","graphql":"0.13.2","graphql-tag":"2.9.2","jest":"23.5.0","jest-zone-patch":"0.0.8","ng-packagr":"4.1.0","rxjs":"6.2.2","ts-jest":"23.1.4","typescript":"2.9.2","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value       | default    | required |\n| ----------------- | ----------- | ---------- | -------- |\n| uri               | string      | `/graphql` | false    |\n| includeExtensions | boolean     | `false`    | false    |\n| includeQuery      | boolean     | `true`     | false    |\n| headers           | HttpHeaders | `none`     | false    |\n| withCredentials   | boolean     | `none`     | false    |\n| method            | string      | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.2.0-rc.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-TbqmVblBG6anSQZTofVnWatY9WwSG9eamBNG8yepl8+YRs18tzc1J2bbv0tjsCRp3k2zQT+Rfnfq0jTOsIsHcA==","shasum":"8d1c5a4d09ca6f723d06c36e18e5e67442b9c97d","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.2.0-rc.0.tgz","fileCount":24,"unpackedSize":133052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfCe/CRA9TVsSAnZWagAA9GQP/R3rFPQ1bO4Q4GKhQuqe\ns+XSV29e+3c/FYWicEpJD0w8t41guVHqTefjqmcwQ4AeIXicWFx73yzVIHBY\n3O5GA0qXRH8W9ZhIsT4++lh0dbhd7wLsNFqToVUGvz6jiFuqRBJll5hgZy1T\ne5bo445r+oTaB5MYVnkrNkt5S+1RMcMei2AYBNKwA12pqHOoxEY6SQ9jQRd4\npiyG0wH4eFmb+Wb99UBps1naAMXO/56GvCkhlPo1ueVfffg11JIVk+zJdUYi\n1l2l1qh5n23ZZmhB4QFff0VHUld14swvVIIqzYKK7oVmw4dQikOH/oierfvd\nNQyNPnhAZ8TfRUPhB/kVrMtjShvdDroJxJCJwevMwejRVWRZATW2cFIWbJjB\n1SSnrG9wFCuAS+GgPNSmnIEcu0WQnvEvw7CYQJCo1nau/RXbfyTGS/JkgXaA\nZy7usBVtbpzf0belbQshMEudMjAMW6+R3Zwbk+q3bfoX5H6Vf5Ot+szKkYgk\nqN0+bJMI5m0naRvo9G2UcZLXUELfY5wh5RGci8Zk1a7dMLV0R3wWWmd+YKVG\nhRG92NNPousd8GCpfWH+8+CYD3k7iTIXbRsi9GbEDfH2SY8eMJbh2Qgvbyed\nkk+qgZxWkXwPaf3fiI7uhDbSPeN6ckinpnnjHd1XAjE8C5dIVuFUJlUIF5UM\nhKRP\r\n=Gfvm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8b4p/jTA2jpvdoaANxgCIghtLkeBnyW2qRTv3lPHX2QIgeyjLiMtBEER0oehGSpeJVRqxXUGOOgQ9b8HANmASM6E="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.2.0-rc.0_1534863295172_0.365130099431048"},"_hasShrinkwrap":false},"1.2.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.2.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":"^0.11.3 || ^0.12.3 || ^0.13.0"},"dependencies":{"apollo-angular-link-http-common":"~1.2.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"6.1.3","@angular/common":"6.1.3","@angular/compiler":"6.1.3","@angular/compiler-cli":"6.1.3","@angular/core":"6.1.3","@angular/http":"6.1.3","@angular/platform-browser":"6.1.3","@angular/platform-browser-dynamic":"6.1.3","@angular/platform-server":"6.1.3","@types/graphql":"0.13.4","@types/jest":"23.3.1","apollo-cache-inmemory":"1.2.8","apollo-client":"2.4.0","apollo-link":"1.2.2","graphql":"0.13.2","graphql-tag":"2.9.2","jest":"23.5.0","jest-zone-patch":"0.0.8","ng-packagr":"4.1.0","rxjs":"6.2.2","ts-jest":"23.1.4","typescript":"2.9.2","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-Ph1bTzJPEafbDOnia62GzfK7nYwIp2+PxcM6pc87RGW0O8SEwVSilKKGHXwqjMg4qYsFsaz0n6XKwmMIRsn+tA==","shasum":"5eb243e45561032022b5bb9cb2953fc3afaa5418","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.2.0.tgz","fileCount":24,"unpackedSize":133042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfD/SCRA9TVsSAnZWagAAGGwQAJYHi/5/dPiCdkLT5y2i\nMUyUpvrohcUM5SC3b0cQffLuM6nd7ZdlW42Ji3lMZ7egwlpNz3/hHzUF7DjL\npvCGXc3d3I/05IwOYTspLLGjylUg1B7cQ8QX31/uIPI+zm6xNyrS8f+bilEo\nG86xWvSmXX+tnU58lrWKZzfpSyrI1fS1ZIBpGth/YFaDA1MnADdPdyCtMAXy\nNqoL3p3Ca6/Tz/8JXe37RQPW1O/piLN9LbSpRqeZ1XPj0a0xrQlHAmuaieJd\n28ujQjSsTTHgWCv300i5TNCehIegyyZYSaGRDHdxqtJrrELMj+ilQ4fd6wJV\n9imlnph2ZCgxznJlGb98izMbjYxR2QzOWWPgSPmmoSJYLjjaxScZR+s56Qwx\nSMzDI7twn+AkjqyGDk8n1RTlGmL5df0cZgH/1omRgnI66jXXr81SqxJ0MXwu\nyaWtvU9dMYLZr6RyZT4xYvsccnPr2Uq5Md243n8tMHMJJwbgPY86NouRDPUV\nhWVPHeOXGo0cdwac0h+V71+SZGQ7gOrIDpThlXOPRRW226kZVeZ450AdffiX\nHVl407wA8DkAil6d/KsD2yPs6c/5Q0FelN1XkR/kIntq/bpuOVDfoaXB56T4\nkbf9y3JkHKweCJIMUGwtQtB/rbyNUs6OsfQ+8v2ueUI5QaZ1bq4mwWdGaure\ngYXX\r\n=6KEU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBD98eyrKXMOaF6cLGa0/mDA60ofxGw9YZZASC+USBF9AiEA3V7v3PhlLX8YRdrcR+zxyx/Thcrv5chK8U2FIK4E1WQ="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.2.0_1534869457581_0.7381503665534934"},"_hasShrinkwrap":false},"1.3.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.3.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.2.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"6.1.9","@angular/common":"6.1.9","@angular/compiler":"6.1.9","@angular/compiler-cli":"6.1.9","@angular/core":"6.1.9","@angular/http":"6.1.9","@angular/platform-browser":"6.1.9","@angular/platform-browser-dynamic":"6.1.9","@angular/platform-server":"6.1.9","@types/graphql":"14.0.1","@types/jest":"23.3.2","apollo-angular":"1.4.0","apollo-cache-inmemory":"1.2.10","apollo-client":"2.4.2","apollo-link":"1.2.3","graphql":"14.0.2","graphql-tag":"2.9.2","jest":"23.6.0","jest-zone-patch":"0.0.8","ng-packagr":"4.2.0","rxjs":"6.3.3","ts-jest":"23.10.2","typescript":"2.9.2","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-NBdEPSIOGoF0hM+ggb6Br6Z14PMrVBRQo506gYrNXUdaDf6/6VNk2Sib5K7bKCJpto8XQ9JQP5gd1L3EM/PoEA==","shasum":"dba85050a33cb66e2ec99c89b6e5e74124e66b1c","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.3.0.tgz","fileCount":24,"unpackedSize":133076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbsxr8CRA9TVsSAnZWagAAJlAQAJmBKPSXvwabzWECyT4E\ng5v/gMvzh3LJgMEdIR9zf54uJ8pAjZTljIQqkjP5SwhDMQphCWi+N7MFFzBU\nP2AvTtzOrWDY6as+fM3w5lSsRLqNkGYrnO5+/PsbPBcpF8s9iNuY/hNJbxQQ\nU/mUggztcYGNM57hvaYcDiZwDdSDrvm+8tKxggseMtsIpgFTBr1ctcRmuRbC\nrSjgPiBumKI7QGN6fTuWV0zEUZOPFSGFBntWVeh4NJiE3TI+bHVU/zqarqOn\nTXpr4wEGOWuzEP+aLvERzTmax0Xw9Y0BUCDHogICeO+cFArUpRA00xvO3/fa\nw6G3cCbg9Dd27YH1HSJMQpP3QuoIjklYovS42nYY5HzzQJi603fVLwSdoc/6\nVO8Xb9uPdUytIXKwjqvai3QTLCu7PPi2HqVGlX7yV4j97cnWqps+wlUWv0jx\nuWMnusQ1MbOMg4Y5hisI+RUIeLLFXM92WoIgbrrJZ4oO2pdv5gIkZ4U/Z//9\nW9gyw+iift2yn0gTRgF35Q/F9IcQQUvBLMeVIvgrtV+3qBWJ86nCmX2ZCssA\nz20DkgysoHNYy7og5iIr0Dbs0Zg6dVQKcB4dlyqE3DhAdBk/1w/ouoHQsacM\nr93cWu8zRr1IgUZWfnoczzCNzepG1vnjbmxSSdKW4VY5/QrzfEUpErJpr69C\nTB21\r\n=gcq+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIl6OPs/GdMif76qjla2CcraXud4//Flxi1jS9lFE6YAIhAIX/Wj3jjstqiVu7qc4Lk1ge3n6C/eYrC1QaMc38FJFJ"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.3.0_1538464507831_0.2846647437761778"},"_hasShrinkwrap":false},"1.3.1":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.3.1","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0","@angular/common":"^6.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.3.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"6.1.9","@angular/common":"6.1.9","@angular/compiler":"6.1.9","@angular/compiler-cli":"6.1.9","@angular/core":"6.1.9","@angular/http":"6.1.9","@angular/platform-browser":"6.1.9","@angular/platform-browser-dynamic":"6.1.9","@angular/platform-server":"6.1.9","@types/graphql":"14.0.1","@types/jest":"23.3.2","apollo-angular":"1.4.0","apollo-cache-inmemory":"1.2.10","apollo-client":"2.4.2","apollo-link":"1.2.3","graphql":"14.0.2","graphql-tag":"2.9.2","jest":"23.6.0","jest-zone-patch":"0.0.8","ng-packagr":"4.2.0","rxjs":"6.3.3","ts-jest":"23.10.2","typescript":"2.9.2","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.3.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-WBAbKXIkm/BeV+28mS+j/pekKny/n+P7SNhe0lyPGIU6UDWDyflqFcZMCZGKhqaWjuTTrt+KeoArjdUiZU70wA==","shasum":"186e840485e4146bb3900f44a6130526c29a5444","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.3.1.tgz","fileCount":24,"unpackedSize":133076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbs52OCRA9TVsSAnZWagAANCQP/iGnXLBX0UZ/+tBbkmQS\n1gxqicoye7EkEmtYTxBMb9fzp4gLKN8vUUffkZoGVN2g4dnjQkxXp89/ubq7\nR81D7wR0V+5p6bYxJ+odH8IGzTBXNBRWIkE0S8acJ60ri86YyQAaWOI8y3Ss\nNHXGrA10mcadLaqVBEZILSVJRd7xc1+1mncitq2lnn8BkTW2ZpWiAgZwF3Kg\nU+ZcSwe55iD8fCXlW8o9p+B6Kv3FC3109Xu+Vo2cZqY5rruxIdj1L7oe8sgk\nnGO3fLZ5M8GT3cgqLjE2aWjVNzCJDo1QaOJrIwDim4QgbFz6bho/dhFIWFnC\ncdbT6dbnVduJk5nxYvUL25dF3eyBljxdICrNrNO3tlxuFjXYdurEE0IfIp6Y\noZJvF48T7eb7+ZQYRbIiNFmikEom4V6MpBBbC4sysMhxhbU9A/S2z7pv8XmZ\n75EWquVFuxpBSgm7h2HkevBLwuILvTAdBwJA6qz3Yqeqr2VUfJ2NklZr4PgN\nR9AB3KcDIVUBEhwc1fAIDuj86cg1fPvcDZv2QA1il/5GmpudvuHdrs2/edh7\nA0jIzs1uoZ78LvoMuDHqlqKdBOSaJZ6rlY9+iuLd5c1YfE7vpy4YYhQ1tH5R\nDGIPy48/IHr+YFYztW0igq5M+ME+qeaI7fS9nxml8JZ0f872dcOgTzDnhUcT\nC/hv\r\n=1u/7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGh0WTFpLbOZAaPBta1UF8fIPP7UM65Und3yhNEY2CvlAiB69OkmLJXseOcZebiK1ptgv4G6FxiH/Zc1zgVicrpwUQ=="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.3.1_1538497934049_0.41998329919388655"},"_hasShrinkwrap":false},"1.4.0-rc.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.4.0-rc.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0","@angular/common":"^6.0.0 || ^7.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.4.0-rc.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"7.0.0","@angular/common":"7.0.0","@angular/compiler":"7.0.0","@angular/compiler-cli":"7.0.0","@angular/core":"7.0.0","@angular/http":"7.0.0","@angular/platform-browser":"7.0.0","@angular/platform-browser-dynamic":"7.0.0","@angular/platform-server":"7.0.0","@types/graphql":"14.0.3","@types/jest":"23.3.5","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.3.5","apollo-client":"2.4.2","apollo-link":"1.2.3","graphql":"14.0.2","graphql-tag":"2.10.0","jest":"23.6.0","jest-zone-patch":"0.0.8","ng-packagr":"4.3.1","rxjs":"6.3.3","ts-jest":"23.10.4","typescript":"3.1.3","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value       | default    | required |\n| ----------------- | ----------- | ---------- | -------- |\n| uri               | string      | `/graphql` | false    |\n| includeExtensions | boolean     | `false`    | false    |\n| includeQuery      | boolean     | `true`     | false    |\n| headers           | HttpHeaders | `none`     | false    |\n| withCredentials   | boolean     | `none`     | false    |\n| method            | string      | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.4.0-rc.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-EiT9QwVxFvshR5YWLbLUET7JfdlJCu7O7Ms8ZSduFqVKv9uZqq+LQIY/A0gbN6lDjS/IAVh4tHZUqC2TjOVGow==","shasum":"2d4c184d3629b79e866f7bbc3da9310a4bbc1678","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.4.0-rc.0.tgz","fileCount":24,"unpackedSize":133919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyYNxCRA9TVsSAnZWagAAoz8P/jmfBW/Y5eaaG6WsJ4cy\nmbbGlgi13Qu9QNQcr8r4FNUscssZGDUncWg29QWMjoCCjxh59FpB8ZGt2Hkw\nD46ecPsyzQ3S4TeBepW/My6ZAB5O9KhZut+NZ27X3LKEfNNzAvjVLXG9bqQJ\n4rUqtmMDa5cC2oi6j7MQ6iI3xPmYmURfe9r+9LUp0HTZzzHkr25a8pOM99Dq\njm4En0lI/PHuGAqstKu12NnTIVFr+bH38MOnBU3RR66J4cpK6gvRdrwGrN+N\nO9t5k/8Kzc+000x5t6EukqaF+lsrd0YPxyc9nmlDxno2pxpaozGJZxz6Y3uC\nUhDh4kp8PCQPpsFXC0oW1oMNAY/uo0FGXk+HwlaWrdYL0omRHq7YuaMZ436O\n7ZuIb1cPie85od9R4vNOZ13LU8C3Cq6yfrqhK6sJDybCWUiFUuAQSpmb330D\nhrbzw2C0FmDsQfy5YV9PfBQJAI5EqxMbNVxsTgcknWAcQt4x7oItdSXeK73R\n4yU6EE6IwKSgJGIDin12k1lPIByP0P/zNMG8sRjsxIH2XJixMrrMuBZZMtOL\nYpAfXxTrfwBJbRj9VcKpViK6HD2ag3haKynq90ZuGqCmwY9gouyff0gpBeXf\nWtVvu8QY94KRxVpjHtmR58s/5/3TBfsOEU4Lyl/fqm05o78Oma4fs2eFXZTh\nvOy3\r\n=2hzM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfNC6sJeVhAhPmlk29H0q+7Ut5tw1YQW9A0/Av7vKT/QIgaDlyGvZj9y3s4TljHRJO0C4XcKqtJB50kNErG1SV910="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.4.0-rc.0_1539933040456_0.9601744858432888"},"_hasShrinkwrap":false},"1.4.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.4.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0","@angular/common":"^6.0.0 || ^7.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.4.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"7.0.0","@angular/common":"7.0.0","@angular/compiler":"7.0.0","@angular/compiler-cli":"7.0.0","@angular/core":"7.0.0","@angular/http":"7.0.0","@angular/platform-browser":"7.0.0","@angular/platform-browser-dynamic":"7.0.0","@angular/platform-server":"7.0.0","@types/graphql":"14.0.3","@types/jest":"23.3.5","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.3.5","apollo-client":"2.4.2","apollo-link":"1.2.3","graphql":"14.0.2","graphql-tag":"2.10.0","jest":"23.6.0","jest-zone-patch":"0.0.8","ng-packagr":"4.3.1","rxjs":"6.3.3","ts-jest":"23.10.4","typescript":"3.1.3","zone.js":"0.8.26"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.4.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-YMtk4ZmmQ32kvQVnKNhkqk4QQQ+xb5aaq5XVxLv7AX6S7jDfHDLi18Hc25C4c8revM6gLoGV2Xj9ijvyGGbRCg==","shasum":"6ae499b3ed44e2201a31f41efef1771580b14069","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.4.0.tgz","fileCount":24,"unpackedSize":133909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyYcwCRA9TVsSAnZWagAA/noQAJPD0m5bpt4aP89VF2KJ\nyhHpwnpduoCxhc0T5m/F8Id3TSBs7rqGyhenKhEbLDelArSFL/+5Xls8Wo63\nb9CV9eIct4g/59FGemKw3ykMftDSvBa4UFdRxhgZ0hlc4seoFsmaIMg+llu3\np2tXQ/7JpJcaAQZSixHVK1+MTaO/t6Yo55rHiopT+BZGwReNtO3+NgBTCT7g\n1VZEe5Jn34tHRYN4AeDLzzfwhabmh9grpb0/JtBTBW/AP9hj/2qUC7OOMSx1\nvr3BJCBy39YlWMvngDjggFR5sIOBAP1IK/j7ca0ccG+r5/+wv9BelTvQNlyo\no6ii28viwBQqr156cGAEcga+MKDEaze7gb9ismceFRTDgc5GUu1mHdnWLS1M\nWkLaPMAW0+tY2jvrH2KZ7dehrhz4WkW+dd8Qr5VbstO+xxA1HDcSU43oNo2t\nQpY04dzsuisRz21kS4Amz/v2DgsIEoczPri1C2LR0p9ziVtkG8e7QeZvlrM9\n2vJTi66ASQ66ZO/29VXc8jmT+fBoZPHn9bfWp1OX3Gvne8xY8REXP46vBeWA\nk3nWoICEayt5gIXEHocjolhCzMCQ+YLE7gC8cZok8AlNIOVK6x1OfpEceDBu\nsLTtLze1d6KRVqGSQhS33WI2GDFgNLgzaNFpIKjzLWnq6vy98mbqMn6zZ0yP\nP3kE\r\n=TVEO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDp9SRiKapgAV3cEtUcRBq6CinSrFiDu3qUKDmoCK5DBwIgYAb3A9BAELwqGFBXrKIBAQk/S3qmX3MXsvRPD4w36KU="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.4.0_1539934000206_0.3332685976899674"},"_hasShrinkwrap":false},"1.5.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.5.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0","@angular/common":"^6.0.0 || ^7.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.5.0","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"7.2.3","@angular/common":"7.2.3","@angular/compiler":"7.2.3","@angular/compiler-cli":"7.2.3","@angular/core":"7.2.3","@angular/http":"7.2.3","@angular/platform-browser":"7.2.3","@angular/platform-browser-dynamic":"7.2.3","@angular/platform-server":"7.2.3","@types/graphql":"14.0.5","@types/jest":"23.3.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.4.2","apollo-client":"2.4.12","apollo-link":"1.2.8","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"24.0.0","jest-zone-patch":"0.0.10","ng-packagr":"4.7.0","rxjs":"6.4.0","ts-jest":"23.10.5","typescript":"3.2.4","zone.js":"0.8.29"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.5.0","_npmVersion":"6.4.1","_nodeVersion":"8.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-CCDem+mRPn0UbRL2vkHIU6G/aqXfMTMP1Apte6ucvxUOy91jV5gnwc+nB8lZdCxUQNPO1ZWyJAY1F0SyVeYeDw==","shasum":"55411ed97f1f8356ebed5c0ae96f08dbaf3e064c","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.5.0.tgz","fileCount":24,"unpackedSize":105035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXCKTCRA9TVsSAnZWagAAdDEP/0WjUMkii3QPYIQQ2RrC\nX9CJPbZ9KFwwkCkvHFrWHRCrkIR1cdP3qhewMOwRygzFrqlegjlza0FGEqRk\n04+VuOoGv3lPcfb30gc4C5/+lpEeKD+rfLedKJqodixq/BvdzT6U8I5Dp/hN\nP/R7OMCAYB68nDt1GvvQ9TlfQwnSGS9G84VWJl6jod1xFp0USevN9ubzqeS9\n/SBAsGqOj3WMs4wnmU+M6qFXIj+3GclQSVdbkXOObKgjizKyxUkUW9vOxouz\n4jeZrn9ldrQeadfbg4ng+5LMPF+K8McsyRofIiuYmEX+bRZPxSI2UrG0gU5f\nG8b5IfS90zapsM2+GqOJ2rjQp1zXWirVBhmjT39Mq4GfxYloQ3k9V2oQtPRc\nE4zY1JKpwuNjKGkoxBGpNil0Pk0eGML95baSdnAauc47K5yokVEc8oN8NBwG\n+Jl9aXPnvr31URTi61H3i6LO4gFN6Xy8898zqdlBxlp40D19Z729DF6QheDt\nw/cclp/eNv22txvrqaKD63gwxiEB3vrL8rNrcTUfJnd7SzWavVNPkXhoCAmA\nTgQ9AvDQBTmfK07FV3etFqDKUynDpl2D1brB/ttvSHC75QkAUAOC5YvEK2ye\n1m6Tt17wiKUILI8QoC9D7q/ZCEgBr5gBITfoQsfm5jmiEYzoE3RLW9VmhTqy\n6Nst\r\n=FIt0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFu0rgE+5Gpwqvj2ZI0P+7Dw1Mt3NOLwkAqmbvg/1AWQAiAqg8i8sOBoA4eCdL8xXi7dtGKRFiePk0K5HFUz4tBs6w=="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.5.0_1549542034751_0.9290449088079913"},"_hasShrinkwrap":false},"1.6.0-alpha.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.6.0-alpha.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0","@angular/common":"^6.0.0 || ^7.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"1.6.0-alpha.0","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"7.2.11","@angular/common":"7.2.11","@angular/compiler":"7.2.11","@angular/compiler-cli":"7.2.11","@angular/core":"7.2.11","@angular/http":"7.2.11","@angular/platform-browser":"7.2.11","@angular/platform-browser-dynamic":"7.2.11","@angular/platform-server":"7.2.11","@types/graphql":"14.2.0","@types/jest":"23.3.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.5.1","apollo-client":"2.5.1","apollo-link":"1.2.11","graphql":"14.2.1","graphql-tag":"2.10.1","jest":"24.5.0","jest-zone-patch":"0.0.10","ng-packagr":"5.0.1","rxjs":"6.4.0","ts-jest":"24.0.1","typescript":"3.2.4","zone.js":"0.9.0"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.6.0-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-a0vznc5u+gIqVFrLjCML0EV7lyQQv3D93g1M98LgluL70l15O+VZR5phz75D8hRKuPToqSzhXo4mJTXP+RhxNw==","shasum":"4f814611bedd40be88d9c204397c79e8b8bca102","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.6.0-alpha.0.tgz","fileCount":24,"unpackedSize":99362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpchoCRA9TVsSAnZWagAA/A4P/jZ6En4DvmLzxwDTtEX2\nWWWbWFB8qpRhSeJDUVkkY+LArvXxYJPT52ZK5PIm7aV8I+wZfH5957sPmpLW\nSomwqQaWDldD+9Fqf5b5F84Y6bnXFED3UbwpeIJPojndlJmV4e1/O1HPWid6\nnvD/9eJmvQLj+NOck6+oFvGfNSKG3TwxpT4SIOLeVEFoIUg5eaO1cZ2lDxdB\n4Efpe41xTzh3/S6Xhho9TgPcwpZy9mfYgq6RbBTTAhBkBMNmm9jsmoY1thFP\nqu/L4SQCH+pWgfvNRN+6AeE/SjSjEdBdjZvC8iZuotNZQS0JKJgI/EmmKf7r\n1zUMi4I5VY3enRLD5oAPChTft/lXMeu75G5yrP3L5OltHaT8Izmm1rSrt95Y\nLsON5PHct1VOrEITKxJlLgGq7roFAFS8fWJzzzRuH+VGZGGlzdQGJ3qGAmrm\nuWpsUgKMYL5x6CyJicDArA/HK79Q4Qe3agiwqJCdaSEg89FnWoXsQXsvASfu\ntFBUQgDhjDlFOaWKGtjeTOLvCnYarZl37kVJMape+eSPMQFRqMxiyhhK8woO\nqpxoHUm0rb+XikLNRUrOqf0e2rnFsT9kmzZ5wFpy7b1drvfcwuy/0GrAh/DB\n1WOEZi/8S5sFWcv0EiTzmv4K4ulLL/aLXSQzymcQFg8eRBuPpxme8o68GghC\nmyBQ\r\n=ll/4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWvpvyThtb8V7kW0noF5bw2JYkFqLFO3YxEXyfVbmSgAiBAoiJhzi3rG4IbYZrG7AF0y9JWqlwmYgiCKXVF6eCLCg=="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.6.0-alpha.0_1554368615773_0.08617019581165675"},"_hasShrinkwrap":false},"1.6.0-alpha.1":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.6.0-alpha.1","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0","@angular/common":"^6.0.0 || ^7.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"1.6.0-alpha.1","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"7.2.11","@angular/common":"7.2.11","@angular/compiler":"7.2.11","@angular/compiler-cli":"7.2.11","@angular/core":"7.2.11","@angular/http":"7.2.11","@angular/platform-browser":"7.2.11","@angular/platform-browser-dynamic":"7.2.11","@angular/platform-server":"7.2.11","@types/graphql":"14.2.0","@types/jest":"23.3.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.5.1","apollo-client":"2.5.1","apollo-link":"1.2.11","graphql":"14.2.1","graphql-tag":"2.10.1","jest":"24.5.0","jest-zone-patch":"0.0.10","ng-packagr":"5.0.1","rxjs":"6.4.0","ts-jest":"24.0.1","typescript":"3.2.4","zone.js":"0.9.0"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.6.0-alpha.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-HMBS1nCmmUJOjc6mK9AIPTLy6JVeUIkbPaMIdM9PdGe2j5s4RMCC7p8AXLI/Pr0cRE+OzyvNBcSAww33n9v38g==","shasum":"01086dba4c032fed983a0f2f4ff9a99f11984fcd","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.6.0-alpha.1.tgz","fileCount":24,"unpackedSize":99362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqxhwCRA9TVsSAnZWagAAsywP/jHtUkZhC2SNw7Uhk9Te\nBYaAbr6Iz8wOYb310TNvqBbW1u59zB8MxQddSpuqacfCs1YRjAEfW+H3TIhV\nW/fpeNahojgLZTHi/73rEr+FEOOlRXVQk2RaVnSdaY8LX6yXakW0ka9ULmYp\nOBjFe0bGz99TIkxwHWxjBvqZRMX7zMGQbg2kPSKn3UczJih83ZHcryUhh54n\nsaFHjReCYVv719TwM1fzN5s2MqfV+em0nspnvmWL4BMjrLkbzuIPTumrZrCA\nm5PU7+YhdIdBwVPNSL41v+Ffxtcvrjf9cmkgYFp/kjlRuc8FR4lS2MefllyA\nJEW9mFgcXH+9cSHElDmMBGJthSVIx5vDiT2Jy+dVeroTcZT83zTgTTTr+HDw\nqaH2SDLdTzgcgedCDAlrE1FpgRsdYXuQdYOttZLLmeFniXJ1ETWewPI19z3i\nbyNi2fkYY1OXOV3wnWnvUFKr3Oc6QkbgsHByTTQ0+9pEVprqPQFSlsq53Jcq\n5/C6pYhqic23wFLzSBSk/YhZpcm11My9hwPfDTvoh4amw8kPE9835oT6WRf7\nze92A+b+CZEXMDfAvE/sBfJYiUtfVAR4cg8/YlVxSm7HwIO8oGnIBDl05Zr2\nemDeb+PC5RtV3TviN6Zv8qtGb31PqTJy9kKlNQDzGmTs75egMkenJJHlPgM6\nMGOU\r\n=g2hO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAO1XZcf9j5yh+zf7cDnAauB3t6UBn2yS0vsIUomyyuYAiEAlF+4f2HDuhwbvPYXIymcHe/LRg0Z6+II6vA79G+HWrA="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.6.0-alpha.1_1554716783597_0.701673768469331"},"_hasShrinkwrap":false},"1.6.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.6.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0","@angular/common":"^6.0.0 || ^7.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.6.0","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"7.2.11","@angular/common":"7.2.11","@angular/compiler":"7.2.11","@angular/compiler-cli":"7.2.11","@angular/core":"7.2.11","@angular/http":"7.2.11","@angular/platform-browser":"7.2.11","@angular/platform-browser-dynamic":"7.2.11","@angular/platform-server":"7.2.11","@types/graphql":"14.2.0","@types/jest":"23.3.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.5.1","apollo-client":"2.5.1","apollo-link":"1.2.11","graphql":"14.2.1","graphql-tag":"2.10.1","jest":"24.5.0","jest-zone-patch":"0.0.10","ng-packagr":"5.0.1","rxjs":"6.4.0","ts-jest":"24.0.1","typescript":"3.2.4","zone.js":"0.9.0"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.6.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-6TWrmyF4ZO41FgkM0BOmYibukryjWxudiu9R0P8wnpBQSIYNUcb44dp5jdcNeh1maSH45fHdSKMRe8g8t6m7uA==","shasum":"8cb6c9a3fd96fae8c318a60c14ae6a4eedad5b3d","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.6.0.tgz","fileCount":24,"unpackedSize":99588,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcq0maCRA9TVsSAnZWagAAKPsP/R7AmfwXXsDmyOoho4bJ\n4TW4AAB6hiqkHN27+uvsVmncddWjJkP/uq0tFp1zSZXWKDGoywSkWc63Mefo\n34yyP6k/bzr/4aMPrPzg1BiYjEAsfIlGq4hmjeuKMCNricQWk4DBQnix9orv\n5cR9B3EfP8npCRUuIQzOptkK2JVKQ3tLu0itHXzbKvpb4UHWIaLJWSojS7BW\nhr/RnURZiU7HC/tl7wZomyALh9l3EcLgt2SG1zieVqMdhypLzcgvK5xqZt6Q\naYaFnqdePDWduZUEiL6+7L6PHyIIwcd/Ecw0mEF7cxZgZdRmdfBQTRNWiTUX\nTpIVsoKj+rRy4aq/zlXJHmk7S+o09dpKdSWd2O64J1XJNp71Ji+xbQ5MFSV1\ng6LWijnf8xhFqQMH9YAbl+qgW6g6RrGOAq3ZcDt19lkQSG9q/dd+69S72vgy\nowlBvRmn9LiYFWKGn469SaszZbLErVwH6GEXDpxmDVZvOnrfaIjg2X+j8UZ0\nIUFh09En3m7+DKKpEFo76XxG850hjchpshE+rXmtAezOHwPv6eYpn4PHcPR9\nYl0J9wJ9EGiT1A6eLY7729dSJEOMCcmmtw29re3U5hpT+GYda8GkUSV1Y0Rr\niNUJQxMSH+W7/CjTZCVN9i62TtHqEP25Oaf91TdeHIjkHOonOqU/WzxQ+iaX\nUljX\r\n=E4IN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0e09BuY/KSo6r26pahPeXgJZs/WTe6TpYU9vqWzP0gwIgApmFgL0MFfRjp+Q8uHRY0zK35KTn0WMZeAWHlrqlIh0="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.6.0_1554729369139_0.6237941975508083"},"_hasShrinkwrap":false},"1.7.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.7.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.7.0","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"8.0.0","@angular/common":"8.0.0","@angular/compiler":"8.0.0","@angular/compiler-cli":"8.0.0","@angular/core":"8.0.0","@angular/http":"7.2.13","@angular/platform-browser":"8.0.0","@angular/platform-browser-dynamic":"8.0.0","@angular/platform-server":"8.0.0","@types/graphql":"14.2.0","@types/jest":"23.3.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.5.1","apollo-client":"2.5.1","apollo-link":"1.2.11","graphql":"14.3.0","graphql-tag":"2.10.1","jest":"24.5.0","jest-zone-patch":"0.0.10","ng-packagr":"5.2.0","rxjs":"6.5.2","ts-jest":"24.0.2","typescript":"3.4.5","zone.js":"0.9.1"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.7.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-YNZx1sQS8SleEadF4TPswRF/iq2M99/iwnwtxlqmlq7E+4ZSXXyxXjQO6LsXH8iWoG7aitCpzUZR7XAVuXGp+g==","shasum":"1d0b8a5a6cd94b5397c6a959330a0e2fb9f61d6a","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.7.0.tgz","fileCount":24,"unpackedSize":99600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc8Bu/CRA9TVsSAnZWagAAO/MQAIvQLcUFpbov1QwlFZBh\nf5vX0PNtN2GdnMXDKAUjCG7DIM4eLP6BJqnA80vVgssqyFGpl347XTbmWq3f\nZisKeu06mirI9/Vegzcig8WlJ/guC2sxVVFeXb2lcC7OPpOFHbWK4giinVon\noJ/2voVe3uO6RnBLZrOMCMkth2VHoAibvuQGHCrbmcjCOwpx/bKmAE6d6nKd\ny4cKVHshJtd04HIl+ASu9jS6VU49skWkAuduorzJaY8+pa9oaSNVxHbr4uPE\nNNb6dhBfeJEJZ2JzMZmvZXkXQuEXYDHWdpH9QNsx5dfdrXm+IxnOYoOUV3O3\nd/Fwfd36L+i/k2A1HDAFVCxBiJTb1L00RTQH8BHJl0kqdubELCot3Vx273IY\nE5FmQ9i6wpYI3PuEbNEhr84DcqxIQXCs39CFnFgJWVfRgTGCqQyPf+/TnJYi\nJ0WuF9ACSfSaSycBg5atyk/wGbAnFDaqJdZ7KQfp3AMeLUn3VODGhp+gHXbg\nVQ4vOV8gpe6EvmNHTojMm+2/QVYn6ibf9s4KOEky6CjPFs2A9arc4bcaE6f/\nQcHmokHcqI+saOXgfjxyP3e6TBVOcR8sT8xDbsbNBsj03Uzm6QvPn+VsszI2\nPO8qcNG6eWPDXODT6ZT9dj5+Uhi7Z9gQQ+9L/JPfygFTAqHuYWdTNXCoirye\n56Yu\r\n=zNQm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWeJ2eHh6VkYp69Ad0KwriUye1yrCeOkt+9Y+s/uMSNAiEAnothXOU45qdx4e8vkE3Og38uc3UDgHw5GRaR22htZ3o="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.7.0_1559239614342_0.8132311447170684"},"_hasShrinkwrap":false},"1.7.1-alpha.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.7.1-alpha.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"1.7.1-alpha.0","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"8.0.0","@angular/common":"8.0.0","@angular/compiler":"8.0.0","@angular/compiler-cli":"8.0.0","@angular/core":"8.0.0","@angular/platform-browser":"8.0.0","@angular/platform-browser-dynamic":"8.0.0","@angular/platform-server":"8.0.0","@types/graphql":"14.2.0","@types/jest":"24.0.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.6.0","apollo-client":"2.6.0","apollo-link":"1.2.11","graphql":"14.3.1","graphql-tag":"2.10.1","jest":"24.8.0","jest-zone-patch":"0.0.10","ng-packagr":"5.2.0","rxjs":"6.5.2","ts-jest":"24.0.2","typescript":"3.4.5","zone.js":"0.9.1"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.7.1-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-yHoFIx0/vidPWsvB9jA/FAJqZvpAwmNQkDngxx/fPr6zUVJeSAIUSdX65CI5IzJoIWJi1GWOnHK7yzyrggFh1w==","shasum":"630fa9c557c0bc7a1e662fb8a58522ba7f504203","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.7.1-alpha.0.tgz","fileCount":25,"unpackedSize":100642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAThLCRA9TVsSAnZWagAAyggP/1pAcp5/i8kTAFqbLPzW\n16uvdXR8fMDToJDsrQbP9xwDj9KudOQnVvyoLEfqblCvbbLmXlh/I+dXOKYc\nJHkCDOIwTNbGrtAeb819ZvaPAy012JSMgryY0hIYKW9A5OHDiXjMFuiTubDc\nHWXQ4SQ2xGtjqWgq5Nopov7MBCjoFf9mEG4UaKHotItZO8jdqqCK/BOmklV4\nEyMmuWNuabGDlwqEfoV8Dj0PRwYKzmZPDqHppk+81zTvJRQjTe3b08YhGx5i\nwy5IGg2WGIsDLHGuZHkKg9Wu4zJPF3mn72HCUxAi8U8Lf/0trfuRHuYKb4da\n/zP/5HUzBEeV64NnnqYB/jx3lSR551lO2v7GydYcJbFtZkWBZXbIl/2UuJTP\ndsPssgD2Gzb/rMe1DrKQ46UX6JzDb7jFasaN6k37w/Mclc+UnwCmstWuGq8i\nHNGq8vxjsClOaQe0g6oldwKU49/mNAVvOUmV19dkpg+un48aH5IhjoF7BJzZ\nAaEkeSeg3vsy/K7zNpvA9emRMv5zU0kV5+y71/22CqI4jbe7XiJl94ZqHM7J\nKD5ZyCusrBD9UJknG6E9vTxqVUOoaP+cMuJHWXcdoWRIk4x3gTQVySEB88bx\nrMdPv/Vali3eUBC8RTzaxFCPjMA9OjsTHI0lsSsQdr0DpyPYkoNnfDfryKCh\n8J2w\r\n=VQsz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOlSuLNpJVpzd2tnxCDGapI16oDc+LlGPRns7Dcxd8oQIhAKag21o8yUNNojf1X0YPcP6qwb4iBKAvyXI+28rfsi35"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.7.1-alpha.0_1560361034690_0.9574131179026686"},"_hasShrinkwrap":false},"1.8.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ng.apolloLink.http.umd.js","module":"fesm5/ng.apolloLink.http.js","typings":"ng.apolloLink.http.d.ts","version":"1.8.0","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-angular.git"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.8.0","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"8.0.0","@angular/common":"8.0.0","@angular/compiler":"8.0.0","@angular/compiler-cli":"8.0.0","@angular/core":"8.0.0","@angular/platform-browser":"8.0.0","@angular/platform-browser-dynamic":"8.0.0","@angular/platform-server":"8.0.0","@types/graphql":"14.2.0","@types/jest":"24.0.13","apollo-angular":"1.4.1","apollo-cache-inmemory":"1.6.2","apollo-client":"2.6.2","apollo-link":"1.2.11","graphql":"14.3.1","graphql-tag":"2.10.1","jest":"24.8.0","jest-zone-patch":"0.0.10","ng-packagr":"5.3.0","rxjs":"6.5.2","ts-jest":"24.0.2","typescript":"3.4.5","zone.js":"0.9.1"},"es2015":"fesm2015/ng.apolloLink.http.js","esm5":"esm5/ng.apolloLink.http.js","esm2015":"esm2015/ng.apolloLink.http.js","fesm5":"fesm5/ng.apolloLink.http.js","fesm2015":"fesm2015/ng.apolloLink.http.js","metadata":"ng.apolloLink.http.metadata.json","bugs":{"url":"https://github.com/apollographql/apollo-angular/issues"},"homepage":"https://github.com/apollographql/apollo-angular#readme","_id":"apollo-angular-link-http@1.8.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-waby6cqjohVf5QV1ej3B1YqLvLflLqhDIsISQW583jPZ5/A1DIYmHJR5l+1KvFqEpwIRHRaXW6PyWABd8KzfSg==","shasum":"544423cf43b82cbb0bdca0a06a1bdee13bd98437","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.8.0.tgz","fileCount":25,"unpackedSize":100627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAUUxCRA9TVsSAnZWagAAU3kP/RK8C806jP4nFA4ORr61\ntHt+ESNeZl+ocry4ZOPY6GvM9YgOLUdDDmVVzuVtz+z2eJzzRHe0F8gAnpC6\n6EW+0K698ufJXa8oTFK7oCDK2nNFManwKoI3bWuFgv2OM51dGvCcJYaFkziH\nFwHvlPoF4H9kWj0a1FoSEsv/5ycOZkCCc9JD7GHJqQ64Bil2xOcDeu4Qemy2\nQD+FDLkE/qNgXrB5RHNVcXDbeO4ClwgwldY776ZHMXVgIuR80m7UF5RTcpyn\nkGukYFNeK3je5yn84f6uSuTxI218RLoPb4VoU6i/WvJXVYE2joVBE1KN+7Nv\n4MES9QG4WepqN2077P9+u3mXxqzWVoRlRvEzdknOKbKEiSu+Qk0kSt7wIqPe\ng9lKFhGOhLqGBCiBj3jL8mJcAdFrKV9tDGlClZUYh+QufrBoIU4pRjDEmg4C\n62cbyDAruz15f9QTwpIL2k116d0bLvjV8blXLKKuR0+Nqfq4LILhhBXKAXlu\n7eO5TrOtmrP+INN1vPBAwIjojuUP3Fmpa2smr8oBPRbgSEHRqlqSmpiWSs0I\nx/QWH3GFRsK/Z5bm5J0RYi89dVaQSdCAW2bJYBUHXmJS/TPas2r4ZirRKQ6T\nWw+LLPOgqBqJmdBk+HsdSjl9X6UgQwz7pTwekWMwrLoCyyiVdLzVet61uzF4\nfs2m\r\n=WEgA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB12FGn6OBd7LBFilD9rqNMwv4TxBgR/cqkUEwokb+AhAiEAuXcfJfmRNzICVfwuxQ/onCnljj9uwUmQGWotV+Kg7YY="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.8.0_1560364337184_0.3098559048457523"},"_hasShrinkwrap":false},"1.9.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"1.9.0","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.8.0","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"8.2.11","@angular/common":"8.2.11","@angular/compiler":"8.2.11","@angular/compiler-cli":"8.2.11","@angular/core":"8.2.11","@angular/platform-browser":"8.2.11","@angular/platform-browser-dynamic":"8.2.11","@angular/platform-server":"8.2.11","@types/graphql":"14.5.0","@types/jest":"24.0.19","apollo-angular":"1.7.0","apollo-cache-inmemory":"1.6.3","apollo-client":"2.6.4","apollo-link":"1.2.13","graphql":"14.5.8","graphql-tag":"2.10.1","jest":"24.9.0","jest-zone-patch":"0.0.10","ng-packagr":"5.7.0","rxjs":"6.5.3","ts-jest":"24.1.0","typescript":"3.5.3","zone.js":"0.10.2"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","_id":"apollo-angular-link-http@1.9.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-wA6cLgZyA59RIZ28WKsty/4Gq+5DCxdfFruQmTBoMeol+R70R9fP99/A/HEV+fWPy4hWt9V2YeECx8HrSosd+g==","shasum":"1066cca6f36efe2bcbc79aa899ab97ee57daa980","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.9.0.tgz","fileCount":26,"unpackedSize":123001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdp2UWCRA9TVsSAnZWagAAi54P/0wW/y7+0TMstOD1ssBU\nlz95KsKU1ae32T0db4Xg+QplNiox5fTzy9qdbTXRqF1XM0sxpbIJh7wVtGmk\nOFdReTqeuOVCeUkrrYwr93wjBLKQdrkbih+bQsRcl7dN+1XDfELlBNl+y9fQ\nPJTqL5LG1YULo9hHpjLfz72r2diEiUI626vqbO5KrMaSPnrZShEyexhK7YqO\nC65/6SCGgSGosK5vNUNY4TKJNTUxdQC+C+Ka4wkL4R17UN1QHwmhvG8jZTjL\nklHQdPn7ffeRkhLA+/aPnV9axAVP6tQwQvKk5VwY2NhDa2CSYzmw380pgqgM\nM+fXNB9lL6H7s5c7KwYmWMleZHVcpplwUKJ+yQkBtlKVyO9o9PWuNZxRqTXK\nu85AWwBUSTthVPf/6BediTDY9gpF8Bz4K20m3kdNYuPg4I55+1glcluxNi91\n+d8/NrdnM2MkRjSWVSdzWmpavResELbxsVSvrnO7SiLXca/HLr3EE3L6MdAL\nEMiKADPCrurUXLumLSBuKSi0OpeL8q5e+aHhNM364xhOPPU2xTjloHSW+arO\nRXoF6QyBTcE6ybBxMsqIj7dh4Pedv6q2z9uS0XWFDfXXA31eP8WIlfjBwsyU\n3KkAXeyhm/jH8DyYDmS+T0gQWYr2jUnDF3JDNHjCVRcXbwffTDvvr+alHyPj\n2me0\r\n=ZVQX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHBbwBosY/t9jviRTBoiOQrJsDKwAFXQdKrVuctwSkLrAiEAuExx2EOVXh3MTiRaIEcipgBVOzbfo4y2JfE7F+SDKIg="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.9.0_1571251477782_0.46149763799509325"},"_hasShrinkwrap":false},"2.0.0-alpha.1":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"2.0.0-alpha.1","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","@apollo/client":"^3.0.0-beta.12","apollo-angular":"^2.0.0-alpha2","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~2.0.0-alpha.1","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"8.2.14","@angular/common":"8.2.14","@angular/compiler":"8.2.14","@angular/compiler-cli":"8.2.14","@angular/core":"8.2.14","@angular/platform-browser":"8.2.14","@angular/platform-browser-dynamic":"8.2.14","@angular/platform-server":"8.2.14","@apollo/client":"3.0.0-beta.12","@types/jest":"24.0.23","apollo-angular":"2.0.0-alpha.2","graphql":"14.5.8","jest":"24.9.0","jest-zone-patch":"0.0.10","ng-packagr":"5.7.1","rxjs":"6.5.3","ts-jest":"24.1.0","typescript":"3.5.3","zone.js":"0.10.2"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from '@apollo/client/core';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from '@apollo/client/common';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from '@apollo/link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","_id":"apollo-angular-link-http@2.0.0-alpha.1","_nodeVersion":"10.16.3","_npmVersion":"6.12.1","dist":{"integrity":"sha512-sLzwSTtYhlICaaApl3OOLQNetMk2KbK2A66f76D8gGYwqV/1oQRWDwUF5CdPB0myxa7nvfkZR7VH0q+wRn04uA==","shasum":"9e8885c98890d92b6cd2d56dd3cf4ffdb65a2af1","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-2.0.0-alpha.1.tgz","fileCount":26,"unpackedSize":123904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2+4uCRA9TVsSAnZWagAAAZUP/Ak1lGloklqVpg1BF0tv\nGAuyM4qzEfGIsUqBzpM27rvsHh2eKi+MlvmdEyZfzxr9UK3HzXTng/7jMz3e\nMrZv6YbLnOMjVr3T2+/iGqCgtns3+YaY4DRnWVmXB3f6VFzDwINCOmsZttnj\nPs31Mp5LQFC90Tb/AamERBZhSqoCBVkrBdLzwkCKR4qp5PwnhNiZqYR7cQDl\ntKScUM3Duzh9mLQaAh3585/0tQvH+93vXSfEV5P/vQGHOudj2cUavYHeCh1O\n9IgbmG48/HG1esJqcHWW/eed93+3mM9sn386lJN8/ZSmDiixRmtkgWZhAcCj\nVCY1xQRD6bGWw/vIRZ6rpUE+D3jbMqS2yKjB3c4gw2drq7CVSBlWwr/Qay7f\n0TxXLq78Sn0LZ1/5iG+uAyfAf6WayquNgiO/A+OGlB2TxU5ut1DRfCK5uOFp\nKskT8SPLd1H4/zIyKcKyXMN0Mk70tae1Ce95Uda1Kde9lfcB2vELygVQHRzL\nWW+XV2hqoMy0Wn8tfdifIyFuspqgTt0vvtna8oPiSYOLNLPBHE9hOBFTAOvi\nJ1lpme4aKp99hag9ZNzXiBzISCR+PG7XJ18AUwIF8b4BBqMvHzvhlM9MIPjh\nkuzJr8765Ik+lvohAyq9nz0VjbtVlix++mmGzEjEVh1FzD2f7pOUQHT6KTeS\nlbYT\r\n=WDOB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXOZPBpNy5W7whrAMfE0cxboRdvgYrXfThS69QKV7k8AIhALmo7OEyX9MARvDa6iU4dqaNqXrdo7TsO53UPMHH/5iq"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_2.0.0-alpha.1_1574694446530_0.27614411700078656"},"_hasShrinkwrap":false},"2.0.0-alpha.2":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"2.0.0-alpha.2","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","@apollo/client":"^3.0.0-beta.12","apollo-angular":"^2.0.0-alpha.2","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~2.0.0-alpha.2","extract-files":"5.0.1","tslib":"^1.9.0"},"devDependencies":{"@angular/animations":"8.2.14","@angular/common":"8.2.14","@angular/compiler":"8.2.14","@angular/compiler-cli":"8.2.14","@angular/core":"8.2.14","@angular/platform-browser":"8.2.14","@angular/platform-browser-dynamic":"8.2.14","@angular/platform-server":"8.2.14","@apollo/client":"3.0.0-beta.12","@types/jest":"24.0.23","apollo-angular":"2.0.0-alpha.2","graphql":"14.5.8","jest":"24.9.0","jest-zone-patch":"0.0.10","ng-packagr":"5.7.1","rxjs":"6.5.3","ts-jest":"24.1.0","typescript":"3.5.3","zone.js":"0.10.2"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from '@apollo/client/core';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from '@apollo/client/common';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from '@apollo/link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","_id":"apollo-angular-link-http@2.0.0-alpha.2","_nodeVersion":"10.16.3","_npmVersion":"6.12.1","dist":{"integrity":"sha512-AkuwtalWr0BXbMBqHTIg5aM1YW8Cg/aKIdZ6XZ4EBuZgR54xJhQTnfxL4RUiB5CQA3cWAaRjW7wqLnrEftOzKA==","shasum":"0db2d572992417969a7612eaf3401447b0805823","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-2.0.0-alpha.2.tgz","fileCount":26,"unpackedSize":123905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2/LECRA9TVsSAnZWagAAZ14P/jz2F9QNMJYkH2YYsrPN\njTdjq6aFNek/TmbJoccGR5Az5V+4zstGsvHtNtmdUVOz2UPSUzxbBafjw0Uj\nBJ0eFuLhcqTrPRtSFl/X5/eooTMMwwPw7LMsfzGet2PjDk7/f44Rq8vCmr9H\nVmGRuq0+699ggziNbefzrWyij3VNh3f5ubRthzRSKoEqeotnysei6V3D5rnT\ndCIqcWh+9BgYVIjsX7ZHyiYKxEirNCeJxPnTYf3jlVvL0hwTxRGzf7rTRsY5\n++3iWfDwNTr+fw79l0qjjwlnts1j4AgOclewX44aDHQWGtUEEZ8WsX/Akc35\niiW2hA52+DuLgMbhTAnKwwB2B27ZhNU59ge2bz9pFKaKT6JN5RMOCN9kiiFz\ngSggiG5AaBguWTGTpARMbsRSLhWsZb81rjS6XaEX7h3jDPvzl1uddcdMeB4j\nvNAbQsWRgp1XowlCfvx7mbAacyj5nlnXASWTz7lN+apCYTBXktIwAsOmTWNt\nyom9pP+fuyLVsUae6jBaNi9IxOd4LR++okIYnuzvUKJaY3smmuSd4/cd28Jk\n/yUv+N+CpRY5UXuUITfS21TA0h77QhbTfrBsKNCR8Krru1SHdpd2KImcfhz/\n4upxkaU+dQHfxYDNUyOkzZ4ijJGfdkPCTORFY0M4cdJVv87jOzw1NwFL/Had\nxn6Z\r\n=e+hA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWu45enRK4lKpwn7aEi5R4q9dSe/GEOC8YBcVcyNqpbAIgXcnUvXh6+iIfLeLAxy/PvpCA9S7H0vZDfw+iQPgmnVg="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_2.0.0-alpha.2_1574695619684_0.08057147009246601"},"_hasShrinkwrap":false},"2.0.0-alpha.3":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"2.0.0-alpha.3","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^9.0.0-rc.0","@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^9.0.0-rc.0","@apollo/client":"^3.0.0-beta.14","apollo-angular":"^2.0.0-alpha.4","graphql":">=0.11.0 <0.14.0 || ^14.0.0","tslib":"^1.10.0"},"dependencies":{"apollo-angular-link-http-common":"~2.0.0-alpha.3","extract-files":"5.0.1"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from '@apollo/client/core';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from '@apollo/client/common';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from '@apollo/link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","_id":"apollo-angular-link-http@2.0.0-alpha.3","_nodeVersion":"10.16.3","_npmVersion":"6.12.1","dist":{"integrity":"sha512-uoiHMxgqEqWQuK9oTg0anyJshejRe+goOBOXUGjqHryClSmX9QGJlvFd/jgJP+H+S4FuS47Q38jo38f5EIfzIw==","shasum":"246f0673b1567f2818c090524cdee9ec0cf8d85b","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-2.0.0-alpha.3.tgz","fileCount":26,"unpackedSize":123214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3ZOsCRA9TVsSAnZWagAAOK8P/iCwVOiORkoZvcc9xUgA\nq3sp99xS2KAWPAwPJ83tl2TvdGJACPbWchcF1xOQczoOkBuiWlAJ84QqEnSy\n53hLeiRE9K/OQ3R3WhG+NLC6GjFu80ECQzcwYJU1p6WF3vDVp8bcfIv6lfsT\nDNxbgcL/igQlJMqi9rPe7+RzLNCwt4ucGRCZIzBVybvmbUhBLkv9pm9wbAeI\nIl8F7JQZe+KO8PMyVGVln2kqy9UwYhecYED4eowndoKd8UjQrv42E/IuQ/TF\nyKGs6GaWpq6KmUCbE3fHIBSt7rxI1Gs3uAeiXkiv46ZCqlILTTnmbwS55fcv\nYnK9LGeudL1kbCGTlYhrbCrLjZ65wr9I47axme7L+NEBT2EIAmQtjkfnxQQs\nn5vSxiYz9VLmPSJLFmdb6FQkixhYMZwG4acEsBd8yZpvqII0eDT8nTLQMVz3\nfkH6blpZJDG2uQGXmt1yjrakW8guaai3vxH62INg5DaOhqSuAeJTzrQOKZkb\nMe5xFMigpEz2cYpDROBLZ5urlxBpBNKPNpN/6rn+q+tGW8IaaT8bNQr4q888\nLNEhKHm1Uk7M9Dk97IhRdal0bKrcxNy+5mKaP6Xs15tHt/iEPn5keIDI8YXU\nwTnJe9RtljsqLxErgkGGR/oZnPeoV59RfzMGDgXbGJzl6arMFHplECSdeSQJ\nqMl9\r\n=/ZzQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSXY+CAs2M7mAEKpmhbmD75pVuZxJxGY3TcczWQ1u40AIgE/AN9eH5Au+fZg7Ey5784q3gaOYOahCrAKgKWPCCoMA="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_2.0.0-alpha.3_1574802348158_0.8175025016184889"},"_hasShrinkwrap":false},"2.0.0-alpha.5":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"2.0.0-alpha.5","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^9.0.0-rc.0","@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^9.0.0-rc.0","@apollo/client":"^3.0.0-beta.14","apollo-angular":"^2.0.0-alpha.5","graphql":">=0.11.0 <0.14.0 || ^14.0.0","tslib":"^1.10.0"},"dependencies":{"apollo-angular-link-http-common":"~2.0.0-alpha.5","extract-files":"5.0.1"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from '@apollo/client/core';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from '@apollo/client/common';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from '@apollo/link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","_id":"apollo-angular-link-http@2.0.0-alpha.5","_nodeVersion":"10.16.3","_npmVersion":"6.12.1","dist":{"integrity":"sha512-QKtghYIlCApqIhBo+5vGHe/m89gh+x39nOBEUsOK5pCDWnaNKblz16yRuPjELSo2lSDueU37c+y4yehymlRj3g==","shasum":"fd09accdb2b182891e35907f44aaf22cbb63fab5","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-2.0.0-alpha.5.tgz","fileCount":26,"unpackedSize":123214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3ZXGCRA9TVsSAnZWagAA5sIP/32hCyHxcISgAh8UUB9B\nCwW2xQ/fN8VD5ybXopIb8uB6d/EtP1UQm+vGmRhTHGBdadhdfyeIi7L82ANa\n6TZi130aZ0rH7/O0iLSaaePKkO0pTLviTqZm9BFFKGRp+s1ETLrWNqdd+rkh\nzl/5xkKPDK8XqjyJuqb3rOLSciQVUs/oapUy1gvHUt8RFIY08Fo6kec4mTpz\npwZQ/GLl3IAmmYl/I9breQSnmv1CZZL80ZbCGrYsiK+dQYenOUf9CxcFxcel\nHFgsut83CwIETkS9M+qVA/H7IhMw4PcVL+XNW0idAn1RbjnkzC1EtNy6D7G1\nmDmUqNxMkVJ6Y30RSTaUAAx2Ql/MOeyLVMNalb7OX1eUA3V1MTouL4IdgP3X\n79sd4QCO3S4ELP04U6FsB4QBP328tRdYid35ftyYEK3KyZFzrKLMUI54Aduf\nDTATaExV0mvgM+F2iFRVXhOCRFm46LA+qh11ghxPrNpEHt6b1n7xgvhWJeQk\nSRsBqHgwC5P45QyYt/mFDF6qY3j0Y+JQyWx4KktwtroXTn8H67e+U2qStX49\naa7TnYBIpOWR9MCK1iJljdfLkIEJVNHvfDa5Pbf8ttECrodILlj9D8MKZ7Ll\nUeRxtpY4Ndh9AUdTI+NEsd1dqQ55PUYKE+ZLpF6f9kquBK22OTSPi5Ko0fPn\n2her\r\n=R+bw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNur7P+vnWYGtaoL7UBm15XBK1apkWhYLfArdAaLBSiAIhANRwzoTMElf0dZlNj1R3CfCuFluuk14EvBn8aiqqScDg"}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_2.0.0-alpha.5_1574802886152_0.33339457855552257"},"_hasShrinkwrap":false},"2.0.0-alpha.6":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"2.0.0-alpha.6","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^9.0.0-rc.0","@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^9.0.0-rc.0","@apollo/client":"^3.0.0-beta.14","graphql":">=0.11.0 <0.14.0 || ^14.0.0","tslib":"^1.10.0"},"dependencies":{"apollo-angular-link-http-common":"~2.0.0-alpha.6","extract-files":"5.0.1"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from '@apollo/client/core';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from '@apollo/client/common';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from '@apollo/link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","_id":"apollo-angular-link-http@2.0.0-alpha.6","_nodeVersion":"10.16.3","_npmVersion":"6.12.1","dist":{"integrity":"sha512-FjrnyWZ65Ii0Gd4G7eCpxvNX3vquefbJtkcImCMNeq1cwxvulUbyhl5f9jCQgASY2AOyDPj3liwaEZi2dAvijg==","shasum":"0f98907cc18a1c9354c7612bb7bcc5d3b1eec364","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-2.0.0-alpha.6.tgz","fileCount":26,"unpackedSize":123235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3ZuhCRA9TVsSAnZWagAAQ5oP+gKFo1u54kRzV34hu9j3\nJbzer8ASqT3a/gULOq+oGMLqoaqCfQT65Dr/OO/dCOkcV5yc+5c58TDaHsra\nA/3R8kJIkCOtcJmPJ9TpPFf0qTlH1QGwVTX23u4Tba1lv60MZ7t0vO1dWwW1\ndFLcffYh/md0fu4TDqDCMPO9pLMFtbgAKvMIRyi9Q/6n+BwIpFG1TGdFWj8v\n+Ec8667QPGvR6CG0GeYg06I+8NMCm58DgkZuzyg73oQBZNGMsrx0udeZF+Rk\n1RIDlcdc0S2EiuEqv9b1OsuUMXGcTNyQ0WLwGCJXlk1baiDeChxWGL7j7bzW\n1IlMy6hs48BUjFVgr31sTxKK3pRDwbIumJtXLbB7eDyEHxvsE6UDAUnnoRzv\nh4W5r1jSM8gZox3VJamgwghnrsV7mx9T8Nk8QhI/+YWakenjozGNoJpvyZ0l\nOx0xsdvG6xZ3+ONBw77gcm6nszuwUY0m2W5ZzYIsOEl/ricnxMUAyvyQ+dgp\nGvyGntjxjqT+hZub3qQWx8A5+9wFd3vp1pqXfxm37UzPc+6AcHLwFbXQDbY1\n19fjCYc7bwig8LGobrhi3ghc3zV8pYlJcxyzN/9PC1oe7Ru/YqFELWXDP3St\nCcuc24AWpKTRSS/0lWNr8JdZqyut+kSxoYP8XPoYlx3Ux6DU3eFy9cDCnurA\n0I+H\r\n=oa2B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwWrCB49DBRpt/fid3/cA+z0UTBIQoPM/X07gUJijZAAiEA3emebesEIWn7jCJChxdcrNWlEIJRqFwSdUFykdgaWiY="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_2.0.0-alpha.6_1574804384832_0.09907607813234298"},"_hasShrinkwrap":false},"1.10.0-alpha.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"1.10.0-alpha.0","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.9.0-alpha.0","extract-files":"6.0.0","tslib":"^1.11.0"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","readmeFilename":"README.md","_id":"apollo-angular-link-http@1.10.0-alpha.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-TXlce3Gswy/K9Ozx2INXPc7A5+rOBYgwAgWLDzExw3I2pJxyFpbRt/4NuTC+V7bDoPPyBNsTXvoziPcF3JlrhA==","shasum":"7e5c4dd7718c5f7ea3ba39828220a2c2b02b6bd5","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.10.0-alpha.0.tgz","fileCount":26,"unpackedSize":125991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefc+QCRA9TVsSAnZWagAAiCsP/1fvBVePqXgOfJ4XYjI7\nZ5wUTVZNlJUDQTylWs3g28r1L1S9dbYdy3Zk/Zia2Dj6cSvhP8DmWR3qPVe3\n4eAkDGtQMPDYBlEbgQK5mp8x2kurWiBAGSjiDucnNJHXVyBjZhlCMxXtBcHR\nxV7v3wVI2jHftd35ld1eau2MoNFbWNBYXYVapLbosjHC7yd3AHpdkMzPf9om\ns1x9wTsmgjS3Yhlf7poQl3kwPkSebUvjjTRhHa/Hzza0gpRwWAA3ARiaXPfk\nK7wX2Y7BehUB9jcQSLfBm/kNXxPar8nN0Tw8/L79qNEO9sQmR4ULkVHwbcEJ\ngYEQqQonh2+swLKAmfh4dFz3QOoCQqvDgvG6XDd7S4KzUpGE8NFaKCxTPsHY\nedSeCdZwpRKSQxABm3/HKRI0KynD27ah4yRA02fzdnBqcXfLOkeu24SfGo6B\nLPSJ9d8Ag9KM73s/Y4c+U5/we8xr9XZy0zz5kId9Q0hSNhgNmpCb/KAuezuX\n6v7Anc/jvNW4QNJ7T+zA2ESFhcZ4wVIfiZWLj+6QgQeR68JCeCBlVGfJ84GW\ngG8hucQNXbK6gcqRM8+uAjs+qyxDa54rzKjXTrSYhmByIptt78PBEg9K4ani\nPLBeODtB4t/IvmNF+7RZJcWdwh1BoA4qlqf0Oy4yhmZKY6isSD4oO5Yd/fkg\noV56\r\n=sxf9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjlTBwbKngiORt5kaWRaoroTSwVe9qU9ExlNaHTUOoQAiAfIHLaEqujcms9Y0j9p9Nj+MycEWt2FexBQwvRQuZ38Q=="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.10.0-alpha.0_1585303440226_0.9791049072977347"},"_hasShrinkwrap":false},"1.10.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"http://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm5/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"1.10.0","repository":{"type":"git","url":"https://github.com/apollographql/apollo-angular/tree/master/packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0 || ^15.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.9.0","extract-files":"6.0.0","tslib":"^1.11.0"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm5":"esm5/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm5":"fesm5/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","_id":"apollo-angular-link-http@1.10.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-psxo4QmjM0efw8m0gz4pbA/paXbyEvaj/0tw7T8HkyCqPZeQBBhQaahFtpHVfTyYdkDn5LwCZyhDDxO/IzjUzA==","shasum":"7d85cb63a805f163faab7a3617d572a5cdc83c72","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.10.0.tgz","fileCount":26,"unpackedSize":126050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekXZ/CRA9TVsSAnZWagAAQRYP+wb2JbjTUmx8qUl2zffS\ngO8ayDCljbTzmP0OdTGybURWvKPhb0z186QB2AgOTI7WvNW8TYqbeeTWPv6W\nhoBXNhh3TcZmd9mKWkmEfrLBlh8FfHG4x9MBQrPNzGOhHz0g+CpMtJ81mbHO\nrM5jptG6lq3QsR1rqqYZ9P8Dtk1/+QfvG8tq4lUqynlulBa91ELtWw2wv6gg\n0YX/g6VQlyLppEXDntV5zfSp9OXM2yVqBY1ZNFrALCccou0rKcXjCkomHpn1\nJ6y+w9Lc4vr9n0LIMa7YEAp9cxokq/qj3z55B0ljCBArQXvCZaAXhsDwxQIg\nLwJr8lYoG2tYhlCumOarL5AwRmouoYEklQfpu1yVlwDfJqiiB6xo4COJgk6U\nJXCbWw5qj2CRmiSXZf+obylynGBxgNeHRaN2KejPv8xba626CSC0Qf3jAMI2\niZ1JsM68TIBryzgQNPSaO3rF2Ezp3jjLloSgWHLnePungB1bi669NjUjj0RE\nXDNVsu7BT8HpQTX1UEgNS2ceshMTav3XxQ2eHZgfQ257yQSEIlyjUPNm4HL6\nvlyL/CmGMLjYIyEyqfdmVtisESATF7QoOKiZRJYRsrdwFzwRePB7Gpn8fOZk\ni/RYAu+JrgXOtGrHA2LkyWcmHpHf6vZvdL4i4j2fgDlVwKK7uHT+FvK7GBU9\niGz7\r\n=ePmG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzCC7G1PpzDUhNxLIL9CM2GyoBlRb3NqqSbKelxBoJGAIgQPW9Lzx2zJesyFn2QUJcEJkIAr3T1KpzfSzaLymexR4="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.10.0_1586591359252_0.27505017505166607"},"_hasShrinkwrap":false},"1.11.0":{"name":"apollo-angular-link-http","description":"An Apollo Link to allow sending a single http request per operation.","author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"https://github.com/kamilkisiela/"},"license":"MIT","sideEffects":false,"main":"bundles/ngApolloLinkHttp.umd.js","module":"fesm2015/ngApolloLinkHttp.js","typings":"ngApolloLinkHttp.d.ts","version":"1.11.0","repository":{"type":"git","url":"git+https://github.com/kamilkisiela/apollo-angular.git","directory":"packages/apollo-angular-link-http"},"keywords":["apollo","graphql","angular"],"peerDependencies":{"@angular/core":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0","@angular/common":"^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0","apollo-link":"^1.0.0","graphql":">=0.11.0 <0.14.0 || ^14.0.0 || ^15.0.0"},"dependencies":{"apollo-angular-link-http-common":"~1.10.0","extract-files":"6.0.0","tslib":"^2.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"es2015":"fesm2015/ngApolloLinkHttp.js","esm2015":"esm2015/ngApolloLinkHttp.js","fesm2015":"fesm2015/ngApolloLinkHttp.js","metadata":"ngApolloLinkHttp.metadata.json","bugs":{"url":"https://github.com/kamilkisiela/apollo-angular/issues"},"homepage":"https://github.com/kamilkisiela/apollo-angular#readme","_id":"apollo-angular-link-http@1.11.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","_npmUser":{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"},"dist":{"integrity":"sha512-/mFytwvHhmWOX3emi8ljpuas8HpwSVOfbKniOeDFSE44g9HsPKkq2bGTucUTUo0Un3cCBEVKei2jTIDVsZPqFA==","shasum":"5465664aac1944881900e845f043cf627af0f812","tarball":"https://registry.npmjs.org/apollo-angular-link-http/-/apollo-angular-link-http-1.11.0.tgz","fileCount":20,"unpackedSize":103380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBhh2CRA9TVsSAnZWagAAaoQP/jvubOozcO+2PTBYzeJw\n7L3Ys28emcQevp/FojqGxK3u+TjPM4idNoFuOV2eBf+N3WSc/hEjb6gVS+eA\n4xrLe4rCI0T1xSRflTS5sgdf6wFmLnmf5nTCip/bQjTfvIHZsr3i7gPv/v8h\n+JQA7Oumh4JnRg05Ca3g2Lh8SO1mZNmgikAYX0soFnG/RnbmHumbyTdaIKtd\nz7rzUL0Vx0vLcPlr8zyhy78NKXqrXdi1w89s7iAEXZjoPdKk1BJNznvQeMMc\nQR/SIadPfwzzOMigQsKGtOgdbqST/qu4AA5M5h7Rn5psE1ckjxfIWLJBkWfz\nD27Em9B+NNBqRloQpqn5DVNygFwsA3/Q84NWjLcvIPog/tnQ0dspkJyrHuQV\neqUFN+6lADNWILvdXeZOw1Nxz0PfAxrnwDwnajAzhvyzNYxzfJfGr/ouo+Ni\nD62pjq0oT+mzXmTufomM/2iGOOFsGxbBc2MYcsOQOIyiPehcdeNKHHn/JCaY\n3Z5M+c8E5JY8fKtfWLTwP+ovhluVLTsrOuaJiKfzF/xlbCL9yT8WnnQwuxxY\nMUG0960MpS0V+nIRj9L6CInGuUEaMESiQGs2iGFIMkopnJ/zBMLKJRNG5+LH\nHMIN49PzMQGjWL8neQG7i0AqyE7XGo1wq7hcJMgZb2v2RoJ2pe2kFdp46N06\nD7NI\r\n=Bz9a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAuTy5EsC8T9MWcEtJKMV1Ey1vTdTUl520BzDNtfMo8AIgC3EWXK6+LmuDPAtu2TbFOSOX8trD3zFmhTiXHsTUltI="}]},"maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-angular-link-http_1.11.0_1594234998543_0.5836027222117697"},"_hasShrinkwrap":false}},"readme":"# HTTP Link\n\n[![npm version](https://badge.fury.io/js/apollo-angular-link-http.svg)](https://badge.fury.io/js/apollo-angular-link-http)\n[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/slack)\n\n## Purpose\n\nAn Apollo Link to allow sending a single http request per operation.\n\n## Installation\n\n`npm install apollo-angular-link-http --save`\n\n## Usage\n\n```ts\nimport {HttpLinkModule, HttpLink} from 'apollo-angular-link-http';\n\n@NgModule({\n  imports: [HttpLinkModule],\n})\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const link = httpLink.create({uri: '/graphql'});\n  }\n}\n```\n\n## HttpClient\n\nThe HTTP Link relies on having `HttpClient` (from `@angular/common/http`)\npresent in your application.\n\n## Options\n\nHTTP Link takes an object with some options on it to customize the behavior of\nthe link. If your server supports it, the HTTP link can also send over metadata\nabout the request in the extensions field. To enable this, pass\n`includeExtensions` as true. If you would like to use persisted queries or just\nnot to send a query, disable `includeQuery`.\n\n| name              | value             | default    | required |\n| ----------------- | ----------------- | ---------- | -------- |\n| uri               | string / function | `/graphql` | false    |\n| includeExtensions | boolean           | `false`    | false    |\n| includeQuery      | boolean           | `true`     | false    |\n| headers           | HttpHeaders       | `none`     | false    |\n| withCredentials   | boolean           | `none`     | false    |\n| method            | string            | `POST`     | false    |\n\n## Context\n\nThe HTTP Link uses the `headers` field on the context to allow passing headers\nto the HTTP request. It also supports the `withCredentials` field for defining\ncredentials policy for request. These options will override the same key if\npassed when creating the the link. If some setting is different than the one in\nOptions, this one will be used.\n\n| name              | value       | default         | required |\n| ----------------- | ----------- | --------------- | -------- |\n| uri               | string      | `as in options` | false    |\n| includeExtensions | boolean     | `as in options` | false    |\n| includeQuery      | boolean     | `as in options` | false    |\n| headers           | HttpHeaders | none            | false    |\n| withCredentials   | boolean     | `as in options` | false    |\n| method            | string      | `as in options` | false    |\n| useMultipart      | boolean     | `as in options` | false    |\n\n```js\nimport {HttpLinkModule, HttpLink} from 'apollo-link-http';\nimport {ApolloModule, Apollo} from 'apollo-angular';\nimport {InMemoryCache} from 'apollo-cache-inmemory';\nimport {HttpClientModule} from '@angular/common/http';\n\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({uri: '/graphql'}),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n\n// a query with apollo-angular\napollo.query({\n  query: MY_QUERY,\n  context: {\n    // example of setting the headers with context per operation\n    headers: new HttpHeaders().set('X-Custom-Header', 'custom-value'),\n  },\n});\n```\n\n### Uri as function\n\n```ts\n@NgModules({\n  imports: [HttpClientModule, ApolloModule, HttpLinkModule],\n})\nclass AppModule {\n  constructor(apollo: Apollo, httpLink: httpLink) {\n    apollo.create({\n      link: httpLink.create({\n        uri(operation) {\n          return operation.operationName === 'login' ? '/auth' : '/graphq';\n        },\n      }),\n      cache: new InMemoryCache(),\n    });\n  }\n}\n```\n\n### File upload\n\nIn order to upload a file, you need to turn on `useMultipart` flag:\n\n```ts\napollo.query({\n  query: MY_QUERY,\n  context: {\n    useMultipart: true\n  },\n});\n```\n\n### Middleware\n\n```ts\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\n\nclass AppModule {\n  constructor(httpLink: HttpLink) {\n    const http = httpLink.create({uri: '/graphql'});\n    const middleware = new ApolloLink((operation, forward) => {\n      operation.setContext({\n        headers: new HttpHeaders().set(\n          'Authorization',\n          localStorage.getItem('token') || null,\n        ),\n      });\n      return forward(operation);\n    });\n\n    const link = middleware.concat(http);\n  }\n}\n```\n\n### Afterware (error)\n\n```js\nimport {ApolloLink} from 'apollo-link';\nimport {HttpLink} from 'apollo-angular-link-http';\nimport {onError} from 'apollo-link-error';\n\nimport {Auth} from './auth.service';\n\nclass AppModule {\n  constructor(httpLink: HttpLink, auth: Auth) {\n    const http = httpLink.create({uri: '/graphql'});\n    const error = onError(({networkError}) => {\n      if (networkError.status === 401) {\n        auth.logout();\n      }\n    });\n\n    const link = error.concat(http);\n  }\n}\n```\n","maintainers":[{"name":"kamilkisiela","email":"kamil.kisiela@gmail.com"}],"time":{"modified":"2022-04-11T14:42:55.223Z","created":"2017-10-19T10:18:42.859Z","0.0.1-beta.0":"2017-10-19T10:18:42.859Z","1.0.0-beta.1":"2017-10-25T15:52:14.784Z","1.0.0-beta.2":"2017-10-30T20:42:38.960Z","1.0.0-beta.3":"2017-10-31T11:36:25.870Z","1.0.0-beta.4":"2017-10-31T11:47:34.357Z","1.0.0-beta.5":"2017-10-31T12:13:45.549Z","1.0.0":"2017-11-10T16:20:45.451Z","1.0.1":"2017-11-15T21:09:17.031Z","1.0.2-beta.0":"2018-01-25T17:34:22.710Z","1.0.2":"2018-03-22T16:06:29.014Z","1.0.3":"2018-04-23T21:16:39.946Z","1.1.0-rc.0":"2018-05-09T13:33:11.687Z","1.1.0":"2018-05-15T18:55:42.000Z","1.1.1":"2018-06-24T10:28:35.071Z","1.2.0-alpha.f31ea5s4":"2018-08-15T09:36:05.534Z","1.2.0-rc.0":"2018-08-21T14:54:55.236Z","1.2.0":"2018-08-21T16:37:37.698Z","1.3.0":"2018-10-02T07:15:07.990Z","1.3.1":"2018-10-02T16:32:14.221Z","1.4.0-rc.0":"2018-10-19T07:10:40.591Z","1.4.0":"2018-10-19T07:26:40.355Z","1.5.0":"2019-02-07T12:20:34.874Z","1.6.0-alpha.0":"2019-04-04T09:03:35.999Z","1.6.0-alpha.1":"2019-04-08T09:46:23.995Z","1.6.0":"2019-04-08T13:16:09.305Z","1.7.0":"2019-05-30T18:06:54.534Z","1.7.1-alpha.0":"2019-06-12T17:37:14.844Z","1.8.0":"2019-06-12T18:32:17.360Z","1.9.0":"2019-10-16T18:44:37.909Z","2.0.0-alpha.1":"2019-11-25T15:07:26.672Z","2.0.0-alpha.2":"2019-11-25T15:26:59.773Z","2.0.0-alpha.3":"2019-11-26T21:05:48.304Z","2.0.0-alpha.5":"2019-11-26T21:14:46.329Z","2.0.0-alpha.6":"2019-11-26T21:39:44.949Z","1.10.0-alpha.0":"2020-03-27T10:04:00.402Z","1.10.0":"2020-04-11T07:49:19.401Z","1.11.0":"2020-07-08T19:03:18.707Z"},"repository":{"type":"git","url":"git+https://github.com/kamilkisiela/apollo-angular.git","directory":"packages/apollo-angular-link-http"},"author":{"name":"Kamil Kisiela","email":"kamil.kisiela@gmail.com","url":"https://github.com/kamilkisiela/"},"license":"MIT","readmeFilename":"README.md","description":"An Apollo Link to allow sending a single http request per operation.","keywords":["apollo","graphql","angular"],"homepage":"https://github.com/kamilkisiela/apollo-angular#readme","bugs":{"url":"https://github.com/kamilkisiela/apollo-angular/issues"}}