{"name":"apollo-link-dedup","version":"0.4.1-beta.0","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":"./dist/src/bundle.umd.js","module":"./dist/src/dedupLink.js","jsnext:main":"./dist/src/dedupLink.js","typings":"./dist/src/dedupLink.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":{"pretest":"npm run build-test","test":"npm run test-only --","posttest":"npm run lint","test-only":"mocha --reporter spec --full-trace dist/tests/tests.js","test-watch":"mocha --reporter spec --full-trace dist/tests/tests.js --watch","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js","postcoverage":"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info","lint":"tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts","prebuild":"npm run clean:dist","build":"tsc -p .","build-test":"tsc -p tsconfig.test.json","postbuild":"npm run bundle","postbuild-test":"npm run bundle","bundle":"rollup -c","watch":"tsc -w -p .","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"rimraf dist/*","clean:coverage":"rimraf coverage/*","prepublishOnly":"npm run clean && npm run build"},"dependencies":{"apollo-fetch":"^0.6.0","graphql":"^0.10.5"},"peerDependencies":{"apollo-link":"^0.6.1-beta.0"},"devDependencies":{"@types/chai":"4.0.4","@types/chai-as-promised":"0.0.31","@types/graphql":"0.10.2","@types/mocha":"2.2.42","@types/sinon":"2.3.3","apollo-link":"^0.6.1-beta.0","chai":"4.1.1","chai-as-promised":"7.1.1","fetch-mock":"5.12.2","graphql-tag":"2.4.2","istanbul":"0.4.5","lodash":"4.17.4","mocha":"3.5.0","remap-istanbul":"0.9.5","rimraf":"2.6.1","rollup":"^0.45.2","sinon":"3.2.0","source-map-support":"0.4.16","tslint":"5.7.0","typescript":"2.5.1"},"_id":"apollo-link-dedup@0.4.1-beta.0","_npmVersion":"5.4.1","_nodeVersion":"8.1.2","_npmUser":{"name":"jbaxleyiii","email":"james@meteor.com"},"dist":{"integrity":"sha512-udNRwF8lWeeMEE+BuiPPkAM1Rm5BU92HVSD5yn4XHG++ffkMTlu4gDwV8hYTDDG4+mB7W9oQkbhFelYgmpbWGw==","shasum":"8bcb4ca3e5ea8490ff9711570ee95f1a04dffd03","tarball":"http://registry-npm.ywwl.com/apollo-link-dedup/download/apollo-link-dedup-0.4.1-beta.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVELXZW71z7I3ZaHyCTY5RZzslOeHgZ/oiASD58LFmWAiEAjZxYuUQsqF5YJp2V2XZ8zki2/Ir5EqZQZj7g5dDVdtQ="}],"size":5143,"noattachment":false,"key":"/apollo-link-dedup/-/apollo-link-dedup-0.4.1-beta.0.tgz"},"maintainers":[{"name":"evanshauser","email":"evanshauser@gmail.com"},{"name":"jbaxleyiii","email":"james@meteor.com"},{"name":"mdg","email":"npm@meteor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-dedup-0.4.1-beta.0.tgz_1505312437477_0.8775056682061404"},"directories":{},"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 { createHttpLink } 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: createHttpLink({ 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","publish_time":1505312438538,"_cnpm_publish_time":1505312438538,"dist-tags":{"alpha":"1.1.0-alpha.5","beta":"0.4.1-beta.6","latest":"1.0.21"}}