{"name":"apollo-link-dedup","version":"1.0.12","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.5"},"devDependencies":{"@types/graphql":"14.0.3","@types/jest":"22.2.3","browserify":"16.2.3","graphql":"14.0.2","graphql-tag":"2.10.0","jest":"22.4.4","rimraf":"2.6.1","rollup":"0.67.4","ts-jest":"22.4.6","tslint":"5.11.0","typescript":"3.0.3","uglify-js":"3.4.9"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"mapCoverage":true,"testURL":"http://localhost"},"_id":"apollo-link-dedup@1.0.12","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-qPYRKiTlKWYrhEXlyAAlqMGmojNDMRWc5Dv1TRb1rPRRsq6NNg9jP6ppPFcC3DhiQY8r333VlRGy9h4t6NLKbg==","shasum":"b17d775b97f24878794cbec5a4ecef13cf45fd33","tarball":"http://registry-npm.ywwl.com/apollo-link-dedup/download/apollo-link-dedup-1.0.12.tgz","fileCount":16,"unpackedSize":30679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcErKvCRA9TVsSAnZWagAAx0sP/3kIBrRt451oEMp3/QiX\nFXKl0zJVBE7xgSlAn1cwfYC9hfJK7xf76QH0czaZfllIjpC8IpUDXzkwIr3X\n/+iGNQRmj7v/p8aDeNX+iPg5Idjxo7U1Pv0IjtKIQ0YZqGOeaIvY7vajkMLA\nsWaZK95Cl9j80OF5NAMqkkwTZDsOdQla/5hH/+DdHLfBfGSRURV3AZgYt5Fb\nnkgOGpePIlx11n7CYoVS40TcWXgFXNCmn5AToExFlAZ/hya7HNwyzvRBZOh1\nYAbXETV731tH7LPfBO5mTel0dIbBFhYnDaoCu52J2Ng82FgWI669f47HAPcD\nr2RK3NG0YjGhPhxWGBCcoGgQXCYhL8tVbv9wIn6hDXLBt4xH8M+bQ8Wsaa8C\n/AFGBzYEHFuPttLzAz/VonLj7kLNeytQ0RiPY4eVz+q0+MILpRrhzOLMRhFr\n7ZvkiHKw9BR+I0y7tqWKdn+oO9GdlKstU/6utBzzmrJFoMdq2FHUgXWIGkEW\nk0uIsW0CyZ3yHxJCDO0XSDfp0J1rpJex8UhK0tMUHdYsnFTviKuffr+2hiNN\nPU/1ME6vaBeaKJ/unGwkW90jex2psain6yBQj6PCce1Z14F/F6Pk2GjPwWIX\nDJQsGn6Cjnsj1bAjAtAMs0KQH/ON6k392qJsVp1UQDfd2X6dYFQZMY9aX70W\nA2jG\r\n=PW8g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChB/+rmZbAi4pX5A6DVaiwWcqPj+c4FKFX6NPnwmtjPQIhAK+XkKHDws5wGExJ/3bEniCwKIgwpKHbGoxQ5ZrBIKP0"}],"size":6934,"noattachment":false,"key":"/apollo-link-dedup/-/apollo-link-dedup-1.0.12.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.12_1544729263140_0.7985799244427789"},"_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":1544729263257,"_cnpm_publish_time":1544729263257,"dist-tags":{"alpha":"1.1.0-alpha.5","beta":"0.4.1-beta.6","latest":"1.0.21"}}