{"name":"apollo-link-dedup","version":"1.0.17","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.10","tslib":"^1.9.3"},"devDependencies":{"@types/graphql":"14.0.7","@types/jest":"24.0.11","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"24.5.0","rimraf":"2.6.3","rollup":"1.6.0","ts-jest":"22.4.6","tslint":"5.13.1","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":"127ab65ba89185a82c492299c7853f02fdd7e570","_id":"apollo-link-dedup@1.0.17","_nodeVersion":"8.12.0","_npmVersion":"lerna/3.13.1/node@v8.12.0+x64 (darwin)","dist":{"integrity":"sha512-fqN0dP7RVnV61xcxP0h4p8XTMlJsBWk0KNNr5MCsNVBzY7L4KJdj7aJWyK3//4ljjLXlFUOs4sfyNRuJjG/vQA==","shasum":"b4e198d5c22fd6d476c1989ffe580fd99ace2b9c","tarball":"http://registry-npm.ywwl.com/apollo-link-dedup/download/apollo-link-dedup-1.0.17.tgz","fileCount":18,"unpackedSize":35281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJciaqkCRA9TVsSAnZWagAATBUP/3iH/QuN2wm22PeVndw9\nTGpDTHAjVUQSkIoa++RUK6K/Y3Cer76R0U+aO7fc6gXlQevKw/2Ry4l8+VNt\nWs+TmOB1X1VVgP56m5ME4a9jxVzH7JOQZY36YZFPt/cCBQYZNI5IhctIgrIL\nEqk1eE1H8ZIuQA3kw2mGCeNRYfG8yrCBk4+yoUB8q5lhdT7Ps6TDQKA3MEx7\nFXwTPxYDWKKJ/dg1D4Gkbbb8TAYSIsH0xzo77154HMzW1RaoJQ+B3cgcvxUN\n35hCDHCf3g6rnx+c8Xj6J7K0BxzwGNe+YeRvY49JI9krjY35aECI8QbBURS5\nRSlnsQwkIl24FEj/hCGkzxjvNB9yUKOjd0yrJKkHZQTAJG5h2G8FyfSxt0rq\n6kBYXKV6joegMSSp68Rlr2jDtqhoD24RuOF2xwNLmKzeC0mUkNbnYU3ZA6Lj\noCBkQSIGI/IskVYioh5VU+Gtm97nWj4I+ah7/+PAxyvAB/PbdOLeegcMwEU9\nYFkIZSHHAUwok2wkkXAPLVYhZfl9r+8s34l1U500ymboh5n4zD7PmPVay1IL\n79lbjqoTNezOCqjiTByoux/VN8eDs2rNhPC/3tg4xXtpC9xN9+BadRwxAF5o\nF+eQkF/MsRb4PUaf93c+tFf1chYdq9Qtcf4qi5xUVdTxJ5JHpwhc+B4Op4qH\nb6pL\r\n=EsXl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY15SNeWp9ZHifrTDHZW21eQ7+EMws6kMMJxOu9paHQAIhAJOZYvLg0x5ZudaJBRtRl/FoF0kGyXKV0dA68RF2AYZ9"}],"size":6754,"noattachment":false,"key":"/apollo-link-dedup/-/apollo-link-dedup-1.0.17.tgz"},"maintainers":[{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"evanshauser@gmail.com","name":"evanshauser"},{"email":"james@meteor.com","name":"jbaxleyiii"}],"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-dedup_1.0.17_1552525987435_0.3882221854369228"},"_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":1552525987662,"_cnpm_publish_time":1552525987662,"dist-tags":{"alpha":"1.1.0-alpha.5","beta":"0.4.1-beta.6","latest":"1.0.21"}}