{"name":"apollo-link-batch","version":"1.1.9","description":"Apollo Link that performs batching and operation on batched Operations","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","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 ./tsconfig.cjs.json","bundle":"rollup -c","coverage":"jest --coverage","clean":"rimraf lib/* && rimraf coverage/*","filesize":"npm run build && npm run build:browser","lint":"tslint -c \"../../tslint.json\" -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","prepare":"npm run lint && npm run build","prepublishOnly":"npm run clean && npm run build","test":"jest","watch":"tsc -w -p . & rollup -c -w"},"dependencies":{"apollo-link":"^1.2.8"},"devDependencies":{"@types/graphql":"14.0.5","@types/jest":"22.2.3","browserify":"16.2.3","fetch-mock":"6.5.2","graphql":"14.1.1","graphql-tag":"2.10.1","jest":"22.4.4","proxyquire":"1.8.0","rimraf":"2.6.3","rollup":"0.68.2","ts-jest":"22.4.6","tslint":"5.12.1","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"],"testURL":"http://localhost"},"gitHead":"6f5d0cfb73e61c6f83caed9e37d37c4451a64c7b","_id":"apollo-link-batch@1.1.9","_nodeVersion":"8.12.0","_npmVersion":"lerna/3.10.7/node@v8.12.0+x64 (darwin)","dist":{"integrity":"sha512-eZ89oTJQSHo8ND31DXll287UFzyqP3VUbESuJ8pgFBIgGUVA/V3unQP/72rLcVaEEwpl9kL4hWKyH4ZnukAUdg==","shasum":"d19154296adbedcfcf1f6f55b83b41e4c957e8d9","tarball":"http://registry-npm.ywwl.com/apollo-link-batch/download/apollo-link-batch-1.1.9.tgz","fileCount":49,"unpackedSize":119017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVKKdCRA9TVsSAnZWagAAzGQP+wc4eKSpSozAJ105c5Vx\nOLkRlxVG9RqSXzH1VuBCOf+3z0NQTpdaao8Tbaesx+VxfbLAah/JHeE3Q0yb\njB28J1F3qP2fR+8ZZA+373GEtCwv+H6I/iUTho21yD5WPA0n5Gz+B5yMmH2G\nTSoghxEXBUQCRtpAqfwwkXuXrvI4yNUrEwJIZ/gvmPqG50TZdgcEso/HDeoy\nprqKOBHhcVi4HEZhEa9nvh6InUGOm5p+Rq17VueR/Zy8ET6lM5nfoVr2znpI\nW3Q6njR76h0OleUNfHugA9HkQBt2IntrsfclOdvQvdLrnuDNamyOf8xivDGV\nShvnabRVB2QzfpP1meCMGDsToTc7e8BPu4AvdwMqnA1B+g0rIqO61yjCSodL\n1G0leb306vY2JB6zWRHcsWQ/Ifq7qAH+P0TnnF0tEs03WUU/srBuXZzVhlMs\nmVHfmrSBGNmwqctWsPsTw72SgmvHcIlEjXDBXSDyuwkRQ1RCHneCgT7NlGkD\n4yBs1ZxFKzmLXGutDXRVsxHbgGGdGlyTAhy9DDyAR8F+PPpEMn6BRQigP1DX\nqe1r+r4h0uXxtiw5TfnsVxETQL7FvBW1/gqt7aNjbzjouPfHEHD8VTfPAGqS\nx83jZj8+cybLxlp7R2zBawsn5I7Sy2cP5XR8uiCyOi8Scd90oIeBGvfUKcMC\nLlL6\r\n=ShzD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSgE4gDrqhBQLDwyscgrgbRs1B8FbzhInjfkGdFA/i0gIgLU/swIeWcKYJZBwH/hOT326/QtpPCExw+SCUpvP9eGA="}],"size":24196,"noattachment":false,"key":"/apollo-link-batch/-/apollo-link-batch-1.1.9.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-batch_1.1.9_1549050524309_0.02926403508986475"},"_hasShrinkwrap":false,"readme":"# Batch Link\r\n\r\n## Purpose\r\nAn Apollo Link to allow batching of multiple operations into a single request. For example, the `apollo-link-batch-http` uses this link to batch operations into a single http request.\r\n\r\n## Installation\r\n\r\n`npm install apollo-link-batch --save`\r\n\r\n## Usage\r\n```js\r\nimport { BatchLink } from \"apollo-link-batch\";\r\n\r\nconst link = new BatchLink({\r\n  batchHandler: (operations: Operation[], forward: NextLink) => Observable<FetchResult[]> | null\r\n});\r\n```\r\n\r\n## Options\r\nBatch Link takes an object with three options on it to customize the behavior of the link. The only required option is the batchHandler function\r\n\r\n|name|value|default|required|\r\n|---|---|---|---|\r\n|batchInterval|number|10|false|\r\n|batchMax|number|0|false|\r\n|batchHandler|(operations: Operation[], forward: NextLink) => Observable<FetchResult[]> | null|NA|true|\r\n\r\n## Context\r\nThe Batch Link does not use the context for anything\r\n","publish_time":1549050524499,"_cnpm_publish_time":1549050524499,"dist-tags":{"beta":"2.0.0-beta.0","latest":"1.1.15"}}