{"_id":"fusion-apollo-universal-client","_rev":"35-0155d8c612bd71888cc4915a3d32cf15","name":"fusion-apollo-universal-client","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","dist-tags":{"latest":"2.2.0","prerelease":"3.0.0-1"},"versions":{"0.0.1":{"name":"fusion-apollo-universal-client","version":"0.0.1","main":"./dist/node.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/node.es.js","files":["dist"],"browser":{"./dist/node.cjs.js":"./dist/browser.cjs.js","./dist/node.es.js":"./dist/browser.es.js"},"es2015":{"./dist/node.cjs.js":"./dist/node.cjs.es2015.js","./dist/node.es.js":"./dist/node.es.es2015.js","./dist/browser.cjs.js":"./dist/browser.cjs.es2015.js","./dist/browser.es.js":"./dist/browser.es.es2015.js"},"devDependencies":{"babel-eslint":"^8.0.0","babel-preset-react":"^6.24.1","create-universal-package":"^1.0.0-rc.14","eslint":"^4.2.0","eslint-config-fusion":"^0.1.2","eslint-plugin-cup":"^1.0.0-rc.4","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","fusion-core":"0.2.4","fusion-react-async":"^0.1.4","prettier":"1.4.2","react":"16.1.1","react-dom":"^16.0.0","tape-cup":"^4.7.1","unitest":"^1.0.0"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^0.2.3","fusion-react-async":"^0.1.4","react":"14.x - 16.x","react-dom":"14.x - 16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.1.2","apollo-client":"^2.1.0","apollo-link":"^1.0.4","apollo-link-http":"^1.3.0","graphql":"^0.11.7","js-cookie":"^2.2.0"},"gitHead":"a0277fe651b546368018db622c9c574fffc729c0","description":"A simple universal client for GraphQL apps using fusion-apollo.","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"dist":{"integrity":"sha512-bkYoOC7WrcAGM8SBREuVq8hBAKkQKXmjtkM16RE4ac9rD9hGSmsj5pCDdEk2FTAyIj5D3IfkxPppUfbo4fMa3Q==","shasum":"94644bd48515e179ec14ce9e63bf4cfba6ba96c8","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTUGmoRLjF6LrGMndYm+UWO5nEwBdrzWtiHD9qBrVItAIhAL1jVtwoUetjXCOi682U+4AnARVkO+VXLzEhyG8+USSV"}]},"maintainers":[{"name":"kevingrandon","email":"kevingrandon@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client-0.0.1.tgz_1512109054778_0.055459927301853895"},"directories":{}},"0.0.2":{"name":"fusion-apollo-universal-client","version":"0.0.2","main":"./dist/node.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/node.es.js","files":["dist"],"browser":{"./dist/node.cjs.js":"./dist/browser.cjs.js","./dist/node.es.js":"./dist/browser.es.js"},"es2015":{"./dist/node.cjs.js":"./dist/node.cjs.es2015.js","./dist/node.es.js":"./dist/node.es.es2015.js","./dist/browser.cjs.js":"./dist/browser.cjs.es2015.js","./dist/browser.es.js":"./dist/browser.es.es2015.js"},"devDependencies":{"babel-eslint":"^8.0.0","babel-preset-react":"^6.24.1","create-universal-package":"^1.0.0-rc.14","eslint":"^4.2.0","eslint-config-fusion":"^0.1.2","eslint-plugin-cup":"^1.0.0-rc.4","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","fusion-core":"0.2.4","fusion-react-async":"^0.1.4","prettier":"1.4.2","react":"16.1.1","react-dom":"^16.0.0","tape-cup":"^4.7.1","unitest":"^1.0.0"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^0.2.3","fusion-react-async":"^0.1.4","react":"14.x - 16.x","react-dom":"14.x - 16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.1.2","apollo-client":"^2.1.0","apollo-link":"^1.0.4","apollo-link-http":"^1.3.0","graphql":"^0.11.7","js-cookie":"^2.2.0"},"gitHead":"71516b3419663626599a18a9fe5d277c0cc356e6","description":"A simple universal client for GraphQL apps using fusion-apollo.","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"dist":{"integrity":"sha512-VuRAoQV82uKk4qC1G+awyo/szSRMZ6cmGUU/tYd0+6kQfC0rGvrueu//1CiTYOI0OKkL+PUOwT3F5wV58371vQ==","shasum":"53eaf9e9dab6ffb0fd57c290091489093daeff5a","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWUjicn/NMRIhzbtoOsdcSO7tC/jXimjYqZBup3dwS/AiAln3hTwALtkr70XvQ3ka4fqeiPs/YdjaDrzHYzHPfGqw=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client-0.0.2.tgz_1512175960629_0.7074551228433847"},"directories":{}},"0.0.3":{"name":"fusion-apollo-universal-client","version":"0.0.3","main":"./dist/node.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/node.es.js","files":["dist"],"browser":{"./dist/node.cjs.js":"./dist/browser.cjs.js","./dist/node.es.js":"./dist/browser.es.js"},"es2015":{"./dist/node.cjs.js":"./dist/node.cjs.es2015.js","./dist/node.es.js":"./dist/node.es.es2015.js","./dist/browser.cjs.js":"./dist/browser.cjs.es2015.js","./dist/browser.es.js":"./dist/browser.es.es2015.js"},"devDependencies":{"babel-eslint":"^8.0.0","babel-preset-react":"^6.24.1","create-universal-package":"^1.0.0-rc.14","eslint":"^4.2.0","eslint-config-fusion":"^0.1.2","eslint-plugin-cup":"^1.0.0-rc.4","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","fusion-core":"0.2.4","fusion-react-async":"^0.1.4","prettier":"1.4.2","react":"16.1.1","react-dom":"^16.0.0","tape-cup":"^4.7.1","unitest":"^1.0.0"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^0.2.3","fusion-react-async":"^0.1.4","react":"14.x - 16.x","react-dom":"14.x - 16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.1.2","apollo-client":"^2.1.0","apollo-link":"^1.0.4","apollo-link-http":"^1.3.0","graphql":"^0.11.7","isomorphic-fetch":"^2.2.1","js-cookie":"^2.2.0"},"gitHead":"a6e0173814829d82beffc646f60023e424b8a357","description":"A simple universal client for GraphQL apps using fusion-apollo.","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"dist":{"integrity":"sha512-mlCQaRPmbm6d4gr3/mFWvLzizP6dgQ1vWOIjb/Uqjce6x1N9FfwVQVbk7ksefE0frN5c+PrAmkejpZ36th08Yg==","shasum":"68aa68106c244253f97de74d9362b017283bddab","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz4Y4r6x068yB5eK52klWDqfZ6aQ8M0hMQwLsHUEKlmAIgdQhyKl3QRoGOarGY+tYbzJiXGwn3rmR6CybiWXNoFkU="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client-0.0.3.tgz_1512176252669_0.16501905489712954"},"directories":{}},"0.0.4":{"name":"fusion-apollo-universal-client","version":"0.0.4","main":"./dist/node.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/node.es.js","files":["dist"],"browser":{"./dist/node.cjs.js":"./dist/browser.cjs.js","./dist/node.es.js":"./dist/browser.es.js"},"es2015":{"./dist/node.cjs.js":"./dist/node.cjs.es2015.js","./dist/node.es.js":"./dist/node.es.es2015.js","./dist/browser.cjs.js":"./dist/browser.cjs.es2015.js","./dist/browser.es.js":"./dist/browser.es.es2015.js"},"devDependencies":{"babel-eslint":"^8.0.0","babel-preset-react":"^6.24.1","create-universal-package":"^1.0.0-rc.14","eslint":"^4.2.0","eslint-config-fusion":"^0.1.2","eslint-plugin-cup":"^1.0.0-rc.4","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","fusion-core":"0.2.4","fusion-react-async":"^0.1.4","prettier":"1.4.2","react":"16.1.1","react-dom":"^16.0.0","tape-cup":"^4.7.1","unitest":"^1.0.0"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^0.2.3","fusion-react-async":"^0.1.4","react":"14.x - 16.x","react-dom":"14.x - 16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.1.2","apollo-client":"^2.1.0","apollo-link":"^1.0.4","apollo-link-http":"^1.3.0","graphql":"^0.11.7","js-cookie":"^2.2.0"},"gitHead":"6e04e125f6369aaf2e3d7551206d46761bc56141","description":"A simple universal client for GraphQL apps using fusion-apollo.","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@0.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"kevingrandon","email":"kevingrandon@yahoo.com"},"dist":{"integrity":"sha512-qQx54wxzE9OxKwN7Bb1/8C7vC7afqrKyptTaNLCShxfS600KEX6NNj59eFS9M7ck6WgsplIyNoVXIlhh2dI/Qg==","shasum":"6028e88126388c0379f062dff66d9c1cd5210e8f","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlvlUlraLot+KyBkALDJrmCozcw2hrwMP8A4dtVsiWmAiAlbCE7lhf44CaIxSeMKdNvjL7tCx6xh7ZYxiJLQGAnOg=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client-0.0.4.tgz_1512260084303_0.34614080702885985"},"directories":{}},"1.0.0":{"name":"fusion-apollo-universal-client","version":"1.0.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.0","eslint":"4.17.0","eslint-config-fusion":"1.0.0","eslint-plugin-cup":"1.0.0","eslint-plugin-flowtype":"2.43.0","eslint-plugin-import":"2.8.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.6.1","flow-bin":"0.65.0","fusion-core":"1.0.0","fusion-react-async":"1.0.0","fusion-tokens":"^1.0.0","prettier":"1.10.2","react":"16.2.0","react-dom":"16.2.0","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.1.7","apollo-client":"^2.2.3","apollo-link":"^1.1.0","apollo-link-http":"^1.3.3","graphql":"^0.13.0","js-cookie":"^2.2.0"},"gitHead":"7b2a1d6c52ba317d5d80476f941ee061b0cd6b3e","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-3DxnyrAZjIzKkdUwNxxlLyVHzdWED/Fh2rbZolN4yWB5yDjNiAxNSgICjBYJLgFOfvRSbsEZbbR2fKYzI8whMQ==","shasum":"96fabe6ea5030a4fec77247d20dae6f06ab6c839","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.0.0.tgz","fileCount":18,"unpackedSize":36761,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS0MrdRL21nWIPC3OBuVCY+ZhOpu1ma1Di/NhskTMZ+gIgQtVnpHunCAaST2tJER7sgzQ4yoHH5AP47fNEVA3mn+c="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.0.0_1518234877426_0.5689801098903327"},"_hasShrinkwrap":false},"1.0.1":{"name":"fusion-apollo-universal-client","version":"1.0.1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.0","eslint":"4.17.0","eslint-config-fusion":"1.0.0","eslint-plugin-cup":"1.0.0","eslint-plugin-flowtype":"2.43.0","eslint-plugin-import":"2.8.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.6.1","flow-bin":"0.65.0","fusion-core":"1.0.0","fusion-react-async":"1.0.1","fusion-tokens":"^1.0.1","prettier":"1.10.2","react":"16.2.0","react-dom":"16.2.0","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.1.7","apollo-client":"^2.2.3","apollo-link":"^1.1.0","apollo-link-http":"^1.3.3","graphql":"^0.13.0","js-cookie":"^2.2.0"},"gitHead":"04f10c4eec70f07dee4af450c52e234f5349f3bc","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-tQRkeyrepLELJzshIGYczNDo6v52MRuOWQet50+xPNCZ1iiPScfICw7uYdhC4A73+KMpO0t87ligF/jb7Kzw7A==","shasum":"3a3f1a617434fc665393264a0e34cadcea724724","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.0.1.tgz","fileCount":18,"unpackedSize":36843,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuWtkHw8rNC0gFNigpz9E3IPzGLU7Sf+q0YTB3o8/CbwIgb5hmE1A4fpVbZccldgO6XGa03tqxtiDnfKkBN22kM5s="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.0.1_1518462751142_0.578397749617158"},"_hasShrinkwrap":false},"1.0.2":{"name":"fusion-apollo-universal-client","version":"1.0.2","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.3","babel-preset-react":"6.24.1","create-universal-package":"3.4.1","eslint":"4.19.1","eslint-config-fusion":"1.0.1","eslint-plugin-cup":"1.0.0","eslint-plugin-flowtype":"2.46.3","eslint-plugin-import":"2.11.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.7.0","flow-bin":"0.71.0","fusion-apollo":"^1.0.3","fusion-core":"1.2.6","fusion-react-async":"1.2.2","fusion-tokens":"^1.0.3","prettier":"1.12.1","react":"16.3.2","react-apollo":"^2.1.4","react-dom":"16.3.2","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.1","apollo-client":"^2.3.1","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"1592201459631c17e6d8e8bdb1e5c9248dafd50c","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-/KHDuVqQiO9F+KFyTvuCVBBmOT+PrtrCTNswtCQAR4myW07mfKLpvosFBeeEdbdAyEowtrG+cpEWUfU1nycU8g==","shasum":"e9d3e6a421cb5e3d839a38046ccdbfefb8d0cadb","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.0.2.tgz","fileCount":18,"unpackedSize":41484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7qVrCRA9TVsSAnZWagAAhWcP/18GBBz8r3S0HnvpHr47\nwVhKsaRF8Sqa7JNvVPEIZ2eF0LjDR9PJFDx2Z0yLsMuIoLSy/pEOXs8Eq8Dt\n71jlsH57tmHW4YOaKTXoMsiEDxdzFS/8ZN3WBUKK2gWjT0SvvLVvmR9mP751\npajJhmpxD2qnZ7kGe0zXmuLQDqmYa5KzYaNj0C4QYiHZRpiFclMpySTzCdmK\npKztsA+d2niQTGXnz9XPzqtzj9XmyXMx6eNtn8abYS45goxw2aYM4cegDMWZ\ntgvqYJZOn8Bsq/uUobP5HYdgpIRmC0lU1JJEhadBDiODQov6pm4TxJD1bs4W\nKLDBsZD5LHyAyxPJObkMsQG0LPd5c1kUM0LhEKug3ljhRUSFU/ECKE1nuMme\nLjx0I4HLczgyXzQAFOYSpn2kkv3elA24JlSqUKa6NYwlAvkfkXGwaj/GOc8w\nZEEfMZqjt/GytcdJrleQeEFtDLjAtHYln42yxLJ0Fm0ekFaXtO/lXdcpxBNs\nOlh3njLAq1fyS45C46XdWO8u5hFFMUUhrmHMM+fi1jzt2LeCYAp/w/WoQwdT\nyNLSWFBDNUFnw9SwUZcXvWMYHDBu4KyE3GiWdQs7Bgf03+1R7fPuKZFUm2U8\nLnMrbINatdiRvELChuvucXd+HeRty9kcMlNxLoplesK4+jBkmotgPBRZEoVq\nlclY\r\n=xarJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGEgkoU1lDVZdsfRlGFFzrfyjP5odAlbUiW+MCI5XxRLAiEAt0zIJSheHlBCWMxgjY6/DxBzt9YyMWO72y9gJl2QjOM="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.0.2_1525589354300_0.15568885683246747"},"_hasShrinkwrap":false},"1.1.0-0":{"name":"fusion-apollo-universal-client","version":"1.1.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.3","babel-preset-react":"6.24.1","create-universal-package":"3.4.4","eslint":"4.19.1","eslint-config-fusion":"2.0.1","eslint-plugin-cup":"1.0.2","eslint-plugin-flowtype":"2.49.3","eslint-plugin-import":"2.12.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.10.0","flow-bin":"0.73.0","fusion-apollo":"^1.1.0-0","fusion-core":"1.3.1","fusion-react-async":"1.2.2","fusion-tokens":"^1.0.3","prettier":"1.13.5","react":"16.4.0","react-apollo":"^2.1.4","react-dom":"16.4.0","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.1","apollo-client":"^2.3.1","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"68dc5f88ba4fe4c8b3e1debf42f7d499370a758d","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n  * [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  * [Authorization](#authorization)\n* [API](#api)\n  * [Registration API](#registration-api)\n    * [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  * [Dependencies](#dependencies)\n    * [`FetchToken`](#fetchtoken)\n    * [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n* [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n\n### Usage with local server\nIf your app hosts the Apollo server a schema must be provided. \nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`. \n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema. \n\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n* `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n* `url: string` - Required. Path or URL to the resource you wish to fetch.\n* `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n* `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n* `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n---\n\n### Examples\n\n#### Using fusion-apollo-universal-client with fusion-plugin-csrf-protection\n\nWhen registering CSRFProtection to the FetchToken, it may be necessary to provide a non-CSRF protected implementation of the FetchToken to the client. You can use token aliasing to register a different service for the FetchToken for fusion-apollo-universal-client.\n\n```js\nimport {createToken} from 'fusion-core';\nconst FetchTokenPolyfill = createToken('FetchTokenPolyfill');\n\napp.register(FetchTokenPolyfill, require('node-fetch'));\napp\n  .register(ApolloClientToken, ApolloClient)\n  .alias(FetchToken, FetchTokenPolyfill);\n```\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.1.0-0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-G5p/41vSK5MrMbVRHvmpAVbtFVfoSKfQtkAwQtOl9g0bCK9evx5bZ/80+j1b5E7OSL1kea+SypqMcE/XX/QJlg==","shasum":"6e1ebe5ee47425db6ca8594785b482664ab90faa","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.1.0-0.tgz","fileCount":18,"unpackedSize":46773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbMpn4CRA9TVsSAnZWagAAXNoQAKF4VV1ByS32s0rr85xb\n/p0bdxDUdgMAfDg+Lg77t1t8FivVH1aOfJ8x/6RgJAn65th4YQildDS/EBRk\nVAgxHa7hsW7XzIyZhQFEeky2X2lGwcabyxkuczMAigaQLAQhBBSZSwA6AIom\nVzSU30EtnP4Vpo1oFFYGlueQFRij1WkFY6eSscJEqtQqqyjz7qkLEhBLW3gs\nomhJcyZEztB321TAlUXMnjsD+EE+PKyCVxzoh2t+yGxeLPZ4Ia6BiV8LNHvd\nBxQTnHHHvcgbILDM0DqL8D5AdjF+UGSDmYbTaShODyqFX+gfN7undJ+IH1Vy\nIVD/U1gtCedDkeSzY0JIgLPyX1V+zHUUadU+8GuJdWWbh6zqjC/+Y85wUpSe\n/fxIgpJHO8vOl4i/adZY7UZaUCAOwcdYMJF9Up6OFxfMhE3I5CX7ON0hzxr8\nvFXFPfErPgQCsay/bqJQMZ8v/QbcD1EpV1rppYotBA2/fNtDW7838RLL8MJC\nrqWVs6dD63UcSEOxImOFXjrZSABRUuBaEuCrTcCfhqGhth7CmKna3W1Mclr3\nqBrftRMSVAc7SDdGvSi2s0WNkrapxKECNIL8/vJMu3Ae5cdgbDftpXarRrof\n437eENK8q+LatPx5PbfSl4oVt7vo/40OJANEC9oexlvSJa8ZGfsTeIqlY+jt\nNcIT\r\n=8Vs3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8jXFyyIoryHrtCO501KFjhgnTjHw0Doi4PmNEX6mCUwIgCfZkBnA15ps/Gp3XoUzW1666M2my4/ABmcxp4b+/1fQ="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.1.0-0_1530042872139_0.6158782373369378"},"_hasShrinkwrap":false},"1.1.0":{"name":"fusion-apollo-universal-client","version":"1.1.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.5","babel-preset-react":"6.24.1","create-universal-package":"3.4.4","eslint":"5.0.1","eslint-config-fusion":"2.0.1","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.49.3","eslint-plugin-import":"2.13.0","eslint-plugin-prettier":"2.6.1","eslint-plugin-react":"7.10.0","flow-bin":"0.75.0","fusion-apollo":"^1.1.0","fusion-core":"1.4.1","fusion-react-async":"1.2.2","fusion-tokens":"^1.0.3","prettier":"1.13.7","react":"16.4.1","react-apollo":"^2.1.8","react-dom":"16.4.1","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.5","apollo-client":"^2.3.5","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"6817d2c7682472a0ca368652945b6e0e147e184c","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-CcuSacTyUyPBZH7PBeigvDHo9p/dy/M5+kJKuUdZKTr5xCOutQ6VXHRaO5Opdg++8mc3cU0lJmN/pQGt7unYXw==","shasum":"a6d7b0f1a1d4a98b08de99e411482784a2e86842","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.1.0.tgz","fileCount":18,"unpackedSize":46774,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOqc6CRA9TVsSAnZWagAAwq8QAIKtht5gL4TP3+mhfGPy\nk8Yb/XX5uQmmP0jQi5Dz0jtOmdF9xq38dac6PwAnO615dewHYBmi1MXq0xTh\nsFJ7s0i5a5tCUZbD9t2DwlUrdQzT6KBjmmiOWdRgQghdah2hqvJK394XipJK\n+DRaCJoIjlP4U7aFD3psKtzpkx/ftS3S/RhaeNHchfLaGNadZzKQUvlu38P5\n0m+PMyU9hG6HxH4aQfB0S8VeJcGV/iZ1+ILLFFxFjVZWoBi9/7iFuPWWFVou\nQADzzzoEPVSLACPrburGOyCIQw/7cBOjOc/VWRCzvJ9HIyx/19wvLl0jUWtl\nHa/CS+jBdueZsWz81dj3TqNw2gH5fjLKOVURU+zG5ronCqNcoY3QmaIk6nwg\nEb15kTmnOFPbkL2xHKpYouZg+fb0i5OBTvPUvUvFgByKOtaP0vxjfOOnouDY\n6/5ONjAQyCTvbKO14Yg25LfmrwTKc0+JggHCGl5bNmL1whb+ZpfGafGDxbNz\ns6gwAsg9XprO1L9Pf/Mzm8HcN64FZqD1eir2U/z2aH0C4jGslNT9a9SPTuD7\nN9jC8KkLEPVJlrnvyZ5Z128zzdZYENyMsBzpdLZoC3OPga7AzAmuqOcDhxq2\n36cPeXuGJcyyOyHMj38z7HdQTCtSkqQwAkGJrFYtZufKdxo2UMB8yc+d3GvO\nszd7\r\n=3kXI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFtCHv7wUsvkJKxv2aSbeuRD9HWLVNyKv1g7xTwA1lvgIgHmQpfa9GgIlywQzylCQGdgngUgmPgiRQuBiwyVnfbus="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.1.0_1530570553981_0.9393999273959006"},"_hasShrinkwrap":false},"1.2.0-0":{"name":"fusion-apollo-universal-client","version":"1.2.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.5","babel-preset-react":"6.24.1","create-universal-package":"3.4.4","eslint":"5.1.0","eslint-config-fusion":"2.0.1","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.13.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.10.0","flow-bin":"0.75.0","fusion-apollo":"^1.2.0-1","fusion-core":"1.4.1","fusion-react-async":"1.2.2","fusion-tokens":"^1.0.3","prettier":"1.13.7","react":"16.4.1","react-apollo":"^2.1.8","react-dom":"16.4.1","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.5","apollo-client":"^2.3.5","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"78339dda2d3147180ffcf1cbf0ed9984af88172c","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n  * [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  * [Authorization](#authorization)\n* [API](#api)\n  * [Registration API](#registration-api)\n    * [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  * [Dependencies](#dependencies)\n    * [`FetchToken`](#fetchtoken)\n    * [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n* [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n\n### Usage with local server\nIf your app hosts the Apollo server a schema must be provided. \nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`. \n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema. \n\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n* `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n* `url: string` - Required. Path or URL to the resource you wish to fetch.\n* `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n* `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n* `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n---\n\n### Examples\n\n#### Using fusion-apollo-universal-client with fusion-plugin-csrf-protection\n\nWhen registering CSRFProtection to the FetchToken, it may be necessary to provide a non-CSRF protected implementation of the FetchToken to the client. You can use token aliasing to register a different service for the FetchToken for fusion-apollo-universal-client.\n\n```js\nimport {createToken} from 'fusion-core';\nconst FetchTokenPolyfill = createToken('FetchTokenPolyfill');\n\napp.register(FetchTokenPolyfill, require('node-fetch'));\napp\n  .register(ApolloClientToken, ApolloClient)\n  .alias(FetchToken, FetchTokenPolyfill);\n```\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.2.0-0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-AUeMDO6x1/mwmktCJOYlTFz+mYL4o1gtHh+EaiDDhXkBTDxtsqfveKOKh+TYCV4oMzkfqEVQ08gz8nvcve0I9Q==","shasum":"710e6f4b1d78ac5eb31459441b3fdbc0193f82da","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.2.0-0.tgz","fileCount":18,"unpackedSize":50545,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSZsFCRA9TVsSAnZWagAAC74P/jxf4rvBpPHS0DNJuD86\nSw8wcWFbZDtky+vj41gINDxnzWFQnD3wTL4e2QPu8OZbVXXBPir3ejiU2ZfM\nMpFWxfJ5QMNQgyAS5Oy8B8QCZwwqy7302Lwb8ZxqZTDaufJQAeX/m4xgOBVs\nL+mgdryswYmEa6zkoO2Tlw8pR7xtsHtSA+zmFcl0ER8DH7Xjl0DS7eUnEhZC\nFRRLBLziO084U1+8x1qPw3m6DtzJ6ThSHop4GShacyl7omCERodOiT32tePW\nwSy+mzn7MnbPtClhK77vkeWM10oI7ZupYlEFEDPg72RYfPL7Rhvq0HTSrSU2\n4OPe6SQ837k2XVVgYZD0uzIb53tH+xjSHUa561/J0wYOrb9pLqK141leBxYy\nZyn3f2XiNquG1HV9Z/KT2LiWL6hNtyKrXp3vk8io41ZrBcq+6WC44iCpfNDo\ntkltRObH6v004YLDqvCJtHTby92esmtrKLQOhesdi/68dGvHtvVjB5dTi2JA\nuqaZ/Vj0Fj08eqEX5L6iOpxWc4emxKru1YPzyl/rIttNhLkk/xLinc+C8tpO\nwwDUUVAwvsjaX3UEje3zRKfkYXeq1tR52PI0TlrfWetoyVyw2csqvoOkkukW\nxk1AcFAtrTsinUMh1TBetxEUjyP29Dfm+eD5h6jaRuwA0UQAlut+3KUhtDif\nV9tT\r\n=dQ0d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3mRvVthJZHRKU4Ar4Q/Y+fySrrJ3/lbb19clFDA8mrAiBudmSl4LcKE5MObTEpO5CIvYiTjUWaxxocA184cX6ziA=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.2.0-0_1531550469849_0.10248500599812504"},"_hasShrinkwrap":false},"1.2.0":{"name":"fusion-apollo-universal-client","version":"1.2.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.5","babel-preset-react":"6.24.1","create-universal-package":"3.4.4","eslint":"5.1.0","eslint-config-fusion":"2.0.1","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.13.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.10.0","flow-bin":"0.75.0","fusion-apollo":"^1.2.0-1","fusion-core":"1.4.1","fusion-react-async":"1.2.2","fusion-tokens":"^1.0.3","prettier":"1.13.7","react":"16.4.1","react-apollo":"^2.1.8","react-dom":"16.4.1","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.5","apollo-client":"^2.3.5","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"2fb364877a6866d5ae4c75280733301fedba8502","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-mde40fWYnXBqu0BV8fWKyd2A6CzRt4Mml3l5eQS7c4jmTYkNw43Daw/ANhHGQnnesjPi/cw7GZTfvf3Fn9ymWA==","shasum":"e8645a80ddb6330c2e2e8a911a0b387a4a92a76b","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.2.0.tgz","fileCount":18,"unpackedSize":50543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWlosCRA9TVsSAnZWagAA/MEP/iRBnjUBlopz1UldDZAT\n0lNdxCJDjMZsg0y6uMKme603TwLeDgaRGCpdZeiYiIJS6rgwHVqUnkRDabGF\nnEh4xWrKmP5YYaquOcpqYbiaQkNzO9N2yN4gslkDsRUeb0ItGU1kGuu0WCtE\nHOO1FwjKlRjARJOO2NRWkn5kxMYFTG1PQ0ZBgk6ftdr2R1cJzqkvsAGMQ0eX\nZP5mTZlRmv6PLpARZEGONCeGn0YeJ1niei0agtTrVJMdCDvysW/xijgxc+WU\npx892HBMVh1Hdld+vAVJ4HNgjZaKNiHPEYUGyBKRUYinYIydzqwhMAyHS/Km\nc+G8mzx6tEXTpFEfSJH8bmi1WfDklzPF1lmaUMJjD+hofukyzi6k1TUkYJk+\nWxA6MXWR5DYsRrN5h6wjeXbVA/LEdvx2eQa/yupAfB1R7kbaNNdBYEUUJeBH\nmiwMsH1lN6jkAPqr411re3aB+Lz6b22Y+TfCzWPS/koIx9Q1efpzjEe1j2aC\n7T2jVPnrY23r+gXoCbu1IGb1/Ps3sLj7derJnRs9MqB4C6BuMMIGwL+tCvGJ\n11o7egEJ7YBq1Oiw4osez5hnGt9prjWtRfivj5RfcNSBensPX8fgtAcFBG7H\nLhq4I20Al3pbOzXaWgcFRZjWsKgLl4ySmA6h32eivWLDpbRJ5FShjnvBjlLl\nBXBY\r\n=CrQh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF79KyFnzuuarTeu0+LYX8uFL0jP1d2D9zu+4wG3edZyAiBhZIJ+lOekCuPlPreRMTGAxCYhcxhkVcidShZVQNlLAg=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.2.0_1532647980069_0.7085497838873132"},"_hasShrinkwrap":false},"1.3.0-0":{"name":"fusion-apollo-universal-client","version":"1.3.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.6","babel-preset-react":"6.24.1","create-universal-package":"3.4.4","eslint":"5.2.0","eslint-config-fusion":"3.0.1","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.13.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.10.0","flow-bin":"0.77.0","fusion-apollo":"^1.2.0","fusion-core":"1.4.1","fusion-react-async":"1.2.3","fusion-tokens":"^1.0.4","prettier":"1.13.7","react":"16.4.1","react-apollo":"^2.1.9","react-dom":"16.4.1","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","fusion-react-async":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.6","apollo-client":"^2.3.7","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"93bbf48f51feb427b14448abbf1d9f6f269fea2d","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n---\n\n### Examples\n\n#### Using fusion-apollo-universal-client with fusion-plugin-csrf-protection\n\nWhen registering CSRFProtection to the FetchToken, it may be necessary to provide a non-CSRF protected implementation of the FetchToken to the client. You can use token aliasing to register a different service for the FetchToken for fusion-apollo-universal-client.\n\n```js\nimport {createToken} from 'fusion-core';\nconst FetchTokenPolyfill = createToken('FetchTokenPolyfill');\n\napp.register(FetchTokenPolyfill, require('node-fetch'));\napp\n  .register(ApolloClientToken, ApolloClient)\n  .alias(FetchToken, FetchTokenPolyfill);\n```\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.3.0-0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-0XqYr1AR68w+hXSWInWm5LoEWHFlQbyvdATPPX++GZuwK8VQL3Wu7+R7j0nIVxssIvcKZ1ApiL8H7c4o/EfrnA==","shasum":"2c8aeec501eea292009b962fbb70bd49a40cc275","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.3.0-0.tgz","fileCount":18,"unpackedSize":55915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbW1DGCRA9TVsSAnZWagAApDkP/jRUEPfWWeWvvzfSsp7O\nwa6OnzMYqe24YG8EMeXu2PqSDqGhjTY2VGfptW4jFgbHHlROdNfSRoFR/2Ap\n9+eIYi50iZJuP1rljcbsbfNV7dh90CAxw19A01A9etGHN/bG0YckVXscXBBn\nGWdP0uIG46vuDobxR+SlKqVKwXtP3+2nmiyavGo2c1EfrAaDclcuQjEeo5bO\nhamp7ZOcFVUeBzHe3NsCJMJDHIUasYaEIXqgRabH7VOhFrbEy0iE2JkdPfSb\noOamg81MnFia3amm2GJKj4zOM294v/Qo/y/JeTnQt5o6rrdBEoA0+se2hkoY\n4MPUEAi10jCJ37/oIlFaHxblRi6AUaVKS9RfJT8SJZ3VdtsDILHyKUtg31X+\nDoXbo8Ic6eBXlWKcFd/kcjms+qjOG9kNU8nLhtBirDX70onfRpyZo1UjUKq/\nRiEx3mNlZMxKKaJjV9wJzdCwZuTdbOv55ApPz530eZRQpLKiCs26txVkAIWF\n7jv/NI6rjvk5PbcLHdmOUUdO61w7VI8MLvXxjuFl94CsWZKStozOn7OYmr5k\n91/BWicRzcqsIhx6xELwtK2Rq/v3wako8qs42vcruODXuwKZJG1qjp5GRrsn\n08TaqN4MUznONHg+MiqGXyoLras7cY4zLpeOxIAoKpWuA2DIuImI53aLBroy\n3J3r\r\n=8frX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAmPgdJRXKRMR0nYchdgsh4UR3ksPA14O7Fao0x4lnTQIgGFZS9iEr0SAlMTGC1pMVv186jV4ogw9SP+9u8LUsvSc="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.3.0-0_1532711110693_0.637569341954374"},"_hasShrinkwrap":false},"1.3.0":{"name":"fusion-apollo-universal-client","version":"1.3.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.6","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","eslint":"5.3.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.11.0","flow-bin":"0.77.0","fusion-apollo":"^1.2.1-0","fusion-core":"1.4.1","fusion-tokens":"^1.0.4","prettier":"1.14.0","react":"16.4.2","react-apollo":"^2.1.9","react-dom":"16.4.2","tape-cup":"4.7.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.6","apollo-client":"^2.3.7","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"826f2edf6f981c81ecc6cc6b417dc0ac7c3aa5c5","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-ncQHzk+eD0OXz+QxwiU3wMn1F1ewwnbiYo2At4kbKQGm+BvzN4J42i+dvbTLnoZ+CP9t4MpZgzyXWewrWaslxw==","shasum":"260ff054df3487514e39d65dfd80446bcd11418f","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.3.0.tgz","fileCount":18,"unpackedSize":57927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbe7BCCRA9TVsSAnZWagAAskoP/1BHVe3Gcu9UP1heit80\nOgPEDIYfHFc7oamrXWu++uIQBhF4Pv+f0sX0MpxtoS7YzgiRLzrQhTwTyi4P\n7PtVwvxgD/IxjV5Iw8a7o9IY+XPXnhU0KNV3LET0bKYBEVGldKpUeScCuW51\nctGkVtUWc65e3FtTMAhVrhSBvPe9SFSG2WpaM8yX3RggV+xE+4axN2MQgcs9\ncFZfScr2om74RKDrK/TCYvrddcHSOgcZHe1sljH6vTU3aKm84F1W46lPxQit\nUL/C635mVVnLcfSrZMtolqF4ZYCjZFOAbs6jYiQpJUxBQle0RLQoa3gr+mWC\nshuu364oX2aWDq/YFNEn0Epcrf3SDmiLY/FK/B2b/Ey7Iu9lWIO1DwSXrK6W\nquPj6JbGUi6w4NEM90G4xOSRtL/SVRv7JsmC9zlqM3GLIYwX2j40Jd7CFiv6\n6zn5mif9M2fq5w7+3aqWPU2cO2umo1XUFxBncLiV0yMQpg7eOL8nxXiM2D0b\nxuznkatRQ9wKLKt0w73Vdded+8rpmi0Je58KkEg5t52WmBaDlo4G0Pl/Mtlu\n9F8HNU/c6BfwWhpJ/QPt0hOi4a+EF9EJsSgqXOEedk18fqmYf2CLRRuPb3e1\nXPmW6PuH/FB9fwmrjviKhSoxIhxTURaoextlNTjQ3mwOKB0oqnISTcBqy9Z5\n3vm1\r\n=geHj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFGOyDWxekP0i790VGjLTInGetjx7kGMrMylledyrrcAiBNmGSca4PKcYNaNSlJC1pzkJvVoEze6/GmJ0cVdX1B3g=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.3.0_1534832706029_0.4193154876462921"},"_hasShrinkwrap":false},"1.4.0-0":{"name":"fusion-apollo-universal-client","version":"1.4.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","files":["dist","src"],"browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.6","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","eslint":"5.3.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.11.0","flow-bin":"0.79.1","fusion-apollo":"^1.2.1","fusion-core":"1.4.1","fusion-test-utils":"^1.2.2","fusion-tokens":"^1.0.4","prettier":"1.14.0","react":"16.4.2","react-apollo":"^2.1.9","react-dom":"16.4.2","tape-cup":"4.7.1","unfetch":"^3.1.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.6","apollo-client":"^2.3.7","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"98fe4f6ca316c055daa12fcbe1b664e2190cd3c5","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`ApolloClientLinkToken`](#ApolloClientLinkToken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `ApolloClientLinkToken`\n\n```js\nimport {ApolloClientLinkToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides an [ApolloLink](https://www.apollographql.com/docs/link/composition.html) implementation which is composed with the default ApolloLink.\n\n###### Type\n\n- `(operation: any, forward: any) => any` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.0-0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-T/n5xLlcJ9UZUzaDcORQzq/yikE7wjW8GGtYRpEuu6TK9JTdtbchhUDtOaxE+MKXmPS9LBhRTmHQQHVTVSvYOA==","shasum":"f6fea00d468ae5b9a76a527e2f4158a76d1805d8","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.0-0.tgz","fileCount":19,"unpackedSize":65264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbgD5jCRA9TVsSAnZWagAAHPoQAI2FDKEcQAH6jfRQ/GoJ\nGywUCINMYrnkGWAosPjKE+Ysj36H4lnuP5R2e24AcZXbHax2Gw0n6hfWV4vA\nliy2znfC9UcmVsDao07FIo474SOMpwcqKOBgoXvTmM+YdLYsPnx35FLUAV+e\nBYm8yh5IDb522HjAQWJ/uRSy2fHxpS1uc+RE3wD+S/cPXLH3fNpEw5/4wUCB\n/D4jqxICsoaGiDR2Z6yRZmcgcOuNhIaldvhMQiIEHSn3xflurjehbpcUKcjn\nJM2LokLcsru/MkSARLALqHfKlqXhuWkxoNV2PloRIoHjPmquCi8BAcFsTvwz\nO8iOVO5NQNcyi5ihSWVIPwq0SuQGlWz8sJwke61EagJmBjFw4Hs9O5wTFupW\nzGFWIv3iHUSsIMomc/uI3261/G2yCP6ufFBpnbZGGOTnyvnyVWb7mUpRoEUX\njRXjfiMiAhNmGcO23qJPZlFyiPVplOw+HYA7wOvOcqvAbAeLVctg3sTcBoXt\nN3qLr0BmVZ2jwyAC91kKWnrw62KxqUC/TYW9QPUmaph6PPLF8lNhSPrUH89C\n/PQDjU4C+fWiwyZQCRW51PIe85rmBRTjrXkQCGtmmS4VASR3VA8D34qnjgTq\n87BDB5f89AeN6lGnww1O1q09hxyzAsbCw66NH1g2is5PuMf5KT2cyZNsaGD4\n7hSq\r\n=c9Hh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe/GY6J9EYrSwE8WkTtY68SaHNB1ebWgTKJ+LwQ5VAfwIhAMHGosRnpasnX3Bi4KhX0CqmXUDEzbr3SttvM8o6obA9"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.0-0_1535131235069_0.8436604620084687"},"_hasShrinkwrap":false},"1.4.0-1":{"name":"fusion-apollo-universal-client","version":"1.4.0-1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.6","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","eslint":"5.3.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.11.0","flow-bin":"0.79.1","fusion-apollo":"^v1.3.0-0","fusion-core":"1.4.1","fusion-test-utils":"^1.2.2","fusion-tokens":"^1.0.4","prettier":"1.14.0","react":"16.4.2","react-apollo":"^2.1.9","react-dom":"16.4.2","tape-cup":"4.7.1","unfetch":"^3.1.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.6","apollo-client":"^2.3.7","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"35edca9210af3815a4b179ce41125a51abfa9137","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`ApolloClientCacheToken`](#apolloclientcachetoken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `ApolloClientCacheToken`\n\n```js\nimport {ApolloClientCacheToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `mixed` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-tokens';\n```\n\n(Optional) A configuration value that provides an [ApolloLink](https://www.apollographql.com/docs/link/composition.html) implementation which is composed with the default ApolloLink.\n\n###### Type\n\n- `(operation: any, forward: any) => any` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.0-1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-FVqgf8zrMaA6n0H8RbwK74QbXH259prP0jUcxI6C6+Z9gmiFQR6gvkrHwA/8UCCzt0UUZdmAdT8nTMQ0vH6iKw==","shasum":"5da8caf9e8d58db4d616517f6740503bdb20da78","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.0-1.tgz","fileCount":19,"unpackedSize":73496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjMv0CRA9TVsSAnZWagAAua0P/A+lsMa3XmTT8hOFaayZ\nG4iopV0SDndTVkEMBD3FBqrdvs5A6BjKO6n90pt2Wr5Hz8m6dfXj6j9Aqn0C\nezIb4Ol7OOhr0Qw8LuWCgki9xd2dCIlpiQ3zLPXd7/TkYQ92LK1nJdb/ykRa\nJJJw2o48+BL5+w/9RiaEKk5HLii2sJvBwyJGjOTncLw6agGAiqazGTVnoyWd\nhPaPHxZPIKQMQyxNHYiJBsMltpRLkVObi1mp7Xs7dKkP4dbSV+arUc+rcaVj\ngx8KiNPxgCzmfXP/ieK4HKFyDRhr+W5tHC2ia177Mtq8h5kIvwjO6ESKWDUV\n284bc0PYiHFO5j/e6PLFXBl0fwyHIczgXX/96f+XxyQU3wybc0OC+bughewx\nmE7NzPb6lD/rhLU7u1TVmUOJIHHHkC8+cpfgRs6M0BfFvj0ye/yBP1MFaSRx\naMQt8DSzZNrsAGJ9iBInEC4zZItrzWFX8r/mvP5OW7o4x7BIScumaNjbXFxq\nAgiE1vHBWuwXLQ3tkAdZsoprq2PpQj59NKeydeAhbnQNWyQFhJT1iOb6/hjj\nGIYzEq7VhM7MF6ftkIWq7gkiYE8TYn0X1x0oaA0gBX3ER/4lGwi+NmlZZNv3\nQOzJr3HJJ/3jKcLTzgnj1YirLmgW1Vb0w2uKi+Lu+SbsdkeDia7AAcamXqNi\nRIpV\r\n=IaD8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK3GWs7k5lCZ/9KFLU6DvGCgCIOlzfR8+b4ts8nM6jMwIgbUKv6nmTGR+I/xGAFXQAE7CeT3AM3MIdinBcUFbxd4M="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.0-1_1535953907193_0.6085161292360708"},"_hasShrinkwrap":false},"1.4.0":{"name":"fusion-apollo-universal-client","version":"1.4.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.6","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","eslint":"5.3.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.11.0","flow-bin":"0.79.1","fusion-apollo":"^v1.3.0-0","fusion-core":"1.4.1","fusion-test-utils":"^1.2.2","fusion-tokens":"^1.0.4","prettier":"1.14.0","react":"16.4.2","react-apollo":"^2.1.9","react-dom":"16.4.2","tape-cup":"4.7.1","unfetch":"^3.1.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.6","apollo-client":"^2.3.7","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"899b17c176195e933a2177edaf588cb5dd483437","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-pqsQtj+FmVAdD23StLDwRTRuFPe/K/8aSh+a/GkVm0ZUHK8DUVJ3pkZWf6+FS1IZ10fZVeq4I3bnEVdkHVkxVQ==","shasum":"7f24c106ee156aa2290249726acbd89cb30ddb3a","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.0.tgz","fileCount":19,"unpackedSize":74537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkBWtCRA9TVsSAnZWagAAlXgQAKRbAfCu2Ex8AOYiaGBB\nscgMvRkI/kGxJDCOo4rIJVaJQ+HVDvyhmJxmq/ABXoG9IaKUy3ZRUddUBS56\nqqsvxFpQfu9XPn3X0j/vep/OMBKsebPcqPEGFbLZmxW0Qpl2mG/eY5w35VHU\na44yn0PQOX+XPG+BSsgFEDnJA9aaf4hMh5G1txJpFOXAN2VnHpXuYmiC2VFa\nNeYTyfexU6R97pfYuHZ8n1VKx5Pq0gxTWdrsvDYquAKW+Rr9MUeB2a6Uw768\ngTtnHSzRAmLKpPdr8zFOp1mLP4bkU6QRWk+7HHvzhjKC+ny8oCG+p/5d45Z2\n+F29yY1cf3Vut5PGbGIUeWEFTBKvNUXMyQ+fPsxYDbZB5zFtMuZZfVe/fHuW\nN9aVNJYb5vSAskFMgzyhs9afQKUlojjR8xsxeR6SFBi8QtgkdGUCz4ydD3tL\nhTwhlri4vxwiGCx6b2bKEfE4TrSJBe2LPzDscLxKwrpEuQsngRhjKVnoIy8V\nS1R9ik+p3ip1vfeH+kdCqC3ZAG0ziAPIfwC7RCTdbSfp/LI3cJBTCERtTcjr\nw3/b9gJw+/d3Xjm5BBA9GrjIggFGCAVuWEdcZa2QdhWZG/2doiCFgd5oRSPL\nVptt6jtxiem+ZHmghB67Ff9l9dSA3NUuBSp2PahlBLsYROWh1442vyK92HRG\nohfu\r\n=jbPc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCo2qNistHKZ1+ak+xyO7/Tpg2tUlU4jBjuO/oEQfJPgAIhAN7z7j8QG2PV8m2n68IBADgRO/saIbbgpGpWbHpz2N/K"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.0_1536169389281_0.8978869746643867"},"_hasShrinkwrap":false},"1.4.1":{"name":"fusion-apollo-universal-client","version":"1.4.1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"8.2.6","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","eslint":"5.3.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-prettier":"2.6.2","eslint-plugin-react":"7.11.0","flow-bin":"0.79.1","fusion-apollo":"^v1.3.0-0","fusion-core":"1.4.1","fusion-test-utils":"^1.2.2","fusion-tokens":"^1.0.4","prettier":"1.14.0","react":"16.4.2","react-apollo":"^2.1.9","react-dom":"16.4.2","tape-cup":"4.7.1","unfetch":"^3.1.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.6","apollo-client":"^2.3.7","apollo-link":"^1.2.2","apollo-link-http":"^1.5.4","apollo-link-schema":"^1.1.0","graphql":"^0.13.2","js-cookie":"^2.2.0"},"gitHead":"c092db646dab2a518595ccc5a7d4258ce070fdc5","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-CTrwj51IKRT8bwYrxfrZVHwMFTosJfmN3bb3+pDIxYG9HJ1tDGXFJRAjobcpgaAuX8j9zmUjBZlJiUXFaiyGQQ==","shasum":"5f1e36545ca9b23ef8d7a943e75b259d994b36e4","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.1.tgz","fileCount":19,"unpackedSize":75616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboEUGCRA9TVsSAnZWagAAGA0P/2W45EqV6ER/5VuXbkm4\nFK0zO3YfCzH+Vobg2xIlhAaSIbJptVkgqSzgcG3DFX+kMQ6ux0zvcouO4ADn\npq+2kCoE5KC31BS3IXmN/B4AGL9rjJHUqYIu2FcGrO/452k5u1Ksar6GA683\nW3A/yyhzkwAHZdJS9YUE/pIiE2aL+WW8tdljQgKLmSz2tCtb0x98Jk0jm9Bc\nTEjCGdEgfDAaDoeEjBBmWZyXuHWF82uPu9xeceBY1shpjE7a4ZRdoqhzKz+f\njZHNt8IEQ7iQEAltwMshDPcca8PGEURaTkG3yU/kr7YI/in/pYEc40BTWj7I\n25R4rRW7emA3D2pdWeEREdvI9udJr/SKGodGkPetbiSI5oHHWpgO6U/nM3qq\nycgLRKtwN+/J1s2LTGs6AuwraJufgxXwH4q8k1IaY0wpgOnQ8A1566QR7/+L\np1zXUjpuXbhcfAt9q7r82BwGQz78wIZiZJlT8fMkKx+C+OX/ojIPk9yyPQvm\nj7OTdTDfeJ4RdzeY6NG3hOAhMMDYdMSr4gTmI/l37tI7YwZIqBYJ6A1G/pbL\nvM3bqpLND5bbuqPIPlwg+mdKihfnoWGEizYhF6GNBxAPmy6vWI7yY8I6jHt2\nKEPHowGAeRZ5aijpbM/n+JNdWnB5Hm339VXB1ohJryd0hM/VEqAh2lhYWkcM\nkZ+v\r\n=9HKF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP9NruE6AWAdXML5j3B6NV4aPlLf8Albr9RDrLeJlT9wIhAMrucUElaYgDeFIbdoJYlUyPSNjkfobCdiPAGjy5Qzk1"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.1_1537230086045_0.313107840451476"},"_hasShrinkwrap":false},"1.4.2":{"name":"fusion-apollo-universal-client","version":"1.4.2","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","eslint":"5.6.1","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"2.50.3","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.24.1","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.83.0","fusion-apollo":"^1.3.0","fusion-core":"1.7.0","fusion-test-utils":"^1.2.3","fusion-tokens":"^1.1.0","prettier":"1.14.3","react":"16.5.2","react-apollo":"^2.2.4","react-dom":"16.5.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","build-test":"rm -rf dist-tests && cup build-tests","just-test":"unitest --browser=dist-tests/browser.js --node=dist-tests/node.js","test":"npm run build-test && npm run just-test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.2.10","apollo-client":"^2.4.2","apollo-link":"^1.2.3","apollo-link-http":"^1.5.5","apollo-link-schema":"^1.1.1","graphql":"^14.0.2","js-cookie":"^2.2.0"},"gitHead":"3b1ec7963e0aaa1c243877cc3f9f184fdfba54e6","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-g+OFUOUBU8pd1Kz+OUBJBy8LPjY84YHwc17fMaDHue7Sc60x4y5qMiM2qSxUCopgiBmlNrSqMTg5+g9BrF7PKw==","shasum":"aa6747bff0bccf2691b0979dc62d489297211fb7","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.2.tgz","fileCount":19,"unpackedSize":76425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxS83CRA9TVsSAnZWagAA2qcP/i6YPvVb0BlptwNeEBxw\ntS9uzH97NCVCx3n1hbQ7XcmtdUGx2VLXYB4HVGeC0eVBhGOaGEi+b2aESkL2\nNiYg0VBsL8JH9VJA0GGzYy9IneLuWn9PkutKc4pBdZI7gaNBdH8hVjXlfjb8\ngkbes2vU5vs2G2jKN5cJqDIJQCQURmO/kWlypwCd9gOs1XtN5apkmcUttUoL\nD36fdnKCGw1fyogHtwVkVxFclUZMsf6fLYmnSw2Tlu1watb5IoNvxzplgrRS\nSyA3/d9KxH8GCYeq9cEojfMeVB72YFO6UOLxkbqe0pSgOXU1lB2QHt4s1pAp\nBVJAeXEbkhKsoeXXSg8CqJBpyRc0CQvEokZr84/FRGBnWYlfZXct+5W6Cned\nD37QCYdtOjfTy6plcED/9iF51dHiW1vR/0KY7N/68rkS81BBK/iw8BF5FpXD\nBv602XDv2bqlO4GwklLZwoKtoW6syNObCwSdo+EaGAaTTUix4hCZE3mbRUuc\nBmaz6o5reVSXDwDGCmpRBYz1V+pI7IRqpddzI17dSC5r7ljDwCkeyZCqgsFq\nfCtWTwNsyAMmDRpSxjhxKyoi/DEdzjXntaoIURFYD/9amFh2+If1qaGlHpUR\nJ/lRt7n1DNlEinIX81BlnP/qME4czvGf/lo7edsz92s7Ttzl7cj3DbMjmSq8\nVsuW\r\n=Emr1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/pg3aW64vddCRSj2aqvCRyOLTGQcnR43T46PdURS1sgIhAKly34ILrLV3scwIL/ub1sqrKxAK7VREl6SGfmqep0vp"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.2_1539649334411_0.4239933347891449"},"_hasShrinkwrap":false},"1.4.3":{"name":"fusion-apollo-universal-client","version":"1.4.3","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.8.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.1.4","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^21.26.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.84.0","fusion-apollo":"^1.4.0","fusion-cli":"^1.12.1","fusion-core":"1.8.0","fusion-plugin-apollo-server":"^1.1.1","fusion-plugin-react-router":"^1.4.0","fusion-test-utils":"^1.2.3","fusion-tokens":"^1.1.0","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.14.3","puppeteer":"^1.9.0","react":"16.6.0","react-apollo":"^2.2.4","react-dom":"16.6.0","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.7","apollo-client":"^2.4.4","apollo-link":"^1.2.3","apollo-link-http":"^1.5.5","apollo-link-schema":"^1.1.1","graphql":"^14.0.2","js-cookie":"^2.2.0"},"gitHead":"da303f2d54bc7bdb05c4b38680d713a5e426df60","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-yheQukiD6jt96V1gYgeysqgmK8QcNg2rJXh4R9XQRrgxDgzgHfmeygQlvfz4mQwcL5d4VUBKOw47svSvZLgOUA==","shasum":"c7131143c9fea124139f3e2385ee2365b7f7b694","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.3.tgz","fileCount":20,"unpackedSize":77845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6n2nCRA9TVsSAnZWagAAquIP/RqRkOD3+LXFfJsnihov\nJNYAUfeiFTtVhZDUKrrrTWwE+baqEDR8YqWyL6FAbWLpqK0OsuwQf50ASgqs\nJOn3UTVtbHVjDKVNrh1kM3b91vPqi1JML5nIPGgiKlkM++fKSWYsKXkKXpq1\n4ZeARADk9BM12xsnlV1mncFOI70u5RIw3/dauNTPB8cWcuBE0cPZmLJADBMc\nC8KUov5/rUPks3/CSQ9KeGYE3WFmeWMnF/ElFcRZ1yzfW5LEEIs47WHXp1gX\nw4Iovfx+TOXzSdO1pr/zF8yuGnl3nxsx6rZ58qhiiJbG+0/XOSeCj575BhO+\nN7rbOdEqgub6aK6vwLgPIVRgP4dXv1KsVG55x+uh0h9O3OzfCIPdajJQNO71\nDT6Wgf6fnT3JT2I8QUJNoaU9ZXQR9IQBBgV/0mkOwkcuBbDKTKUJ8hDPT7KO\nOwxUifEhG9cIcmyYrEuiKW1HduIWm9fUsSwbonUfpQdH9vf0YEHQe9qF0+ai\nwzDT7qNCL77FswDOrKWEuZfXC7LNsdKX0XXeHOPBUqaXBZu+NB9lyFCbHw40\n7eI2TEJ0CIz5RUa7FA9htRP9hLrTjRtklxAPQt2N7jkk/kvWbSSDKoWaUh77\nQPHi7o8K/e26A8g7qyS9NpeRWRaJKPJBjjJaujcOLV6hq6cDzfXFKFhWNgEU\n68w8\r\n=Q9IN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLWpO5OQ3n7aly8Qk8GyhSow6sHPiPf3wq7GCmziVaAAiEAlU7n5jCFz/HYsOPdqfQm1Nw+cMPmpZWxfKszyvIIdEU="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.3_1542094247028_0.7988871433935194"},"_hasShrinkwrap":false},"1.4.4":{"name":"fusion-apollo-universal-client","version":"1.4.4","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.9.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.0.0","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.86.0","fusion-apollo":"^1.5.0","fusion-cli":"^1.12.1","fusion-core":"1.10.0","fusion-plugin-apollo-server":"^1.1.2-0","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.2.4","fusion-tokens":"^1.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.2","puppeteer":"^1.10.0","react":"16.6.3","react-apollo":"^2.3.1","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.10","apollo-client":"^2.4.6","apollo-link":"^1.2.3","apollo-link-http":"^1.5.5","apollo-link-schema":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","js-cookie":"^2.2.0"},"gitHead":"6375ee75297d1ed0daa14c5c41800aa4f88d2a9e","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@1.4.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-nyhj2V2maSEGzjRoANuvuyzjv2hBQ1AdZthQRn9HzJVougd9pp25v5LTIccjg7E8F4vDwj3lCBe21h+OcEtFww==","shasum":"9e59f1b8ee8986dd3fc8e2b427bdf1d994bab6bf","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-1.4.4.tgz","fileCount":20,"unpackedSize":82178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9cVGCRA9TVsSAnZWagAAR9oQAIUSF5AWjrV7I8nWJ+ni\n9wYC/0bzKbvtIPjCRwYwnG1+H8HZsoguVSLQJ4ImASqZ+xfFV2jxlMMQ50ze\nEgVUhijWRfc1RqIyY300x509ELMFurcpiKybhh3CCAlZsryUjWKMoOM+ve0t\n8zHY6QTPpo/maYFblUNHMOaJv67yXM+d1m+0v1o3vAA4DvCU3kxmFhdRP3Kl\n8PatioqqJjOZV9CaGnyno+Tsz+z4yfv1fISv9Q0KamR4YftFWHA4vhH8ujlq\nDC/+qtVac6T4nOIJGmi2nAw6My1vmHzN3vYovAmJLYFaQ3wLa3NxgiR2gW+9\nkHyBu2DuDjXubahQvPgMHwd8LdBlXWv4AUYruBUg2sPx+u9w2DwxzWSVkaqT\neeLPr7FssW/69oEq3a+o7TEr5k/03I1CaDIQ+KTmDW9IPI6EuTP7qZ48KdWM\nRkpjsAdzw2ZkdBQzy/ktvKct6n8Q07ZoDaB1AApw/5eE3AkXBODgrDjwS7z5\n2pAw7aZLZNYEXhCRAyMRGtsBoFkDsh651TyMiVKPgxOHeli3kTj73DzfyseP\nu6pxsC2S00QJYEBLqtJu4l3uznF1qiacQsmgdeGlpz5tivdpewOcA+XbMOvf\naHUsgxmVDAZb8y8bnDyuRgCqu7ypvWUu22MWv2ClNW70f/4TYeDTjMv3/c42\nkdaG\r\n=o2EB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDuVVFB9GkM38tHUeMq8//WYE5J19wqKZgUWLaAUhV87AiEAmrAcbHqsYvwaLB5ff8jjxtk1eGwEqOyFYzRD3l2CtKQ="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_1.4.4_1542833477684_0.26140107935530077"},"_hasShrinkwrap":false},"2.0.0-0":{"name":"fusion-apollo-universal-client","version":"2.0.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.9.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.0.0","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.86.0","fusion-apollo":"^1.5.0","fusion-cli":"^1.12.1","fusion-core":"1.10.0","fusion-plugin-apollo-server":"^1.1.2-0","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.2.4","fusion-tokens":"^1.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.2","puppeteer":"^1.10.0","react":"16.6.3","react-apollo":"^2.3.1","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.10","apollo-client":"^2.4.6","apollo-link":"^1.2.3","apollo-link-http":"^1.5.5","apollo-link-schema":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","js-cookie":"^2.2.0"},"gitHead":"60d5be8f7a3ab1e66e63e87c28523881bd323be0","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.0.0-0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-IyCEfE1yA1jwo47oy8M2uewRWkYSxZKu9N9gq4D6UaPZ6IQ4/2+3m3D2zxKohP7Ua/ybphW/KQUYdsDsCJwgJw==","shasum":"87c7230a37467661347ce03553b66606826070e4","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.0.0-0.tgz","fileCount":20,"unpackedSize":89737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9cYcCRA9TVsSAnZWagAAAOYP/A0R4LyDKnav240Ng296\n1Wgr+x3Ob77D5WTKe5jTeAKLQe6DmW9cnQYXGlr46IW0uRMONVGQCWF+Chbb\nfbfmoEQJlQJHLom2Z8f7Vr3Z4ZPynj2xZh69WouqEaGqUAU1jG/DN9Nw8TF3\nzW5MzWUrEmPo6mjRFvbvHlBfxLmm75hBKX+UCb/i9CQVAwyZYl51ZB4bO9wJ\nO1vMCS7sjtDiNVFsRO074UyfoSxdsadx9JOo4NuB8UMmSEcQZmzJLRYAKtoH\nVXx9PTwlkze3ZJLswUa3NxzVX9lpTFaF3XbVCVqiz7JeAYgFpCY6AMiBz9Bj\nXObrosi7gLLXFK7jvZFdUrSsSL9iHRBxPd/PwlT+qtzSrn9LBbv/UMoA2sum\nMCSWLWw5LkKI5TLV8apoGhfp4HEYaHHyjMa0B1Q5tm+lfDnddTWlPnB1zQAk\nniwo7iykV1PzEAQdXTIdX4hGVkLdsR/gtie7+h8vmFnAV4R5aYTb8jG9G7ZZ\n1KRpskWApQOOx9srzQX34Hf5wmwt5w3qzwIL9JOygny7/qqK+TcZM1oaO9sL\n2PZ3ChMNFTJQwiOOYFlQ7YRwUV6heYJo40/bgxRcMuBSKzbH1lqHZtiSNPM8\n2qHr+y5haCnRwpTRJN792QHaVB+RXqK0u6jI6cSK0l9UltaEZH14x+wvXe+y\nyxbM\r\n=w/Dl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyI8yC1Jv6T4RIgsiY02DfsAVZOchVyULbLCWctVE80AiEA7WpRvaUM6h5CjfBMVMUOCvbzlwtGB7MquaHO05euzYM="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.0.0-0_1542833691813_0.17886784358317853"},"_hasShrinkwrap":false},"2.0.0":{"name":"fusion-apollo-universal-client","version":"2.0.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.9.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.0.0","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.86.0","fusion-apollo":"^1.5.0","fusion-cli":"^1.12.1","fusion-core":"1.10.0","fusion-plugin-apollo-server":"^1.1.2-0","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.2.4","fusion-tokens":"^1.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.2","puppeteer":"^1.10.0","react":"16.6.3","react-apollo":"^2.3.1","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.10","apollo-client":"^2.4.6","apollo-link":"^1.2.3","apollo-link-http":"^1.5.5","apollo-link-schema":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","js-cookie":"^2.2.0"},"gitHead":"442439440563d3252bf94cf04ef73f4b423394a7","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-upfQhJv7qFSj4rMq+YSUKuMJD5ZVwxOhIrcLs45VNqsiCTW7Ok/rrYPb7l76VXTacS6b49VhE3gnkbNK24YCPw==","shasum":"41bbc5ada4ad71f7fc3cbc47b2fd68d13d70ad08","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.0.0.tgz","fileCount":20,"unpackedSize":89735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/JvrCRA9TVsSAnZWagAARQcP/2FpfTBQnk4Va5uRrqGi\nt4hE3zByJO2Ny7xuWbuBKo0JbjU94VH/X5JGntxQn2PjIuDBF5RV4ito0Tyq\nPSSzLxGQv9QdDb2TyjPMydNU4pT9rLMR1oBXT/h5Zk7P1I4wWL6GD9dBFKW2\nosgD92rG9uoPd2swByz57p3UxwVfQtUdUT+4rbRFmfYx+dRUhwwABt3BA7zl\nhxDANwHdCttzLjBqG8YN/Qgdr+IdiNQ8Aox+cnevPYMdR2aTqqBIvclFXW3x\nqKetELWwJkP7SpmFO5WMTVaDRlIu/wux6SS8xTJp0XVYelZXYOv4FXUTxBO/\nbH3Hf2aHs4jJQwj8nzho5zNgDcJupvJbWAEWl9yHYTvntfAwcFkis2bh419+\nlh69QCc9HSFhiAetmrBt6EbuvJVycl1m+wcwxliChxT+96COmYKU6TDxjYsT\nzIGEAJCgb3yxOuBxKFmI46zMJIS091R1yPpn5dikvZr4m462BU48uk7Rf+ZD\ni3JXsSXOWf43o3kAb1Amq7I/nPoBa9/52DnqBBIdUGXnzAk+J4PIUT5S9m3x\nrp/ItnbC9GaXMgG0I3uYCTtnROT5EPVHvOUjEzLqJDiboyQIA7fk5+LbDLUe\n7mD57v4FmV5guo2/9GtZc2ED8VNrxXOVllMX6UryCWGwAu410U785RQXod7F\nfqMZ\r\n=WsuR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFO45QppPYUkaB5RIBP8vd9KQh63cv6E69TN3mFMKujQIhAIr0ffaaGcfX4WTpzxpIoy9CL9GbqyUrwD8k+pl5s3O6"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.0.0_1543281642546_0.2904405043732452"},"_hasShrinkwrap":false},"2.0.1-0":{"name":"fusion-apollo-universal-client","version":"2.0.1-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.9.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.0.0","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.86.0","fusion-apollo":"^1.5.0","fusion-cli":"^1.12.1","fusion-core":"1.10.0","fusion-plugin-apollo-server":"^1.1.2-0","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.2.4","fusion-tokens":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.2","puppeteer":"^1.10.0","react":"16.6.3","react-apollo":"^2.3.1","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x","graphql":"^14.0.2"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.10","apollo-client":"^2.4.6","apollo-link":"^1.2.3","apollo-link-http":"^1.5.5","apollo-link-schema":"^1.1.1","js-cookie":"^2.2.0"},"gitHead":"0186af12bbdbea50ed4b931d0cc2e8efe1c616ea","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.0.1-0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-FLkUFbfR7i57r/gLvdDhdSNr1GXQu5aVv9B2ysE1p0yGjrRcy3zWEz4PUt5ef8gOKPEYCfI9sCTcKDl6vGU3jw==","shasum":"b3289a658de56d7aacb2c0c2701df42829c57e89","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.0.1-0.tgz","fileCount":20,"unpackedSize":90264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/vPECRA9TVsSAnZWagAA57IP/3rjMfSEacuPO9Bn5c6P\neycOHdA2xsq8O5dzpomrZ55WNLUGT8gFbga9+B7X6+afTV6lI9IoISOBaHhX\nAgDsJif4h8tRxB0o/8kbfskKCaee6JqVYxswFK3c/BW9EpBBcy7Hvc+0mw8R\nGJZAMSGhAhB6cSnAeha2CE+OMVr9bFE6LzN7OBdENFAzx/Ia4liOMBuQ7YNS\nGxDIps5p0NeMjWyjhso4zlquXP6iefGNhHquAgeWqhHGoqFSN8IX0vN2c5qS\nMCAOa5yjxg2dHQz/+xcCfd1kqApONUPOqIShmdzcBcWrDPG9A2vDAJZqWchb\nYD5u+bEU3pfUlu9pAMUcma7jc6UtfiHqOpeFIvR2hV75plDWjq7y2utDrg4V\nJDmwDgmeeEO5mVx7NlXva1NGkk4SkJhUVN7NlA0OrWm3Z4IZWlUEUxzMlLtW\nlfyUOdd5AIch7lSAe7VvjdyXPWa7X/4KGAd9fX1dCn3zBijLQhE2/bDYNrg+\nYTsyJ3AtW43CWodQfbfhzVjr/yM+7BV1WWqsZzTNgtUadLAH/zr23da82lKf\ncVkUSyUrjon3pDYIbXZeNvYPV7S7OWtuCqPqTuOpjmijgVYjIBNRH0B8oct/\nD5eSIeiszNlFS0vZhoQB5J9AsbwfLN7fZYTbtbh1jBgAhr4BstYnLMm0tP3c\n6YHa\r\n=aow/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxFYgylOv2PvhV4BBr3nIwBL0XsKtbPY1TR0OSmODDoAiAwZioaSPyo9d682VQTPIa5fNKFrOsitpiyeko9BuLwXQ=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.0.1-0_1543435203426_0.1844125691779126"},"_hasShrinkwrap":false},"2.0.1-1":{"name":"fusion-apollo-universal-client","version":"2.0.1-1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.9.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.0","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.87.0","fusion-apollo":"^1.5.1","fusion-cli":"^1.12.1","fusion-core":"1.10.0","fusion-plugin-apollo-server":"^1.1.2","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.0","fusion-tokens":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.2","puppeteer":"^1.10.0","react":"16.6.3","react-apollo":"^2.3.2","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","react":"16.x","react-dom":"16.x","graphql":"^14.0.2"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.11","apollo-client":"^2.4.7","apollo-link":"^1.2.4","apollo-link-http":"^1.5.7","apollo-link-schema":"^1.1.2","graphql":"git://github.com/graphql/graphql-js.git#npm","js-cookie":"^2.2.0"},"gitHead":"ccba2f51097640410c62be7917724fc644602e5c","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.0.1-1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-8Qktk2a/sxYQ1wwVMPX9mHf7Xp2tLpnBHZiY9KG3wp3mannekl+w3v/fTK6uXiO6xkXwkp5oPJJsnVOLTT++BA==","shasum":"0f81d35d43ac66bc2751e525ad3befbc8c71732e","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.0.1-1.tgz","fileCount":20,"unpackedSize":90481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcAD24CRA9TVsSAnZWagAAlBMP/jejyNh74jADqeDYMCwI\nmlK1uOLBQFNaKEBYfc1mzlUSVllfzqwHx8vDdgcPri2n7FNj7yOB0dnjbz10\nMhbLx7AaV1OalvYpq8xcWPdOXeVqvq+sKfSl8JOIEV10IT6AejieDKX1MFwv\nAjhvmqTXE+QUvyJzBQadXihT/1VxYdzWEWyGEvXbq9jyVwkNx3RcX4L77bHg\n6c+q09qrB5gn0+EhVpFjyT0L3t7bkuR+bnbZoPKdj2xtJ2O4rtragSkrCCqA\nkUGpN4qY2qKmjzLFTjEsfL1JoflK3SIt3bBL5Z2eKMCPbOmGQgYWxTcSx6zs\nr3+9zVxSeXy82WCGcv/jVsy5l1xC6XxCCgIfrcAKIBRFNpwSweTtdqZZs/rg\ns+W0xdngjFAXO2uZjlnACmwV6QnHrFvTezEdE4kKUIW6taLxz96k1yWtBYje\nCtInrDPWUpqVlCrdvg7CWkNSukmrTOTO5ruANNef7jV502Z9I+xs6ZUA5Loi\nt9J+QTngDCarN/2TVhNfjNzQU2QZyoWxLdFFN15UELuEX15xZcTjdMkdD/p9\nm6z5OzikSJKCz+VAUJXDE69LTed1QhMb2siBxrlODKhoG6Sdkra8Z70m5VTE\nRxchOeRcN3LpbS+DSv/4xF52yY7uiOMBG0spiJQ+ClFnytEyjuhN0OuogTnj\nvGD1\r\n=+zDU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrEwliJuM6zFLxDueKjmEclgCvHiEP9/Hy4pjnEzs/MAiEApix24Khn2MSHSFvkktVnl6HkLfCRetP0bBXia15nVgQ="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.0.1-1_1543519671998_0.8320184935157449"},"_hasShrinkwrap":false},"2.0.1":{"name":"fusion-apollo-universal-client","version":"2.0.1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.7.0","eslint":"5.9.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.0","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.87.0","fusion-apollo":"^1.5.1","fusion-cli":"^1.12.1","fusion-core":"1.10.0","fusion-plugin-apollo-server":"^1.1.2","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.0","fusion-tokens":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.2","puppeteer":"^1.10.0","react":"16.6.3","react-apollo":"^2.3.2","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint . --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.0.0","graphql":"^14.0.2","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.11","apollo-client":"^2.4.7","apollo-link":"^1.2.4","apollo-link-http":"^1.5.7","apollo-link-schema":"^1.1.2","graphql":"git://github.com/graphql/graphql-js.git#npm","js-cookie":"^2.2.0"},"gitHead":"18c1269138011a5af25000af014a2b0b1564970c","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-mp6Ydbfs6Xf3VYdfxF+mNZCnd5L0NjBpixF1B1+cViq9TL/ZM9O0Sxse2wt8DnEWoJQZFjFqC87vrqihs+2Ncg==","shasum":"07a7c8d56b1f4b128aebc512add216d757f48f39","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.0.1.tgz","fileCount":20,"unpackedSize":90479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEKpSCRA9TVsSAnZWagAArQoP/RTIXbA5KdpGnwFeNR2W\n9Zcf2m1I0NHuLJeFZKcATc1t/d2MSO4PhfRUzLQq4XtJh3w1VQ7w3u6gulur\nGzFxZtl6QxtqT0l479jIkZI5JYl8ptY6MwV1ENb+qnIC3MbpSFu9cVGpTJFj\nk1M8rgs+G8YujobFNNjKcMk2fjgYJvJzc9Sc35jgAK3e33BCYyOAlvLTRuV4\n6BvNXMC+A2yJph49+vWUqmqAmv29vvE/u4QI0TjTdWf+15VURPJnNfqOoZzm\n1FfuikbohdI3DGtrm3oRU2q+UlaQu+oKpck4EoGx/6SAcUkwEV8/zpni/dC/\n3j5aXlcKnIwSiUED0s/+f9jnz/tt/5TPgenIGovAsuuHl73Afjf0C7FMd6oC\nj0nOWuqb5yi5iMIkxAOn6d+hdShn9t7l6mJ2fmlDjWd1hNS98uSU26VynY5q\nCKdnjwrlddT+KRXtFq9CYiPud3rE4jftGKwyF2xg9G2bbM5ybIVwm8QM+8d7\nUWIkDF4XbyJT0BEPfckhjlcwlzGsJ0r7ZnONlp+rBJ8ARSsCcPGR/ibK2gOg\n3JO3xiUP1CHVs/DV1FsdMAgr4/gsBU8A0TI4QR+tQoUhO13in/nAUC0IO+s6\nDXNPkcPtBAx6svHVmFbefiGRAe8SgKct849SPjPwqQSquc2jrVkTeLl3Bh93\ncss+\r\n=6HOx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF26v7zJ4UxWvcqMjs+bUfvIcOQHQzbqK7mpASC/moHeAiEA2RVw/99rigEvah90GRnpGJy5kWihKHTHWAtMorWPnTA="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.0.1_1544596049577_0.38256582290941976"},"_hasShrinkwrap":false},"2.1.0-0":{"name":"fusion-apollo-universal-client","version":"2.1.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.8.0","eslint":"5.10.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.89.0","fusion-apollo":"^1.5.2","fusion-cli":"^1.13.1","fusion-core":"1.10.1","fusion-plugin-apollo-server":"^1.1.2","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.1","fusion-tokens":"^1.1.1","graphql":"git://github.com/graphql/graphql-js.git#npm","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.3","puppeteer":"^1.11.0","react":"16.6.3","react-apollo":"^2.3.3","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.10.1","graphql":"^14.0.2","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.12","apollo-client":"^2.4.8","apollo-link":"^1.2.6","apollo-link-http":"^1.5.9","apollo-link-schema":"^1.1.4","js-cookie":"^2.2.0"},"gitHead":"a5a5379d8896fdf62c1615771249b6387cce1d59","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.1.0-0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-LniLK9fgbQgIJi6rfVYjKOuNK4uBBqijfohjWOamDpaz/Mo+taqnsvXcuKOPzh3DxoP/qg63Agsng9EVEsGoUQ==","shasum":"35bd21c9a3538bc8a026a20eafd5d104119351d0","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.1.0-0.tgz","fileCount":20,"unpackedSize":92452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcP3cICRA9TVsSAnZWagAAUT4QAIZtgoJoG3QKegHMP2w4\nsCyKA10sOXBF7SBJHm5LUTqAOuZc6OFJW8PkJU4Z4tBAznfrUPUH3F0vw978\nAvZ8O09SYEurKWKprNH1FBaTrrQIDCG0lxLBGw1r7J3o1+Eqg5FMFXz8Jp6I\n7/v9tl0LEyzXjVBohB6w1BLlwd+bzXKPd9nksq6UaF3DIByeAauTXLrWPwW1\n5M1rk0fZoGpCDslgPgcwB6g2fLScBX3u3NW1X4erJ8EdqYSRxzx81O16l73a\na2Evz426+ZWNMex8SJoGa7dJ08ivOsSWBM1baGlehJEh6OSWXOmvIRhdwgnk\nPmZs07Knua1BmYRpgUvZSAlChuh0Zqz0ELrbkWgKWaFEO30IX20BDYgAFzwF\n+PfEFI71LQIzwFn7I8JLwrYqAbyofsUMwi5ARuIg0nZ3EQDAcK86rrIYhd27\no3aS5CsP+1X02C4xtYKS7UTxOgr58MO3/mawJYdTAumZ4nb/SKo0blFqM+jg\nEI2z4BCHQ7iPavVscNeZlhV4vcFBTc+YyzPgVEOSoWBQS1bYrbzEwgtqkA5I\nwc933kYEiVA+Tuni8WH5l9HneT23BetgD4Y/CSoZYKdtDlfWIUvejr8bvL2t\nsk9IQsFu/8o0l/Y5INCIb0oSnbKW8UJbNg+r89v80RDVrfLqJgq/urK8WyZA\nmE15\r\n=eveF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1OLr7iqEBI9rrq8+nW3VF9b9vZkZrDzUu9d4SIHzDUQIgBf7uopT2mxQKQxIE1/wwpDsiqMOh7wGAMvmmvYLMLX4="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.1.0-0_1547663111744_0.00857802254881701"},"_hasShrinkwrap":false},"2.1.0-1":{"name":"fusion-apollo-universal-client","version":"2.1.0-1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.8.0","eslint":"5.10.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.90.0","fusion-apollo":"^1.6.0-0","fusion-cli":"^1.13.1","fusion-core":"1.10.1","fusion-plugin-apollo-server":"^1.2.0-1","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.3","puppeteer":"^1.11.0","react":"16.6.3","react-apollo":"^2.3.3","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.10.1","fusion-apollo":"^1.6.0-0","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.12","apollo-client":"^2.4.8","apollo-link":"^1.2.6","apollo-link-http":"^1.5.9","apollo-link-schema":"^1.1.4","js-cookie":"^2.2.0"},"gitHead":"7f75b65394c4c55b53e9476a1cea026c7fb156ae","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.1.0-1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-OytGhFAG4/PZC0Lk/C+XDSrQ5XBOPFkf4UpAwGaESXD8eu/A94I/+ocOcA/Vg8GObrDa4/XgcN7Xf4z+Oxx50w==","shasum":"c2e750844c556f1cb3fdf9bce5d14f2284246245","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.1.0-1.tgz","fileCount":20,"unpackedSize":92866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcP6vnCRA9TVsSAnZWagAALuYP/1jmAUczihFci5cqxkER\nNpUyE2BQN1HRctbNlfNDgwZuRqTfd9eFRUdcrMKyGTfOaRxl4NYIS8UgkePE\nrLRBbvHesREo/sENqvhs5iHeCnkd8W/Zjcj5JABWexPBlrvQ/lsptx2KdPg1\nolg9gY0D7Ci0M0TKPEvY/pW61+veMxVmHRdw+3hbUjC6DEdsCAdaKC2E8dPU\n5739Bn0afGQ64HhjdMhIhHf+C/oKcLGQ/LkZu3gOBazFEpf1YJIBdlttH16y\nEOk8iVWJ8jofgRFzevSvrBIxOO5LkzKPSkjXVWKJNXi8DfiimsVW2tu6mIUJ\n0B+UoeM8dEsg7lwAfs4YSP+ooqfraQvp4rpZ/KAO8J3uktJ59RaWF25ezbm9\n/4cC0XUj5m4FcSdxC2dLLJCgCbKgDTSjJZWqiBBjF4mhyygKV8INvVGiAZC1\nMy5KaDF1E7i06Gcjg+NjyHnbwbD56QjmPqptsk2QdnptrKzImOSk6ube025V\ntidAMdaN1lgQLwB9YeXuTHoAJcjV+TIBGuNE/Ygx/7iB2gYWLkr7LTIhRa9T\nTRvXy/MX03l0GjCXjrbrv5ycSlw7cylwtgEljB29fWspVVTRALMztLg/7PQt\nFXPr45fyE6/kf84k4oMTAyS2BHJ1GX8J4D5EDGQfpuMarajs9L9r10hsUnK6\nAr+7\r\n=9fYz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmHxg1HcsgGv7y0AdceKbi+J4d1neIqBn1UPhha9rvTgIhALh24tX97TcIKS9rqdRQeutSpazpWkZirxgnm4zQ2/1/"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.1.0-1_1547676646937_0.548725563947613"},"_hasShrinkwrap":false},"2.1.0-2":{"name":"fusion-apollo-universal-client","version":"2.1.0-2","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.8.0","eslint":"5.10.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.90.0","fusion-apollo":"^1.6.0-0","fusion-cli":"^1.13.1","fusion-core":"1.10.1","fusion-plugin-apollo-server":"^1.2.0-1","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.3","puppeteer":"^1.11.0","react":"16.6.3","react-apollo":"^2.3.3","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-apollo":"^1.6.0-0","fusion-core":"^1.10.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.12","apollo-client":"^2.4.8","apollo-link":"^1.2.6","apollo-link-http":"^1.5.9","apollo-link-schema":"^1.1.4","js-cookie":"^2.2.0"},"gitHead":"23a3bfa24d029d88aafeddb7ecaaa00a7f30fb24","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.1.0-2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-pW/V+BjqFUqSpu0LhUaHH6PQwfUWpRyLQtFyBUwT0xiiDhLfb2vVOWxFxRRnp5t9dr0183OA0IydPbFlW0dZFA==","shasum":"bbc2a2090c59cd18f612cf1eabba4e2d5edefbd5","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.1.0-2.tgz","fileCount":20,"unpackedSize":92866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcR4BYCRA9TVsSAnZWagAAGCkP+QHKjp97510bYVMmCpl9\nWnHJN34375nqUdRPSJVvywMmY6pNUQO3vEt4n5ArtH4/eL6uwfX4rEh/rqCD\nTtFiTu9iDbDC9UwKWc1atGxLRsjgMH8YzGP6OlM8FE933qHY6rxHcoiu4sKo\nWsUhmcu+KPKfpBGFVYFeWZdmhIckon1npZU6OXF990BrsmPI4cZ49y0bC8Eh\n5Z1OBr0OikJtNeiAz5eT2ArkvSIDJyWjJagFZuvsyDj3ELcGwOVDVgXiij7d\n+2Cjl/dDYBSZr3iFxUtgnpTKoqQfUVJ4fUWRCjqccTOJ85ddBMgOt3vOOuZo\ndTInV+40voTebm2mlSt/eztnTlr1oNJsHOebDRw3rCTTnF8lWQ8MAaSGFeWy\nP+3U6c5I/7CqAt71CxySXXAWtMOZX49w9AjqS/PRiWHQ+fqeMmllT64neGTy\nAqRaUXOPH7OUuy6OTYw9vYRTltPaNMA3erA0huxFFzd0ze3qef2xp7S8I3jG\ngYTUJ2ryi7hCEFrr6nR1JQowTXYnqfKtco01gJXk7UYPEHFjURicxGvPhn/G\n/W5DyCQ2LhJbIedRFxjDzRdIvrbu3JkQOhL3kdsxL71KMOGxiyIWPjdjbotv\nJQCnYNhFODF4L75cWsMvZoKZBV7xm22KngG8BivAPE6wC+yRAceqQemHV4FJ\nvRMl\r\n=rFr8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg/DtWZ+s0tkG2KlOXA3NH8NYRjARcPzUJJN34s5ID+gIhAI1VuzuIrLVaahU6ESEtd0eLcoVNOyxWlORDWts/LxXG"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.1.0-2_1548189784096_0.21326062458275974"},"_hasShrinkwrap":false},"2.1.0":{"name":"fusion-apollo-universal-client","version":"2.1.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.8.0","eslint":"5.10.0","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.90.0","fusion-apollo":"^1.6.0-0","fusion-cli":"^1.13.1","fusion-core":"1.10.1","fusion-plugin-apollo-server":"^1.2.0-1","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.3","puppeteer":"^1.11.0","react":"16.6.3","react-apollo":"^2.3.3","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-apollo":"^1.6.0-0","fusion-core":"^1.10.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.12","apollo-client":"^2.4.8","apollo-link":"^1.2.6","apollo-link-http":"^1.5.9","apollo-link-schema":"^1.1.4","js-cookie":"^2.2.0"},"gitHead":"176049f72f6da83fa8d999b79791af1bfa3e7868","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-ebmf5LMY7A/wQfaWl3KBLuXPOMK5qeJjbqq9LSwpcf/cD7LMl9I7/fkBXJnp0OYw/3+RRaRWGxtzkaFNO4slWg==","shasum":"48db63f1d0c4aef06fedc49bc6b4c87c7e718360","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.1.0.tgz","fileCount":20,"unpackedSize":92864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcR8cZCRA9TVsSAnZWagAAXi8P/09U+NpwHM2NTnfhe7Ne\nqwciB8WwDC5427rRYovfYxFS0lP8TUt2dRAbH82IaggRY1hy9d+zR+yXbf1L\nGa+vgfL0R8EaPmsn0UiSdVBcAmdK93JFAZbvvEcCDwA43e0MlwZuLydCYcJT\nOau13rhqWP4bjrNExB1CIlef2LGqB1txbQQL+N77Y9Khw/jTBpEPlyyHn0e4\nwnkaCB1WtHU3Ltug1klwfHLwv7lvRsmUryo5zwt0RZO/NBcnRp3QpPw2PXPt\ngNk8iehDI0vkG9LVlV3Q5R+tDh6tYoLLAgjh/Z9QVs2s69u8m3oPC2X6Dmyz\ndFINd4aOZzh0QYTizQiCTqmDmEOj1dRhlRrZv07TYEA8yraZPvq4jvSbt/v+\nNip18s3Dj2X46P1/bElW7p5dBzrxWMcNJjgjDpOJwgi0tQaVHEEeVlHTnMhk\nLnhp+epWUP/Kb6JsdxAZMjYojkZuY2y7O5cSnXErTDP6e1mQ6FXF/7lFvXO0\npNxhb4TSk0fYVD5zL4sS5KyhnKnMNdeyWcCRzw5DKFHPhh6oG3Zv58Kl/Owe\nPPF68V8/rBe7H0LuAt6LTejzIkjQZM+0fYi4TnJ244S4SaDGmMMrXaUzQiqE\nsuXtFgS5YIoZz2pBjtkXV2LFsvl8ffb9AS3pvgL9SEHJ4i6kjgC6XiEhJ4mc\n8yIe\r\n=ldog\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD89fQJNAzJuD+Eygegfhy6hzFvbpfHaGZ9l5Rm0GluJwIhAJ7RBejkK9StJJD0mD/EOXVIBd1n9lRW0KD7gh6TwEPK"}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.1.0_1548207896222_0.8634404215071398"},"_hasShrinkwrap":false},"2.2.0-0":{"name":"fusion-apollo-universal-client","version":"2.2.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.8.0","eslint":"5.12.1","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.90.0","fusion-apollo":"^1.6.0-0","fusion-cli":"^1.13.1","fusion-core":"1.10.1","fusion-plugin-apollo-server":"^1.2.0-1","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.3","puppeteer":"^1.11.0","react":"16.6.3","react-apollo":"^2.3.3","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-apollo":"^1.6.0-0","fusion-core":"^1.10.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.12","apollo-client":"^2.5.1","apollo-link":"^1.2.6","apollo-link-http":"^1.5.9","apollo-link-schema":"^1.1.4","js-cookie":"^2.2.0"},"gitHead":"589724381489a654b14fd8b8343ccb3d566753f4","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientEndpointToken`](#apolloclientendpointtoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n    - [`ApolloClientResolversToken`](#apolloclientresolverstoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-apollo';\nimport GetApolloClient, {\n  ApolloClientEndpointToken,\n} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient, {ApolloClientEndpointToken} from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(ApolloClientEndpointToken, '...');\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### ApolloClientEndpointToken\n\n```js\nimport {ApolloClientEndpointToken} from 'fusion-apollo';\n```\n\nA token with the GraphQL endpoint which the Apollo HttpLink client communicates with. This can be an absolute path to a local GraphQL server, or a remote hosted GraphQL server.\n\n###### Type\n\n- `string` - Required. The URI to make GraphQL requests from.\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n##### `ApolloClientResolversToken`\n\n```js\nimport { ApolloClientResolversToken } from \"fusion-apollo-universal-client\";\n```\n\n(Optional) Provides the resolvers for [local state management](https://www.apollographql.com/docs/react/essentials/local-state.html).\n\n###### Type\n\n- `ResolverMap | $ReadOnlyArray<ResolverMap>` - Optional.\n\n---\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.2.0-0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-Ty7ODBXjFvVLtPrkyeosZZa3FqwRrTzkfZGMI1/Sl7GFFxt/QmHbg1RE3gm+AVOyeM30pDmg+Rktvr/Vj0Bu1g==","shasum":"75e613142b50e2f49f65ab7c56b5354d630c8555","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.2.0-0.tgz","fileCount":21,"unpackedSize":100948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckAR2CRA9TVsSAnZWagAAPycP/3KVLIqLtKtnfH4jUz0a\nyk1ocBbLgo7njuH3Am52eJV3SzyEnmt8vjAd/OcyP7NTa/dqkzYs/Qj1Kfrr\nFvDnhs+lrAOO77lBiZLiTPXhgjiMKKPzSe6c6OoYfWBoyEDilXfqqHH3NeT5\nKJkNSMu58KqID16VkEHxIJx2bukaxJJAJzX+FmeRDGa24koNtRxgeOHvhVh2\n7xh9pa2rMY3eKm6vVIKp2mXabknoVy0BIDDr6P2I+cXRAcoGlMImhw2pD3qz\ngk8nNc3GsexzMzQm2cppp9DxcDMyT2rQJ9bRcWHDYjey/J8oJ45HNMjGNTzc\nG/vChXzyDQ1dvdYzJCUCdCCtnLRa1S8hCfiurvhgXouF4OrO4w0Zbks2om8c\nlF/46HXqCvbexA/TXNEdp6A7m7TRhkBoMSbZV4V4SGTsdZe8GdOVe0ZpIxCq\nc74LGEdkWNpuPtJvayYx9qMXlhcw0kxx3p4geVu/61qUmtN9SDLceoK5utSx\n5LVolhXSkvoiL3XDL/AGY6OGx4nqEdRbwuzhn7Gtm+YR2o6AbK5fS0ChpfPt\n14pmRueLPEXLULVvS0hjEZ7U+aCHsizwFrx6k3LaJvbN7wcnf5eeecdA1bC1\nnpV/Qp4QjjwnPIap9Xynm17/qIyG2HNlV1GEOk14BGn9gYhKMl4wZfdzffkh\neWgv\r\n=FZEp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvva/ipZv2YVpcfo7Rzp8AZGx9+4noB1IzyU6x7dr73AiAFaXGE8ZGSQ7rStmXBPmnOzPILTSjuSVcDaZAdDYgQJA=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.2.0-0_1552942197509_0.8164231249054987"},"_hasShrinkwrap":false},"2.2.0":{"name":"fusion-apollo-universal-client","version":"2.2.0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.8.0","eslint":"5.12.1","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.0","eslint-plugin-flowtype":"3.2.0","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"^22.1.2","eslint-plugin-prettier":"3.0.0","eslint-plugin-react":"7.11.1","flow-bin":"0.90.0","fusion-apollo":"^1.6.0-0","fusion-cli":"^1.13.1","fusion-core":"1.10.1","fusion-plugin-apollo-server":"^1.2.0-1","fusion-plugin-react-router":"^1.4.2","fusion-test-utils":"^1.3.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.0","graphql-tools":"^4.0.3","prettier":"1.15.3","puppeteer":"^1.11.0","react":"16.6.3","react-apollo":"^2.3.3","react-dom":"16.6.3","request-promise":"^4.2.2","tape-cup":"4.7.1","unfetch":"^4.0.1","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-apollo":"^1.6.0-0","fusion-core":"^1.10.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.3.12","apollo-client":"^2.5.1","apollo-link":"^1.2.6","apollo-link-http":"^1.5.9","apollo-link-schema":"^1.1.4","js-cookie":"^2.2.0"},"gitHead":"34d9c2a2ea0949e35daae7c8fa85fbf185593120","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-vADsoz4A/nhK8wuztIXYkTLaZ06+i3+DFANqM9Y5+l9WhIC7QQKoSieWMU78V/JYtNk/9xkQAD4QdGxaL/souA==","shasum":"4058c1227bc34d0265ee54fa4e8cf5ca2b1508f1","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-2.2.0.tgz","fileCount":21,"unpackedSize":100946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJckC8+CRA9TVsSAnZWagAAetsP+wb90cLd7M/PcaaCz6Fd\n+zYYbytrdXQV2xRbi/7tZXEWvZF1D4aq6G/+xItSmLC1OBttadS8GFyA972w\nE/3ARcwFtBrBI7giOguBoHn/v48GjIGYhzJI+bxX0XwigGKSolGLvfpPUT6i\nAkfQzAXRSnkesGPksrS0yiSfmeExr05pACULkww+vJowCD+7FzXHKjFsmLPW\ncmN+dEUCDJPagqW4kdfJpf/uB2hoG7L/6Z6A2OgqG1WQ2ryFuJosrSSyX6pz\nMuBSx6kEqVtZoebqIjQ4N9jA/7D6z5SwIJv/dANaXDpmH64qVcdElSfoZekh\nP5ZyUebw7HP036kJCqwaV6Mahr8jLvI9UNJpWBQj/A5aYPtBvEEUnzQjmWJK\n+zjxgWsnejVmuL3rtvfbGZMvwgnYslLxkTCjxpuOqNZLMjBYAVzRABHYTkF2\nDG9DB99z2nbmu3mgkC2nwtYSny6f7J3Zbn7luK9Z2+DnFNwQ/DDT7amyzjFu\nixLgMfo9jkvVCe5XE/7TLHitximznjLVH6f5nAHHYwvF4IN15Q8cPWVwLoo0\nymU6yrBqAmdXevyx86F9MEHc0/dlWQ3uM1FgF2tUwT7cShL4+5DipQ3cZ5KW\n3v+Zld5UQgue60bJhk/W2M+wjEpsU/vG1rv+EzvwUSRLnptKAoJ/Y58eHrT1\nHwJ9\r\n=gDoy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHymf3Vg+i1lcphDXuzlGQ4qTmHa7GzDBYAqDHGt2xN0CIQCBNrnXiJ8o1MsM9RxQ0fY38wCklPbRnVdkVGps5F10gQ=="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_2.2.0_1552953149898_0.3719236665824335"},"_hasShrinkwrap":false},"3.0.0-0":{"name":"fusion-apollo-universal-client","version":"3.0.0-0","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.9.0","eslint":"5.15.3","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.1","eslint-plugin-flowtype":"3.4.2","eslint-plugin-import":"2.16.0","eslint-plugin-jest":"^22.4.1","eslint-plugin-prettier":"3.0.1","eslint-plugin-react":"7.12.4","flow-bin":"0.94.0","fusion-cli":"^1.18.1","fusion-core":"^1.10.4","fusion-plugin-apollo":"^2.0.0-1","fusion-plugin-react-router":"^1.5.4","fusion-plugin-universal-events":"^1.3.3","fusion-react":"^2.0.0","fusion-test-utils":"^1.4.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.1","graphql-tools":"^4.0.4","prettier":"1.16.4","puppeteer":"^1.13.0","react":"16.8.4","react-apollo":"^2.5.2","react-dom":"16.8.4","request-promise":"^4.2.4","tape-cup":"4.7.1","unfetch":"^4.1.0","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.10.4","fusion-plugin-apollo":"^2.0.0-0","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.5.1","apollo-client":"^2.5.1","apollo-link":"^1.2.11","apollo-link-http":"^1.5.14","apollo-link-schema":"^1.2.2","js-cookie":"^2.2.0"},"gitHead":"b02fa757a9ed2144b6d6c7c29b479b1b65dc1c9e","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n    - [`ApolloClientResolversToken`](#apolloclientresolverstoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-plugin-apollo';\nimport GetApolloClient from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-plugin-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n##### `ApolloClientResolversToken`\n\n```js\nimport { ApolloClientResolversToken } from \"fusion-apollo-universal-client\";\n```\n\n(Optional) Provides the resolvers for [local state management](https://www.apollographql.com/docs/react/essentials/local-state.html).\n\n###### Type\n\n- `ResolverMap | $ReadOnlyArray<ResolverMap>` - Optional.\n\n---\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@3.0.0-0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-560Y7mp5psaQLxK5S4yvuVfOm9x+oj9JPX3Rm7q0izdOEyFqmH26W7QwIUCyp//9uqjAZ3xy0JCOWX9N70oMqw==","shasum":"a489cac8bd13abd9991b0a4334ea4c4af178f0a9","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-3.0.0-0.tgz","fileCount":21,"unpackedSize":98406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcknRuCRA9TVsSAnZWagAA1BAP/As4EcRc/lWOyA4/JXqs\nBcehdFAQt3Vw3GFKjnoBCtazsRyVdWmhJi0FffhtmE0Ek6bTP5C9FtM8Pa86\ndgWFM84QgsvRh5ZRwlOOygweY0cSuM1UjakBH+D+fuCH+6hQKHFsxyGrHUfb\n7VSPS3Cw7Z8rp8Dq4YBF4zUurVACsf0NRb84lqBQlQ7leYViklJnCkliwMI5\nhGpL3fgQfyMYMrxrEdNwXGY9WLswu80FgHJSvu8Rf7yDYnixcPrZFdrlVwES\nBdTvKKosW1oNCHF9yci8iK1j+v82GbWl1T87ajOaDxIBeRPVY07Frjy+z/jH\n3NsygDA0K1S7DKnjSrQtR/t/zRltkfcOnA1KryOhDwe4H8Da63YlglQJ2kBv\ngvIhn9gYo3QksX2zwsrETKasrJs/5hvlustjvSaW1t1XwhwkiyLvNpbiUahj\npoUMLEYvUqkFoGzZcfRTN0IhJfueHAGBBdW2FXxPGbCadBET1gmxG1fxzDIP\n2AVJd1fcRxr4AJN2gVDN6guojpe89VG7nCgfl7Njj22q0uyLOwvNqhz/6YpR\nGREIVqV+dSCCE+qQ9N/sYq7u2EwXUxvNJNOO4KiZ8d/s7CNaaFKd6RuVNUyt\nJwEPLJ/lr09Q38hjkfrrNnkUidktQ7SlOXX3HK/8jS7C0LTVbRLNQqejfX4I\nNnKh\r\n=E3RH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3Nff1IixuBTCYE0fMBYnRLUTWCJzykH13Crv3OgMLbAiEA1zt4m5VHUtb2WUe2lvFnhQWB5i+r5PDV6wr7XOXIHCY="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_3.0.0-0_1553101933631_0.7629562110323762"},"_hasShrinkwrap":false},"3.0.0-1":{"name":"fusion-apollo-universal-client","version":"3.0.0-1","main":"./dist/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"module":"./dist/index.es.js","browser":{"./dist/index.js":"./dist/browser.es5.js","./dist/index.es.js":"./dist/browser.es5.es.js"},"es2015":{"./dist/browser.es5.es.js":"./dist/browser.es2015.es.js"},"es2017":{"./dist/browser.es5.es.js":"./dist/browser.es2017.es.js","./dist/browser.es2015.es.js":"./dist/browser.es2017.es.js"},"devDependencies":{"babel-eslint":"10.0.1","babel-preset-react":"6.24.1","create-universal-package":"3.4.6","enzyme":"^3.9.0","eslint":"5.15.3","eslint-config-fusion":"4.0.0","eslint-plugin-cup":"2.0.1","eslint-plugin-flowtype":"3.4.2","eslint-plugin-import":"2.16.0","eslint-plugin-jest":"^22.4.1","eslint-plugin-prettier":"3.0.1","eslint-plugin-react":"7.12.4","flow-bin":"0.94.0","fusion-cli":"^1.18.1","fusion-core":"^1.10.4","fusion-plugin-apollo":"^2.0.0-1","fusion-plugin-react-router":"^1.5.4","fusion-plugin-universal-events":"^1.3.3","fusion-react":"^2.0.0","fusion-test-utils":"^1.4.1","fusion-tokens":"^1.1.1","graphql":"^14.1.1","graphql-tag":"^2.10.1","graphql-tools":"^4.0.4","prettier":"1.16.4","puppeteer":"^1.13.0","react":"16.8.4","react-apollo":"^2.5.2","react-dom":"16.8.4","request-promise":"^4.2.4","tape-cup":"4.7.1","unfetch":"^4.1.0","unitest":"2.1.1"},"scripts":{"clean":"rm -rf dist","lint":"eslint src/ --ignore-path .gitignore","transpile":"npm run clean && cup build","test":"fusion test","prepublish":"npm run transpile"},"peerDependencies":{"fusion-core":"^1.10.4","fusion-plugin-apollo":"^2.0.0-0","fusion-tokens":"^1.1.1","graphql":"^14.1.1","react":"16.x","react-dom":"16.x"},"engines":{"node":">= 8.9.0"},"dependencies":{"apollo-cache-inmemory":"^1.5.1","apollo-client":"^2.5.1","apollo-link":"^1.2.11","apollo-link-http":"^1.5.14","apollo-link-schema":"^1.2.2","js-cookie":"^2.2.0"},"gitHead":"3b21b45df9948fa88fc0e6a021f858055f91f338","readme":"# fusion-apollo-universal-client\n\n[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)\n\nA simple universal client for GraphQL apps using fusion-apollo.\n\nThe Apollo Client is the entrypoint for most Apollo applications. This plugin provides a client with the minimum amount of configuration necessary to create a universally rendered Apollo application.\n\n---\n\n# Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Usage with fusion-apollo](#usage-with-fusion-apollo)\n  - [Authorization](#authorization)\n- [API](#api)\n  - [Registration API](#registration-api)\n    - [`ApolloClientAuthKeyToken`](#apolloclientauthkeytoken)\n    - [`GetApolloClientCacheToken`](#GetApolloClientCacheToken)\n    - [`ApolloClientCredentialsToken`](#apolloclientcredentialstoken)\n    - [`GetApolloClientLinksToken`](#getapolloclientlinkstoken)\n    - [`ApolloClientResolversToken`](#apolloclientresolverstoken)\n  - [Dependencies](#dependencies)\n    - [`FetchToken`](#fetchtoken)\n- [Examples](#examples)\n\n---\n\n### Installation\n\n```sh\nyarn add fusion-apollo-universal-client\n```\n\n---\n\n## Usage\n\n### Usage with fusion-apollo\n\n```js\nimport App, {ApolloClientToken} from 'fusion-plugin-apollo';\nimport GetApolloClient from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\n### Usage with local server\n\nIf your app hosts the Apollo server a schema must be provided.\nThe schema can be provided using the `GraphQLSchemaToken` from `fusion-apollo`.\n\n```js\nimport App, {ApolloClientToken, GraphQLSchemaToken} from 'fusion-plugin-apollo';\nimport {makeExecutableSchema} from 'graphql-tools';\nimport GetApolloClient from 'fusion-apollo-universal-client';\nimport unfetch from 'unfetch';\n\nexport default () => {\n  const app = new App(root);\n  app.register(ApolloClientToken, GetApolloClient);\n  app.register(GraphQLSchemaToken, makeExecutableSchema(...));\n  __NODE__ && app.register(FetchToken, unfetch);\n  return app;\n};\n```\n\nSee the [Apollo Documentation](https://www.apollographql.com/docs/graphql-tools/generate-schema.html) for how to generate a schema.\n\n### Authorization\n\nAuthorization will work with hosted GraphQL services such as scaphold and graph.cool. This works by passing a stored authentication token inside of the authorization header. This token is currently assumed to stored in a cookie and cookies by the value provided in `ApolloClientAuthKeyToken` (defaults to \"token\").\n\n---\n\n### API\n\n#### Registration API\n\n##### `ApolloClientAuthKeyToken`\n\n```js\nimport {ApolloClientAuthKeyToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of an authentication token to use from the document cookies. If provided, this token is used in the Apollo auth middleware as an authorization header.\n\n###### Type\n\n- `string` - Required. Name of the cookie which contains the authorization token.\n\n###### Default value\n\nIf no token name is provided, authorization headers are not sent.\n\n##### `GetApolloClientCacheToken`\n\n```js\nimport {GetApolloClientCacheToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A function that returns an Apollo [cache implementation](https://www.apollographql.com/docs/react/advanced/caching.html).\n\n###### Type\n\n- `(ctx: Context) => ApolloCache` - Optional.\n\n###### Default value\n\nThe default cache implementation uses [InMemoryCache](https://github.com/apollographql/apollo-client/tree/master/packages/apollo-cache-inmemory).\n\n##### `ApolloClientCredentialsToken`\n\n```js\nimport {ApolloClientCredentialsToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides the value of credentials value passed directly into the [fetch implementation](https://github.com/github/fetch).\n\n###### Type\n\n- `string` - Optional.\n\n###### Default value\n\nThe default value is `same-origin`.\n\n##### `GetApolloClientLinksToken`\n\n```js\nimport {GetApolloClientLinksToken} from 'fusion-apollo-universal-client';\n```\n\n(Optional) A configuration value that provides a array of [ApolloLinks](https://www.apollographql.com/docs/link/composition.html). The default links are provided as an argument to the provided function.\n\n###### Type\n\n- `(Array<ApolloLinkType>) => Array<ApolloLinkType>` - Optional.\n\n##### `ApolloClientResolversToken`\n\n```js\nimport { ApolloClientResolversToken } from \"fusion-apollo-universal-client\";\n```\n\n(Optional) Provides the resolvers for [local state management](https://www.apollographql.com/docs/react/essentials/local-state.html).\n\n###### Type\n\n- `ResolverMap | $ReadOnlyArray<ResolverMap>` - Optional.\n\n---\n\n#### Dependencies\n\n##### `FetchToken`\n\n```js\nimport {FetchToken} from 'fusion-tokens';\n```\n\nA [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) implementation. Browser-only.\n\n###### Type\n\n```js\ntype Fetch = (url: string, options: Object) => Promise<Response>;\n```\n\n- `url: string` - Required. Path or URL to the resource you wish to fetch.\n- `options: Object` - Optional. You may optionally pass an `init` options object as the second argument. See [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) for more details.\n- `[return]: Promise<Request>` - Return value from fetch. See [Response](A function that loads appropriate translations and locale information given an HTTP request context) for more details.\n\n###### Default value\n\nIf no fetch implementation is provided, [`window.fetch`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch) is used.\n","readmeFilename":"README.md","description":"[![Build status](https://badge.buildkite.com/107d4baa53a894926a5da4e9552291e6e1b8133d6f665729cc.svg?branch=master)](https://buildkite.com/uberopensource/fusion-apollo-universal-client)","bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","_id":"fusion-apollo-universal-client@3.0.0-1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"fusion-ci","email":"fusionjs+ci@uber.com"},"dist":{"integrity":"sha512-xTU4QpdrNCnYGDG/mC90rGu21Rs0LwcFJYeojpYzcS23U+wkbPxb6sFbDhfX1igfYSdwEzPgpfzB5frgyu8gOg==","shasum":"2445fafc899d42fe48c5c093be685d1b37237be6","tarball":"https://registry.npmjs.org/fusion-apollo-universal-client/-/fusion-apollo-universal-client-3.0.0-1.tgz","fileCount":21,"unpackedSize":98406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpSIfCRA9TVsSAnZWagAAp+wP/0a9XqXj6s2OfhnTMFZx\nQDSc17mvHkp+XXOVH5OPfGgt8PAZg9o7CucUmGfvp29EZ/youEQiEkSBJMPm\nTzxIIdmwKwcRziD327Sg9naa4guujzD6ttBRUqndP3NwL+w1eNOyMvXZE9uz\nsS/tuzWTS1KsWNU0sCjNSRMhbn6SDH4VIJjN473zw3vqZ+3VtNX+g54wLnzD\nNOwEKZnSYV9+0gHZUvcRKwGqRZTKOHStJefOwx7ZKlHttlGFugVmAXJP2BfR\nWVhW9r7Uud4Bza0Q79Ssc/4fj5MMUIuZ7wPlGRM7wczuAlQihKb94nMxznAn\nRrybfd2bPBvVwcfJc2kHcT02OZIowK1h3yVTwPu1kIXh4CmSt3+vWh9YRTh4\nHG2T4Hb9sprRDUoPdnttxhDzrQA7c8kp+6rfk69hXno4bRiudWrsFH7W73ii\nWUx0aTZrn8jNj6r+paviTWvARsCuaPbWr8blpjD8oWljSORNhyg8ffL9hK9G\n5BSz+GuITTZngnr8ppRYbD8I/okvSDsZO05iNPmhF7u9X1Ge5m30WCWpPGv+\n5EtIuZFjhxTwXi+sAzGO1z9A6xxMKHtD1JtvUmmwMXJrq0ZKhjPVaGHUzjiC\n136pZDbFx9ME1cOin0nZXEcCm10hW7m7FQ4hF0Mi85n8R5C/wQWTLglsNMPM\nopyH\r\n=/92Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZxVSvIM765iWM01S0dBUcztu8i0Wrg+jqezWnqZoGTAIgZV66/tcYgYceydkLDyqHVgw101m0zbwJcxn42Qe9Lpw="}]},"maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fusion-apollo-universal-client_3.0.0-1_1554326046605_0.042889967165741005"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"email":"fusionjs+ci@uber.com","name":"fusion-ci"},{"email":"kevingrandon@yahoo.com","name":"kevingrandon"}],"time":{"modified":"2022-05-03T01:32:27.661Z","created":"2017-12-01T06:17:34.888Z","0.0.1":"2017-12-01T06:17:34.888Z","0.0.2":"2017-12-02T00:52:40.824Z","0.0.3":"2017-12-02T00:57:32.859Z","0.0.4":"2017-12-03T00:14:44.407Z","1.0.0":"2018-02-10T03:54:38.163Z","1.0.1":"2018-02-12T19:12:31.802Z","1.0.2":"2018-05-06T06:49:14.381Z","1.1.0-0":"2018-06-26T19:54:32.268Z","1.1.0":"2018-07-02T22:29:14.075Z","1.2.0-0":"2018-07-14T06:41:09.914Z","1.2.0":"2018-07-26T23:33:00.290Z","1.3.0-0":"2018-07-27T17:05:10.909Z","1.3.0":"2018-08-21T06:25:06.154Z","1.4.0-0":"2018-08-24T17:20:35.145Z","1.4.0-1":"2018-09-03T05:51:47.314Z","1.4.0":"2018-09-05T17:43:09.431Z","1.4.1":"2018-09-18T00:21:26.195Z","1.4.2":"2018-10-16T00:22:14.491Z","1.4.3":"2018-11-13T07:30:47.125Z","1.4.4":"2018-11-21T20:51:17.869Z","2.0.0-0":"2018-11-21T20:54:51.922Z","2.0.0":"2018-11-27T01:20:42.696Z","2.0.1-0":"2018-11-28T20:00:03.685Z","2.0.1-1":"2018-11-29T19:27:52.104Z","2.0.1":"2018-12-12T06:27:29.695Z","2.1.0-0":"2019-01-16T18:25:11.859Z","2.1.0-1":"2019-01-16T22:10:47.047Z","2.1.0-2":"2019-01-22T20:43:04.191Z","2.1.0":"2019-01-23T01:44:56.346Z","2.2.0-0":"2019-03-18T20:49:57.631Z","2.2.0":"2019-03-18T23:52:30.082Z","3.0.0-0":"2019-03-20T17:12:13.765Z","3.0.0-1":"2019-04-03T21:14:06.731Z"},"homepage":"https://github.com/fusionjs/fusion-apollo-universal-client#readme","repository":{"type":"git","url":"git+https://github.com/fusionjs/fusion-apollo-universal-client.git"},"bugs":{"url":"https://github.com/fusionjs/fusion-apollo-universal-client/issues"},"license":"MIT","readmeFilename":""}