{"name":"apollo-link-dedup","version":"0.5.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":"./lib/bundle.umd.js","module":"./lib/dedupLink.js","jsnext:main":"./lib/dedupLink.js","typings":"./lib/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":{"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/*","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 ."},"dependencies":{"graphql":"^0.11.0"},"peerDependencies":{"apollo-link":"^0.7.0"},"devDependencies":{"@types/graphql":"0.11.4","@types/jest":"21.1.1","apollo-link":"^0.7.0","browserify":"14.4.0","graphql":"0.11.6","graphql-tag":"2.4.2","jest":"21.2.1","rimraf":"2.6.1","rollup":"0.45.2","ts-jest":"21.0.1","tslint":"5.7.0","typescript":"2.5.1","uglify-js":"3.1.3"},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"]},"_id":"apollo-link-dedup@0.5.0","_npmVersion":"5.4.2","_nodeVersion":"8.1.2","_npmUser":{"name":"jbaxleyiii","email":"james@meteor.com"},"dist":{"integrity":"sha512-ZBEfRSPFC1LJsTJN7C7ieHSQynw+dpst194CNEQs+ohH5kopR1mZW/koHTEHFdk58bLW0WUiar0xFKcJxi/eqQ==","shasum":"bf0cabe56067477934371292495d33350639ce86","tarball":"http://registry-npm.ywwl.com/apollo-link-dedup/download/apollo-link-dedup-0.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJiUuMihjDR1pf3l4YIKfsOwSbhPrbdJEoVfiwCU0WMAiAavsV6+cOTym+HC1Ed1Z8/P5dREVOttzBlnefxHf7OTg=="}],"size":5225,"noattachment":false,"key":"/apollo-link-dedup/-/apollo-link-dedup-0.5.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.5.0.tgz_1507038117179_0.0019854246638715267"},"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":1507038118218,"_cnpm_publish_time":1507038118218,"dist-tags":{"alpha":"1.1.0-alpha.5","beta":"0.4.1-beta.6","latest":"1.0.21"}}