{"name":"apollo-link-dedup","version":"1.1.0-alpha.1","description":"Deduplicates queries that are currently on the wire","author":{"name":"Evans Hauser","email":"evanshauser@gmail.com"},"contributors":[{"name":"James Baxley","email":"james@meteor.com"},{"name":"Jonas Helfer","email":"jonas@helfer.email"},{"name":"jon wong","email":"j@jnwng.com"},{"name":"Sashko Stubailo","email":"sashko@stubailo.com"}],"license":"MIT","main":"./lib/bundle.umd.js","module":"./lib/index.js","jsnext:main":"./lib/index.js","typings":"./lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-link.git"},"bugs":{"url":"https://github.com/apollographql/apollo-link/issues"},"homepage":"https://github.com/apollographql/apollo-link#readme","scripts":{"build:browser":"browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-link && npm run minify:browser","build":"tsc -p .","bundle":"rollup -c","clean":"rimraf lib/* && rimraf coverage/*","coverage":"jest --coverage","filesize":"npm run build && npm run build:browser","lint":"tslint --type-check -p tsconfig.json -c ../../tslint.json src/*.ts","minify:browser":"uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js","postbuild":"npm run bundle","prebuild":"npm run clean","prepublishOnly":"npm run clean && npm run build","test":"jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.2"},"devDependencies":{"@types/graphql":"0.12.6","@types/jest":"22.2.3","browserify":"16.2.2","graphql":"0.13.2","graphql-tag":"2.9.2","jest":"22.4.4","rimraf":"2.6.1","rollup":"0.62.0","ts-jest":"22.4.6","tslint":"5.11.0","typescript":"2.9.2","uglify-js":"3.4.5"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"mapCoverage":true},"readme":"---\r\ntitle: apollo-link-dedup\r\ndescription: Deduplicate matching requests before making a request\r\n---\r\n\r\n*NOTE* This link is included by default when using apollo-client so you don't need to add it to your link chain if using apollo-client.\r\n\r\n## Installation\r\n\r\n`npm install apollo-link-dedup --save`\r\n\r\n## Usage\r\n```js\r\nimport { DedupLink } from \"apollo-link-dedup\";\r\n\r\nconst link = new DedupLink();\r\n```\r\n\r\n## Options\r\nThe Dedup Link does not take any options when creating the link.\r\n\r\n## Context\r\nThe Dedup Link can be overridden by using the context on a per operation basis:\r\n- `forceFetch`: a true or false (defaults to false) to bypass deduplication per request\r\n\r\n```js\r\nimport Link from \"apollo-link-http\";\r\nimport ApolloClient from \"apollo-client\";\r\nimport InMemoryCache from \"apollo-cache-inmemory\";\r\n\r\nconst client = new ApolloClient({\r\n  link: new Link({ uri: \"/graphql\" }),\r\n  cache: new InMemoryCache()\r\n});\r\n\r\n// a query with apollo-client that will not be deduped\r\nclient.query({\r\n  query: MY_QUERY,\r\n  context: {\r\n    forceFetch: true\r\n  }\r\n})\r\n```\r\n","readmeFilename":"README.md","_id":"apollo-link-dedup@1.1.0-alpha.1","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"dist":{"integrity":"sha512-eOj/+XWq/3vRKEb+WZHxr4+J6SXbLVyDZDZu1Bhc0rF+wdesp9VPCH876nB/dQeUUzoRedXC3hAtDorx9Uoobg==","shasum":"6d2d3633382832284e50cbc41a83dd769421c3c6","tarball":"http://registry-npm.ywwl.com/apollo-link-dedup/download/apollo-link-dedup-1.1.0-alpha.1.tgz","fileCount":21,"unpackedSize":38447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbV8vcCRA9TVsSAnZWagAABYwP+QFmxsyDRrMqFwYhEWiN\nJbC/j4+gMvwzPQ7PfRhm2Nfe4A+TsReDw91vmkM/lInKeWfz19xXs/d7dmDn\n7WfIfwwy/a2MBRh0A0i4N9m1k4kxnEBQ8mVF3hgDx64V8C9yYKrel1z/Rho2\n45y3j9IjnmLyxi5jsa2JcSEdoVMT5zYDNB4pA00KiGzd3LvikG4s/g6J0wAT\nGdJGDr29jNm/I9UWmMY3Q8Tsy8b8nYk+MX8uhLTQqGzusl8hTlqki7/bFSeF\nCdtWlzAVsYlqoI7PmBpfHqNkZNQuYrUcXEw+8MKjvQuNrkpfrVolONdhZ+k8\nK7+yHurNnwKso5Z+f+F5re7iz5r7fcC0YLZhf9ZR9zPkUIsc8Xvk+y++r8nF\nC7ooK8Hy/QgrVbZWiSewFi9YeI6siNZQ9KBKBx0gKr22M74D2UKj3VWOwXJk\nim7imweuT+f9O6GOVAtWMOzAG1Iz4DFKXKXlFswxwyUb5Fz+CPI+qLb0UaIW\nvweCsfxgbhABCS/9AMPgUEYgk3wsUGjPWoHHb7+H4S3FVdH4+Z2hHx3sjOWa\nQ99B3JeaAYSxb2raepPwcGh5nS4tjwh8EGaz56CQfF8/ls9D23U+7HXHdVuJ\ngbAoFugyjjRDTqQrJ+8eRBlbC2Hux8A1T/pytS3PdgpHnvcA8MnooJ7E5WSc\njA1w\r\n=VQf4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaMBEa1/2r/EV4mtcTE4KHs0ZOjzWWrmZN9B1x1SsY+gIhAL2FuOz17ShZXvgJCqT47AECwHxt2d55Z7vrrPhUjOuS"}],"size":9060,"noattachment":false,"key":"/apollo-link-dedup/-/apollo-link-dedup-1.1.0-alpha.1.tgz"},"maintainers":[{"name":"evanshauser","email":"evanshauser@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"mdg","email":"npm@meteor.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-dedup_1.1.0-alpha.1_1532480476018_0.1665062184829027"},"_hasShrinkwrap":false,"publish_time":1532480476109,"_cnpm_publish_time":1532480476109,"dist-tags":{"alpha":"1.1.0-alpha.5","beta":"0.4.1-beta.6","latest":"1.0.21"}}