{"name":"apollo-link-dedup","version":"1.0.19","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/index.js","module":"./lib/bundle.esm.js","typings":"./lib/index.d.ts","sideEffects":false,"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":"tsc && rollup -c","clean":"rimraf lib/* && rimraf coverage/*","coverage":"jest --coverage","filesize":"../../scripts/minify","lint":"tslint -c \"../../tslint.json\" -p tsconfig.json -c ../../tslint.json src/*.ts","prebuild":"npm run clean","prepare":"npm run build","test":"npm run lint && jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.12","tslib":"^1.9.3"},"devDependencies":{"@types/graphql":"14.2.0","@types/jest":"24.0.14","graphql":"14.3.1","graphql-tag":"2.10.1","jest":"24.8.0","rimraf":"2.6.3","rollup":"1.15.4","ts-jest":"22.4.6","tslint":"5.17.0","typescript":"3.0.3"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"testURL":"http://localhost"},"gitHead":"f902ab977d7d173951528a0bc2e38521b2afc096","_id":"apollo-link-dedup@1.0.19","_nodeVersion":"8.16.0","_npmVersion":"lerna/3.13.1/node@v8.16.0+x64 (darwin)","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-7dUiOLAcTlnYcRsUc77s7W9ps1A86JWmrx/Un/6K3xiQkDS3IER5CsujWuAOUtWbP72yp18jEhlyHcslpkJwkg==","shasum":"f0f58312c80b9bf0d927a53d5cad56875c679e14","tarball":"http://registry-npm.ywwl.com/apollo-link-dedup/download/apollo-link-dedup-1.0.19.tgz","fileCount":18,"unpackedSize":36174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBCNsCRA9TVsSAnZWagAAEZ0P/RqSYPB1LkZJIjrLGOqk\nHO9MGgBGUi9srwlokJJ2cP0+JR01m0FNvut58FXMpwdzKBns5ikrntyhiNVS\n02nl6p+YlZ7DqaBZzGmxXPPL1tJKqTonzG3M15edt2ZUDksr/sRHnLd386Rl\nMAn3tin78warjr6nxxDfYyrr9WgueFbGFxWcTW0IuVsLRIOQ3RRE3zViFFSU\nPiadQz4MgMod47E81I3x2FjST5AsuTXSEnETLNI34T7EYZKEq/jS7LIdDj3J\nxpRXV5INzgIlz0dk8E9RKXlhdFXpEugx9rPmZH00gRQ5abzn7i/AmLJuHMTm\nTAw+nCZssKAmpdvCpr+G+WmV9SIYfgTnpQd+qdMvydU3+dgOQhXznfdTMDz3\n9uvwL/WIk/uTzJ49d3ij7krSOUl64KPumzYarEQo4jqBEP+hiqmlvlrgmPv7\nc27wm+kwLV6cJnTxm5V7XvxMAsx04GEDI2KJZoaVy3EcgeEN1ZEUxiaqU4ar\nHaqtUFGUPqg8oziqWsUV/iVB65t/fA5wR1AINKg9nwb69wG46fzyGAoDj+wE\nefsOdnvuQWOqI0Hgx9/lgpc6V7W007dUlft3SSdvxU1kUbHbkESKXq8YcI9K\n9+qR5EIQD20fTr/ciQJDYKrdMfdB/cvLkP14RbKCyv+NL03dtsuZAFnyOIOh\nGCRx\r\n=iEk/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGI90wNGGGIHKGU3YYuQkNbcwwjMI0+RiiLKI7pJqYCAIhANEBrac95r1RGiuw7dGNbpizEtKRY4LdYnNrs1wHrjVp"}],"size":6808,"noattachment":false,"key":"/apollo-link-dedup/-/apollo-link-dedup-1.0.19.tgz"},"maintainers":[{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"evanshauser@gmail.com","name":"evanshauser"},{"email":"james@meteor.com","name":"jbaxleyiii"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-dedup_1.0.19_1560552300199_0.45204187237868454"},"_hasShrinkwrap":false,"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":1560552300327,"_cnpm_publish_time":1560552300327,"dist-tags":{"alpha":"1.1.0-alpha.5","beta":"0.4.1-beta.6","latest":"1.0.21"}}